1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GNU gengetopt 2.23. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='GNU gengetopt' 589PACKAGE_TARNAME='gengetopt' 590PACKAGE_VERSION='2.23' 591PACKAGE_STRING='GNU gengetopt 2.23' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='http://www.gnu.org/software/gengetopt/' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631gl_getopt_required=POSIX 632gl_header_list= 633gl_getopt_required=POSIX 634gl_func_list= 635ac_subst_vars='gltests_LTLIBOBJS 636gltests_LIBOBJS 637gl_LTLIBOBJS 638gl_LIBOBJS 639am__EXEEXT_FALSE 640am__EXEEXT_TRUE 641LTLIBOBJS 642LIBOBJS 643NO_CROSSCOMPILING_FALSE 644NO_CROSSCOMPILING_TRUE 645HELP2MAN 646VALGRIND 647TAR 648gltests_WITNESS 649HAVE_UNISTD_H 650NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 651NEXT_UNISTD_H 652NEXT_AS_FIRST_DIRECTIVE_STRING_H 653NEXT_STRING_H 654UNDEFINE_STRTOK_R 655REPLACE_STRTOK_R 656REPLACE_STRSIGNAL 657REPLACE_STRNLEN 658REPLACE_STRNDUP 659REPLACE_STRNCAT 660REPLACE_STRERROR 661REPLACE_STRCASESTR 662REPLACE_STRSTR 663REPLACE_STRDUP 664REPLACE_STPNCPY 665REPLACE_MEMMEM 666REPLACE_MEMCHR 667HAVE_STRVERSCMP 668HAVE_DECL_STRSIGNAL 669HAVE_DECL_STRTOK_R 670HAVE_STRCASESTR 671HAVE_STRSEP 672HAVE_STRPBRK 673HAVE_DECL_STRNLEN 674HAVE_DECL_STRNDUP 675HAVE_DECL_STRDUP 676HAVE_STRCHRNUL 677HAVE_STPNCPY 678HAVE_STPCPY 679HAVE_RAWMEMCHR 680HAVE_DECL_MEMRCHR 681HAVE_MEMPCPY 682HAVE_DECL_MEMMEM 683HAVE_MEMCHR 684HAVE_MBSLEN 685GNULIB_STRVERSCMP 686GNULIB_STRSIGNAL 687GNULIB_STRERROR 688GNULIB_MBSTOK_R 689GNULIB_MBSSEP 690GNULIB_MBSSPN 691GNULIB_MBSPBRK 692GNULIB_MBSCSPN 693GNULIB_MBSCASESTR 694GNULIB_MBSPCASECMP 695GNULIB_MBSNCASECMP 696GNULIB_MBSCASECMP 697GNULIB_MBSSTR 698GNULIB_MBSRCHR 699GNULIB_MBSCHR 700GNULIB_MBSNLEN 701GNULIB_MBSLEN 702GNULIB_STRTOK_R 703GNULIB_STRCASESTR 704GNULIB_STRSTR 705GNULIB_STRSEP 706GNULIB_STRPBRK 707GNULIB_STRNLEN 708GNULIB_STRNDUP 709GNULIB_STRNCAT 710GNULIB_STRDUP 711GNULIB_STRCHRNUL 712GNULIB_STPNCPY 713GNULIB_STPCPY 714GNULIB_RAWMEMCHR 715GNULIB_MEMRCHR 716GNULIB_MEMPCPY 717GNULIB_MEMMEM 718GNULIB_MEMCHR 719NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 720NEXT_STDDEF_H 721STDDEF_H 722HAVE_WCHAR_T 723REPLACE_NULL 724LTLIBINTL 725LIBINTL 726GETOPT_H 727HAVE_GETOPT_H 728NEXT_AS_FIRST_DIRECTIVE_GETOPT_H 729NEXT_GETOPT_H 730PRAGMA_SYSTEM_HEADER 731INCLUDE_NEXT_AS_FIRST_DIRECTIVE 732INCLUDE_NEXT 733UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 734UNISTD_H_HAVE_WINSOCK2_H 735REPLACE_WRITE 736REPLACE_USLEEP 737REPLACE_UNLINKAT 738REPLACE_UNLINK 739REPLACE_TTYNAME_R 740REPLACE_SYMLINK 741REPLACE_SLEEP 742REPLACE_RMDIR 743REPLACE_READLINK 744REPLACE_PWRITE 745REPLACE_PREAD 746REPLACE_LSEEK 747REPLACE_LINKAT 748REPLACE_LINK 749REPLACE_LCHOWN 750REPLACE_GETPAGESIZE 751REPLACE_GETGROUPS 752REPLACE_GETCWD 753REPLACE_FCHOWNAT 754REPLACE_DUP2 755REPLACE_DUP 756REPLACE_CLOSE 757REPLACE_CHOWN 758HAVE_SYS_PARAM_H 759HAVE_OS_H 760HAVE_DECL_GETUSERSHELL 761HAVE_DECL_GETPAGESIZE 762HAVE_DECL_GETLOGIN_R 763HAVE_DECL_ENVIRON 764HAVE_USLEEP 765HAVE_UNLINKAT 766HAVE_TTYNAME_R 767HAVE_SYMLINKAT 768HAVE_SYMLINK 769HAVE_SLEEP 770HAVE_READLINKAT 771HAVE_READLINK 772HAVE_PWRITE 773HAVE_PREAD 774HAVE_PIPE2 775HAVE_LINKAT 776HAVE_LINK 777HAVE_LCHOWN 778HAVE_GETPAGESIZE 779HAVE_GETLOGIN 780HAVE_GETHOSTNAME 781HAVE_GETGROUPS 782HAVE_GETDTABLESIZE 783HAVE_GETDOMAINNAME 784HAVE_FTRUNCATE 785HAVE_FSYNC 786HAVE_FCHOWNAT 787HAVE_FCHDIR 788HAVE_FACCESSAT 789HAVE_EUIDACCESS 790HAVE_DUP3 791HAVE_DUP2 792HAVE_CHOWN 793GNULIB_WRITE 794GNULIB_USLEEP 795GNULIB_UNLINKAT 796GNULIB_UNLINK 797GNULIB_UNISTD_H_SIGPIPE 798GNULIB_UNISTD_H_GETOPT 799GNULIB_TTYNAME_R 800GNULIB_SYMLINKAT 801GNULIB_SYMLINK 802GNULIB_SLEEP 803GNULIB_RMDIR 804GNULIB_READLINKAT 805GNULIB_READLINK 806GNULIB_PWRITE 807GNULIB_PREAD 808GNULIB_PIPE2 809GNULIB_LSEEK 810GNULIB_LINKAT 811GNULIB_LINK 812GNULIB_LCHOWN 813GNULIB_GETUSERSHELL 814GNULIB_GETPAGESIZE 815GNULIB_GETLOGIN_R 816GNULIB_GETLOGIN 817GNULIB_GETHOSTNAME 818GNULIB_GETGROUPS 819GNULIB_GETDTABLESIZE 820GNULIB_GETDOMAINNAME 821GNULIB_GETCWD 822GNULIB_FTRUNCATE 823GNULIB_FSYNC 824GNULIB_FCHOWNAT 825GNULIB_FCHDIR 826GNULIB_FACCESSAT 827GNULIB_EUIDACCESS 828GNULIB_ENVIRON 829GNULIB_DUP3 830GNULIB_DUP2 831GNULIB_CLOSE 832GNULIB_CHOWN 833GL_COND_LIBTOOL_FALSE 834GL_COND_LIBTOOL_TRUE 835GENGETOPT 836GENGEN 837LEXLIB 838LEX_OUTPUT_ROOT 839LEX 840CXXCPP 841LT_SYS_LIBRARY_PATH 842OTOOL64 843OTOOL 844LIPO 845NMEDIT 846DSYMUTIL 847MANIFEST_TOOL 848ac_ct_AR 849AR 850DLLTOOL 851OBJDUMP 852LN_S 853NM 854ac_ct_DUMPBIN 855DUMPBIN 856LD 857FGREP 858SED 859LIBTOOL 860YFLAGS 861YACC 862am__fastdepCXX_FALSE 863am__fastdepCXX_TRUE 864CXXDEPMODE 865ac_ct_CXX 866CXXFLAGS 867CXX 868EGREP 869GREP 870CPP 871host_os 872host_vendor 873host_cpu 874host 875build_os 876build_vendor 877build_cpu 878build 879RANLIB 880am__fastdepCC_FALSE 881am__fastdepCC_TRUE 882CCDEPMODE 883am__nodep 884AMDEPBACKSLASH 885AMDEP_FALSE 886AMDEP_TRUE 887am__include 888DEPDIR 889OBJEXT 890EXEEXT 891ac_ct_CC 892CPPFLAGS 893LDFLAGS 894CFLAGS 895CC 896gengetoptexamplesdir 897gengetoptdocdir 898AM_BACKSLASH 899AM_DEFAULT_VERBOSITY 900AM_DEFAULT_V 901AM_V 902am__untar 903am__tar 904AMTAR 905am__leading_dot 906SET_MAKE 907AWK 908mkdir_p 909MKDIR_P 910INSTALL_STRIP_PROGRAM 911STRIP 912install_sh 913MAKEINFO 914AUTOHEADER 915AUTOMAKE 916AUTOCONF 917ACLOCAL 918VERSION 919PACKAGE 920CYGPATH_W 921am__isrc 922INSTALL_DATA 923INSTALL_SCRIPT 924INSTALL_PROGRAM 925target_alias 926host_alias 927build_alias 928LIBS 929ECHO_T 930ECHO_N 931ECHO_C 932DEFS 933mandir 934localedir 935libdir 936psdir 937pdfdir 938dvidir 939htmldir 940infodir 941docdir 942oldincludedir 943includedir 944localstatedir 945sharedstatedir 946sysconfdir 947datadir 948datarootdir 949libexecdir 950sbindir 951bindir 952program_transform_name 953prefix 954exec_prefix 955PACKAGE_URL 956PACKAGE_BUGREPORT 957PACKAGE_STRING 958PACKAGE_VERSION 959PACKAGE_TARNAME 960PACKAGE_NAME 961PATH_SEPARATOR 962SHELL 963am__quote' 964ac_subst_files='' 965ac_user_opts=' 966enable_option_checking 967enable_silent_rules 968enable_dependency_tracking 969enable_shared 970enable_static 971with_pic 972enable_fast_install 973with_aix_soname 974with_gnu_ld 975with_sysroot 976enable_libtool_lock 977enable_warnings 978with_gengen 979with_gengetopt 980' 981 ac_precious_vars='build_alias 982host_alias 983target_alias 984CC 985CFLAGS 986LDFLAGS 987LIBS 988CPPFLAGS 989CPP 990CXX 991CXXFLAGS 992CCC 993YACC 994YFLAGS 995LT_SYS_LIBRARY_PATH 996CXXCPP' 997 998 999# Initialize some variables set by options. 1000ac_init_help= 1001ac_init_version=false 1002ac_unrecognized_opts= 1003ac_unrecognized_sep= 1004# The variables have the same names as the options, with 1005# dashes changed to underlines. 1006cache_file=/dev/null 1007exec_prefix=NONE 1008no_create= 1009no_recursion= 1010prefix=NONE 1011program_prefix=NONE 1012program_suffix=NONE 1013program_transform_name=s,x,x, 1014silent= 1015site= 1016srcdir= 1017verbose= 1018x_includes=NONE 1019x_libraries=NONE 1020 1021# Installation directory options. 1022# These are left unexpanded so users can "make install exec_prefix=/foo" 1023# and all the variables that are supposed to be based on exec_prefix 1024# by default will actually change. 1025# Use braces instead of parens because sh, perl, etc. also accept them. 1026# (The list follows the same order as the GNU Coding Standards.) 1027bindir='${exec_prefix}/bin' 1028sbindir='${exec_prefix}/sbin' 1029libexecdir='${exec_prefix}/libexec' 1030datarootdir='${prefix}/share' 1031datadir='${datarootdir}' 1032sysconfdir='${prefix}/etc' 1033sharedstatedir='${prefix}/com' 1034localstatedir='${prefix}/var' 1035includedir='${prefix}/include' 1036oldincludedir='/usr/include' 1037docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1038infodir='${datarootdir}/info' 1039htmldir='${docdir}' 1040dvidir='${docdir}' 1041pdfdir='${docdir}' 1042psdir='${docdir}' 1043libdir='${exec_prefix}/lib' 1044localedir='${datarootdir}/locale' 1045mandir='${datarootdir}/man' 1046 1047ac_prev= 1048ac_dashdash= 1049for ac_option 1050do 1051 # If the previous option needs an argument, assign it. 1052 if test -n "$ac_prev"; then 1053 eval $ac_prev=\$ac_option 1054 ac_prev= 1055 continue 1056 fi 1057 1058 case $ac_option in 1059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1060 *=) ac_optarg= ;; 1061 *) ac_optarg=yes ;; 1062 esac 1063 1064 # Accept the important Cygnus configure options, so we can diagnose typos. 1065 1066 case $ac_dashdash$ac_option in 1067 --) 1068 ac_dashdash=yes ;; 1069 1070 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1071 ac_prev=bindir ;; 1072 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1073 bindir=$ac_optarg ;; 1074 1075 -build | --build | --buil | --bui | --bu) 1076 ac_prev=build_alias ;; 1077 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1078 build_alias=$ac_optarg ;; 1079 1080 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1082 ac_prev=cache_file ;; 1083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1085 cache_file=$ac_optarg ;; 1086 1087 --config-cache | -C) 1088 cache_file=config.cache ;; 1089 1090 -datadir | --datadir | --datadi | --datad) 1091 ac_prev=datadir ;; 1092 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1093 datadir=$ac_optarg ;; 1094 1095 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1096 | --dataroo | --dataro | --datar) 1097 ac_prev=datarootdir ;; 1098 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1099 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1100 datarootdir=$ac_optarg ;; 1101 1102 -disable-* | --disable-*) 1103 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1104 # Reject names that are not valid shell variable names. 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1106 as_fn_error $? "invalid feature name: $ac_useropt" 1107 ac_useropt_orig=$ac_useropt 1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1109 case $ac_user_opts in 1110 *" 1111"enable_$ac_useropt" 1112"*) ;; 1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1114 ac_unrecognized_sep=', ';; 1115 esac 1116 eval enable_$ac_useropt=no ;; 1117 1118 -docdir | --docdir | --docdi | --doc | --do) 1119 ac_prev=docdir ;; 1120 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1121 docdir=$ac_optarg ;; 1122 1123 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1124 ac_prev=dvidir ;; 1125 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1126 dvidir=$ac_optarg ;; 1127 1128 -enable-* | --enable-*) 1129 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 as_fn_error $? "invalid feature name: $ac_useropt" 1133 ac_useropt_orig=$ac_useropt 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 case $ac_user_opts in 1136 *" 1137"enable_$ac_useropt" 1138"*) ;; 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1140 ac_unrecognized_sep=', ';; 1141 esac 1142 eval enable_$ac_useropt=\$ac_optarg ;; 1143 1144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1146 | --exec | --exe | --ex) 1147 ac_prev=exec_prefix ;; 1148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1150 | --exec=* | --exe=* | --ex=*) 1151 exec_prefix=$ac_optarg ;; 1152 1153 -gas | --gas | --ga | --g) 1154 # Obsolete; use --with-gas. 1155 with_gas=yes ;; 1156 1157 -help | --help | --hel | --he | -h) 1158 ac_init_help=long ;; 1159 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1160 ac_init_help=recursive ;; 1161 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1162 ac_init_help=short ;; 1163 1164 -host | --host | --hos | --ho) 1165 ac_prev=host_alias ;; 1166 -host=* | --host=* | --hos=* | --ho=*) 1167 host_alias=$ac_optarg ;; 1168 1169 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1170 ac_prev=htmldir ;; 1171 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1172 | --ht=*) 1173 htmldir=$ac_optarg ;; 1174 1175 -includedir | --includedir | --includedi | --included | --include \ 1176 | --includ | --inclu | --incl | --inc) 1177 ac_prev=includedir ;; 1178 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1179 | --includ=* | --inclu=* | --incl=* | --inc=*) 1180 includedir=$ac_optarg ;; 1181 1182 -infodir | --infodir | --infodi | --infod | --info | --inf) 1183 ac_prev=infodir ;; 1184 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1185 infodir=$ac_optarg ;; 1186 1187 -libdir | --libdir | --libdi | --libd) 1188 ac_prev=libdir ;; 1189 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1190 libdir=$ac_optarg ;; 1191 1192 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1193 | --libexe | --libex | --libe) 1194 ac_prev=libexecdir ;; 1195 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1196 | --libexe=* | --libex=* | --libe=*) 1197 libexecdir=$ac_optarg ;; 1198 1199 -localedir | --localedir | --localedi | --localed | --locale) 1200 ac_prev=localedir ;; 1201 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1202 localedir=$ac_optarg ;; 1203 1204 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1205 | --localstate | --localstat | --localsta | --localst | --locals) 1206 ac_prev=localstatedir ;; 1207 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1208 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1209 localstatedir=$ac_optarg ;; 1210 1211 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1212 ac_prev=mandir ;; 1213 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1214 mandir=$ac_optarg ;; 1215 1216 -nfp | --nfp | --nf) 1217 # Obsolete; use --without-fp. 1218 with_fp=no ;; 1219 1220 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1221 | --no-cr | --no-c | -n) 1222 no_create=yes ;; 1223 1224 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1225 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1226 no_recursion=yes ;; 1227 1228 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1229 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1230 | --oldin | --oldi | --old | --ol | --o) 1231 ac_prev=oldincludedir ;; 1232 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1233 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1234 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1235 oldincludedir=$ac_optarg ;; 1236 1237 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1238 ac_prev=prefix ;; 1239 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1240 prefix=$ac_optarg ;; 1241 1242 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1243 | --program-pre | --program-pr | --program-p) 1244 ac_prev=program_prefix ;; 1245 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1246 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1247 program_prefix=$ac_optarg ;; 1248 1249 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1250 | --program-suf | --program-su | --program-s) 1251 ac_prev=program_suffix ;; 1252 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1253 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1254 program_suffix=$ac_optarg ;; 1255 1256 -program-transform-name | --program-transform-name \ 1257 | --program-transform-nam | --program-transform-na \ 1258 | --program-transform-n | --program-transform- \ 1259 | --program-transform | --program-transfor \ 1260 | --program-transfo | --program-transf \ 1261 | --program-trans | --program-tran \ 1262 | --progr-tra | --program-tr | --program-t) 1263 ac_prev=program_transform_name ;; 1264 -program-transform-name=* | --program-transform-name=* \ 1265 | --program-transform-nam=* | --program-transform-na=* \ 1266 | --program-transform-n=* | --program-transform-=* \ 1267 | --program-transform=* | --program-transfor=* \ 1268 | --program-transfo=* | --program-transf=* \ 1269 | --program-trans=* | --program-tran=* \ 1270 | --progr-tra=* | --program-tr=* | --program-t=*) 1271 program_transform_name=$ac_optarg ;; 1272 1273 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1274 ac_prev=pdfdir ;; 1275 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1276 pdfdir=$ac_optarg ;; 1277 1278 -psdir | --psdir | --psdi | --psd | --ps) 1279 ac_prev=psdir ;; 1280 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1281 psdir=$ac_optarg ;; 1282 1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1284 | -silent | --silent | --silen | --sile | --sil) 1285 silent=yes ;; 1286 1287 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1288 ac_prev=sbindir ;; 1289 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1290 | --sbi=* | --sb=*) 1291 sbindir=$ac_optarg ;; 1292 1293 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1294 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1295 | --sharedst | --shareds | --shared | --share | --shar \ 1296 | --sha | --sh) 1297 ac_prev=sharedstatedir ;; 1298 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1299 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1300 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1301 | --sha=* | --sh=*) 1302 sharedstatedir=$ac_optarg ;; 1303 1304 -site | --site | --sit) 1305 ac_prev=site ;; 1306 -site=* | --site=* | --sit=*) 1307 site=$ac_optarg ;; 1308 1309 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1310 ac_prev=srcdir ;; 1311 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1312 srcdir=$ac_optarg ;; 1313 1314 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1315 | --syscon | --sysco | --sysc | --sys | --sy) 1316 ac_prev=sysconfdir ;; 1317 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1318 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1319 sysconfdir=$ac_optarg ;; 1320 1321 -target | --target | --targe | --targ | --tar | --ta | --t) 1322 ac_prev=target_alias ;; 1323 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1324 target_alias=$ac_optarg ;; 1325 1326 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1327 verbose=yes ;; 1328 1329 -version | --version | --versio | --versi | --vers | -V) 1330 ac_init_version=: ;; 1331 1332 -with-* | --with-*) 1333 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1334 # Reject names that are not valid shell variable names. 1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1336 as_fn_error $? "invalid package name: $ac_useropt" 1337 ac_useropt_orig=$ac_useropt 1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1339 case $ac_user_opts in 1340 *" 1341"with_$ac_useropt" 1342"*) ;; 1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1344 ac_unrecognized_sep=', ';; 1345 esac 1346 eval with_$ac_useropt=\$ac_optarg ;; 1347 1348 -without-* | --without-*) 1349 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1350 # Reject names that are not valid shell variable names. 1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1352 as_fn_error $? "invalid package name: $ac_useropt" 1353 ac_useropt_orig=$ac_useropt 1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1355 case $ac_user_opts in 1356 *" 1357"with_$ac_useropt" 1358"*) ;; 1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1360 ac_unrecognized_sep=', ';; 1361 esac 1362 eval with_$ac_useropt=no ;; 1363 1364 --x) 1365 # Obsolete; use --with-x. 1366 with_x=yes ;; 1367 1368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1369 | --x-incl | --x-inc | --x-in | --x-i) 1370 ac_prev=x_includes ;; 1371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1373 x_includes=$ac_optarg ;; 1374 1375 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1377 ac_prev=x_libraries ;; 1378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1380 x_libraries=$ac_optarg ;; 1381 1382 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1383Try \`$0 --help' for more information" 1384 ;; 1385 1386 *=*) 1387 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1388 # Reject names that are not valid shell variable names. 1389 case $ac_envvar in #( 1390 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1391 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1392 esac 1393 eval $ac_envvar=\$ac_optarg 1394 export $ac_envvar ;; 1395 1396 *) 1397 # FIXME: should be removed in autoconf 3.0. 1398 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1399 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1400 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1401 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1402 ;; 1403 1404 esac 1405done 1406 1407if test -n "$ac_prev"; then 1408 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1409 as_fn_error $? "missing argument to $ac_option" 1410fi 1411 1412if test -n "$ac_unrecognized_opts"; then 1413 case $enable_option_checking in 1414 no) ;; 1415 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1416 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1417 esac 1418fi 1419 1420# Check all directory arguments for consistency. 1421for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1422 datadir sysconfdir sharedstatedir localstatedir includedir \ 1423 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1424 libdir localedir mandir 1425do 1426 eval ac_val=\$$ac_var 1427 # Remove trailing slashes. 1428 case $ac_val in 1429 */ ) 1430 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1431 eval $ac_var=\$ac_val;; 1432 esac 1433 # Be sure to have absolute directory names. 1434 case $ac_val in 1435 [\\/$]* | ?:[\\/]* ) continue;; 1436 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1437 esac 1438 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1439done 1440 1441# There might be people who depend on the old broken behavior: `$host' 1442# used to hold the argument of --host etc. 1443# FIXME: To remove some day. 1444build=$build_alias 1445host=$host_alias 1446target=$target_alias 1447 1448# FIXME: To remove some day. 1449if test "x$host_alias" != x; then 1450 if test "x$build_alias" = x; then 1451 cross_compiling=maybe 1452 elif test "x$build_alias" != "x$host_alias"; then 1453 cross_compiling=yes 1454 fi 1455fi 1456 1457ac_tool_prefix= 1458test -n "$host_alias" && ac_tool_prefix=$host_alias- 1459 1460test "$silent" = yes && exec 6>/dev/null 1461 1462 1463ac_pwd=`pwd` && test -n "$ac_pwd" && 1464ac_ls_di=`ls -di .` && 1465ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1466 as_fn_error $? "working directory cannot be determined" 1467test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1468 as_fn_error $? "pwd does not report name of working directory" 1469 1470 1471# Find the source files, if location was not specified. 1472if test -z "$srcdir"; then 1473 ac_srcdir_defaulted=yes 1474 # Try the directory containing this script, then the parent directory. 1475 ac_confdir=`$as_dirname -- "$as_myself" || 1476$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1477 X"$as_myself" : 'X\(//\)[^/]' \| \ 1478 X"$as_myself" : 'X\(//\)$' \| \ 1479 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1480$as_echo X"$as_myself" | 1481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1482 s//\1/ 1483 q 1484 } 1485 /^X\(\/\/\)[^/].*/{ 1486 s//\1/ 1487 q 1488 } 1489 /^X\(\/\/\)$/{ 1490 s//\1/ 1491 q 1492 } 1493 /^X\(\/\).*/{ 1494 s//\1/ 1495 q 1496 } 1497 s/.*/./; q'` 1498 srcdir=$ac_confdir 1499 if test ! -r "$srcdir/$ac_unique_file"; then 1500 srcdir=.. 1501 fi 1502else 1503 ac_srcdir_defaulted=no 1504fi 1505if test ! -r "$srcdir/$ac_unique_file"; then 1506 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1507 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1508fi 1509ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1510ac_abs_confdir=`( 1511 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1512 pwd)` 1513# When building in place, set srcdir=. 1514if test "$ac_abs_confdir" = "$ac_pwd"; then 1515 srcdir=. 1516fi 1517# Remove unnecessary trailing slashes from srcdir. 1518# Double slashes in file names in object file debugging info 1519# mess up M-x gdb in Emacs. 1520case $srcdir in 1521*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1522esac 1523for ac_var in $ac_precious_vars; do 1524 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1525 eval ac_env_${ac_var}_value=\$${ac_var} 1526 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1527 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1528done 1529 1530# 1531# Report the --help message. 1532# 1533if test "$ac_init_help" = "long"; then 1534 # Omit some internal or obsolete options to make the list less imposing. 1535 # This message is too long to be a string in the A/UX 3.1 sh. 1536 cat <<_ACEOF 1537\`configure' configures GNU gengetopt 2.23 to adapt to many kinds of systems. 1538 1539Usage: $0 [OPTION]... [VAR=VALUE]... 1540 1541To assign environment variables (e.g., CC, CFLAGS...), specify them as 1542VAR=VALUE. See below for descriptions of some of the useful variables. 1543 1544Defaults for the options are specified in brackets. 1545 1546Configuration: 1547 -h, --help display this help and exit 1548 --help=short display options specific to this package 1549 --help=recursive display the short help of all the included packages 1550 -V, --version display version information and exit 1551 -q, --quiet, --silent do not print \`checking ...' messages 1552 --cache-file=FILE cache test results in FILE [disabled] 1553 -C, --config-cache alias for \`--cache-file=config.cache' 1554 -n, --no-create do not create output files 1555 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1556 1557Installation directories: 1558 --prefix=PREFIX install architecture-independent files in PREFIX 1559 [$ac_default_prefix] 1560 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1561 [PREFIX] 1562 1563By default, \`make install' will install all the files in 1564\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1565an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1566for instance \`--prefix=\$HOME'. 1567 1568For better control, use the options below. 1569 1570Fine tuning of the installation directories: 1571 --bindir=DIR user executables [EPREFIX/bin] 1572 --sbindir=DIR system admin executables [EPREFIX/sbin] 1573 --libexecdir=DIR program executables [EPREFIX/libexec] 1574 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1575 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1576 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1577 --libdir=DIR object code libraries [EPREFIX/lib] 1578 --includedir=DIR C header files [PREFIX/include] 1579 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1580 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1581 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1582 --infodir=DIR info documentation [DATAROOTDIR/info] 1583 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1584 --mandir=DIR man documentation [DATAROOTDIR/man] 1585 --docdir=DIR documentation root [DATAROOTDIR/doc/gengetopt] 1586 --htmldir=DIR html documentation [DOCDIR] 1587 --dvidir=DIR dvi documentation [DOCDIR] 1588 --pdfdir=DIR pdf documentation [DOCDIR] 1589 --psdir=DIR ps documentation [DOCDIR] 1590_ACEOF 1591 1592 cat <<\_ACEOF 1593 1594Program names: 1595 --program-prefix=PREFIX prepend PREFIX to installed program names 1596 --program-suffix=SUFFIX append SUFFIX to installed program names 1597 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1598 1599System types: 1600 --build=BUILD configure for building on BUILD [guessed] 1601 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1602_ACEOF 1603fi 1604 1605if test -n "$ac_init_help"; then 1606 case $ac_init_help in 1607 short | recursive ) echo "Configuration of GNU gengetopt 2.23:";; 1608 esac 1609 cat <<\_ACEOF 1610 1611Optional Features: 1612 --disable-option-checking ignore unrecognized --enable/--with options 1613 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1614 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1615 --enable-silent-rules less verbose build output (undo: "make V=1") 1616 --disable-silent-rules verbose build output (undo: "make V=0") 1617 --enable-dependency-tracking 1618 do not reject slow dependency extractors 1619 --disable-dependency-tracking 1620 speeds up one-time build 1621 --enable-shared[=PKGS] build shared libraries [default=yes] 1622 --enable-static[=PKGS] build static libraries [default=yes] 1623 --enable-fast-install[=PKGS] 1624 optimize for fast installation [default=yes] 1625 --disable-libtool-lock avoid locking (might break parallel builds) 1626 --enable-warnings enable compiler warnings 1627 1628Optional Packages: 1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1631 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1632 both] 1633 --with-aix-soname=aix|svr4|both 1634 shared library versioning (aka "SONAME") variant to 1635 provide on AIX, [default=aix]. 1636 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1637 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1638 compiler's sysroot if not specified). 1639 --with-gengen=mygengen gengen to use 1640 --with-gengetopt=mygengetopt gengetopt to use 1641 1642Some influential environment variables: 1643 CC C compiler command 1644 CFLAGS C compiler flags 1645 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1646 nonstandard directory <lib dir> 1647 LIBS libraries to pass to the linker, e.g. -l<library> 1648 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1649 you have headers in a nonstandard directory <include dir> 1650 CPP C preprocessor 1651 CXX C++ compiler command 1652 CXXFLAGS C++ compiler flags 1653 YACC The `Yet Another Compiler Compiler' implementation to use. 1654 Defaults to the first program found out of: `bison -y', `byacc', 1655 `yacc'. 1656 YFLAGS The list of arguments that will be passed by default to $YACC. 1657 This script will default YFLAGS to the empty string to avoid a 1658 default value of `-d' given by some make applications. 1659 LT_SYS_LIBRARY_PATH 1660 User-defined run-time library search path. 1661 CXXCPP C++ preprocessor 1662 1663Use these variables to override the choices made by `configure' or to help 1664it to find libraries and programs with nonstandard names/locations. 1665 1666Report bugs to the package provider. 1667GNU gengetopt home page: <http://www.gnu.org/software/gengetopt/>. 1668General help using GNU software: <http://www.gnu.org/gethelp/>. 1669_ACEOF 1670ac_status=$? 1671fi 1672 1673if test "$ac_init_help" = "recursive"; then 1674 # If there are subdirs, report their specific --help. 1675 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1676 test -d "$ac_dir" || 1677 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1678 continue 1679 ac_builddir=. 1680 1681case "$ac_dir" in 1682.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1683*) 1684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1685 # A ".." for each directory in $ac_dir_suffix. 1686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1687 case $ac_top_builddir_sub in 1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1690 esac ;; 1691esac 1692ac_abs_top_builddir=$ac_pwd 1693ac_abs_builddir=$ac_pwd$ac_dir_suffix 1694# for backward compatibility: 1695ac_top_builddir=$ac_top_build_prefix 1696 1697case $srcdir in 1698 .) # We are building in place. 1699 ac_srcdir=. 1700 ac_top_srcdir=$ac_top_builddir_sub 1701 ac_abs_top_srcdir=$ac_pwd ;; 1702 [\\/]* | ?:[\\/]* ) # Absolute name. 1703 ac_srcdir=$srcdir$ac_dir_suffix; 1704 ac_top_srcdir=$srcdir 1705 ac_abs_top_srcdir=$srcdir ;; 1706 *) # Relative name. 1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1708 ac_top_srcdir=$ac_top_build_prefix$srcdir 1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1710esac 1711ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1712 1713 cd "$ac_dir" || { ac_status=$?; continue; } 1714 # Check for guested configure. 1715 if test -f "$ac_srcdir/configure.gnu"; then 1716 echo && 1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1718 elif test -f "$ac_srcdir/configure"; then 1719 echo && 1720 $SHELL "$ac_srcdir/configure" --help=recursive 1721 else 1722 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1723 fi || ac_status=$? 1724 cd "$ac_pwd" || { ac_status=$?; break; } 1725 done 1726fi 1727 1728test -n "$ac_init_help" && exit $ac_status 1729if $ac_init_version; then 1730 cat <<\_ACEOF 1731GNU gengetopt configure 2.23 1732generated by GNU Autoconf 2.69 1733 1734Copyright (C) 2012 Free Software Foundation, Inc. 1735This configure script is free software; the Free Software Foundation 1736gives unlimited permission to copy, distribute and modify it. 1737_ACEOF 1738 exit 1739fi 1740 1741## ------------------------ ## 1742## Autoconf initialization. ## 1743## ------------------------ ## 1744 1745# ac_fn_c_try_compile LINENO 1746# -------------------------- 1747# Try to compile conftest.$ac_ext, and return whether this succeeded. 1748ac_fn_c_try_compile () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 rm -f conftest.$ac_objext 1752 if { { ac_try="$ac_compile" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_compile") 2>conftest.err 1760 ac_status=$? 1761 if test -s conftest.err; then 1762 grep -v '^ *+' conftest.err >conftest.er1 1763 cat conftest.er1 >&5 1764 mv -f conftest.er1 conftest.err 1765 fi 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } && { 1768 test -z "$ac_c_werror_flag" || 1769 test ! -s conftest.err 1770 } && test -s conftest.$ac_objext; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 as_fn_set_status $ac_retval 1780 1781} # ac_fn_c_try_compile 1782 1783# ac_fn_c_try_cpp LINENO 1784# ---------------------- 1785# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1786ac_fn_c_try_cpp () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 if { { ac_try="$ac_cpp conftest.$ac_ext" 1790case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1797 ac_status=$? 1798 if test -s conftest.err; then 1799 grep -v '^ *+' conftest.err >conftest.er1 1800 cat conftest.er1 >&5 1801 mv -f conftest.er1 conftest.err 1802 fi 1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1804 test $ac_status = 0; } > conftest.i && { 1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1806 test ! -s conftest.err 1807 }; then : 1808 ac_retval=0 1809else 1810 $as_echo "$as_me: failed program was:" >&5 1811sed 's/^/| /' conftest.$ac_ext >&5 1812 1813 ac_retval=1 1814fi 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 as_fn_set_status $ac_retval 1817 1818} # ac_fn_c_try_cpp 1819 1820# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1821# ------------------------------------------------------- 1822# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1823# the include files in INCLUDES and setting the cache variable VAR 1824# accordingly. 1825ac_fn_c_check_header_mongrel () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 if eval \${$3+:} false; then : 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1830$as_echo_n "checking for $2... " >&6; } 1831if eval \${$3+:} false; then : 1832 $as_echo_n "(cached) " >&6 1833fi 1834eval ac_res=\$$3 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1836$as_echo "$ac_res" >&6; } 1837else 1838 # Is the header compilable? 1839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1840$as_echo_n "checking $2 usability... " >&6; } 1841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843$4 1844#include <$2> 1845_ACEOF 1846if ac_fn_c_try_compile "$LINENO"; then : 1847 ac_header_compiler=yes 1848else 1849 ac_header_compiler=no 1850fi 1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1853$as_echo "$ac_header_compiler" >&6; } 1854 1855# Is the header present? 1856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1857$as_echo_n "checking $2 presence... " >&6; } 1858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1859/* end confdefs.h. */ 1860#include <$2> 1861_ACEOF 1862if ac_fn_c_try_cpp "$LINENO"; then : 1863 ac_header_preproc=yes 1864else 1865 ac_header_preproc=no 1866fi 1867rm -f conftest.err conftest.i conftest.$ac_ext 1868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1869$as_echo "$ac_header_preproc" >&6; } 1870 1871# So? What about this header? 1872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1873 yes:no: ) 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1875$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1877$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1878 ;; 1879 no:yes:* ) 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1881$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1883$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1885$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1887$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1889$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1890 ;; 1891esac 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if eval \${$3+:} false; then : 1895 $as_echo_n "(cached) " >&6 1896else 1897 eval "$3=\$ac_header_compiler" 1898fi 1899eval ac_res=\$$3 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1901$as_echo "$ac_res" >&6; } 1902fi 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1904 1905} # ac_fn_c_check_header_mongrel 1906 1907# ac_fn_c_try_run LINENO 1908# ---------------------- 1909# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1910# that executables *can* be run. 1911ac_fn_c_try_run () 1912{ 1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1914 if { { ac_try="$ac_link" 1915case "(($ac_try" in 1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1917 *) ac_try_echo=$ac_try;; 1918esac 1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1920$as_echo "$ac_try_echo"; } >&5 1921 (eval "$ac_link") 2>&5 1922 ac_status=$? 1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1924 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1925 { { case "(($ac_try" in 1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1927 *) ac_try_echo=$ac_try;; 1928esac 1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1930$as_echo "$ac_try_echo"; } >&5 1931 (eval "$ac_try") 2>&5 1932 ac_status=$? 1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1934 test $ac_status = 0; }; }; then : 1935 ac_retval=0 1936else 1937 $as_echo "$as_me: program exited with status $ac_status" >&5 1938 $as_echo "$as_me: failed program was:" >&5 1939sed 's/^/| /' conftest.$ac_ext >&5 1940 1941 ac_retval=$ac_status 1942fi 1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1945 as_fn_set_status $ac_retval 1946 1947} # ac_fn_c_try_run 1948 1949# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1950# ------------------------------------------------------- 1951# Tests whether HEADER exists and can be compiled using the include files in 1952# INCLUDES, setting the cache variable VAR accordingly. 1953ac_fn_c_check_header_compile () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957$as_echo_n "checking for $2... " >&6; } 1958if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960else 1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963$4 1964#include <$2> 1965_ACEOF 1966if ac_fn_c_try_compile "$LINENO"; then : 1967 eval "$3=yes" 1968else 1969 eval "$3=no" 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972fi 1973eval ac_res=\$$3 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1975$as_echo "$ac_res" >&6; } 1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1977 1978} # ac_fn_c_check_header_compile 1979 1980# ac_fn_cxx_try_compile LINENO 1981# ---------------------------- 1982# Try to compile conftest.$ac_ext, and return whether this succeeded. 1983ac_fn_cxx_try_compile () 1984{ 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 rm -f conftest.$ac_objext 1987 if { { ac_try="$ac_compile" 1988case "(($ac_try" in 1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1990 *) ac_try_echo=$ac_try;; 1991esac 1992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1993$as_echo "$ac_try_echo"; } >&5 1994 (eval "$ac_compile") 2>conftest.err 1995 ac_status=$? 1996 if test -s conftest.err; then 1997 grep -v '^ *+' conftest.err >conftest.er1 1998 cat conftest.er1 >&5 1999 mv -f conftest.er1 conftest.err 2000 fi 2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2002 test $ac_status = 0; } && { 2003 test -z "$ac_cxx_werror_flag" || 2004 test ! -s conftest.err 2005 } && test -s conftest.$ac_objext; then : 2006 ac_retval=0 2007else 2008 $as_echo "$as_me: failed program was:" >&5 2009sed 's/^/| /' conftest.$ac_ext >&5 2010 2011 ac_retval=1 2012fi 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 as_fn_set_status $ac_retval 2015 2016} # ac_fn_cxx_try_compile 2017 2018# ac_fn_c_try_link LINENO 2019# ----------------------- 2020# Try to link conftest.$ac_ext, and return whether this succeeded. 2021ac_fn_c_try_link () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 rm -f conftest.$ac_objext conftest$ac_exeext 2025 if { { ac_try="$ac_link" 2026case "(($ac_try" in 2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2028 *) ac_try_echo=$ac_try;; 2029esac 2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2031$as_echo "$ac_try_echo"; } >&5 2032 (eval "$ac_link") 2>conftest.err 2033 ac_status=$? 2034 if test -s conftest.err; then 2035 grep -v '^ *+' conftest.err >conftest.er1 2036 cat conftest.er1 >&5 2037 mv -f conftest.er1 conftest.err 2038 fi 2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2040 test $ac_status = 0; } && { 2041 test -z "$ac_c_werror_flag" || 2042 test ! -s conftest.err 2043 } && test -s conftest$ac_exeext && { 2044 test "$cross_compiling" = yes || 2045 test -x conftest$ac_exeext 2046 }; then : 2047 ac_retval=0 2048else 2049 $as_echo "$as_me: failed program was:" >&5 2050sed 's/^/| /' conftest.$ac_ext >&5 2051 2052 ac_retval=1 2053fi 2054 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2055 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2056 # interfere with the next link command; also delete a directory that is 2057 # left behind by Apple's compiler. We do this before executing the actions. 2058 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2060 as_fn_set_status $ac_retval 2061 2062} # ac_fn_c_try_link 2063 2064# ac_fn_c_check_func LINENO FUNC VAR 2065# ---------------------------------- 2066# Tests whether FUNC exists, setting the cache variable VAR accordingly 2067ac_fn_c_check_func () 2068{ 2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2071$as_echo_n "checking for $2... " >&6; } 2072if eval \${$3+:} false; then : 2073 $as_echo_n "(cached) " >&6 2074else 2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2076/* end confdefs.h. */ 2077/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2078 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2079#define $2 innocuous_$2 2080 2081/* System header to define __stub macros and hopefully few prototypes, 2082 which can conflict with char $2 (); below. 2083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2084 <limits.h> exists even on freestanding compilers. */ 2085 2086#ifdef __STDC__ 2087# include <limits.h> 2088#else 2089# include <assert.h> 2090#endif 2091 2092#undef $2 2093 2094/* Override any GCC internal prototype to avoid an error. 2095 Use char because int might match the return type of a GCC 2096 builtin and then its argument prototype would still apply. */ 2097#ifdef __cplusplus 2098extern "C" 2099#endif 2100char $2 (); 2101/* The GNU C library defines this for functions which it implements 2102 to always fail with ENOSYS. Some functions are actually named 2103 something starting with __ and the normal name is an alias. */ 2104#if defined __stub_$2 || defined __stub___$2 2105choke me 2106#endif 2107 2108int 2109main () 2110{ 2111return $2 (); 2112 ; 2113 return 0; 2114} 2115_ACEOF 2116if ac_fn_c_try_link "$LINENO"; then : 2117 eval "$3=yes" 2118else 2119 eval "$3=no" 2120fi 2121rm -f core conftest.err conftest.$ac_objext \ 2122 conftest$ac_exeext conftest.$ac_ext 2123fi 2124eval ac_res=\$$3 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2126$as_echo "$ac_res" >&6; } 2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2128 2129} # ac_fn_c_check_func 2130 2131# ac_fn_cxx_try_cpp LINENO 2132# ------------------------ 2133# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2134ac_fn_cxx_try_cpp () 2135{ 2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2137 if { { ac_try="$ac_cpp conftest.$ac_ext" 2138case "(($ac_try" in 2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2140 *) ac_try_echo=$ac_try;; 2141esac 2142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2143$as_echo "$ac_try_echo"; } >&5 2144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2145 ac_status=$? 2146 if test -s conftest.err; then 2147 grep -v '^ *+' conftest.err >conftest.er1 2148 cat conftest.er1 >&5 2149 mv -f conftest.er1 conftest.err 2150 fi 2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2152 test $ac_status = 0; } > conftest.i && { 2153 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2154 test ! -s conftest.err 2155 }; then : 2156 ac_retval=0 2157else 2158 $as_echo "$as_me: failed program was:" >&5 2159sed 's/^/| /' conftest.$ac_ext >&5 2160 2161 ac_retval=1 2162fi 2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2164 as_fn_set_status $ac_retval 2165 2166} # ac_fn_cxx_try_cpp 2167 2168# ac_fn_cxx_try_link LINENO 2169# ------------------------- 2170# Try to link conftest.$ac_ext, and return whether this succeeded. 2171ac_fn_cxx_try_link () 2172{ 2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2174 rm -f conftest.$ac_objext conftest$ac_exeext 2175 if { { ac_try="$ac_link" 2176case "(($ac_try" in 2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2178 *) ac_try_echo=$ac_try;; 2179esac 2180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2181$as_echo "$ac_try_echo"; } >&5 2182 (eval "$ac_link") 2>conftest.err 2183 ac_status=$? 2184 if test -s conftest.err; then 2185 grep -v '^ *+' conftest.err >conftest.er1 2186 cat conftest.er1 >&5 2187 mv -f conftest.er1 conftest.err 2188 fi 2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2190 test $ac_status = 0; } && { 2191 test -z "$ac_cxx_werror_flag" || 2192 test ! -s conftest.err 2193 } && test -s conftest$ac_exeext && { 2194 test "$cross_compiling" = yes || 2195 test -x conftest$ac_exeext 2196 }; then : 2197 ac_retval=0 2198else 2199 $as_echo "$as_me: failed program was:" >&5 2200sed 's/^/| /' conftest.$ac_ext >&5 2201 2202 ac_retval=1 2203fi 2204 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2205 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2206 # interfere with the next link command; also delete a directory that is 2207 # left behind by Apple's compiler. We do this before executing the actions. 2208 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2210 as_fn_set_status $ac_retval 2211 2212} # ac_fn_cxx_try_link 2213 2214# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2215# ------------------------------------------- 2216# Tests whether TYPE exists after having included INCLUDES, setting cache 2217# variable VAR accordingly. 2218ac_fn_c_check_type () 2219{ 2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2222$as_echo_n "checking for $2... " >&6; } 2223if eval \${$3+:} false; then : 2224 $as_echo_n "(cached) " >&6 2225else 2226 eval "$3=no" 2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2228/* end confdefs.h. */ 2229$4 2230int 2231main () 2232{ 2233if (sizeof ($2)) 2234 return 0; 2235 ; 2236 return 0; 2237} 2238_ACEOF 2239if ac_fn_c_try_compile "$LINENO"; then : 2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2241/* end confdefs.h. */ 2242$4 2243int 2244main () 2245{ 2246if (sizeof (($2))) 2247 return 0; 2248 ; 2249 return 0; 2250} 2251_ACEOF 2252if ac_fn_c_try_compile "$LINENO"; then : 2253 2254else 2255 eval "$3=yes" 2256fi 2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2258fi 2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2260fi 2261eval ac_res=\$$3 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2263$as_echo "$ac_res" >&6; } 2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2265 2266} # ac_fn_c_check_type 2267 2268# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2269# --------------------------------------------- 2270# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2271# accordingly. 2272ac_fn_c_check_decl () 2273{ 2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2275 as_decl_name=`echo $2|sed 's/ *(.*//'` 2276 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2278$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2279if eval \${$3+:} false; then : 2280 $as_echo_n "(cached) " >&6 2281else 2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2283/* end confdefs.h. */ 2284$4 2285int 2286main () 2287{ 2288#ifndef $as_decl_name 2289#ifdef __cplusplus 2290 (void) $as_decl_use; 2291#else 2292 (void) $as_decl_name; 2293#endif 2294#endif 2295 2296 ; 2297 return 0; 2298} 2299_ACEOF 2300if ac_fn_c_try_compile "$LINENO"; then : 2301 eval "$3=yes" 2302else 2303 eval "$3=no" 2304fi 2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2306fi 2307eval ac_res=\$$3 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2309$as_echo "$ac_res" >&6; } 2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2311 2312} # ac_fn_c_check_decl 2313cat >config.log <<_ACEOF 2314This file contains any messages produced by compilers while 2315running configure, to aid debugging if configure makes a mistake. 2316 2317It was created by GNU gengetopt $as_me 2.23, which was 2318generated by GNU Autoconf 2.69. Invocation command line was 2319 2320 $ $0 $@ 2321 2322_ACEOF 2323exec 5>>config.log 2324{ 2325cat <<_ASUNAME 2326## --------- ## 2327## Platform. ## 2328## --------- ## 2329 2330hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2331uname -m = `(uname -m) 2>/dev/null || echo unknown` 2332uname -r = `(uname -r) 2>/dev/null || echo unknown` 2333uname -s = `(uname -s) 2>/dev/null || echo unknown` 2334uname -v = `(uname -v) 2>/dev/null || echo unknown` 2335 2336/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2337/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2338 2339/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2340/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2341/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2342/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2343/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2344/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2345/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2346 2347_ASUNAME 2348 2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2350for as_dir in $PATH 2351do 2352 IFS=$as_save_IFS 2353 test -z "$as_dir" && as_dir=. 2354 $as_echo "PATH: $as_dir" 2355 done 2356IFS=$as_save_IFS 2357 2358} >&5 2359 2360cat >&5 <<_ACEOF 2361 2362 2363## ----------- ## 2364## Core tests. ## 2365## ----------- ## 2366 2367_ACEOF 2368 2369 2370# Keep a trace of the command line. 2371# Strip out --no-create and --no-recursion so they do not pile up. 2372# Strip out --silent because we don't want to record it for future runs. 2373# Also quote any args containing shell meta-characters. 2374# Make two passes to allow for proper duplicate-argument suppression. 2375ac_configure_args= 2376ac_configure_args0= 2377ac_configure_args1= 2378ac_must_keep_next=false 2379for ac_pass in 1 2 2380do 2381 for ac_arg 2382 do 2383 case $ac_arg in 2384 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2386 | -silent | --silent | --silen | --sile | --sil) 2387 continue ;; 2388 *\'*) 2389 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2390 esac 2391 case $ac_pass in 2392 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2393 2) 2394 as_fn_append ac_configure_args1 " '$ac_arg'" 2395 if test $ac_must_keep_next = true; then 2396 ac_must_keep_next=false # Got value, back to normal. 2397 else 2398 case $ac_arg in 2399 *=* | --config-cache | -C | -disable-* | --disable-* \ 2400 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2401 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2402 | -with-* | --with-* | -without-* | --without-* | --x) 2403 case "$ac_configure_args0 " in 2404 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2405 esac 2406 ;; 2407 -* ) ac_must_keep_next=true ;; 2408 esac 2409 fi 2410 as_fn_append ac_configure_args " '$ac_arg'" 2411 ;; 2412 esac 2413 done 2414done 2415{ ac_configure_args0=; unset ac_configure_args0;} 2416{ ac_configure_args1=; unset ac_configure_args1;} 2417 2418# When interrupted or exit'd, cleanup temporary files, and complete 2419# config.log. We remove comments because anyway the quotes in there 2420# would cause problems or look ugly. 2421# WARNING: Use '\'' to represent an apostrophe within the trap. 2422# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2423trap 'exit_status=$? 2424 # Save into config.log some information that might help in debugging. 2425 { 2426 echo 2427 2428 $as_echo "## ---------------- ## 2429## Cache variables. ## 2430## ---------------- ##" 2431 echo 2432 # The following way of writing the cache mishandles newlines in values, 2433( 2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2435 eval ac_val=\$$ac_var 2436 case $ac_val in #( 2437 *${as_nl}*) 2438 case $ac_var in #( 2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2440$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2441 esac 2442 case $ac_var in #( 2443 _ | IFS | as_nl) ;; #( 2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2445 *) { eval $ac_var=; unset $ac_var;} ;; 2446 esac ;; 2447 esac 2448 done 2449 (set) 2>&1 | 2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2451 *${as_nl}ac_space=\ *) 2452 sed -n \ 2453 "s/'\''/'\''\\\\'\'''\''/g; 2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2455 ;; #( 2456 *) 2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2458 ;; 2459 esac | 2460 sort 2461) 2462 echo 2463 2464 $as_echo "## ----------------- ## 2465## Output variables. ## 2466## ----------------- ##" 2467 echo 2468 for ac_var in $ac_subst_vars 2469 do 2470 eval ac_val=\$$ac_var 2471 case $ac_val in 2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2473 esac 2474 $as_echo "$ac_var='\''$ac_val'\''" 2475 done | sort 2476 echo 2477 2478 if test -n "$ac_subst_files"; then 2479 $as_echo "## ------------------- ## 2480## File substitutions. ## 2481## ------------------- ##" 2482 echo 2483 for ac_var in $ac_subst_files 2484 do 2485 eval ac_val=\$$ac_var 2486 case $ac_val in 2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2488 esac 2489 $as_echo "$ac_var='\''$ac_val'\''" 2490 done | sort 2491 echo 2492 fi 2493 2494 if test -s confdefs.h; then 2495 $as_echo "## ----------- ## 2496## confdefs.h. ## 2497## ----------- ##" 2498 echo 2499 cat confdefs.h 2500 echo 2501 fi 2502 test "$ac_signal" != 0 && 2503 $as_echo "$as_me: caught signal $ac_signal" 2504 $as_echo "$as_me: exit $exit_status" 2505 } >&5 2506 rm -f core *.core core.conftest.* && 2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2508 exit $exit_status 2509' 0 2510for ac_signal in 1 2 13 15; do 2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2512done 2513ac_signal=0 2514 2515# confdefs.h avoids OS command line length limits that DEFS can exceed. 2516rm -f -r conftest* confdefs.h 2517 2518$as_echo "/* confdefs.h */" > confdefs.h 2519 2520# Predefined preprocessor variables. 2521 2522cat >>confdefs.h <<_ACEOF 2523#define PACKAGE_NAME "$PACKAGE_NAME" 2524_ACEOF 2525 2526cat >>confdefs.h <<_ACEOF 2527#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2528_ACEOF 2529 2530cat >>confdefs.h <<_ACEOF 2531#define PACKAGE_VERSION "$PACKAGE_VERSION" 2532_ACEOF 2533 2534cat >>confdefs.h <<_ACEOF 2535#define PACKAGE_STRING "$PACKAGE_STRING" 2536_ACEOF 2537 2538cat >>confdefs.h <<_ACEOF 2539#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2540_ACEOF 2541 2542cat >>confdefs.h <<_ACEOF 2543#define PACKAGE_URL "$PACKAGE_URL" 2544_ACEOF 2545 2546 2547# Let the site file select an alternate cache file if it wants to. 2548# Prefer an explicitly selected file to automatically selected ones. 2549ac_site_file1=NONE 2550ac_site_file2=NONE 2551if test -n "$CONFIG_SITE"; then 2552 # We do not want a PATH search for config.site. 2553 case $CONFIG_SITE in #(( 2554 -*) ac_site_file1=./$CONFIG_SITE;; 2555 */*) ac_site_file1=$CONFIG_SITE;; 2556 *) ac_site_file1=./$CONFIG_SITE;; 2557 esac 2558elif test "x$prefix" != xNONE; then 2559 ac_site_file1=$prefix/share/config.site 2560 ac_site_file2=$prefix/etc/config.site 2561else 2562 ac_site_file1=$ac_default_prefix/share/config.site 2563 ac_site_file2=$ac_default_prefix/etc/config.site 2564fi 2565for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2566do 2567 test "x$ac_site_file" = xNONE && continue 2568 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2570$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2571 sed 's/^/| /' "$ac_site_file" >&5 2572 . "$ac_site_file" \ 2573 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2575as_fn_error $? "failed to load site script $ac_site_file 2576See \`config.log' for more details" "$LINENO" 5; } 2577 fi 2578done 2579 2580if test -r "$cache_file"; then 2581 # Some versions of bash will fail to source /dev/null (special files 2582 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2583 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2585$as_echo "$as_me: loading cache $cache_file" >&6;} 2586 case $cache_file in 2587 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2588 *) . "./$cache_file";; 2589 esac 2590 fi 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2593$as_echo "$as_me: creating cache $cache_file" >&6;} 2594 >$cache_file 2595fi 2596 2597gl_getopt_required=GNU 2598gl_header_list="$gl_header_list getopt.h" 2599gl_header_list="$gl_header_list stddef.h" 2600gl_func_list="$gl_func_list strdup" 2601gl_header_list="$gl_header_list string.h" 2602gl_header_list="$gl_header_list unistd.h" 2603# Check that the precious variables saved in the cache have kept the same 2604# value. 2605ac_cache_corrupted=false 2606for ac_var in $ac_precious_vars; do 2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2608 eval ac_new_set=\$ac_env_${ac_var}_set 2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2610 eval ac_new_val=\$ac_env_${ac_var}_value 2611 case $ac_old_set,$ac_new_set in 2612 set,) 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2614$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2615 ac_cache_corrupted=: ;; 2616 ,set) 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2618$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2619 ac_cache_corrupted=: ;; 2620 ,);; 2621 *) 2622 if test "x$ac_old_val" != "x$ac_new_val"; then 2623 # differences in whitespace do not lead to failure. 2624 ac_old_val_w=`echo x $ac_old_val` 2625 ac_new_val_w=`echo x $ac_new_val` 2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2628$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2629 ac_cache_corrupted=: 2630 else 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2632$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2633 eval $ac_var=\$ac_old_val 2634 fi 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2636$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2638$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2639 fi;; 2640 esac 2641 # Pass precious variables to config.status. 2642 if test "$ac_new_set" = set; then 2643 case $ac_new_val in 2644 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2645 *) ac_arg=$ac_var=$ac_new_val ;; 2646 esac 2647 case " $ac_configure_args " in 2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2650 esac 2651 fi 2652done 2653if $ac_cache_corrupted; then 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2657$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2658 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2659fi 2660## -------------------- ## 2661## Main body of script. ## 2662## -------------------- ## 2663 2664ac_ext=c 2665ac_cpp='$CPP $CPPFLAGS' 2666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2668ac_compiler_gnu=$ac_cv_c_compiler_gnu 2669 2670 2671 2672ac_aux_dir= 2673for ac_dir in build-aux "$srcdir"/build-aux; do 2674 if test -f "$ac_dir/install-sh"; then 2675 ac_aux_dir=$ac_dir 2676 ac_install_sh="$ac_aux_dir/install-sh -c" 2677 break 2678 elif test -f "$ac_dir/install.sh"; then 2679 ac_aux_dir=$ac_dir 2680 ac_install_sh="$ac_aux_dir/install.sh -c" 2681 break 2682 elif test -f "$ac_dir/shtool"; then 2683 ac_aux_dir=$ac_dir 2684 ac_install_sh="$ac_aux_dir/shtool install -c" 2685 break 2686 fi 2687done 2688if test -z "$ac_aux_dir"; then 2689 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2690fi 2691 2692# These three variables are undocumented and unsupported, 2693# and are intended to be withdrawn in a future Autoconf release. 2694# They can cause serious problems if a builder's source tree is in a directory 2695# whose full name contains unusual characters. 2696ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2697ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2698ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2699 2700 2701 2702 2703ac_config_headers="$ac_config_headers config.h" 2704 2705 2706am__api_version='1.16' 2707 2708# Find a good install program. We prefer a C program (faster), 2709# so one script is as good as another. But avoid the broken or 2710# incompatible versions: 2711# SysV /etc/install, /usr/sbin/install 2712# SunOS /usr/etc/install 2713# IRIX /sbin/install 2714# AIX /bin/install 2715# AmigaOS /C/install, which installs bootblocks on floppy discs 2716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2717# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2719# OS/2's system install, which has a completely different semantic 2720# ./install, which can be erroneously created by make from ./install.sh. 2721# Reject install programs that cannot install multiple files. 2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2723$as_echo_n "checking for a BSD-compatible install... " >&6; } 2724if test -z "$INSTALL"; then 2725if ${ac_cv_path_install+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2729for as_dir in $PATH 2730do 2731 IFS=$as_save_IFS 2732 test -z "$as_dir" && as_dir=. 2733 # Account for people who put trailing slashes in PATH elements. 2734case $as_dir/ in #(( 2735 ./ | .// | /[cC]/* | \ 2736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2738 /usr/ucb/* ) ;; 2739 *) 2740 # OSF1 and SCO ODT 3.0 have their own names for install. 2741 # Don't use installbsd from OSF since it installs stuff as root 2742 # by default. 2743 for ac_prog in ginstall scoinst install; do 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2746 if test $ac_prog = install && 2747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2748 # AIX install. It has an incompatible calling convention. 2749 : 2750 elif test $ac_prog = install && 2751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2752 # program-specific install script used by HP pwplus--don't use. 2753 : 2754 else 2755 rm -rf conftest.one conftest.two conftest.dir 2756 echo one > conftest.one 2757 echo two > conftest.two 2758 mkdir conftest.dir 2759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2760 test -s conftest.one && test -s conftest.two && 2761 test -s conftest.dir/conftest.one && 2762 test -s conftest.dir/conftest.two 2763 then 2764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2765 break 3 2766 fi 2767 fi 2768 fi 2769 done 2770 done 2771 ;; 2772esac 2773 2774 done 2775IFS=$as_save_IFS 2776 2777rm -rf conftest.one conftest.two conftest.dir 2778 2779fi 2780 if test "${ac_cv_path_install+set}" = set; then 2781 INSTALL=$ac_cv_path_install 2782 else 2783 # As a last resort, use the slow shell script. Don't cache a 2784 # value for INSTALL within a source directory, because that will 2785 # break other packages using the cache if that directory is 2786 # removed, or if the value is a relative name. 2787 INSTALL=$ac_install_sh 2788 fi 2789fi 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2791$as_echo "$INSTALL" >&6; } 2792 2793# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2794# It thinks the first close brace ends the variable substitution. 2795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2796 2797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2798 2799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2800 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2802$as_echo_n "checking whether build environment is sane... " >&6; } 2803# Reject unsafe characters in $srcdir or the absolute working directory 2804# name. Accept space and tab only in the latter. 2805am_lf=' 2806' 2807case `pwd` in 2808 *[\\\"\#\$\&\'\`$am_lf]*) 2809 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2810esac 2811case $srcdir in 2812 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2813 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2814esac 2815 2816# Do 'set' in a subshell so we don't clobber the current shell's 2817# arguments. Must try -L first in case configure is actually a 2818# symlink; some systems play weird games with the mod time of symlinks 2819# (eg FreeBSD returns the mod time of the symlink's containing 2820# directory). 2821if ( 2822 am_has_slept=no 2823 for am_try in 1 2; do 2824 echo "timestamp, slept: $am_has_slept" > conftest.file 2825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2826 if test "$*" = "X"; then 2827 # -L didn't work. 2828 set X `ls -t "$srcdir/configure" conftest.file` 2829 fi 2830 if test "$*" != "X $srcdir/configure conftest.file" \ 2831 && test "$*" != "X conftest.file $srcdir/configure"; then 2832 2833 # If neither matched, then we have a broken ls. This can happen 2834 # if, for instance, CONFIG_SHELL is bash and it inherits a 2835 # broken ls alias from the environment. This has actually 2836 # happened. Such a system could not be considered "sane". 2837 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2838 alias in your environment" "$LINENO" 5 2839 fi 2840 if test "$2" = conftest.file || test $am_try -eq 2; then 2841 break 2842 fi 2843 # Just in case. 2844 sleep 1 2845 am_has_slept=yes 2846 done 2847 test "$2" = conftest.file 2848 ) 2849then 2850 # Ok. 2851 : 2852else 2853 as_fn_error $? "newly created file is older than distributed files! 2854Check your system clock" "$LINENO" 5 2855fi 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2857$as_echo "yes" >&6; } 2858# If we didn't sleep, we still need to ensure time stamps of config.status and 2859# generated files are strictly newer. 2860am_sleep_pid= 2861if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2862 ( sleep 1 ) & 2863 am_sleep_pid=$! 2864fi 2865 2866rm -f conftest.file 2867 2868test "$program_prefix" != NONE && 2869 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2870# Use a double $ so make ignores it. 2871test "$program_suffix" != NONE && 2872 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2873# Double any \ or $. 2874# By default was `s,x,x', remove it if useless. 2875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2877 2878# Expand $ac_aux_dir to an absolute path. 2879am_aux_dir=`cd "$ac_aux_dir" && pwd` 2880 2881if test x"${MISSING+set}" != xset; then 2882 case $am_aux_dir in 2883 *\ * | *\ *) 2884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2885 *) 2886 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2887 esac 2888fi 2889# Use eval to expand $SHELL 2890if eval "$MISSING --is-lightweight"; then 2891 am_missing_run="$MISSING " 2892else 2893 am_missing_run= 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2895$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2896fi 2897 2898if test x"${install_sh+set}" != xset; then 2899 case $am_aux_dir in 2900 *\ * | *\ *) 2901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2902 *) 2903 install_sh="\${SHELL} $am_aux_dir/install-sh" 2904 esac 2905fi 2906 2907# Installed binaries are usually stripped using 'strip' when the user 2908# run "make install-strip". However 'strip' might not be the right 2909# tool to use in cross-compilation environments, therefore Automake 2910# will honor the 'STRIP' environment variable to overrule this program. 2911if test "$cross_compiling" != no; then 2912 if test -n "$ac_tool_prefix"; then 2913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2914set dummy ${ac_tool_prefix}strip; ac_word=$2 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916$as_echo_n "checking for $ac_word... " >&6; } 2917if ${ac_cv_prog_STRIP+:} false; then : 2918 $as_echo_n "(cached) " >&6 2919else 2920 if test -n "$STRIP"; then 2921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2922else 2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2924for as_dir in $PATH 2925do 2926 IFS=$as_save_IFS 2927 test -z "$as_dir" && as_dir=. 2928 for ac_exec_ext in '' $ac_executable_extensions; do 2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2930 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2932 break 2 2933 fi 2934done 2935 done 2936IFS=$as_save_IFS 2937 2938fi 2939fi 2940STRIP=$ac_cv_prog_STRIP 2941if test -n "$STRIP"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2943$as_echo "$STRIP" >&6; } 2944else 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2946$as_echo "no" >&6; } 2947fi 2948 2949 2950fi 2951if test -z "$ac_cv_prog_STRIP"; then 2952 ac_ct_STRIP=$STRIP 2953 # Extract the first word of "strip", so it can be a program name with args. 2954set dummy strip; ac_word=$2 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2956$as_echo_n "checking for $ac_word... " >&6; } 2957if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2958 $as_echo_n "(cached) " >&6 2959else 2960 if test -n "$ac_ct_STRIP"; then 2961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2962else 2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2964for as_dir in $PATH 2965do 2966 IFS=$as_save_IFS 2967 test -z "$as_dir" && as_dir=. 2968 for ac_exec_ext in '' $ac_executable_extensions; do 2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2970 ac_cv_prog_ac_ct_STRIP="strip" 2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2972 break 2 2973 fi 2974done 2975 done 2976IFS=$as_save_IFS 2977 2978fi 2979fi 2980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2981if test -n "$ac_ct_STRIP"; then 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2983$as_echo "$ac_ct_STRIP" >&6; } 2984else 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986$as_echo "no" >&6; } 2987fi 2988 2989 if test "x$ac_ct_STRIP" = x; then 2990 STRIP=":" 2991 else 2992 case $cross_compiling:$ac_tool_warned in 2993yes:) 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2996ac_tool_warned=yes ;; 2997esac 2998 STRIP=$ac_ct_STRIP 2999 fi 3000else 3001 STRIP="$ac_cv_prog_STRIP" 3002fi 3003 3004fi 3005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3006 3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3008$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3009if test -z "$MKDIR_P"; then 3010 if ${ac_cv_path_mkdir+:} false; then : 3011 $as_echo_n "(cached) " >&6 3012else 3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3014for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3015do 3016 IFS=$as_save_IFS 3017 test -z "$as_dir" && as_dir=. 3018 for ac_prog in mkdir gmkdir; do 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3022 'mkdir (GNU coreutils) '* | \ 3023 'mkdir (coreutils) '* | \ 3024 'mkdir (fileutils) '4.1*) 3025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3026 break 3;; 3027 esac 3028 done 3029 done 3030 done 3031IFS=$as_save_IFS 3032 3033fi 3034 3035 test -d ./--version && rmdir ./--version 3036 if test "${ac_cv_path_mkdir+set}" = set; then 3037 MKDIR_P="$ac_cv_path_mkdir -p" 3038 else 3039 # As a last resort, use the slow shell script. Don't cache a 3040 # value for MKDIR_P within a source directory, because that will 3041 # break other packages using the cache if that directory is 3042 # removed, or if the value is a relative name. 3043 MKDIR_P="$ac_install_sh -d" 3044 fi 3045fi 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3047$as_echo "$MKDIR_P" >&6; } 3048 3049 3050for ac_prog in gawk mawk nawk awk 3051do 3052 # Extract the first word of "$ac_prog", so it can be a program name with args. 3053set dummy $ac_prog; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if ${ac_cv_prog_AWK+:} false; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 if test -n "$AWK"; then 3060 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3061else 3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3063for as_dir in $PATH 3064do 3065 IFS=$as_save_IFS 3066 test -z "$as_dir" && as_dir=. 3067 for ac_exec_ext in '' $ac_executable_extensions; do 3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3069 ac_cv_prog_AWK="$ac_prog" 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3071 break 2 3072 fi 3073done 3074 done 3075IFS=$as_save_IFS 3076 3077fi 3078fi 3079AWK=$ac_cv_prog_AWK 3080if test -n "$AWK"; then 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3082$as_echo "$AWK" >&6; } 3083else 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085$as_echo "no" >&6; } 3086fi 3087 3088 3089 test -n "$AWK" && break 3090done 3091 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3093$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3094set x ${MAKE-make} 3095ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3096if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 cat >conftest.make <<\_ACEOF 3100SHELL = /bin/sh 3101all: 3102 @echo '@@@%%%=$(MAKE)=@@@%%%' 3103_ACEOF 3104# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3105case `${MAKE-make} -f conftest.make 2>/dev/null` in 3106 *@@@%%%=?*=@@@%%%*) 3107 eval ac_cv_prog_make_${ac_make}_set=yes;; 3108 *) 3109 eval ac_cv_prog_make_${ac_make}_set=no;; 3110esac 3111rm -f conftest.make 3112fi 3113if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3115$as_echo "yes" >&6; } 3116 SET_MAKE= 3117else 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119$as_echo "no" >&6; } 3120 SET_MAKE="MAKE=${MAKE-make}" 3121fi 3122 3123rm -rf .tst 2>/dev/null 3124mkdir .tst 2>/dev/null 3125if test -d .tst; then 3126 am__leading_dot=. 3127else 3128 am__leading_dot=_ 3129fi 3130rmdir .tst 2>/dev/null 3131 3132# Check whether --enable-silent-rules was given. 3133if test "${enable_silent_rules+set}" = set; then : 3134 enableval=$enable_silent_rules; 3135fi 3136 3137case $enable_silent_rules in # ((( 3138 yes) AM_DEFAULT_VERBOSITY=0;; 3139 no) AM_DEFAULT_VERBOSITY=1;; 3140 *) AM_DEFAULT_VERBOSITY=1;; 3141esac 3142am_make=${MAKE-make} 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3144$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3145if ${am_cv_make_support_nested_variables+:} false; then : 3146 $as_echo_n "(cached) " >&6 3147else 3148 if $as_echo 'TRUE=$(BAR$(V)) 3149BAR0=false 3150BAR1=true 3151V=1 3152am__doit: 3153 @$(TRUE) 3154.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3155 am_cv_make_support_nested_variables=yes 3156else 3157 am_cv_make_support_nested_variables=no 3158fi 3159fi 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3161$as_echo "$am_cv_make_support_nested_variables" >&6; } 3162if test $am_cv_make_support_nested_variables = yes; then 3163 AM_V='$(V)' 3164 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3165else 3166 AM_V=$AM_DEFAULT_VERBOSITY 3167 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3168fi 3169AM_BACKSLASH='\' 3170 3171if test "`cd $srcdir && pwd`" != "`pwd`"; then 3172 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3173 # is not polluted with repeated "-I." 3174 am__isrc=' -I$(srcdir)' 3175 # test to see if srcdir already configured 3176 if test -f $srcdir/config.status; then 3177 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3178 fi 3179fi 3180 3181# test whether we have cygpath 3182if test -z "$CYGPATH_W"; then 3183 if (cygpath --version) >/dev/null 2>/dev/null; then 3184 CYGPATH_W='cygpath -w' 3185 else 3186 CYGPATH_W=echo 3187 fi 3188fi 3189 3190 3191# Define the identity of the package. 3192 PACKAGE='gengetopt' 3193 VERSION='2.23' 3194 3195 3196cat >>confdefs.h <<_ACEOF 3197#define PACKAGE "$PACKAGE" 3198_ACEOF 3199 3200 3201cat >>confdefs.h <<_ACEOF 3202#define VERSION "$VERSION" 3203_ACEOF 3204 3205# Some tools Automake needs. 3206 3207ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3208 3209 3210AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3211 3212 3213AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3214 3215 3216AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3217 3218 3219MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3220 3221# For better backward compatibility. To be removed once Automake 1.9.x 3222# dies out for good. For more background, see: 3223# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3224# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3225mkdir_p='$(MKDIR_P)' 3226 3227# We need awk for the "check" target (and possibly the TAP driver). The 3228# system "awk" is bad on some platforms. 3229# Always define AMTAR for backward compatibility. Yes, it's still used 3230# in the wild :-( We should find a proper way to deprecate it ... 3231AMTAR='$${TAR-tar}' 3232 3233 3234# We'll loop over all known methods to create a tar archive until one works. 3235_am_tools='gnutar plaintar pax cpio none' 3236 3237# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3238 # There is notably a 21 bits limit for the UID and the GID. In fact, 3239 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3240 # and bug#13588). 3241 am_max_uid=2097151 # 2^21 - 1 3242 am_max_gid=$am_max_uid 3243 # The $UID and $GID variables are not portable, so we need to resort 3244 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3245 # below are definitely unexpected, so allow the users to see them 3246 # (that is, avoid stderr redirection). 3247 am_uid=`id -u || echo unknown` 3248 am_gid=`id -g || echo unknown` 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3250$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3251 if test $am_uid -le $am_max_uid; then 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3253$as_echo "yes" >&6; } 3254 else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3256$as_echo "no" >&6; } 3257 _am_tools=none 3258 fi 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3260$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3261 if test $am_gid -le $am_max_gid; then 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3263$as_echo "yes" >&6; } 3264 else 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3266$as_echo "no" >&6; } 3267 _am_tools=none 3268 fi 3269 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3271$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3272 3273 # Go ahead even if we have the value already cached. We do so because we 3274 # need to set the values for the 'am__tar' and 'am__untar' variables. 3275 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3276 3277 for _am_tool in $_am_tools; do 3278 case $_am_tool in 3279 gnutar) 3280 for _am_tar in tar gnutar gtar; do 3281 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3282 ($_am_tar --version) >&5 2>&5 3283 ac_status=$? 3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3285 (exit $ac_status); } && break 3286 done 3287 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3288 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3289 am__untar="$_am_tar -xf -" 3290 ;; 3291 plaintar) 3292 # Must skip GNU tar: if it does not support --format= it doesn't create 3293 # ustar tarball either. 3294 (tar --version) >/dev/null 2>&1 && continue 3295 am__tar='tar chf - "$$tardir"' 3296 am__tar_='tar chf - "$tardir"' 3297 am__untar='tar xf -' 3298 ;; 3299 pax) 3300 am__tar='pax -L -x ustar -w "$$tardir"' 3301 am__tar_='pax -L -x ustar -w "$tardir"' 3302 am__untar='pax -r' 3303 ;; 3304 cpio) 3305 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3306 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3307 am__untar='cpio -i -H ustar -d' 3308 ;; 3309 none) 3310 am__tar=false 3311 am__tar_=false 3312 am__untar=false 3313 ;; 3314 esac 3315 3316 # If the value was cached, stop now. We just wanted to have am__tar 3317 # and am__untar set. 3318 test -n "${am_cv_prog_tar_ustar}" && break 3319 3320 # tar/untar a dummy directory, and stop if the command works. 3321 rm -rf conftest.dir 3322 mkdir conftest.dir 3323 echo GrepMe > conftest.dir/file 3324 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3325 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3326 ac_status=$? 3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3328 (exit $ac_status); } 3329 rm -rf conftest.dir 3330 if test -s conftest.tar; then 3331 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3332 ($am__untar <conftest.tar) >&5 2>&5 3333 ac_status=$? 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } 3336 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3337 (cat conftest.dir/file) >&5 2>&5 3338 ac_status=$? 3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 (exit $ac_status); } 3341 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3342 fi 3343 done 3344 rm -rf conftest.dir 3345 3346 if ${am_cv_prog_tar_ustar+:} false; then : 3347 $as_echo_n "(cached) " >&6 3348else 3349 am_cv_prog_tar_ustar=$_am_tool 3350fi 3351 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3353$as_echo "$am_cv_prog_tar_ustar" >&6; } 3354 3355 3356 3357 3358 3359 3360# POSIX will say in a future version that running "rm -f" with no argument 3361# is OK; and we want to be able to make that assumption in our Makefile 3362# recipes. So use an aggressive probe to check that the usage we want is 3363# actually supported "in the wild" to an acceptable degree. 3364# See automake bug#10828. 3365# To make any issue more visible, cause the running configure to be aborted 3366# by default if the 'rm' program in use doesn't match our expectations; the 3367# user can still override this though. 3368if rm -f && rm -fr && rm -rf; then : OK; else 3369 cat >&2 <<'END' 3370Oops! 3371 3372Your 'rm' program seems unable to run without file operands specified 3373on the command line, even when the '-f' option is present. This is contrary 3374to the behaviour of most rm programs out there, and not conforming with 3375the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3376 3377Please tell bug-automake@gnu.org about your system, including the value 3378of your $PATH and any error possibly output before this message. This 3379can help us improve future automake versions. 3380 3381END 3382 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3383 echo 'Configuration will proceed anyway, since you have set the' >&2 3384 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3385 echo >&2 3386 else 3387 cat >&2 <<'END' 3388Aborting the configuration process, to ensure you take notice of the issue. 3389 3390You can download and install GNU coreutils to get an 'rm' implementation 3391that behaves properly: <https://www.gnu.org/software/coreutils/>. 3392 3393If you want to complete the configuration process using your problematic 3394'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3395to "yes", and re-run configure. 3396 3397END 3398 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3399 fi 3400fi 3401 3402 3403 3404gengetoptdocdir=$docdir 3405 3406 3407gengetoptexamplesdir=$gengetoptdocdir/examples 3408 3409ac_ext=c 3410ac_cpp='$CPP $CPPFLAGS' 3411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3413ac_compiler_gnu=$ac_cv_c_compiler_gnu 3414if test -n "$ac_tool_prefix"; then 3415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3416set dummy ${ac_tool_prefix}gcc; ac_word=$2 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3418$as_echo_n "checking for $ac_word... " >&6; } 3419if ${ac_cv_prog_CC+:} false; then : 3420 $as_echo_n "(cached) " >&6 3421else 3422 if test -n "$CC"; then 3423 ac_cv_prog_CC="$CC" # Let the user override the test. 3424else 3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3426for as_dir in $PATH 3427do 3428 IFS=$as_save_IFS 3429 test -z "$as_dir" && as_dir=. 3430 for ac_exec_ext in '' $ac_executable_extensions; do 3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3432 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3434 break 2 3435 fi 3436done 3437 done 3438IFS=$as_save_IFS 3439 3440fi 3441fi 3442CC=$ac_cv_prog_CC 3443if test -n "$CC"; then 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3445$as_echo "$CC" >&6; } 3446else 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3448$as_echo "no" >&6; } 3449fi 3450 3451 3452fi 3453if test -z "$ac_cv_prog_CC"; then 3454 ac_ct_CC=$CC 3455 # Extract the first word of "gcc", so it can be a program name with args. 3456set dummy gcc; ac_word=$2 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3458$as_echo_n "checking for $ac_word... " >&6; } 3459if ${ac_cv_prog_ac_ct_CC+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 if test -n "$ac_ct_CC"; then 3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3464else 3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466for as_dir in $PATH 3467do 3468 IFS=$as_save_IFS 3469 test -z "$as_dir" && as_dir=. 3470 for ac_exec_ext in '' $ac_executable_extensions; do 3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3472 ac_cv_prog_ac_ct_CC="gcc" 3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3474 break 2 3475 fi 3476done 3477 done 3478IFS=$as_save_IFS 3479 3480fi 3481fi 3482ac_ct_CC=$ac_cv_prog_ac_ct_CC 3483if test -n "$ac_ct_CC"; then 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3485$as_echo "$ac_ct_CC" >&6; } 3486else 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3488$as_echo "no" >&6; } 3489fi 3490 3491 if test "x$ac_ct_CC" = x; then 3492 CC="" 3493 else 3494 case $cross_compiling:$ac_tool_warned in 3495yes:) 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3498ac_tool_warned=yes ;; 3499esac 3500 CC=$ac_ct_CC 3501 fi 3502else 3503 CC="$ac_cv_prog_CC" 3504fi 3505 3506if test -z "$CC"; then 3507 if test -n "$ac_tool_prefix"; then 3508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3509set dummy ${ac_tool_prefix}cc; ac_word=$2 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3511$as_echo_n "checking for $ac_word... " >&6; } 3512if ${ac_cv_prog_CC+:} false; then : 3513 $as_echo_n "(cached) " >&6 3514else 3515 if test -n "$CC"; then 3516 ac_cv_prog_CC="$CC" # Let the user override the test. 3517else 3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3519for as_dir in $PATH 3520do 3521 IFS=$as_save_IFS 3522 test -z "$as_dir" && as_dir=. 3523 for ac_exec_ext in '' $ac_executable_extensions; do 3524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3525 ac_cv_prog_CC="${ac_tool_prefix}cc" 3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3527 break 2 3528 fi 3529done 3530 done 3531IFS=$as_save_IFS 3532 3533fi 3534fi 3535CC=$ac_cv_prog_CC 3536if test -n "$CC"; then 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3538$as_echo "$CC" >&6; } 3539else 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3541$as_echo "no" >&6; } 3542fi 3543 3544 3545 fi 3546fi 3547if test -z "$CC"; then 3548 # Extract the first word of "cc", so it can be a program name with args. 3549set dummy cc; ac_word=$2 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551$as_echo_n "checking for $ac_word... " >&6; } 3552if ${ac_cv_prog_CC+:} false; then : 3553 $as_echo_n "(cached) " >&6 3554else 3555 if test -n "$CC"; then 3556 ac_cv_prog_CC="$CC" # Let the user override the test. 3557else 3558 ac_prog_rejected=no 3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560for as_dir in $PATH 3561do 3562 IFS=$as_save_IFS 3563 test -z "$as_dir" && as_dir=. 3564 for ac_exec_ext in '' $ac_executable_extensions; do 3565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3567 ac_prog_rejected=yes 3568 continue 3569 fi 3570 ac_cv_prog_CC="cc" 3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3572 break 2 3573 fi 3574done 3575 done 3576IFS=$as_save_IFS 3577 3578if test $ac_prog_rejected = yes; then 3579 # We found a bogon in the path, so make sure we never use it. 3580 set dummy $ac_cv_prog_CC 3581 shift 3582 if test $# != 0; then 3583 # We chose a different compiler from the bogus one. 3584 # However, it has the same basename, so the bogon will be chosen 3585 # first if we set CC to just the basename; use the full file name. 3586 shift 3587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3588 fi 3589fi 3590fi 3591fi 3592CC=$ac_cv_prog_CC 3593if test -n "$CC"; then 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3595$as_echo "$CC" >&6; } 3596else 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3598$as_echo "no" >&6; } 3599fi 3600 3601 3602fi 3603if test -z "$CC"; then 3604 if test -n "$ac_tool_prefix"; then 3605 for ac_prog in cl.exe 3606 do 3607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3608set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3610$as_echo_n "checking for $ac_word... " >&6; } 3611if ${ac_cv_prog_CC+:} false; then : 3612 $as_echo_n "(cached) " >&6 3613else 3614 if test -n "$CC"; then 3615 ac_cv_prog_CC="$CC" # Let the user override the test. 3616else 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH 3619do 3620 IFS=$as_save_IFS 3621 test -z "$as_dir" && as_dir=. 3622 for ac_exec_ext in '' $ac_executable_extensions; do 3623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3626 break 2 3627 fi 3628done 3629 done 3630IFS=$as_save_IFS 3631 3632fi 3633fi 3634CC=$ac_cv_prog_CC 3635if test -n "$CC"; then 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3637$as_echo "$CC" >&6; } 3638else 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3640$as_echo "no" >&6; } 3641fi 3642 3643 3644 test -n "$CC" && break 3645 done 3646fi 3647if test -z "$CC"; then 3648 ac_ct_CC=$CC 3649 for ac_prog in cl.exe 3650do 3651 # Extract the first word of "$ac_prog", so it can be a program name with args. 3652set dummy $ac_prog; ac_word=$2 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3654$as_echo_n "checking for $ac_word... " >&6; } 3655if ${ac_cv_prog_ac_ct_CC+:} false; then : 3656 $as_echo_n "(cached) " >&6 3657else 3658 if test -n "$ac_ct_CC"; then 3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3660else 3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3662for as_dir in $PATH 3663do 3664 IFS=$as_save_IFS 3665 test -z "$as_dir" && as_dir=. 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3668 ac_cv_prog_ac_ct_CC="$ac_prog" 3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3670 break 2 3671 fi 3672done 3673 done 3674IFS=$as_save_IFS 3675 3676fi 3677fi 3678ac_ct_CC=$ac_cv_prog_ac_ct_CC 3679if test -n "$ac_ct_CC"; then 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3681$as_echo "$ac_ct_CC" >&6; } 3682else 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3684$as_echo "no" >&6; } 3685fi 3686 3687 3688 test -n "$ac_ct_CC" && break 3689done 3690 3691 if test "x$ac_ct_CC" = x; then 3692 CC="" 3693 else 3694 case $cross_compiling:$ac_tool_warned in 3695yes:) 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3698ac_tool_warned=yes ;; 3699esac 3700 CC=$ac_ct_CC 3701 fi 3702fi 3703 3704fi 3705 3706 3707test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3709as_fn_error $? "no acceptable C compiler found in \$PATH 3710See \`config.log' for more details" "$LINENO" 5; } 3711 3712# Provide some information about the compiler. 3713$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3714set X $ac_compile 3715ac_compiler=$2 3716for ac_option in --version -v -V -qversion; do 3717 { { ac_try="$ac_compiler $ac_option >&5" 3718case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721esac 3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723$as_echo "$ac_try_echo"; } >&5 3724 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3725 ac_status=$? 3726 if test -s conftest.err; then 3727 sed '10a\ 3728... rest of stderr output deleted ... 3729 10q' conftest.err >conftest.er1 3730 cat conftest.er1 >&5 3731 fi 3732 rm -f conftest.er1 conftest.err 3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3734 test $ac_status = 0; } 3735done 3736 3737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739 3740int 3741main () 3742{ 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748ac_clean_files_save=$ac_clean_files 3749ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3750# Try to create an executable without -o first, disregard a.out. 3751# It will help us diagnose broken compilers, and finding out an intuition 3752# of exeext. 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3754$as_echo_n "checking whether the C compiler works... " >&6; } 3755ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3756 3757# The possible output files: 3758ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3759 3760ac_rmfiles= 3761for ac_file in $ac_files 3762do 3763 case $ac_file in 3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3765 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3766 esac 3767done 3768rm -f $ac_rmfiles 3769 3770if { { ac_try="$ac_link_default" 3771case "(($ac_try" in 3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3773 *) ac_try_echo=$ac_try;; 3774esac 3775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3776$as_echo "$ac_try_echo"; } >&5 3777 (eval "$ac_link_default") 2>&5 3778 ac_status=$? 3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3780 test $ac_status = 0; }; then : 3781 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3782# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3783# in a Makefile. We should not override ac_cv_exeext if it was cached, 3784# so that the user can short-circuit this test for compilers unknown to 3785# Autoconf. 3786for ac_file in $ac_files '' 3787do 3788 test -f "$ac_file" || continue 3789 case $ac_file in 3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3791 ;; 3792 [ab].out ) 3793 # We found the default executable, but exeext='' is most 3794 # certainly right. 3795 break;; 3796 *.* ) 3797 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3798 then :; else 3799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3800 fi 3801 # We set ac_cv_exeext here because the later test for it is not 3802 # safe: cross compilers may not add the suffix if given an `-o' 3803 # argument, so we may need to know it at that point already. 3804 # Even if this section looks crufty: it has the advantage of 3805 # actually working. 3806 break;; 3807 * ) 3808 break;; 3809 esac 3810done 3811test "$ac_cv_exeext" = no && ac_cv_exeext= 3812 3813else 3814 ac_file='' 3815fi 3816if test -z "$ac_file"; then : 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3818$as_echo "no" >&6; } 3819$as_echo "$as_me: failed program was:" >&5 3820sed 's/^/| /' conftest.$ac_ext >&5 3821 3822{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3824as_fn_error 77 "C compiler cannot create executables 3825See \`config.log' for more details" "$LINENO" 5; } 3826else 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3828$as_echo "yes" >&6; } 3829fi 3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3831$as_echo_n "checking for C compiler default output file name... " >&6; } 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3833$as_echo "$ac_file" >&6; } 3834ac_exeext=$ac_cv_exeext 3835 3836rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3837ac_clean_files=$ac_clean_files_save 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3839$as_echo_n "checking for suffix of executables... " >&6; } 3840if { { ac_try="$ac_link" 3841case "(($ac_try" in 3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3843 *) ac_try_echo=$ac_try;; 3844esac 3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3846$as_echo "$ac_try_echo"; } >&5 3847 (eval "$ac_link") 2>&5 3848 ac_status=$? 3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3850 test $ac_status = 0; }; then : 3851 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3852# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3853# work properly (i.e., refer to `conftest.exe'), while it won't with 3854# `rm'. 3855for ac_file in conftest.exe conftest conftest.*; do 3856 test -f "$ac_file" || continue 3857 case $ac_file in 3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3859 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3860 break;; 3861 * ) break;; 3862 esac 3863done 3864else 3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3867as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3868See \`config.log' for more details" "$LINENO" 5; } 3869fi 3870rm -f conftest conftest$ac_cv_exeext 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3872$as_echo "$ac_cv_exeext" >&6; } 3873 3874rm -f conftest.$ac_ext 3875EXEEXT=$ac_cv_exeext 3876ac_exeext=$EXEEXT 3877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3878/* end confdefs.h. */ 3879#include <stdio.h> 3880int 3881main () 3882{ 3883FILE *f = fopen ("conftest.out", "w"); 3884 return ferror (f) || fclose (f) != 0; 3885 3886 ; 3887 return 0; 3888} 3889_ACEOF 3890ac_clean_files="$ac_clean_files conftest.out" 3891# Check that the compiler produces executables we can run. If not, either 3892# the compiler is broken, or we cross compile. 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3894$as_echo_n "checking whether we are cross compiling... " >&6; } 3895if test "$cross_compiling" != yes; then 3896 { { ac_try="$ac_link" 3897case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900esac 3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3902$as_echo "$ac_try_echo"; } >&5 3903 (eval "$ac_link") 2>&5 3904 ac_status=$? 3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3906 test $ac_status = 0; } 3907 if { ac_try='./conftest$ac_cv_exeext' 3908 { { case "(($ac_try" in 3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3910 *) ac_try_echo=$ac_try;; 3911esac 3912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3913$as_echo "$ac_try_echo"; } >&5 3914 (eval "$ac_try") 2>&5 3915 ac_status=$? 3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3917 test $ac_status = 0; }; }; then 3918 cross_compiling=no 3919 else 3920 if test "$cross_compiling" = maybe; then 3921 cross_compiling=yes 3922 else 3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3925as_fn_error $? "cannot run C compiled programs. 3926If you meant to cross compile, use \`--host'. 3927See \`config.log' for more details" "$LINENO" 5; } 3928 fi 3929 fi 3930fi 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3932$as_echo "$cross_compiling" >&6; } 3933 3934rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3935ac_clean_files=$ac_clean_files_save 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3937$as_echo_n "checking for suffix of object files... " >&6; } 3938if ${ac_cv_objext+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3942/* end confdefs.h. */ 3943 3944int 3945main () 3946{ 3947 3948 ; 3949 return 0; 3950} 3951_ACEOF 3952rm -f conftest.o conftest.obj 3953if { { ac_try="$ac_compile" 3954case "(($ac_try" in 3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3956 *) ac_try_echo=$ac_try;; 3957esac 3958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3959$as_echo "$ac_try_echo"; } >&5 3960 (eval "$ac_compile") 2>&5 3961 ac_status=$? 3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3963 test $ac_status = 0; }; then : 3964 for ac_file in conftest.o conftest.obj conftest.*; do 3965 test -f "$ac_file" || continue; 3966 case $ac_file in 3967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3969 break;; 3970 esac 3971done 3972else 3973 $as_echo "$as_me: failed program was:" >&5 3974sed 's/^/| /' conftest.$ac_ext >&5 3975 3976{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3978as_fn_error $? "cannot compute suffix of object files: cannot compile 3979See \`config.log' for more details" "$LINENO" 5; } 3980fi 3981rm -f conftest.$ac_cv_objext conftest.$ac_ext 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3984$as_echo "$ac_cv_objext" >&6; } 3985OBJEXT=$ac_cv_objext 3986ac_objext=$OBJEXT 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3988$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3989if ${ac_cv_c_compiler_gnu+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3993/* end confdefs.h. */ 3994 3995int 3996main () 3997{ 3998#ifndef __GNUC__ 3999 choke me 4000#endif 4001 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006if ac_fn_c_try_compile "$LINENO"; then : 4007 ac_compiler_gnu=yes 4008else 4009 ac_compiler_gnu=no 4010fi 4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4012ac_cv_c_compiler_gnu=$ac_compiler_gnu 4013 4014fi 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4016$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4017if test $ac_compiler_gnu = yes; then 4018 GCC=yes 4019else 4020 GCC= 4021fi 4022ac_test_CFLAGS=${CFLAGS+set} 4023ac_save_CFLAGS=$CFLAGS 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4025$as_echo_n "checking whether $CC accepts -g... " >&6; } 4026if ${ac_cv_prog_cc_g+:} false; then : 4027 $as_echo_n "(cached) " >&6 4028else 4029 ac_save_c_werror_flag=$ac_c_werror_flag 4030 ac_c_werror_flag=yes 4031 ac_cv_prog_cc_g=no 4032 CFLAGS="-g" 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035 4036int 4037main () 4038{ 4039 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044if ac_fn_c_try_compile "$LINENO"; then : 4045 ac_cv_prog_cc_g=yes 4046else 4047 CFLAGS="" 4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4049/* end confdefs.h. */ 4050 4051int 4052main () 4053{ 4054 4055 ; 4056 return 0; 4057} 4058_ACEOF 4059if ac_fn_c_try_compile "$LINENO"; then : 4060 4061else 4062 ac_c_werror_flag=$ac_save_c_werror_flag 4063 CFLAGS="-g" 4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4065/* end confdefs.h. */ 4066 4067int 4068main () 4069{ 4070 4071 ; 4072 return 0; 4073} 4074_ACEOF 4075if ac_fn_c_try_compile "$LINENO"; then : 4076 ac_cv_prog_cc_g=yes 4077fi 4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4079fi 4080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4081fi 4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4083 ac_c_werror_flag=$ac_save_c_werror_flag 4084fi 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4086$as_echo "$ac_cv_prog_cc_g" >&6; } 4087if test "$ac_test_CFLAGS" = set; then 4088 CFLAGS=$ac_save_CFLAGS 4089elif test $ac_cv_prog_cc_g = yes; then 4090 if test "$GCC" = yes; then 4091 CFLAGS="-g -O2" 4092 else 4093 CFLAGS="-g" 4094 fi 4095else 4096 if test "$GCC" = yes; then 4097 CFLAGS="-O2" 4098 else 4099 CFLAGS= 4100 fi 4101fi 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4103$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4104if ${ac_cv_prog_cc_c89+:} false; then : 4105 $as_echo_n "(cached) " >&6 4106else 4107 ac_cv_prog_cc_c89=no 4108ac_save_CC=$CC 4109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111#include <stdarg.h> 4112#include <stdio.h> 4113struct stat; 4114/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4115struct buf { int x; }; 4116FILE * (*rcsopen) (struct buf *, struct stat *, int); 4117static char *e (p, i) 4118 char **p; 4119 int i; 4120{ 4121 return p[i]; 4122} 4123static char *f (char * (*g) (char **, int), char **p, ...) 4124{ 4125 char *s; 4126 va_list v; 4127 va_start (v,p); 4128 s = g (p, va_arg (v,int)); 4129 va_end (v); 4130 return s; 4131} 4132 4133/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4134 function prototypes and stuff, but not '\xHH' hex character constants. 4135 These don't provoke an error unfortunately, instead are silently treated 4136 as 'x'. The following induces an error, until -std is added to get 4137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4138 array size at least. It's necessary to write '\x00'==0 to get something 4139 that's true only with -std. */ 4140int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4141 4142/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4143 inside strings and character constants. */ 4144#define FOO(x) 'x' 4145int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4146 4147int test (int i, double x); 4148struct s1 {int (*f) (int a);}; 4149struct s2 {int (*f) (double a);}; 4150int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4151int argc; 4152char **argv; 4153int 4154main () 4155{ 4156return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4162 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4163do 4164 CC="$ac_save_CC $ac_arg" 4165 if ac_fn_c_try_compile "$LINENO"; then : 4166 ac_cv_prog_cc_c89=$ac_arg 4167fi 4168rm -f core conftest.err conftest.$ac_objext 4169 test "x$ac_cv_prog_cc_c89" != "xno" && break 4170done 4171rm -f conftest.$ac_ext 4172CC=$ac_save_CC 4173 4174fi 4175# AC_CACHE_VAL 4176case "x$ac_cv_prog_cc_c89" in 4177 x) 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4179$as_echo "none needed" >&6; } ;; 4180 xno) 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4182$as_echo "unsupported" >&6; } ;; 4183 *) 4184 CC="$CC $ac_cv_prog_cc_c89" 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4186$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4187esac 4188if test "x$ac_cv_prog_cc_c89" != xno; then : 4189 4190fi 4191 4192ac_ext=c 4193ac_cpp='$CPP $CPPFLAGS' 4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4196ac_compiler_gnu=$ac_cv_c_compiler_gnu 4197 4198ac_ext=c 4199ac_cpp='$CPP $CPPFLAGS' 4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4202ac_compiler_gnu=$ac_cv_c_compiler_gnu 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4204$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4205if ${am_cv_prog_cc_c_o+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209/* end confdefs.h. */ 4210 4211int 4212main () 4213{ 4214 4215 ; 4216 return 0; 4217} 4218_ACEOF 4219 # Make sure it works both with $CC and with simple cc. 4220 # Following AC_PROG_CC_C_O, we do the test twice because some 4221 # compilers refuse to overwrite an existing .o file with -o, 4222 # though they will create one. 4223 am_cv_prog_cc_c_o=yes 4224 for am_i in 1 2; do 4225 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4226 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4227 ac_status=$? 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4229 (exit $ac_status); } \ 4230 && test -f conftest2.$ac_objext; then 4231 : OK 4232 else 4233 am_cv_prog_cc_c_o=no 4234 break 4235 fi 4236 done 4237 rm -f core conftest* 4238 unset am_i 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4241$as_echo "$am_cv_prog_cc_c_o" >&6; } 4242if test "$am_cv_prog_cc_c_o" != yes; then 4243 # Losing compiler, so override with the script. 4244 # FIXME: It is wrong to rewrite CC. 4245 # But if we don't then we get into trouble of one sort or another. 4246 # A longer-term fix would be to have automake use am__CC in this case, 4247 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4248 CC="$am_aux_dir/compile $CC" 4249fi 4250ac_ext=c 4251ac_cpp='$CPP $CPPFLAGS' 4252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4254ac_compiler_gnu=$ac_cv_c_compiler_gnu 4255 4256DEPDIR="${am__leading_dot}deps" 4257 4258ac_config_commands="$ac_config_commands depfiles" 4259 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4261$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4262cat > confinc.mk << 'END' 4263am__doit: 4264 @echo this is the am__doit target >confinc.out 4265.PHONY: am__doit 4266END 4267am__include="#" 4268am__quote= 4269# BSD make does it like this. 4270echo '.include "confinc.mk" # ignored' > confmf.BSD 4271# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4272echo 'include confinc.mk # ignored' > confmf.GNU 4273_am_result=no 4274for s in GNU BSD; do 4275 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4276 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4277 ac_status=$? 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); } 4280 case $?:`cat confinc.out 2>/dev/null` in #( 4281 '0:this is the am__doit target') : 4282 case $s in #( 4283 BSD) : 4284 am__include='.include' am__quote='"' ;; #( 4285 *) : 4286 am__include='include' am__quote='' ;; 4287esac ;; #( 4288 *) : 4289 ;; 4290esac 4291 if test "$am__include" != "#"; then 4292 _am_result="yes ($s style)" 4293 break 4294 fi 4295done 4296rm -f confinc.* confmf.* 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4298$as_echo "${_am_result}" >&6; } 4299 4300# Check whether --enable-dependency-tracking was given. 4301if test "${enable_dependency_tracking+set}" = set; then : 4302 enableval=$enable_dependency_tracking; 4303fi 4304 4305if test "x$enable_dependency_tracking" != xno; then 4306 am_depcomp="$ac_aux_dir/depcomp" 4307 AMDEPBACKSLASH='\' 4308 am__nodep='_no' 4309fi 4310 if test "x$enable_dependency_tracking" != xno; then 4311 AMDEP_TRUE= 4312 AMDEP_FALSE='#' 4313else 4314 AMDEP_TRUE='#' 4315 AMDEP_FALSE= 4316fi 4317 4318 4319 4320depcc="$CC" am_compiler_list= 4321 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4323$as_echo_n "checking dependency style of $depcc... " >&6; } 4324if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4325 $as_echo_n "(cached) " >&6 4326else 4327 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4328 # We make a subdir and do the tests there. Otherwise we can end up 4329 # making bogus files that we don't know about and never remove. For 4330 # instance it was reported that on HP-UX the gcc test will end up 4331 # making a dummy file named 'D' -- because '-MD' means "put the output 4332 # in D". 4333 rm -rf conftest.dir 4334 mkdir conftest.dir 4335 # Copy depcomp to subdir because otherwise we won't find it if we're 4336 # using a relative directory. 4337 cp "$am_depcomp" conftest.dir 4338 cd conftest.dir 4339 # We will build objects and dependencies in a subdirectory because 4340 # it helps to detect inapplicable dependency modes. For instance 4341 # both Tru64's cc and ICC support -MD to output dependencies as a 4342 # side effect of compilation, but ICC will put the dependencies in 4343 # the current directory while Tru64 will put them in the object 4344 # directory. 4345 mkdir sub 4346 4347 am_cv_CC_dependencies_compiler_type=none 4348 if test "$am_compiler_list" = ""; then 4349 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4350 fi 4351 am__universal=false 4352 case " $depcc " in #( 4353 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4354 esac 4355 4356 for depmode in $am_compiler_list; do 4357 # Setup a source with many dependencies, because some compilers 4358 # like to wrap large dependency lists on column 80 (with \), and 4359 # we should not choose a depcomp mode which is confused by this. 4360 # 4361 # We need to recreate these files for each test, as the compiler may 4362 # overwrite some of them when testing with obscure command lines. 4363 # This happens at least with the AIX C compiler. 4364 : > sub/conftest.c 4365 for i in 1 2 3 4 5 6; do 4366 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4367 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4368 # Solaris 10 /bin/sh. 4369 echo '/* dummy */' > sub/conftst$i.h 4370 done 4371 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4372 4373 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4374 # mode. It turns out that the SunPro C++ compiler does not properly 4375 # handle '-M -o', and we need to detect this. Also, some Intel 4376 # versions had trouble with output in subdirs. 4377 am__obj=sub/conftest.${OBJEXT-o} 4378 am__minus_obj="-o $am__obj" 4379 case $depmode in 4380 gcc) 4381 # This depmode causes a compiler race in universal mode. 4382 test "$am__universal" = false || continue 4383 ;; 4384 nosideeffect) 4385 # After this tag, mechanisms are not by side-effect, so they'll 4386 # only be used when explicitly requested. 4387 if test "x$enable_dependency_tracking" = xyes; then 4388 continue 4389 else 4390 break 4391 fi 4392 ;; 4393 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4394 # This compiler won't grok '-c -o', but also, the minuso test has 4395 # not run yet. These depmodes are late enough in the game, and 4396 # so weak that their functioning should not be impacted. 4397 am__obj=conftest.${OBJEXT-o} 4398 am__minus_obj= 4399 ;; 4400 none) break ;; 4401 esac 4402 if depmode=$depmode \ 4403 source=sub/conftest.c object=$am__obj \ 4404 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4405 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4406 >/dev/null 2>conftest.err && 4407 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4408 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4409 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4410 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4411 # icc doesn't choke on unknown options, it will just issue warnings 4412 # or remarks (even with -Werror). So we grep stderr for any message 4413 # that says an option was ignored or not supported. 4414 # When given -MP, icc 7.0 and 7.1 complain thusly: 4415 # icc: Command line warning: ignoring option '-M'; no argument required 4416 # The diagnosis changed in icc 8.0: 4417 # icc: Command line remark: option '-MP' not supported 4418 if (grep 'ignoring option' conftest.err || 4419 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4420 am_cv_CC_dependencies_compiler_type=$depmode 4421 break 4422 fi 4423 fi 4424 done 4425 4426 cd .. 4427 rm -rf conftest.dir 4428else 4429 am_cv_CC_dependencies_compiler_type=none 4430fi 4431 4432fi 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4434$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4435CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4436 4437 if 4438 test "x$enable_dependency_tracking" != xno \ 4439 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4440 am__fastdepCC_TRUE= 4441 am__fastdepCC_FALSE='#' 4442else 4443 am__fastdepCC_TRUE='#' 4444 am__fastdepCC_FALSE= 4445fi 4446 4447 4448if test -n "$ac_tool_prefix"; then 4449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4450set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4452$as_echo_n "checking for $ac_word... " >&6; } 4453if ${ac_cv_prog_RANLIB+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 if test -n "$RANLIB"; then 4457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4458else 4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4460for as_dir in $PATH 4461do 4462 IFS=$as_save_IFS 4463 test -z "$as_dir" && as_dir=. 4464 for ac_exec_ext in '' $ac_executable_extensions; do 4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4468 break 2 4469 fi 4470done 4471 done 4472IFS=$as_save_IFS 4473 4474fi 4475fi 4476RANLIB=$ac_cv_prog_RANLIB 4477if test -n "$RANLIB"; then 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4479$as_echo "$RANLIB" >&6; } 4480else 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4482$as_echo "no" >&6; } 4483fi 4484 4485 4486fi 4487if test -z "$ac_cv_prog_RANLIB"; then 4488 ac_ct_RANLIB=$RANLIB 4489 # Extract the first word of "ranlib", so it can be a program name with args. 4490set dummy ranlib; ac_word=$2 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4492$as_echo_n "checking for $ac_word... " >&6; } 4493if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495else 4496 if test -n "$ac_ct_RANLIB"; then 4497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4498else 4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4500for as_dir in $PATH 4501do 4502 IFS=$as_save_IFS 4503 test -z "$as_dir" && as_dir=. 4504 for ac_exec_ext in '' $ac_executable_extensions; do 4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4506 ac_cv_prog_ac_ct_RANLIB="ranlib" 4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4508 break 2 4509 fi 4510done 4511 done 4512IFS=$as_save_IFS 4513 4514fi 4515fi 4516ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4517if test -n "$ac_ct_RANLIB"; then 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4519$as_echo "$ac_ct_RANLIB" >&6; } 4520else 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4522$as_echo "no" >&6; } 4523fi 4524 4525 if test "x$ac_ct_RANLIB" = x; then 4526 RANLIB=":" 4527 else 4528 case $cross_compiling:$ac_tool_warned in 4529yes:) 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4532ac_tool_warned=yes ;; 4533esac 4534 RANLIB=$ac_ct_RANLIB 4535 fi 4536else 4537 RANLIB="$ac_cv_prog_RANLIB" 4538fi 4539 4540# Make sure we can run config.sub. 4541$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4542 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4543 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4545$as_echo_n "checking build system type... " >&6; } 4546if ${ac_cv_build+:} false; then : 4547 $as_echo_n "(cached) " >&6 4548else 4549 ac_build_alias=$build_alias 4550test "x$ac_build_alias" = x && 4551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4552test "x$ac_build_alias" = x && 4553 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4554ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4556 4557fi 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4559$as_echo "$ac_cv_build" >&6; } 4560case $ac_cv_build in 4561*-*-*) ;; 4562*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4563esac 4564build=$ac_cv_build 4565ac_save_IFS=$IFS; IFS='-' 4566set x $ac_cv_build 4567shift 4568build_cpu=$1 4569build_vendor=$2 4570shift; shift 4571# Remember, the first character of IFS is used to create $*, 4572# except with old shells: 4573build_os=$* 4574IFS=$ac_save_IFS 4575case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4576 4577 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4579$as_echo_n "checking host system type... " >&6; } 4580if ${ac_cv_host+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 if test "x$host_alias" = x; then 4584 ac_cv_host=$ac_cv_build 4585else 4586 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4588fi 4589 4590fi 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4592$as_echo "$ac_cv_host" >&6; } 4593case $ac_cv_host in 4594*-*-*) ;; 4595*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4596esac 4597host=$ac_cv_host 4598ac_save_IFS=$IFS; IFS='-' 4599set x $ac_cv_host 4600shift 4601host_cpu=$1 4602host_vendor=$2 4603shift; shift 4604# Remember, the first character of IFS is used to create $*, 4605# except with old shells: 4606host_os=$* 4607IFS=$ac_save_IFS 4608case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4609 4610 4611 4612ac_ext=c 4613ac_cpp='$CPP $CPPFLAGS' 4614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4616ac_compiler_gnu=$ac_cv_c_compiler_gnu 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4618$as_echo_n "checking how to run the C preprocessor... " >&6; } 4619# On Suns, sometimes $CPP names a directory. 4620if test -n "$CPP" && test -d "$CPP"; then 4621 CPP= 4622fi 4623if test -z "$CPP"; then 4624 if ${ac_cv_prog_CPP+:} false; then : 4625 $as_echo_n "(cached) " >&6 4626else 4627 # Double quotes because CPP needs to be expanded 4628 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4629 do 4630 ac_preproc_ok=false 4631for ac_c_preproc_warn_flag in '' yes 4632do 4633 # Use a header file that comes with gcc, so configuring glibc 4634 # with a fresh cross-compiler works. 4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4636 # <limits.h> exists even on freestanding compilers. 4637 # On the NeXT, cc -E runs the code through the compiler's parser, 4638 # not just through cpp. "Syntax error" is here to catch this case. 4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4640/* end confdefs.h. */ 4641#ifdef __STDC__ 4642# include <limits.h> 4643#else 4644# include <assert.h> 4645#endif 4646 Syntax error 4647_ACEOF 4648if ac_fn_c_try_cpp "$LINENO"; then : 4649 4650else 4651 # Broken: fails on valid input. 4652continue 4653fi 4654rm -f conftest.err conftest.i conftest.$ac_ext 4655 4656 # OK, works on sane cases. Now check whether nonexistent headers 4657 # can be detected and how. 4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659/* end confdefs.h. */ 4660#include <ac_nonexistent.h> 4661_ACEOF 4662if ac_fn_c_try_cpp "$LINENO"; then : 4663 # Broken: success on invalid input. 4664continue 4665else 4666 # Passes both tests. 4667ac_preproc_ok=: 4668break 4669fi 4670rm -f conftest.err conftest.i conftest.$ac_ext 4671 4672done 4673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4674rm -f conftest.i conftest.err conftest.$ac_ext 4675if $ac_preproc_ok; then : 4676 break 4677fi 4678 4679 done 4680 ac_cv_prog_CPP=$CPP 4681 4682fi 4683 CPP=$ac_cv_prog_CPP 4684else 4685 ac_cv_prog_CPP=$CPP 4686fi 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4688$as_echo "$CPP" >&6; } 4689ac_preproc_ok=false 4690for ac_c_preproc_warn_flag in '' yes 4691do 4692 # Use a header file that comes with gcc, so configuring glibc 4693 # with a fresh cross-compiler works. 4694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4695 # <limits.h> exists even on freestanding compilers. 4696 # On the NeXT, cc -E runs the code through the compiler's parser, 4697 # not just through cpp. "Syntax error" is here to catch this case. 4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4699/* end confdefs.h. */ 4700#ifdef __STDC__ 4701# include <limits.h> 4702#else 4703# include <assert.h> 4704#endif 4705 Syntax error 4706_ACEOF 4707if ac_fn_c_try_cpp "$LINENO"; then : 4708 4709else 4710 # Broken: fails on valid input. 4711continue 4712fi 4713rm -f conftest.err conftest.i conftest.$ac_ext 4714 4715 # OK, works on sane cases. Now check whether nonexistent headers 4716 # can be detected and how. 4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4718/* end confdefs.h. */ 4719#include <ac_nonexistent.h> 4720_ACEOF 4721if ac_fn_c_try_cpp "$LINENO"; then : 4722 # Broken: success on invalid input. 4723continue 4724else 4725 # Passes both tests. 4726ac_preproc_ok=: 4727break 4728fi 4729rm -f conftest.err conftest.i conftest.$ac_ext 4730 4731done 4732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4733rm -f conftest.i conftest.err conftest.$ac_ext 4734if $ac_preproc_ok; then : 4735 4736else 4737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4739as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4740See \`config.log' for more details" "$LINENO" 5; } 4741fi 4742 4743ac_ext=c 4744ac_cpp='$CPP $CPPFLAGS' 4745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4747ac_compiler_gnu=$ac_cv_c_compiler_gnu 4748 4749 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4751$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4752if ${ac_cv_path_GREP+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test -z "$GREP"; then 4756 ac_path_GREP_found=false 4757 # Loop through the user's path and test for each of PROGNAME-LIST 4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4760do 4761 IFS=$as_save_IFS 4762 test -z "$as_dir" && as_dir=. 4763 for ac_prog in grep ggrep; do 4764 for ac_exec_ext in '' $ac_executable_extensions; do 4765 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4766 as_fn_executable_p "$ac_path_GREP" || continue 4767# Check for GNU ac_path_GREP and select it if it is found. 4768 # Check for GNU $ac_path_GREP 4769case `"$ac_path_GREP" --version 2>&1` in 4770*GNU*) 4771 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4772*) 4773 ac_count=0 4774 $as_echo_n 0123456789 >"conftest.in" 4775 while : 4776 do 4777 cat "conftest.in" "conftest.in" >"conftest.tmp" 4778 mv "conftest.tmp" "conftest.in" 4779 cp "conftest.in" "conftest.nl" 4780 $as_echo 'GREP' >> "conftest.nl" 4781 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4783 as_fn_arith $ac_count + 1 && ac_count=$as_val 4784 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4785 # Best one so far, save it but keep looking for a better one 4786 ac_cv_path_GREP="$ac_path_GREP" 4787 ac_path_GREP_max=$ac_count 4788 fi 4789 # 10*(2^10) chars as input seems more than enough 4790 test $ac_count -gt 10 && break 4791 done 4792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4793esac 4794 4795 $ac_path_GREP_found && break 3 4796 done 4797 done 4798 done 4799IFS=$as_save_IFS 4800 if test -z "$ac_cv_path_GREP"; then 4801 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4802 fi 4803else 4804 ac_cv_path_GREP=$GREP 4805fi 4806 4807fi 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4809$as_echo "$ac_cv_path_GREP" >&6; } 4810 GREP="$ac_cv_path_GREP" 4811 4812 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4814$as_echo_n "checking for egrep... " >&6; } 4815if ${ac_cv_path_EGREP+:} false; then : 4816 $as_echo_n "(cached) " >&6 4817else 4818 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4819 then ac_cv_path_EGREP="$GREP -E" 4820 else 4821 if test -z "$EGREP"; then 4822 ac_path_EGREP_found=false 4823 # Loop through the user's path and test for each of PROGNAME-LIST 4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4825for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4826do 4827 IFS=$as_save_IFS 4828 test -z "$as_dir" && as_dir=. 4829 for ac_prog in egrep; do 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4832 as_fn_executable_p "$ac_path_EGREP" || continue 4833# Check for GNU ac_path_EGREP and select it if it is found. 4834 # Check for GNU $ac_path_EGREP 4835case `"$ac_path_EGREP" --version 2>&1` in 4836*GNU*) 4837 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4838*) 4839 ac_count=0 4840 $as_echo_n 0123456789 >"conftest.in" 4841 while : 4842 do 4843 cat "conftest.in" "conftest.in" >"conftest.tmp" 4844 mv "conftest.tmp" "conftest.in" 4845 cp "conftest.in" "conftest.nl" 4846 $as_echo 'EGREP' >> "conftest.nl" 4847 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4849 as_fn_arith $ac_count + 1 && ac_count=$as_val 4850 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4851 # Best one so far, save it but keep looking for a better one 4852 ac_cv_path_EGREP="$ac_path_EGREP" 4853 ac_path_EGREP_max=$ac_count 4854 fi 4855 # 10*(2^10) chars as input seems more than enough 4856 test $ac_count -gt 10 && break 4857 done 4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4859esac 4860 4861 $ac_path_EGREP_found && break 3 4862 done 4863 done 4864 done 4865IFS=$as_save_IFS 4866 if test -z "$ac_cv_path_EGREP"; then 4867 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4868 fi 4869else 4870 ac_cv_path_EGREP=$EGREP 4871fi 4872 4873 fi 4874fi 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4876$as_echo "$ac_cv_path_EGREP" >&6; } 4877 EGREP="$ac_cv_path_EGREP" 4878 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4881$as_echo_n "checking for ANSI C header files... " >&6; } 4882if ${ac_cv_header_stdc+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887#include <stdlib.h> 4888#include <stdarg.h> 4889#include <string.h> 4890#include <float.h> 4891 4892int 4893main () 4894{ 4895 4896 ; 4897 return 0; 4898} 4899_ACEOF 4900if ac_fn_c_try_compile "$LINENO"; then : 4901 ac_cv_header_stdc=yes 4902else 4903 ac_cv_header_stdc=no 4904fi 4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4906 4907if test $ac_cv_header_stdc = yes; then 4908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4910/* end confdefs.h. */ 4911#include <string.h> 4912 4913_ACEOF 4914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4915 $EGREP "memchr" >/dev/null 2>&1; then : 4916 4917else 4918 ac_cv_header_stdc=no 4919fi 4920rm -f conftest* 4921 4922fi 4923 4924if test $ac_cv_header_stdc = yes; then 4925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928#include <stdlib.h> 4929 4930_ACEOF 4931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4932 $EGREP "free" >/dev/null 2>&1; then : 4933 4934else 4935 ac_cv_header_stdc=no 4936fi 4937rm -f conftest* 4938 4939fi 4940 4941if test $ac_cv_header_stdc = yes; then 4942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4943 if test "$cross_compiling" = yes; then : 4944 : 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948#include <ctype.h> 4949#include <stdlib.h> 4950#if ((' ' & 0x0FF) == 0x020) 4951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4953#else 4954# define ISLOWER(c) \ 4955 (('a' <= (c) && (c) <= 'i') \ 4956 || ('j' <= (c) && (c) <= 'r') \ 4957 || ('s' <= (c) && (c) <= 'z')) 4958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4959#endif 4960 4961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4962int 4963main () 4964{ 4965 int i; 4966 for (i = 0; i < 256; i++) 4967 if (XOR (islower (i), ISLOWER (i)) 4968 || toupper (i) != TOUPPER (i)) 4969 return 2; 4970 return 0; 4971} 4972_ACEOF 4973if ac_fn_c_try_run "$LINENO"; then : 4974 4975else 4976 ac_cv_header_stdc=no 4977fi 4978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4979 conftest.$ac_objext conftest.beam conftest.$ac_ext 4980fi 4981 4982fi 4983fi 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4985$as_echo "$ac_cv_header_stdc" >&6; } 4986if test $ac_cv_header_stdc = yes; then 4987 4988$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4989 4990fi 4991 4992# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4993for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4994 inttypes.h stdint.h unistd.h 4995do : 4996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4997ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4998" 4999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5000 cat >>confdefs.h <<_ACEOF 5001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5002_ACEOF 5003 5004fi 5005 5006done 5007 5008 5009 5010 5011 5012 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5013if test "x$ac_cv_header_minix_config_h" = xyes; then : 5014 MINIX=yes 5015else 5016 MINIX= 5017fi 5018 5019 5020 if test "$MINIX" = yes; then 5021 5022$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5023 5024 5025$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5026 5027 5028$as_echo "#define _MINIX 1" >>confdefs.h 5029 5030 fi 5031 5032 case "$host_os" in 5033 hpux*) 5034 5035$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 5036 5037 ;; 5038 esac 5039 5040 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5042$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5043if ${ac_cv_safe_to_define___extensions__+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047/* end confdefs.h. */ 5048 5049# define __EXTENSIONS__ 1 5050 $ac_includes_default 5051int 5052main () 5053{ 5054 5055 ; 5056 return 0; 5057} 5058_ACEOF 5059if ac_fn_c_try_compile "$LINENO"; then : 5060 ac_cv_safe_to_define___extensions__=yes 5061else 5062 ac_cv_safe_to_define___extensions__=no 5063fi 5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5065fi 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5067$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5068 test $ac_cv_safe_to_define___extensions__ = yes && 5069 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5070 5071 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5072 5073 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5074 5075 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5076 5077 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 # Code from module arg-nonnull: 5089 # Code from module c++defs: 5090 # Code from module extensions: 5091 5092 # Code from module getopt: 5093 # Code from module getopt-gnu: 5094 # Code from module getopt-posix: 5095 # Code from module gettext-h: 5096 # Code from module include_next: 5097 # Code from module stddef: 5098 # Code from module strdup: 5099 # Code from module string: 5100 # Code from module unistd: 5101 # Code from module warn-on-use: 5102 5103 5104ac_ext=cpp 5105ac_cpp='$CXXCPP $CPPFLAGS' 5106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5109if test -z "$CXX"; then 5110 if test -n "$CCC"; then 5111 CXX=$CCC 5112 else 5113 if test -n "$ac_tool_prefix"; then 5114 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5115 do 5116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5117set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5119$as_echo_n "checking for $ac_word... " >&6; } 5120if ${ac_cv_prog_CXX+:} false; then : 5121 $as_echo_n "(cached) " >&6 5122else 5123 if test -n "$CXX"; then 5124 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5125else 5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5127for as_dir in $PATH 5128do 5129 IFS=$as_save_IFS 5130 test -z "$as_dir" && as_dir=. 5131 for ac_exec_ext in '' $ac_executable_extensions; do 5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5133 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5135 break 2 5136 fi 5137done 5138 done 5139IFS=$as_save_IFS 5140 5141fi 5142fi 5143CXX=$ac_cv_prog_CXX 5144if test -n "$CXX"; then 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5146$as_echo "$CXX" >&6; } 5147else 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5149$as_echo "no" >&6; } 5150fi 5151 5152 5153 test -n "$CXX" && break 5154 done 5155fi 5156if test -z "$CXX"; then 5157 ac_ct_CXX=$CXX 5158 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5159do 5160 # Extract the first word of "$ac_prog", so it can be a program name with args. 5161set dummy $ac_prog; ac_word=$2 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5163$as_echo_n "checking for $ac_word... " >&6; } 5164if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 if test -n "$ac_ct_CXX"; then 5168 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5169else 5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5171for as_dir in $PATH 5172do 5173 IFS=$as_save_IFS 5174 test -z "$as_dir" && as_dir=. 5175 for ac_exec_ext in '' $ac_executable_extensions; do 5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5177 ac_cv_prog_ac_ct_CXX="$ac_prog" 5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5179 break 2 5180 fi 5181done 5182 done 5183IFS=$as_save_IFS 5184 5185fi 5186fi 5187ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5188if test -n "$ac_ct_CXX"; then 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5190$as_echo "$ac_ct_CXX" >&6; } 5191else 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5193$as_echo "no" >&6; } 5194fi 5195 5196 5197 test -n "$ac_ct_CXX" && break 5198done 5199 5200 if test "x$ac_ct_CXX" = x; then 5201 CXX="g++" 5202 else 5203 case $cross_compiling:$ac_tool_warned in 5204yes:) 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5207ac_tool_warned=yes ;; 5208esac 5209 CXX=$ac_ct_CXX 5210 fi 5211fi 5212 5213 fi 5214fi 5215# Provide some information about the compiler. 5216$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5217set X $ac_compile 5218ac_compiler=$2 5219for ac_option in --version -v -V -qversion; do 5220 { { ac_try="$ac_compiler $ac_option >&5" 5221case "(($ac_try" in 5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5223 *) ac_try_echo=$ac_try;; 5224esac 5225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5226$as_echo "$ac_try_echo"; } >&5 5227 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5228 ac_status=$? 5229 if test -s conftest.err; then 5230 sed '10a\ 5231... rest of stderr output deleted ... 5232 10q' conftest.err >conftest.er1 5233 cat conftest.er1 >&5 5234 fi 5235 rm -f conftest.er1 conftest.err 5236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5237 test $ac_status = 0; } 5238done 5239 5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5241$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5242if ${ac_cv_cxx_compiler_gnu+:} false; then : 5243 $as_echo_n "(cached) " >&6 5244else 5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5246/* end confdefs.h. */ 5247 5248int 5249main () 5250{ 5251#ifndef __GNUC__ 5252 choke me 5253#endif 5254 5255 ; 5256 return 0; 5257} 5258_ACEOF 5259if ac_fn_cxx_try_compile "$LINENO"; then : 5260 ac_compiler_gnu=yes 5261else 5262 ac_compiler_gnu=no 5263fi 5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5265ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5266 5267fi 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5269$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5270if test $ac_compiler_gnu = yes; then 5271 GXX=yes 5272else 5273 GXX= 5274fi 5275ac_test_CXXFLAGS=${CXXFLAGS+set} 5276ac_save_CXXFLAGS=$CXXFLAGS 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5278$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5279if ${ac_cv_prog_cxx_g+:} false; then : 5280 $as_echo_n "(cached) " >&6 5281else 5282 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5283 ac_cxx_werror_flag=yes 5284 ac_cv_prog_cxx_g=no 5285 CXXFLAGS="-g" 5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5287/* end confdefs.h. */ 5288 5289int 5290main () 5291{ 5292 5293 ; 5294 return 0; 5295} 5296_ACEOF 5297if ac_fn_cxx_try_compile "$LINENO"; then : 5298 ac_cv_prog_cxx_g=yes 5299else 5300 CXXFLAGS="" 5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5302/* end confdefs.h. */ 5303 5304int 5305main () 5306{ 5307 5308 ; 5309 return 0; 5310} 5311_ACEOF 5312if ac_fn_cxx_try_compile "$LINENO"; then : 5313 5314else 5315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5316 CXXFLAGS="-g" 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319 5320int 5321main () 5322{ 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328if ac_fn_cxx_try_compile "$LINENO"; then : 5329 ac_cv_prog_cxx_g=yes 5330fi 5331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5334fi 5335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5336 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5337fi 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5339$as_echo "$ac_cv_prog_cxx_g" >&6; } 5340if test "$ac_test_CXXFLAGS" = set; then 5341 CXXFLAGS=$ac_save_CXXFLAGS 5342elif test $ac_cv_prog_cxx_g = yes; then 5343 if test "$GXX" = yes; then 5344 CXXFLAGS="-g -O2" 5345 else 5346 CXXFLAGS="-g" 5347 fi 5348else 5349 if test "$GXX" = yes; then 5350 CXXFLAGS="-O2" 5351 else 5352 CXXFLAGS= 5353 fi 5354fi 5355ac_ext=c 5356ac_cpp='$CPP $CPPFLAGS' 5357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5359ac_compiler_gnu=$ac_cv_c_compiler_gnu 5360 5361depcc="$CXX" am_compiler_list= 5362 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5364$as_echo_n "checking dependency style of $depcc... " >&6; } 5365if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5369 # We make a subdir and do the tests there. Otherwise we can end up 5370 # making bogus files that we don't know about and never remove. For 5371 # instance it was reported that on HP-UX the gcc test will end up 5372 # making a dummy file named 'D' -- because '-MD' means "put the output 5373 # in D". 5374 rm -rf conftest.dir 5375 mkdir conftest.dir 5376 # Copy depcomp to subdir because otherwise we won't find it if we're 5377 # using a relative directory. 5378 cp "$am_depcomp" conftest.dir 5379 cd conftest.dir 5380 # We will build objects and dependencies in a subdirectory because 5381 # it helps to detect inapplicable dependency modes. For instance 5382 # both Tru64's cc and ICC support -MD to output dependencies as a 5383 # side effect of compilation, but ICC will put the dependencies in 5384 # the current directory while Tru64 will put them in the object 5385 # directory. 5386 mkdir sub 5387 5388 am_cv_CXX_dependencies_compiler_type=none 5389 if test "$am_compiler_list" = ""; then 5390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5391 fi 5392 am__universal=false 5393 case " $depcc " in #( 5394 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5395 esac 5396 5397 for depmode in $am_compiler_list; do 5398 # Setup a source with many dependencies, because some compilers 5399 # like to wrap large dependency lists on column 80 (with \), and 5400 # we should not choose a depcomp mode which is confused by this. 5401 # 5402 # We need to recreate these files for each test, as the compiler may 5403 # overwrite some of them when testing with obscure command lines. 5404 # This happens at least with the AIX C compiler. 5405 : > sub/conftest.c 5406 for i in 1 2 3 4 5 6; do 5407 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5409 # Solaris 10 /bin/sh. 5410 echo '/* dummy */' > sub/conftst$i.h 5411 done 5412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5413 5414 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5415 # mode. It turns out that the SunPro C++ compiler does not properly 5416 # handle '-M -o', and we need to detect this. Also, some Intel 5417 # versions had trouble with output in subdirs. 5418 am__obj=sub/conftest.${OBJEXT-o} 5419 am__minus_obj="-o $am__obj" 5420 case $depmode in 5421 gcc) 5422 # This depmode causes a compiler race in universal mode. 5423 test "$am__universal" = false || continue 5424 ;; 5425 nosideeffect) 5426 # After this tag, mechanisms are not by side-effect, so they'll 5427 # only be used when explicitly requested. 5428 if test "x$enable_dependency_tracking" = xyes; then 5429 continue 5430 else 5431 break 5432 fi 5433 ;; 5434 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5435 # This compiler won't grok '-c -o', but also, the minuso test has 5436 # not run yet. These depmodes are late enough in the game, and 5437 # so weak that their functioning should not be impacted. 5438 am__obj=conftest.${OBJEXT-o} 5439 am__minus_obj= 5440 ;; 5441 none) break ;; 5442 esac 5443 if depmode=$depmode \ 5444 source=sub/conftest.c object=$am__obj \ 5445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5447 >/dev/null 2>conftest.err && 5448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5452 # icc doesn't choke on unknown options, it will just issue warnings 5453 # or remarks (even with -Werror). So we grep stderr for any message 5454 # that says an option was ignored or not supported. 5455 # When given -MP, icc 7.0 and 7.1 complain thusly: 5456 # icc: Command line warning: ignoring option '-M'; no argument required 5457 # The diagnosis changed in icc 8.0: 5458 # icc: Command line remark: option '-MP' not supported 5459 if (grep 'ignoring option' conftest.err || 5460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5461 am_cv_CXX_dependencies_compiler_type=$depmode 5462 break 5463 fi 5464 fi 5465 done 5466 5467 cd .. 5468 rm -rf conftest.dir 5469else 5470 am_cv_CXX_dependencies_compiler_type=none 5471fi 5472 5473fi 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5475$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5476CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5477 5478 if 5479 test "x$enable_dependency_tracking" != xno \ 5480 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5481 am__fastdepCXX_TRUE= 5482 am__fastdepCXX_FALSE='#' 5483else 5484 am__fastdepCXX_TRUE='#' 5485 am__fastdepCXX_FALSE= 5486fi 5487 5488 5489 5490for ac_prog in 'bison -y' byacc 5491do 5492 # Extract the first word of "$ac_prog", so it can be a program name with args. 5493set dummy $ac_prog; ac_word=$2 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5495$as_echo_n "checking for $ac_word... " >&6; } 5496if ${ac_cv_prog_YACC+:} false; then : 5497 $as_echo_n "(cached) " >&6 5498else 5499 if test -n "$YACC"; then 5500 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5501else 5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5503for as_dir in $PATH 5504do 5505 IFS=$as_save_IFS 5506 test -z "$as_dir" && as_dir=. 5507 for ac_exec_ext in '' $ac_executable_extensions; do 5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5509 ac_cv_prog_YACC="$ac_prog" 5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5511 break 2 5512 fi 5513done 5514 done 5515IFS=$as_save_IFS 5516 5517fi 5518fi 5519YACC=$ac_cv_prog_YACC 5520if test -n "$YACC"; then 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5522$as_echo "$YACC" >&6; } 5523else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5525$as_echo "no" >&6; } 5526fi 5527 5528 5529 test -n "$YACC" && break 5530done 5531test -n "$YACC" || YACC="yacc" 5532 5533 5534case `pwd` in 5535 *\ * | *\ *) 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5537$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5538esac 5539 5540 5541 5542macro_version='2.4.6.42-b88ce' 5543macro_revision='2.4.6.42' 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557ltmain=$ac_aux_dir/ltmain.sh 5558 5559# Backslashify metacharacters that are still active within 5560# double-quoted strings. 5561sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5562 5563# Same as above, but do not quote variable references. 5564double_quote_subst='s/\(["`\\]\)/\\\1/g' 5565 5566# Sed substitution to delay expansion of an escaped shell variable in a 5567# double_quote_subst'ed string. 5568delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5569 5570# Sed substitution to delay expansion of an escaped single quote. 5571delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5572 5573# Sed substitution to avoid accidental globbing in evaled expressions 5574no_glob_subst='s/\*/\\\*/g' 5575 5576ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5577ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5578ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5579 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5581$as_echo_n "checking how to print strings... " >&6; } 5582# Test print first, because it will be a builtin if present. 5583if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5584 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5585 ECHO='print -r --' 5586elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5587 ECHO='printf %s\n' 5588else 5589 # Use this function as a fallback that always works. 5590 func_fallback_echo () 5591 { 5592 eval 'cat <<_LTECHO_EOF 5593$1 5594_LTECHO_EOF' 5595 } 5596 ECHO='func_fallback_echo' 5597fi 5598 5599# func_echo_all arg... 5600# Invoke $ECHO with all args, space-separated. 5601func_echo_all () 5602{ 5603 $ECHO "" 5604} 5605 5606case $ECHO in 5607 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5608$as_echo "printf" >&6; } ;; 5609 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5610$as_echo "print -r" >&6; } ;; 5611 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5612$as_echo "cat" >&6; } ;; 5613esac 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5629$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5630if ${ac_cv_path_SED+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5634 for ac_i in 1 2 3 4 5 6 7; do 5635 ac_script="$ac_script$as_nl$ac_script" 5636 done 5637 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5638 { ac_script=; unset ac_script;} 5639 if test -z "$SED"; then 5640 ac_path_SED_found=false 5641 # Loop through the user's path and test for each of PROGNAME-LIST 5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5643for as_dir in $PATH 5644do 5645 IFS=$as_save_IFS 5646 test -z "$as_dir" && as_dir=. 5647 for ac_prog in sed gsed; do 5648 for ac_exec_ext in '' $ac_executable_extensions; do 5649 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5650 as_fn_executable_p "$ac_path_SED" || continue 5651# Check for GNU ac_path_SED and select it if it is found. 5652 # Check for GNU $ac_path_SED 5653case `"$ac_path_SED" --version 2>&1` in 5654*GNU*) 5655 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5656*) 5657 ac_count=0 5658 $as_echo_n 0123456789 >"conftest.in" 5659 while : 5660 do 5661 cat "conftest.in" "conftest.in" >"conftest.tmp" 5662 mv "conftest.tmp" "conftest.in" 5663 cp "conftest.in" "conftest.nl" 5664 $as_echo '' >> "conftest.nl" 5665 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5667 as_fn_arith $ac_count + 1 && ac_count=$as_val 5668 if test $ac_count -gt ${ac_path_SED_max-0}; then 5669 # Best one so far, save it but keep looking for a better one 5670 ac_cv_path_SED="$ac_path_SED" 5671 ac_path_SED_max=$ac_count 5672 fi 5673 # 10*(2^10) chars as input seems more than enough 5674 test $ac_count -gt 10 && break 5675 done 5676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5677esac 5678 5679 $ac_path_SED_found && break 3 5680 done 5681 done 5682 done 5683IFS=$as_save_IFS 5684 if test -z "$ac_cv_path_SED"; then 5685 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5686 fi 5687else 5688 ac_cv_path_SED=$SED 5689fi 5690 5691fi 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5693$as_echo "$ac_cv_path_SED" >&6; } 5694 SED="$ac_cv_path_SED" 5695 rm -f conftest.sed 5696 5697test -z "$SED" && SED=sed 5698Xsed="$SED -e 1s/^X//" 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5711$as_echo_n "checking for fgrep... " >&6; } 5712if ${ac_cv_path_FGREP+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5716 then ac_cv_path_FGREP="$GREP -F" 5717 else 5718 if test -z "$FGREP"; then 5719 ac_path_FGREP_found=false 5720 # Loop through the user's path and test for each of PROGNAME-LIST 5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5722for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5723do 5724 IFS=$as_save_IFS 5725 test -z "$as_dir" && as_dir=. 5726 for ac_prog in fgrep; do 5727 for ac_exec_ext in '' $ac_executable_extensions; do 5728 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5729 as_fn_executable_p "$ac_path_FGREP" || continue 5730# Check for GNU ac_path_FGREP and select it if it is found. 5731 # Check for GNU $ac_path_FGREP 5732case `"$ac_path_FGREP" --version 2>&1` in 5733*GNU*) 5734 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5735*) 5736 ac_count=0 5737 $as_echo_n 0123456789 >"conftest.in" 5738 while : 5739 do 5740 cat "conftest.in" "conftest.in" >"conftest.tmp" 5741 mv "conftest.tmp" "conftest.in" 5742 cp "conftest.in" "conftest.nl" 5743 $as_echo 'FGREP' >> "conftest.nl" 5744 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5746 as_fn_arith $ac_count + 1 && ac_count=$as_val 5747 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5748 # Best one so far, save it but keep looking for a better one 5749 ac_cv_path_FGREP="$ac_path_FGREP" 5750 ac_path_FGREP_max=$ac_count 5751 fi 5752 # 10*(2^10) chars as input seems more than enough 5753 test $ac_count -gt 10 && break 5754 done 5755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5756esac 5757 5758 $ac_path_FGREP_found && break 3 5759 done 5760 done 5761 done 5762IFS=$as_save_IFS 5763 if test -z "$ac_cv_path_FGREP"; then 5764 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5765 fi 5766else 5767 ac_cv_path_FGREP=$FGREP 5768fi 5769 5770 fi 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5773$as_echo "$ac_cv_path_FGREP" >&6; } 5774 FGREP="$ac_cv_path_FGREP" 5775 5776 5777test -z "$GREP" && GREP=grep 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797# Check whether --with-gnu-ld was given. 5798if test "${with_gnu_ld+set}" = set; then : 5799 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5800else 5801 with_gnu_ld=no 5802fi 5803 5804ac_prog=ld 5805if test yes = "$GCC"; then 5806 # Check if gcc -print-prog-name=ld gives a path. 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5808$as_echo_n "checking for ld used by $CC... " >&6; } 5809 case $host in 5810 *-*-mingw*) 5811 # gcc leaves a trailing carriage return, which upsets mingw 5812 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5813 *) 5814 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5815 esac 5816 case $ac_prog in 5817 # Accept absolute paths. 5818 [\\/]* | ?:[\\/]*) 5819 re_direlt='/[^/][^/]*/\.\./' 5820 # Canonicalize the pathname of ld 5821 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5822 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5823 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5824 done 5825 test -z "$LD" && LD=$ac_prog 5826 ;; 5827 "") 5828 # If it fails, then pretend we aren't using GCC. 5829 ac_prog=ld 5830 ;; 5831 *) 5832 # If it is relative, then search for the first ld in PATH. 5833 with_gnu_ld=unknown 5834 ;; 5835 esac 5836elif test yes = "$with_gnu_ld"; then 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5838$as_echo_n "checking for GNU ld... " >&6; } 5839else 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5841$as_echo_n "checking for non-GNU ld... " >&6; } 5842fi 5843if ${lt_cv_path_LD+:} false; then : 5844 $as_echo_n "(cached) " >&6 5845else 5846 if test -z "$LD"; then 5847 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5848 for ac_dir in $PATH; do 5849 IFS=$lt_save_ifs 5850 test -z "$ac_dir" && ac_dir=. 5851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5852 lt_cv_path_LD=$ac_dir/$ac_prog 5853 # Check to see if the program is GNU ld. I'd rather use --version, 5854 # but apparently some variants of GNU ld only accept -v. 5855 # Break only if it was the GNU/non-GNU ld that we prefer. 5856 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5857 *GNU* | *'with BFD'*) 5858 test no != "$with_gnu_ld" && break 5859 ;; 5860 *) 5861 test yes != "$with_gnu_ld" && break 5862 ;; 5863 esac 5864 fi 5865 done 5866 IFS=$lt_save_ifs 5867else 5868 lt_cv_path_LD=$LD # Let the user override the test with a path. 5869fi 5870fi 5871 5872LD=$lt_cv_path_LD 5873if test -n "$LD"; then 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5875$as_echo "$LD" >&6; } 5876else 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5878$as_echo "no" >&6; } 5879fi 5880test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5882$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5883if ${lt_cv_prog_gnu_ld+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5887case `$LD -v 2>&1 </dev/null` in 5888*GNU* | *'with BFD'*) 5889 lt_cv_prog_gnu_ld=yes 5890 ;; 5891*) 5892 lt_cv_prog_gnu_ld=no 5893 ;; 5894esac 5895fi 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5897$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5898with_gnu_ld=$lt_cv_prog_gnu_ld 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5909$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5910if ${lt_cv_path_NM+:} false; then : 5911 $as_echo_n "(cached) " >&6 5912else 5913 if test -n "$NM"; then 5914 # Let the user override the test. 5915 lt_cv_path_NM=$NM 5916else 5917 lt_nm_to_check=${ac_tool_prefix}nm 5918 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5919 lt_nm_to_check="$lt_nm_to_check nm" 5920 fi 5921 for lt_tmp_nm in $lt_nm_to_check; do 5922 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5923 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5924 IFS=$lt_save_ifs 5925 test -z "$ac_dir" && ac_dir=. 5926 tmp_nm=$ac_dir/$lt_tmp_nm 5927 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5928 # Check to see if the nm accepts a BSD-compat flag. 5929 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5930 # nm: unknown option "B" ignored 5931 # Tru64's nm complains that /dev/null is an invalid object file 5932 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5933 case $build_os in 5934 mingw*) lt_bad_file=conftest.nm/nofile ;; 5935 *) lt_bad_file=/dev/null ;; 5936 esac 5937 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5938 *$lt_bad_file* | *'Invalid file or object type'*) 5939 lt_cv_path_NM="$tmp_nm -B" 5940 break 2 5941 ;; 5942 *) 5943 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5944 */dev/null*) 5945 lt_cv_path_NM="$tmp_nm -p" 5946 break 2 5947 ;; 5948 *) 5949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5950 continue # so that we can try to find one that supports BSD flags 5951 ;; 5952 esac 5953 ;; 5954 esac 5955 fi 5956 done 5957 IFS=$lt_save_ifs 5958 done 5959 : ${lt_cv_path_NM=no} 5960fi 5961fi 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5963$as_echo "$lt_cv_path_NM" >&6; } 5964if test no != "$lt_cv_path_NM"; then 5965 NM=$lt_cv_path_NM 5966else 5967 # Didn't find any BSD compatible name lister, look for dumpbin. 5968 if test -n "$DUMPBIN"; then : 5969 # Let the user override the test. 5970 else 5971 if test -n "$ac_tool_prefix"; then 5972 for ac_prog in dumpbin "link -dump" 5973 do 5974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5975set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5977$as_echo_n "checking for $ac_word... " >&6; } 5978if ${ac_cv_prog_DUMPBIN+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980else 5981 if test -n "$DUMPBIN"; then 5982 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5983else 5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5985for as_dir in $PATH 5986do 5987 IFS=$as_save_IFS 5988 test -z "$as_dir" && as_dir=. 5989 for ac_exec_ext in '' $ac_executable_extensions; do 5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5991 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5993 break 2 5994 fi 5995done 5996 done 5997IFS=$as_save_IFS 5998 5999fi 6000fi 6001DUMPBIN=$ac_cv_prog_DUMPBIN 6002if test -n "$DUMPBIN"; then 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6004$as_echo "$DUMPBIN" >&6; } 6005else 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6007$as_echo "no" >&6; } 6008fi 6009 6010 6011 test -n "$DUMPBIN" && break 6012 done 6013fi 6014if test -z "$DUMPBIN"; then 6015 ac_ct_DUMPBIN=$DUMPBIN 6016 for ac_prog in dumpbin "link -dump" 6017do 6018 # Extract the first word of "$ac_prog", so it can be a program name with args. 6019set dummy $ac_prog; ac_word=$2 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6021$as_echo_n "checking for $ac_word... " >&6; } 6022if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6023 $as_echo_n "(cached) " >&6 6024else 6025 if test -n "$ac_ct_DUMPBIN"; then 6026 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6027else 6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6029for as_dir in $PATH 6030do 6031 IFS=$as_save_IFS 6032 test -z "$as_dir" && as_dir=. 6033 for ac_exec_ext in '' $ac_executable_extensions; do 6034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6035 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6037 break 2 6038 fi 6039done 6040 done 6041IFS=$as_save_IFS 6042 6043fi 6044fi 6045ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6046if test -n "$ac_ct_DUMPBIN"; then 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6048$as_echo "$ac_ct_DUMPBIN" >&6; } 6049else 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6051$as_echo "no" >&6; } 6052fi 6053 6054 6055 test -n "$ac_ct_DUMPBIN" && break 6056done 6057 6058 if test "x$ac_ct_DUMPBIN" = x; then 6059 DUMPBIN=":" 6060 else 6061 case $cross_compiling:$ac_tool_warned in 6062yes:) 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6065ac_tool_warned=yes ;; 6066esac 6067 DUMPBIN=$ac_ct_DUMPBIN 6068 fi 6069fi 6070 6071 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6072 *COFF*) 6073 DUMPBIN="$DUMPBIN -symbols -headers" 6074 ;; 6075 *) 6076 DUMPBIN=: 6077 ;; 6078 esac 6079 fi 6080 6081 if test : != "$DUMPBIN"; then 6082 NM=$DUMPBIN 6083 fi 6084fi 6085test -z "$NM" && NM=nm 6086 6087 6088 6089 6090 6091 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6093$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6094if ${lt_cv_nm_interface+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 lt_cv_nm_interface="BSD nm" 6098 echo "int some_variable = 0;" > conftest.$ac_ext 6099 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6100 (eval "$ac_compile" 2>conftest.err) 6101 cat conftest.err >&5 6102 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6103 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6104 cat conftest.err >&5 6105 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6106 cat conftest.out >&5 6107 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6108 lt_cv_nm_interface="MS dumpbin" 6109 fi 6110 rm -f conftest* 6111fi 6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6113$as_echo "$lt_cv_nm_interface" >&6; } 6114 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6116$as_echo_n "checking whether ln -s works... " >&6; } 6117LN_S=$as_ln_s 6118if test "$LN_S" = "ln -s"; then 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6120$as_echo "yes" >&6; } 6121else 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6123$as_echo "no, using $LN_S" >&6; } 6124fi 6125 6126# find the maximum length of command line arguments 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6128$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6129if ${lt_cv_sys_max_cmd_len+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 i=0 6133 teststring=ABCD 6134 6135 case $build_os in 6136 msdosdjgpp*) 6137 # On DJGPP, this test can blow up pretty badly due to problems in libc 6138 # (any single argument exceeding 2000 bytes causes a buffer overrun 6139 # during glob expansion). Even if it were fixed, the result of this 6140 # check would be larger than it should be. 6141 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6142 ;; 6143 6144 gnu*) 6145 # Under GNU Hurd, this test is not required because there is 6146 # no limit to the length of command line arguments. 6147 # Libtool will interpret -1 as no limit whatsoever 6148 lt_cv_sys_max_cmd_len=-1; 6149 ;; 6150 6151 cygwin* | mingw* | cegcc*) 6152 # On Win9x/ME, this test blows up -- it succeeds, but takes 6153 # about 5 minutes as the teststring grows exponentially. 6154 # Worse, since 9x/ME are not pre-emptively multitasking, 6155 # you end up with a "frozen" computer, even though with patience 6156 # the test eventually succeeds (with a max line length of 256k). 6157 # Instead, let's just punt: use the minimum linelength reported by 6158 # all of the supported platforms: 8192 (on NT/2K/XP). 6159 lt_cv_sys_max_cmd_len=8192; 6160 ;; 6161 6162 mint*) 6163 # On MiNT this can take a long time and run out of memory. 6164 lt_cv_sys_max_cmd_len=8192; 6165 ;; 6166 6167 amigaos*) 6168 # On AmigaOS with pdksh, this test takes hours, literally. 6169 # So we just punt and use a minimum line length of 8192. 6170 lt_cv_sys_max_cmd_len=8192; 6171 ;; 6172 6173 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6174 # This has been around since 386BSD, at least. Likely further. 6175 if test -x /sbin/sysctl; then 6176 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6177 elif test -x /usr/sbin/sysctl; then 6178 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6179 else 6180 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6181 fi 6182 # And add a safety zone 6183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6185 ;; 6186 6187 interix*) 6188 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6189 lt_cv_sys_max_cmd_len=196608 6190 ;; 6191 6192 os2*) 6193 # The test takes a long time on OS/2. 6194 lt_cv_sys_max_cmd_len=8192 6195 ;; 6196 6197 osf*) 6198 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6199 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6200 # nice to cause kernel panics so lets avoid the loop below. 6201 # First set a reasonable default. 6202 lt_cv_sys_max_cmd_len=16384 6203 # 6204 if test -x /sbin/sysconfig; then 6205 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6206 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6207 esac 6208 fi 6209 ;; 6210 sco3.2v5*) 6211 lt_cv_sys_max_cmd_len=102400 6212 ;; 6213 sysv5* | sco5v6* | sysv4.2uw2*) 6214 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6215 if test -n "$kargmax"; then 6216 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6217 else 6218 lt_cv_sys_max_cmd_len=32768 6219 fi 6220 ;; 6221 *) 6222 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6223 if test -n "$lt_cv_sys_max_cmd_len" && \ 6224 test undefined != "$lt_cv_sys_max_cmd_len"; then 6225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6227 else 6228 # Make teststring a little bigger before we do anything with it. 6229 # a 1K string should be a reasonable start. 6230 for i in 1 2 3 4 5 6 7 8; do 6231 teststring=$teststring$teststring 6232 done 6233 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6234 # If test is not a shell built-in, we'll probably end up computing a 6235 # maximum length that is only half of the actual maximum length, but 6236 # we can't tell. 6237 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6238 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6239 test 17 != "$i" # 1/2 MB should be enough 6240 do 6241 i=`expr $i + 1` 6242 teststring=$teststring$teststring 6243 done 6244 # Only check the string length outside the loop. 6245 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6246 teststring= 6247 # Add a significant safety factor because C++ compilers can tack on 6248 # massive amounts of additional arguments before passing them to the 6249 # linker. It appears as though 1/2 is a usable value. 6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6251 fi 6252 ;; 6253 esac 6254 6255fi 6256 6257if test -n "$lt_cv_sys_max_cmd_len"; then 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6259$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6260else 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6262$as_echo "none" >&6; } 6263fi 6264max_cmd_len=$lt_cv_sys_max_cmd_len 6265 6266 6267 6268 6269 6270 6271: ${CP="cp -f"} 6272: ${MV="mv -f"} 6273: ${RM="rm -f"} 6274 6275if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6276 lt_unset=unset 6277else 6278 lt_unset=false 6279fi 6280 6281 6282 6283 6284 6285# test EBCDIC or ASCII 6286case `echo X|tr X '\101'` in 6287 A) # ASCII based system 6288 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6289 lt_SP2NL='tr \040 \012' 6290 lt_NL2SP='tr \015\012 \040\040' 6291 ;; 6292 *) # EBCDIC based system 6293 lt_SP2NL='tr \100 \n' 6294 lt_NL2SP='tr \r\n \100\100' 6295 ;; 6296esac 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6307$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6308if ${lt_cv_to_host_file_cmd+:} false; then : 6309 $as_echo_n "(cached) " >&6 6310else 6311 case $host in 6312 *-*-mingw* ) 6313 case $build in 6314 *-*-mingw* ) # actually msys 6315 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6316 ;; 6317 *-*-cygwin* ) 6318 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6319 ;; 6320 * ) # otherwise, assume *nix 6321 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6322 ;; 6323 esac 6324 ;; 6325 *-*-cygwin* ) 6326 case $build in 6327 *-*-mingw* ) # actually msys 6328 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6329 ;; 6330 *-*-cygwin* ) 6331 lt_cv_to_host_file_cmd=func_convert_file_noop 6332 ;; 6333 * ) # otherwise, assume *nix 6334 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6335 ;; 6336 esac 6337 ;; 6338 * ) # unhandled hosts (and "normal" native builds) 6339 lt_cv_to_host_file_cmd=func_convert_file_noop 6340 ;; 6341esac 6342 6343fi 6344 6345to_host_file_cmd=$lt_cv_to_host_file_cmd 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6347$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6348 6349 6350 6351 6352 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6354$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6355if ${lt_cv_to_tool_file_cmd+:} false; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 #assume ordinary cross tools, or native build. 6359lt_cv_to_tool_file_cmd=func_convert_file_noop 6360case $host in 6361 *-*-mingw* ) 6362 case $build in 6363 *-*-mingw* ) # actually msys 6364 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6365 ;; 6366 esac 6367 ;; 6368esac 6369 6370fi 6371 6372to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6374$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6375 6376 6377 6378 6379 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6381$as_echo_n "checking for $LD option to reload object files... " >&6; } 6382if ${lt_cv_ld_reload_flag+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 lt_cv_ld_reload_flag='-r' 6386fi 6387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6388$as_echo "$lt_cv_ld_reload_flag" >&6; } 6389reload_flag=$lt_cv_ld_reload_flag 6390case $reload_flag in 6391"" | " "*) ;; 6392*) reload_flag=" $reload_flag" ;; 6393esac 6394reload_cmds='$LD$reload_flag -o $output$reload_objs' 6395case $host_os in 6396 cygwin* | mingw* | pw32* | cegcc*) 6397 if test yes != "$GCC"; then 6398 reload_cmds=false 6399 fi 6400 ;; 6401 darwin*) 6402 if test yes = "$GCC"; then 6403 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6404 else 6405 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6406 fi 6407 ;; 6408esac 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418if test -n "$ac_tool_prefix"; then 6419 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6420set dummy ${ac_tool_prefix}objdump; ac_word=$2 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6422$as_echo_n "checking for $ac_word... " >&6; } 6423if ${ac_cv_prog_OBJDUMP+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test -n "$OBJDUMP"; then 6427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6436 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441 done 6442IFS=$as_save_IFS 6443 6444fi 6445fi 6446OBJDUMP=$ac_cv_prog_OBJDUMP 6447if test -n "$OBJDUMP"; then 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6449$as_echo "$OBJDUMP" >&6; } 6450else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6452$as_echo "no" >&6; } 6453fi 6454 6455 6456fi 6457if test -z "$ac_cv_prog_OBJDUMP"; then 6458 ac_ct_OBJDUMP=$OBJDUMP 6459 # Extract the first word of "objdump", so it can be a program name with args. 6460set dummy objdump; ac_word=$2 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6462$as_echo_n "checking for $ac_word... " >&6; } 6463if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 if test -n "$ac_ct_OBJDUMP"; then 6467 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6476 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480done 6481 done 6482IFS=$as_save_IFS 6483 6484fi 6485fi 6486ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6487if test -n "$ac_ct_OBJDUMP"; then 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6489$as_echo "$ac_ct_OBJDUMP" >&6; } 6490else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494 6495 if test "x$ac_ct_OBJDUMP" = x; then 6496 OBJDUMP="false" 6497 else 6498 case $cross_compiling:$ac_tool_warned in 6499yes:) 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6502ac_tool_warned=yes ;; 6503esac 6504 OBJDUMP=$ac_ct_OBJDUMP 6505 fi 6506else 6507 OBJDUMP="$ac_cv_prog_OBJDUMP" 6508fi 6509 6510test -z "$OBJDUMP" && OBJDUMP=objdump 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6521$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6522if ${lt_cv_deplibs_check_method+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 lt_cv_file_magic_cmd='$MAGIC_CMD' 6526lt_cv_file_magic_test_file= 6527lt_cv_deplibs_check_method='unknown' 6528# Need to set the preceding variable on all platforms that support 6529# interlibrary dependencies. 6530# 'none' -- dependencies not supported. 6531# 'unknown' -- same as none, but documents that we really don't know. 6532# 'pass_all' -- all dependencies passed with no checks. 6533# 'test_compile' -- check by making test program. 6534# 'file_magic [[regex]]' -- check by looking for files in library path 6535# that responds to the $file_magic_cmd with a given extended regex. 6536# If you have 'file' or equivalent on your system and you're not sure 6537# whether 'pass_all' will *always* work, you probably want this one. 6538 6539case $host_os in 6540aix[4-9]*) 6541 lt_cv_deplibs_check_method=pass_all 6542 ;; 6543 6544beos*) 6545 lt_cv_deplibs_check_method=pass_all 6546 ;; 6547 6548bsdi[45]*) 6549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6550 lt_cv_file_magic_cmd='/usr/bin/file -L' 6551 lt_cv_file_magic_test_file=/shlib/libc.so 6552 ;; 6553 6554cygwin*) 6555 # func_win32_libid is a shell function defined in ltmain.sh 6556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6557 lt_cv_file_magic_cmd='func_win32_libid' 6558 ;; 6559 6560mingw* | pw32*) 6561 # Base MSYS/MinGW do not provide the 'file' command needed by 6562 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6563 # unless we find 'file', for example because we are cross-compiling. 6564 if ( file / ) >/dev/null 2>&1; then 6565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6566 lt_cv_file_magic_cmd='func_win32_libid' 6567 else 6568 # Keep this pattern in sync with the one in func_win32_libid. 6569 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6570 lt_cv_file_magic_cmd='$OBJDUMP -f' 6571 fi 6572 ;; 6573 6574cegcc*) 6575 # use the weaker test based on 'objdump'. See mingw*. 6576 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6577 lt_cv_file_magic_cmd='$OBJDUMP -f' 6578 ;; 6579 6580darwin* | rhapsody*) 6581 lt_cv_deplibs_check_method=pass_all 6582 ;; 6583 6584freebsd* | dragonfly*) 6585 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6586 case $host_cpu in 6587 i*86 ) 6588 # Not sure whether the presence of OpenBSD here was a mistake. 6589 # Let's accept both of them until this is cleared up. 6590 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6591 lt_cv_file_magic_cmd=/usr/bin/file 6592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6593 ;; 6594 esac 6595 else 6596 lt_cv_deplibs_check_method=pass_all 6597 fi 6598 ;; 6599 6600haiku*) 6601 lt_cv_deplibs_check_method=pass_all 6602 ;; 6603 6604hpux10.20* | hpux11*) 6605 lt_cv_file_magic_cmd=/usr/bin/file 6606 case $host_cpu in 6607 ia64*) 6608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6609 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6610 ;; 6611 hppa*64*) 6612 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]' 6613 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6614 ;; 6615 *) 6616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6617 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6618 ;; 6619 esac 6620 ;; 6621 6622interix[3-9]*) 6623 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6625 ;; 6626 6627irix5* | irix6* | nonstopux*) 6628 case $LD in 6629 *-32|*"-32 ") libmagic=32-bit;; 6630 *-n32|*"-n32 ") libmagic=N32;; 6631 *-64|*"-64 ") libmagic=64-bit;; 6632 *) libmagic=never-match;; 6633 esac 6634 lt_cv_deplibs_check_method=pass_all 6635 ;; 6636 6637# This must be glibc/ELF. 6638linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6639 lt_cv_deplibs_check_method=pass_all 6640 ;; 6641 6642netbsd*) 6643 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6645 else 6646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6647 fi 6648 ;; 6649 6650newos6*) 6651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6652 lt_cv_file_magic_cmd=/usr/bin/file 6653 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6654 ;; 6655 6656*nto* | *qnx*) 6657 lt_cv_deplibs_check_method=pass_all 6658 ;; 6659 6660openbsd* | bitrig*) 6661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6663 else 6664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6665 fi 6666 ;; 6667 6668osf3* | osf4* | osf5*) 6669 lt_cv_deplibs_check_method=pass_all 6670 ;; 6671 6672rdos*) 6673 lt_cv_deplibs_check_method=pass_all 6674 ;; 6675 6676solaris*) 6677 lt_cv_deplibs_check_method=pass_all 6678 ;; 6679 6680sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6681 lt_cv_deplibs_check_method=pass_all 6682 ;; 6683 6684sysv4 | sysv4.3*) 6685 case $host_vendor in 6686 motorola) 6687 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]' 6688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6689 ;; 6690 ncr) 6691 lt_cv_deplibs_check_method=pass_all 6692 ;; 6693 sequent) 6694 lt_cv_file_magic_cmd='/bin/file' 6695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6696 ;; 6697 sni) 6698 lt_cv_file_magic_cmd='/bin/file' 6699 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6700 lt_cv_file_magic_test_file=/lib/libc.so 6701 ;; 6702 siemens) 6703 lt_cv_deplibs_check_method=pass_all 6704 ;; 6705 pc) 6706 lt_cv_deplibs_check_method=pass_all 6707 ;; 6708 esac 6709 ;; 6710 6711tpf*) 6712 lt_cv_deplibs_check_method=pass_all 6713 ;; 6714os2*) 6715 lt_cv_deplibs_check_method=pass_all 6716 ;; 6717esac 6718 6719fi 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6721$as_echo "$lt_cv_deplibs_check_method" >&6; } 6722 6723file_magic_glob= 6724want_nocaseglob=no 6725if test "$build" = "$host"; then 6726 case $host_os in 6727 mingw* | pw32*) 6728 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6729 want_nocaseglob=yes 6730 else 6731 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6732 fi 6733 ;; 6734 esac 6735fi 6736 6737file_magic_cmd=$lt_cv_file_magic_cmd 6738deplibs_check_method=$lt_cv_deplibs_check_method 6739test -z "$deplibs_check_method" && deplibs_check_method=unknown 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762if test -n "$ac_tool_prefix"; then 6763 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6764set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766$as_echo_n "checking for $ac_word... " >&6; } 6767if ${ac_cv_prog_DLLTOOL+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 if test -n "$DLLTOOL"; then 6771 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6772else 6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6774for as_dir in $PATH 6775do 6776 IFS=$as_save_IFS 6777 test -z "$as_dir" && as_dir=. 6778 for ac_exec_ext in '' $ac_executable_extensions; do 6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6780 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6782 break 2 6783 fi 6784done 6785 done 6786IFS=$as_save_IFS 6787 6788fi 6789fi 6790DLLTOOL=$ac_cv_prog_DLLTOOL 6791if test -n "$DLLTOOL"; then 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6793$as_echo "$DLLTOOL" >&6; } 6794else 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6796$as_echo "no" >&6; } 6797fi 6798 6799 6800fi 6801if test -z "$ac_cv_prog_DLLTOOL"; then 6802 ac_ct_DLLTOOL=$DLLTOOL 6803 # Extract the first word of "dlltool", so it can be a program name with args. 6804set dummy dlltool; ac_word=$2 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806$as_echo_n "checking for $ac_word... " >&6; } 6807if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 if test -n "$ac_ct_DLLTOOL"; then 6811 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6812else 6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6814for as_dir in $PATH 6815do 6816 IFS=$as_save_IFS 6817 test -z "$as_dir" && as_dir=. 6818 for ac_exec_ext in '' $ac_executable_extensions; do 6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6820 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6822 break 2 6823 fi 6824done 6825 done 6826IFS=$as_save_IFS 6827 6828fi 6829fi 6830ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6831if test -n "$ac_ct_DLLTOOL"; then 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6833$as_echo "$ac_ct_DLLTOOL" >&6; } 6834else 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6836$as_echo "no" >&6; } 6837fi 6838 6839 if test "x$ac_ct_DLLTOOL" = x; then 6840 DLLTOOL="false" 6841 else 6842 case $cross_compiling:$ac_tool_warned in 6843yes:) 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6846ac_tool_warned=yes ;; 6847esac 6848 DLLTOOL=$ac_ct_DLLTOOL 6849 fi 6850else 6851 DLLTOOL="$ac_cv_prog_DLLTOOL" 6852fi 6853 6854test -z "$DLLTOOL" && DLLTOOL=dlltool 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6866$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6867if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 lt_cv_sharedlib_from_linklib_cmd='unknown' 6871 6872case $host_os in 6873cygwin* | mingw* | pw32* | cegcc*) 6874 # two different shell functions defined in ltmain.sh; 6875 # decide which one to use based on capabilities of $DLLTOOL 6876 case `$DLLTOOL --help 2>&1` in 6877 *--identify-strict*) 6878 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6879 ;; 6880 *) 6881 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6882 ;; 6883 esac 6884 ;; 6885*) 6886 # fallback: assume linklib IS sharedlib 6887 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6888 ;; 6889esac 6890 6891fi 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6893$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6894sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6895test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6896 6897 6898 6899 6900 6901 6902 6903if test -n "$ac_tool_prefix"; then 6904 for ac_prog in ar 6905 do 6906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909$as_echo_n "checking for $ac_word... " >&6; } 6910if ${ac_cv_prog_AR+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 if test -n "$AR"; then 6914 ac_cv_prog_AR="$AR" # Let the user override the test. 6915else 6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917for as_dir in $PATH 6918do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6923 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi 6932fi 6933AR=$ac_cv_prog_AR 6934if test -n "$AR"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6936$as_echo "$AR" >&6; } 6937else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939$as_echo "no" >&6; } 6940fi 6941 6942 6943 test -n "$AR" && break 6944 done 6945fi 6946if test -z "$AR"; then 6947 ac_ct_AR=$AR 6948 for ac_prog in ar 6949do 6950 # Extract the first word of "$ac_prog", so it can be a program name with args. 6951set dummy $ac_prog; ac_word=$2 6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6953$as_echo_n "checking for $ac_word... " >&6; } 6954if ${ac_cv_prog_ac_ct_AR+:} false; then : 6955 $as_echo_n "(cached) " >&6 6956else 6957 if test -n "$ac_ct_AR"; then 6958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6959else 6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961for as_dir in $PATH 6962do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6967 ac_cv_prog_ac_ct_AR="$ac_prog" 6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971done 6972 done 6973IFS=$as_save_IFS 6974 6975fi 6976fi 6977ac_ct_AR=$ac_cv_prog_ac_ct_AR 6978if test -n "$ac_ct_AR"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6980$as_echo "$ac_ct_AR" >&6; } 6981else 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6983$as_echo "no" >&6; } 6984fi 6985 6986 6987 test -n "$ac_ct_AR" && break 6988done 6989 6990 if test "x$ac_ct_AR" = x; then 6991 AR="false" 6992 else 6993 case $cross_compiling:$ac_tool_warned in 6994yes:) 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6997ac_tool_warned=yes ;; 6998esac 6999 AR=$ac_ct_AR 7000 fi 7001fi 7002 7003: ${AR=ar} 7004 7005 7006 7007 7008 7009 7010# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7011# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7012# higher priority because thats what people were doing historically (setting 7013# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7014# variable obsoleted/removed. 7015 7016test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7017lt_ar_flags=$AR_FLAGS 7018 7019 7020 7021 7022 7023 7024# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7025# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7026 7027 7028 7029 7030 7031 7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7033$as_echo_n "checking for archiver @FILE support... " >&6; } 7034if ${lt_cv_ar_at_file+:} false; then : 7035 $as_echo_n "(cached) " >&6 7036else 7037 lt_cv_ar_at_file=no 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040 7041int 7042main () 7043{ 7044 7045 ; 7046 return 0; 7047} 7048_ACEOF 7049if ac_fn_c_try_compile "$LINENO"; then : 7050 echo conftest.$ac_objext > conftest.lst 7051 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7053 (eval $lt_ar_try) 2>&5 7054 ac_status=$? 7055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7056 test $ac_status = 0; } 7057 if test 0 -eq "$ac_status"; then 7058 # Ensure the archiver fails upon bogus file names. 7059 rm -f conftest.$ac_objext libconftest.a 7060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7061 (eval $lt_ar_try) 2>&5 7062 ac_status=$? 7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7064 test $ac_status = 0; } 7065 if test 0 -ne "$ac_status"; then 7066 lt_cv_ar_at_file=@ 7067 fi 7068 fi 7069 rm -f conftest.* libconftest.a 7070 7071fi 7072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7073 7074fi 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7076$as_echo "$lt_cv_ar_at_file" >&6; } 7077 7078if test no = "$lt_cv_ar_at_file"; then 7079 archiver_list_spec= 7080else 7081 archiver_list_spec=$lt_cv_ar_at_file 7082fi 7083 7084 7085 7086 7087 7088 7089 7090if test -n "$ac_tool_prefix"; then 7091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7092set dummy ${ac_tool_prefix}strip; ac_word=$2 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7094$as_echo_n "checking for $ac_word... " >&6; } 7095if ${ac_cv_prog_STRIP+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097else 7098 if test -n "$STRIP"; then 7099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7100else 7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7102for as_dir in $PATH 7103do 7104 IFS=$as_save_IFS 7105 test -z "$as_dir" && as_dir=. 7106 for ac_exec_ext in '' $ac_executable_extensions; do 7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7108 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7110 break 2 7111 fi 7112done 7113 done 7114IFS=$as_save_IFS 7115 7116fi 7117fi 7118STRIP=$ac_cv_prog_STRIP 7119if test -n "$STRIP"; then 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7121$as_echo "$STRIP" >&6; } 7122else 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7124$as_echo "no" >&6; } 7125fi 7126 7127 7128fi 7129if test -z "$ac_cv_prog_STRIP"; then 7130 ac_ct_STRIP=$STRIP 7131 # Extract the first word of "strip", so it can be a program name with args. 7132set dummy strip; ac_word=$2 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7134$as_echo_n "checking for $ac_word... " >&6; } 7135if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137else 7138 if test -n "$ac_ct_STRIP"; then 7139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7140else 7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7142for as_dir in $PATH 7143do 7144 IFS=$as_save_IFS 7145 test -z "$as_dir" && as_dir=. 7146 for ac_exec_ext in '' $ac_executable_extensions; do 7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7148 ac_cv_prog_ac_ct_STRIP="strip" 7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7150 break 2 7151 fi 7152done 7153 done 7154IFS=$as_save_IFS 7155 7156fi 7157fi 7158ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7159if test -n "$ac_ct_STRIP"; then 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7161$as_echo "$ac_ct_STRIP" >&6; } 7162else 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7164$as_echo "no" >&6; } 7165fi 7166 7167 if test "x$ac_ct_STRIP" = x; then 7168 STRIP=":" 7169 else 7170 case $cross_compiling:$ac_tool_warned in 7171yes:) 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7174ac_tool_warned=yes ;; 7175esac 7176 STRIP=$ac_ct_STRIP 7177 fi 7178else 7179 STRIP="$ac_cv_prog_STRIP" 7180fi 7181 7182test -z "$STRIP" && STRIP=: 7183 7184 7185 7186 7187 7188 7189if test -n "$ac_tool_prefix"; then 7190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7191set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7193$as_echo_n "checking for $ac_word... " >&6; } 7194if ${ac_cv_prog_RANLIB+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196else 7197 if test -n "$RANLIB"; then 7198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7199else 7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7201for as_dir in $PATH 7202do 7203 IFS=$as_save_IFS 7204 test -z "$as_dir" && as_dir=. 7205 for ac_exec_ext in '' $ac_executable_extensions; do 7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7209 break 2 7210 fi 7211done 7212 done 7213IFS=$as_save_IFS 7214 7215fi 7216fi 7217RANLIB=$ac_cv_prog_RANLIB 7218if test -n "$RANLIB"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7220$as_echo "$RANLIB" >&6; } 7221else 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7223$as_echo "no" >&6; } 7224fi 7225 7226 7227fi 7228if test -z "$ac_cv_prog_RANLIB"; then 7229 ac_ct_RANLIB=$RANLIB 7230 # Extract the first word of "ranlib", so it can be a program name with args. 7231set dummy ranlib; ac_word=$2 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7233$as_echo_n "checking for $ac_word... " >&6; } 7234if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7235 $as_echo_n "(cached) " >&6 7236else 7237 if test -n "$ac_ct_RANLIB"; then 7238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7239else 7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7241for as_dir in $PATH 7242do 7243 IFS=$as_save_IFS 7244 test -z "$as_dir" && as_dir=. 7245 for ac_exec_ext in '' $ac_executable_extensions; do 7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7247 ac_cv_prog_ac_ct_RANLIB="ranlib" 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7249 break 2 7250 fi 7251done 7252 done 7253IFS=$as_save_IFS 7254 7255fi 7256fi 7257ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7258if test -n "$ac_ct_RANLIB"; then 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7260$as_echo "$ac_ct_RANLIB" >&6; } 7261else 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7263$as_echo "no" >&6; } 7264fi 7265 7266 if test "x$ac_ct_RANLIB" = x; then 7267 RANLIB=":" 7268 else 7269 case $cross_compiling:$ac_tool_warned in 7270yes:) 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7273ac_tool_warned=yes ;; 7274esac 7275 RANLIB=$ac_ct_RANLIB 7276 fi 7277else 7278 RANLIB="$ac_cv_prog_RANLIB" 7279fi 7280 7281test -z "$RANLIB" && RANLIB=: 7282 7283 7284 7285 7286 7287 7288# Determine commands to create old-style static archives. 7289old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7290old_postinstall_cmds='chmod 644 $oldlib' 7291old_postuninstall_cmds= 7292 7293if test -n "$RANLIB"; then 7294 case $host_os in 7295 bitrig* | openbsd*) 7296 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7297 ;; 7298 *) 7299 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7300 ;; 7301 esac 7302 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7303fi 7304 7305case $host_os in 7306 darwin*) 7307 lock_old_archive_extraction=yes ;; 7308 *) 7309 lock_old_archive_extraction=no ;; 7310esac 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350# If no C compiler was specified, use CC. 7351LTCC=${LTCC-"$CC"} 7352 7353# If no C compiler flags were specified, use CFLAGS. 7354LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7355 7356# Allow CC to be a program name with arguments. 7357compiler=$CC 7358 7359 7360# Check for command to grab the raw symbol name followed by C symbol from nm. 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7362$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7363if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7364 $as_echo_n "(cached) " >&6 7365else 7366 7367# These are sane defaults that work on at least a few old systems. 7368# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7369 7370# Character class describing NM global symbol codes. 7371symcode='[BCDEGRST]' 7372 7373# Regexp to match symbols that can be accessed directly from C. 7374sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7375 7376# Define system-specific variables. 7377case $host_os in 7378aix*) 7379 symcode='[BCDT]' 7380 ;; 7381cygwin* | mingw* | pw32* | cegcc*) 7382 symcode='[ABCDGISTW]' 7383 ;; 7384hpux*) 7385 if test ia64 = "$host_cpu"; then 7386 symcode='[ABCDEGRST]' 7387 fi 7388 ;; 7389irix* | nonstopux*) 7390 symcode='[BCDEGRST]' 7391 ;; 7392osf*) 7393 symcode='[BCDEGQRST]' 7394 ;; 7395solaris*) 7396 symcode='[BDRT]' 7397 ;; 7398sco3.2v5*) 7399 symcode='[DT]' 7400 ;; 7401sysv4.2uw2*) 7402 symcode='[DT]' 7403 ;; 7404sysv5* | sco5v6* | unixware* | OpenUNIX*) 7405 symcode='[ABDT]' 7406 ;; 7407sysv4) 7408 symcode='[DFNSTU]' 7409 ;; 7410esac 7411 7412# If we're using GNU nm, then use its standard symbol codes. 7413case `$NM -V 2>&1` in 7414*GNU* | *'with BFD'*) 7415 symcode='[ABCDGIRSTW]' ;; 7416esac 7417 7418if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7419 # Gets list of data symbols to import. 7420 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7421 # Adjust the below global symbol transforms to fixup imported variables. 7422 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7423 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7424 lt_c_name_lib_hook="\ 7425 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7426 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7427else 7428 # Disable hooks by default. 7429 lt_cv_sys_global_symbol_to_import= 7430 lt_cdecl_hook= 7431 lt_c_name_hook= 7432 lt_c_name_lib_hook= 7433fi 7434 7435# Transform an extracted symbol line into a proper C declaration. 7436# Some systems (esp. on ia64) link data and code symbols differently, 7437# so use this general approach. 7438lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7439$lt_cdecl_hook\ 7440" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7441" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7442 7443# Transform an extracted symbol line into symbol name and symbol address 7444lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7445$lt_c_name_hook\ 7446" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7447" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7448 7449# Transform an extracted symbol line into symbol name with lib prefix and 7450# symbol address. 7451lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7452$lt_c_name_lib_hook\ 7453" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7454" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7455" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7456 7457# Handle CRLF in mingw tool chain 7458opt_cr= 7459case $build_os in 7460mingw*) 7461 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7462 ;; 7463esac 7464 7465# Try without a prefix underscore, then with it. 7466for ac_symprfx in "" "_"; do 7467 7468 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7469 symxfrm="\\1 $ac_symprfx\\2 \\2" 7470 7471 # Write the raw and C identifiers. 7472 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7473 # Fake it for dumpbin and say T for any non-static function, 7474 # D for any global variable and I for any imported variable. 7475 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7476 # which start with @ or ?. 7477 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7478" {last_section=section; section=\$ 3};"\ 7479" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7480" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7481" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7482" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7483" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7484" \$ 0!~/External *\|/{next};"\ 7485" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7486" {if(hide[section]) next};"\ 7487" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7488" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7489" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7490" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7491" ' prfx=^$ac_symprfx" 7492 else 7493 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7494 fi 7495 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7496 7497 # Check to see that the pipe works correctly. 7498 pipe_works=no 7499 7500 rm -f conftest* 7501 cat > conftest.$ac_ext <<_LT_EOF 7502#ifdef __cplusplus 7503extern "C" { 7504#endif 7505char nm_test_var; 7506void nm_test_func(void); 7507void nm_test_func(void){} 7508#ifdef __cplusplus 7509} 7510#endif 7511int main(){nm_test_var='a';nm_test_func();return(0);} 7512_LT_EOF 7513 7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7515 (eval $ac_compile) 2>&5 7516 ac_status=$? 7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7518 test $ac_status = 0; }; then 7519 # Now try to grab the symbols. 7520 nlist=conftest.nm 7521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7522 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7523 ac_status=$? 7524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7525 test $ac_status = 0; } && test -s "$nlist"; then 7526 # Try sorting and uniquifying the output. 7527 if sort "$nlist" | uniq > "$nlist"T; then 7528 mv -f "$nlist"T "$nlist" 7529 else 7530 rm -f "$nlist"T 7531 fi 7532 7533 # Make sure that we snagged all the symbols we need. 7534 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7535 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7536 cat <<_LT_EOF > conftest.$ac_ext 7537/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7538#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7539/* DATA imports from DLLs on WIN32 can't be const, because runtime 7540 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7541# define LT_DLSYM_CONST 7542#elif defined __osf__ 7543/* This system does not cope well with relocations in const data. */ 7544# define LT_DLSYM_CONST 7545#else 7546# define LT_DLSYM_CONST const 7547#endif 7548 7549#ifdef __cplusplus 7550extern "C" { 7551#endif 7552 7553_LT_EOF 7554 # Now generate the symbol file. 7555 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7556 7557 cat <<_LT_EOF >> conftest.$ac_ext 7558 7559/* The mapping between symbol names and symbols. */ 7560LT_DLSYM_CONST struct { 7561 const char *name; 7562 void *address; 7563} 7564lt__PROGRAM__LTX_preloaded_symbols[] = 7565{ 7566 { "@PROGRAM@", (void *) 0 }, 7567_LT_EOF 7568 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7569 cat <<\_LT_EOF >> conftest.$ac_ext 7570 {0, (void *) 0} 7571}; 7572 7573/* This works around a problem in FreeBSD linker */ 7574#ifdef FREEBSD_WORKAROUND 7575static const void *lt_preloaded_setup() { 7576 return lt__PROGRAM__LTX_preloaded_symbols; 7577} 7578#endif 7579 7580#ifdef __cplusplus 7581} 7582#endif 7583_LT_EOF 7584 # Now try linking the two files. 7585 mv conftest.$ac_objext conftstm.$ac_objext 7586 lt_globsym_save_LIBS=$LIBS 7587 lt_globsym_save_CFLAGS=$CFLAGS 7588 LIBS=conftstm.$ac_objext 7589 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7591 (eval $ac_link) 2>&5 7592 ac_status=$? 7593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7594 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7595 pipe_works=yes 7596 fi 7597 LIBS=$lt_globsym_save_LIBS 7598 CFLAGS=$lt_globsym_save_CFLAGS 7599 else 7600 echo "cannot find nm_test_func in $nlist" >&5 7601 fi 7602 else 7603 echo "cannot find nm_test_var in $nlist" >&5 7604 fi 7605 else 7606 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7607 fi 7608 else 7609 echo "$progname: failed program was:" >&5 7610 cat conftest.$ac_ext >&5 7611 fi 7612 rm -rf conftest* conftst* 7613 7614 # Do not use the global_symbol_pipe unless it works. 7615 if test yes = "$pipe_works"; then 7616 break 7617 else 7618 lt_cv_sys_global_symbol_pipe= 7619 fi 7620done 7621 7622fi 7623 7624if test -z "$lt_cv_sys_global_symbol_pipe"; then 7625 lt_cv_sys_global_symbol_to_cdecl= 7626fi 7627if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7629$as_echo "failed" >&6; } 7630else 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7632$as_echo "ok" >&6; } 7633fi 7634 7635# Response file support. 7636if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7637 nm_file_list_spec='@' 7638elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7639 nm_file_list_spec='@' 7640fi 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7679$as_echo_n "checking for sysroot... " >&6; } 7680 7681# Check whether --with-sysroot was given. 7682if test "${with_sysroot+set}" = set; then : 7683 withval=$with_sysroot; 7684else 7685 with_sysroot=no 7686fi 7687 7688 7689lt_sysroot= 7690case $with_sysroot in #( 7691 yes) 7692 if test yes = "$GCC"; then 7693 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7694 fi 7695 ;; #( 7696 /*) 7697 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7698 ;; #( 7699 no|'') 7700 ;; #( 7701 *) 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7703$as_echo "$with_sysroot" >&6; } 7704 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7705 ;; 7706esac 7707 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7709$as_echo "${lt_sysroot:-no}" >&6; } 7710 7711 7712 7713 7714 7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7716$as_echo_n "checking for a working dd... " >&6; } 7717if ${ac_cv_path_lt_DD+:} false; then : 7718 $as_echo_n "(cached) " >&6 7719else 7720 printf 0123456789abcdef0123456789abcdef >conftest.i 7721cat conftest.i conftest.i >conftest2.i 7722: ${lt_DD:=$DD} 7723if test -z "$lt_DD"; then 7724 ac_path_lt_DD_found=false 7725 # Loop through the user's path and test for each of PROGNAME-LIST 7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7727for as_dir in $PATH 7728do 7729 IFS=$as_save_IFS 7730 test -z "$as_dir" && as_dir=. 7731 for ac_prog in dd; do 7732 for ac_exec_ext in '' $ac_executable_extensions; do 7733 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7734 as_fn_executable_p "$ac_path_lt_DD" || continue 7735if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7736 cmp -s conftest.i conftest.out \ 7737 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7738fi 7739 $ac_path_lt_DD_found && break 3 7740 done 7741 done 7742 done 7743IFS=$as_save_IFS 7744 if test -z "$ac_cv_path_lt_DD"; then 7745 : 7746 fi 7747else 7748 ac_cv_path_lt_DD=$lt_DD 7749fi 7750 7751rm -f conftest.i conftest2.i conftest.out 7752fi 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7754$as_echo "$ac_cv_path_lt_DD" >&6; } 7755 7756 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7758$as_echo_n "checking how to truncate binary pipes... " >&6; } 7759if ${lt_cv_truncate_bin+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 printf 0123456789abcdef0123456789abcdef >conftest.i 7763cat conftest.i conftest.i >conftest2.i 7764lt_cv_truncate_bin= 7765if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7766 cmp -s conftest.i conftest.out \ 7767 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7768fi 7769rm -f conftest.i conftest2.i conftest.out 7770test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7771fi 7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7773$as_echo "$lt_cv_truncate_bin" >&6; } 7774 7775 7776 7777 7778 7779 7780 7781# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7782func_cc_basename () 7783{ 7784 for cc_temp in $*""; do 7785 case $cc_temp in 7786 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7787 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7788 \-*) ;; 7789 *) break;; 7790 esac 7791 done 7792 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7793} 7794 7795# Check whether --enable-libtool-lock was given. 7796if test "${enable_libtool_lock+set}" = set; then : 7797 enableval=$enable_libtool_lock; 7798fi 7799 7800test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7801 7802# Some flags need to be propagated to the compiler or linker for good 7803# libtool support. 7804case $host in 7805ia64-*-hpux*) 7806 # Find out what ABI is being produced by ac_compile, and set mode 7807 # options accordingly. 7808 echo 'int i;' > conftest.$ac_ext 7809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7810 (eval $ac_compile) 2>&5 7811 ac_status=$? 7812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7813 test $ac_status = 0; }; then 7814 case `/usr/bin/file conftest.$ac_objext` in 7815 *ELF-32*) 7816 HPUX_IA64_MODE=32 7817 ;; 7818 *ELF-64*) 7819 HPUX_IA64_MODE=64 7820 ;; 7821 esac 7822 fi 7823 rm -rf conftest* 7824 ;; 7825*-*-irix6*) 7826 # Find out what ABI is being produced by ac_compile, and set linker 7827 # options accordingly. 7828 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7830 (eval $ac_compile) 2>&5 7831 ac_status=$? 7832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7833 test $ac_status = 0; }; then 7834 if test yes = "$lt_cv_prog_gnu_ld"; then 7835 case `/usr/bin/file conftest.$ac_objext` in 7836 *32-bit*) 7837 LD="${LD-ld} -melf32bsmip" 7838 ;; 7839 *N32*) 7840 LD="${LD-ld} -melf32bmipn32" 7841 ;; 7842 *64-bit*) 7843 LD="${LD-ld} -melf64bmip" 7844 ;; 7845 esac 7846 else 7847 case `/usr/bin/file conftest.$ac_objext` in 7848 *32-bit*) 7849 LD="${LD-ld} -32" 7850 ;; 7851 *N32*) 7852 LD="${LD-ld} -n32" 7853 ;; 7854 *64-bit*) 7855 LD="${LD-ld} -64" 7856 ;; 7857 esac 7858 fi 7859 fi 7860 rm -rf conftest* 7861 ;; 7862 7863mips64*-*linux*) 7864 # Find out what ABI is being produced by ac_compile, and set linker 7865 # options accordingly. 7866 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7868 (eval $ac_compile) 2>&5 7869 ac_status=$? 7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7871 test $ac_status = 0; }; then 7872 emul=elf 7873 case `/usr/bin/file conftest.$ac_objext` in 7874 *32-bit*) 7875 emul="${emul}32" 7876 ;; 7877 *64-bit*) 7878 emul="${emul}64" 7879 ;; 7880 esac 7881 case `/usr/bin/file conftest.$ac_objext` in 7882 *MSB*) 7883 emul="${emul}btsmip" 7884 ;; 7885 *LSB*) 7886 emul="${emul}ltsmip" 7887 ;; 7888 esac 7889 case `/usr/bin/file conftest.$ac_objext` in 7890 *N32*) 7891 emul="${emul}n32" 7892 ;; 7893 esac 7894 LD="${LD-ld} -m $emul" 7895 fi 7896 rm -rf conftest* 7897 ;; 7898 7899x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7900s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7901 # Find out what ABI is being produced by ac_compile, and set linker 7902 # options accordingly. Note that the listed cases only cover the 7903 # situations where additional linker options are needed (such as when 7904 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7905 # vice versa); the common cases where no linker options are needed do 7906 # not appear in the list. 7907 echo 'int i;' > conftest.$ac_ext 7908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7909 (eval $ac_compile) 2>&5 7910 ac_status=$? 7911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7912 test $ac_status = 0; }; then 7913 case `/usr/bin/file conftest.o` in 7914 *32-bit*) 7915 case $host in 7916 x86_64-*kfreebsd*-gnu) 7917 LD="${LD-ld} -m elf_i386_fbsd" 7918 ;; 7919 x86_64-*linux*) 7920 case `/usr/bin/file conftest.o` in 7921 *x86-64*) 7922 LD="${LD-ld} -m elf32_x86_64" 7923 ;; 7924 *) 7925 LD="${LD-ld} -m elf_i386" 7926 ;; 7927 esac 7928 ;; 7929 powerpc64le-*linux*) 7930 LD="${LD-ld} -m elf32lppclinux" 7931 ;; 7932 powerpc64-*linux*) 7933 LD="${LD-ld} -m elf32ppclinux" 7934 ;; 7935 s390x-*linux*) 7936 LD="${LD-ld} -m elf_s390" 7937 ;; 7938 sparc64-*linux*) 7939 LD="${LD-ld} -m elf32_sparc" 7940 ;; 7941 esac 7942 ;; 7943 *64-bit*) 7944 case $host in 7945 x86_64-*kfreebsd*-gnu) 7946 LD="${LD-ld} -m elf_x86_64_fbsd" 7947 ;; 7948 x86_64-*linux*) 7949 LD="${LD-ld} -m elf_x86_64" 7950 ;; 7951 powerpcle-*linux*) 7952 LD="${LD-ld} -m elf64lppc" 7953 ;; 7954 powerpc-*linux*) 7955 LD="${LD-ld} -m elf64ppc" 7956 ;; 7957 s390*-*linux*|s390*-*tpf*) 7958 LD="${LD-ld} -m elf64_s390" 7959 ;; 7960 sparc*-*linux*) 7961 LD="${LD-ld} -m elf64_sparc" 7962 ;; 7963 esac 7964 ;; 7965 esac 7966 fi 7967 rm -rf conftest* 7968 ;; 7969 7970*-*-sco3.2v5*) 7971 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7972 SAVE_CFLAGS=$CFLAGS 7973 CFLAGS="$CFLAGS -belf" 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7975$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7976if ${lt_cv_cc_needs_belf+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 ac_ext=c 7980ac_cpp='$CPP $CPPFLAGS' 7981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7983ac_compiler_gnu=$ac_cv_c_compiler_gnu 7984 7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7986/* end confdefs.h. */ 7987 7988int 7989main () 7990{ 7991 7992 ; 7993 return 0; 7994} 7995_ACEOF 7996if ac_fn_c_try_link "$LINENO"; then : 7997 lt_cv_cc_needs_belf=yes 7998else 7999 lt_cv_cc_needs_belf=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext \ 8002 conftest$ac_exeext conftest.$ac_ext 8003 ac_ext=c 8004ac_cpp='$CPP $CPPFLAGS' 8005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8007ac_compiler_gnu=$ac_cv_c_compiler_gnu 8008 8009fi 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8011$as_echo "$lt_cv_cc_needs_belf" >&6; } 8012 if test yes != "$lt_cv_cc_needs_belf"; then 8013 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8014 CFLAGS=$SAVE_CFLAGS 8015 fi 8016 ;; 8017*-*solaris*) 8018 # Find out what ABI is being produced by ac_compile, and set linker 8019 # options accordingly. 8020 echo 'int i;' > conftest.$ac_ext 8021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8022 (eval $ac_compile) 2>&5 8023 ac_status=$? 8024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8025 test $ac_status = 0; }; then 8026 case `/usr/bin/file conftest.o` in 8027 *64-bit*) 8028 case $lt_cv_prog_gnu_ld in 8029 yes*) 8030 case $host in 8031 i?86-*-solaris*|x86_64-*-solaris*) 8032 LD="${LD-ld} -m elf_x86_64" 8033 ;; 8034 sparc*-*-solaris*) 8035 LD="${LD-ld} -m elf64_sparc" 8036 ;; 8037 esac 8038 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8039 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8040 LD=${LD-ld}_sol2 8041 fi 8042 ;; 8043 *) 8044 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8045 LD="${LD-ld} -64" 8046 fi 8047 ;; 8048 esac 8049 ;; 8050 esac 8051 fi 8052 rm -rf conftest* 8053 ;; 8054esac 8055 8056need_locks=$enable_libtool_lock 8057 8058if test -n "$ac_tool_prefix"; then 8059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8060set dummy ${ac_tool_prefix}mt; ac_word=$2 8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8062$as_echo_n "checking for $ac_word... " >&6; } 8063if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 if test -n "$MANIFEST_TOOL"; then 8067 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8068else 8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8070for as_dir in $PATH 8071do 8072 IFS=$as_save_IFS 8073 test -z "$as_dir" && as_dir=. 8074 for ac_exec_ext in '' $ac_executable_extensions; do 8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8076 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8078 break 2 8079 fi 8080done 8081 done 8082IFS=$as_save_IFS 8083 8084fi 8085fi 8086MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8087if test -n "$MANIFEST_TOOL"; then 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8089$as_echo "$MANIFEST_TOOL" >&6; } 8090else 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8092$as_echo "no" >&6; } 8093fi 8094 8095 8096fi 8097if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8098 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8099 # Extract the first word of "mt", so it can be a program name with args. 8100set dummy mt; ac_word=$2 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8102$as_echo_n "checking for $ac_word... " >&6; } 8103if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 if test -n "$ac_ct_MANIFEST_TOOL"; then 8107 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8108else 8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8110for as_dir in $PATH 8111do 8112 IFS=$as_save_IFS 8113 test -z "$as_dir" && as_dir=. 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8116 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120done 8121 done 8122IFS=$as_save_IFS 8123 8124fi 8125fi 8126ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8127if test -n "$ac_ct_MANIFEST_TOOL"; then 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8129$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8130else 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8132$as_echo "no" >&6; } 8133fi 8134 8135 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8136 MANIFEST_TOOL=":" 8137 else 8138 case $cross_compiling:$ac_tool_warned in 8139yes:) 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8142ac_tool_warned=yes ;; 8143esac 8144 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8145 fi 8146else 8147 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8148fi 8149 8150test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8152$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8153if ${lt_cv_path_mainfest_tool+:} false; then : 8154 $as_echo_n "(cached) " >&6 8155else 8156 lt_cv_path_mainfest_tool=no 8157 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8158 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8159 cat conftest.err >&5 8160 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8161 lt_cv_path_mainfest_tool=yes 8162 fi 8163 rm -f conftest* 8164fi 8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8166$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8167if test yes != "$lt_cv_path_mainfest_tool"; then 8168 MANIFEST_TOOL=: 8169fi 8170 8171 8172 8173 8174 8175 8176 case $host_os in 8177 rhapsody* | darwin*) 8178 if test -n "$ac_tool_prefix"; then 8179 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8180set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8182$as_echo_n "checking for $ac_word... " >&6; } 8183if ${ac_cv_prog_DSYMUTIL+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 if test -n "$DSYMUTIL"; then 8187 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8188else 8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190for as_dir in $PATH 8191do 8192 IFS=$as_save_IFS 8193 test -z "$as_dir" && as_dir=. 8194 for ac_exec_ext in '' $ac_executable_extensions; do 8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8196 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8198 break 2 8199 fi 8200done 8201 done 8202IFS=$as_save_IFS 8203 8204fi 8205fi 8206DSYMUTIL=$ac_cv_prog_DSYMUTIL 8207if test -n "$DSYMUTIL"; then 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8209$as_echo "$DSYMUTIL" >&6; } 8210else 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8212$as_echo "no" >&6; } 8213fi 8214 8215 8216fi 8217if test -z "$ac_cv_prog_DSYMUTIL"; then 8218 ac_ct_DSYMUTIL=$DSYMUTIL 8219 # Extract the first word of "dsymutil", so it can be a program name with args. 8220set dummy dsymutil; ac_word=$2 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8222$as_echo_n "checking for $ac_word... " >&6; } 8223if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8224 $as_echo_n "(cached) " >&6 8225else 8226 if test -n "$ac_ct_DSYMUTIL"; then 8227 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8228else 8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8230for as_dir in $PATH 8231do 8232 IFS=$as_save_IFS 8233 test -z "$as_dir" && as_dir=. 8234 for ac_exec_ext in '' $ac_executable_extensions; do 8235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8236 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8238 break 2 8239 fi 8240done 8241 done 8242IFS=$as_save_IFS 8243 8244fi 8245fi 8246ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8247if test -n "$ac_ct_DSYMUTIL"; then 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8249$as_echo "$ac_ct_DSYMUTIL" >&6; } 8250else 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8252$as_echo "no" >&6; } 8253fi 8254 8255 if test "x$ac_ct_DSYMUTIL" = x; then 8256 DSYMUTIL=":" 8257 else 8258 case $cross_compiling:$ac_tool_warned in 8259yes:) 8260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8262ac_tool_warned=yes ;; 8263esac 8264 DSYMUTIL=$ac_ct_DSYMUTIL 8265 fi 8266else 8267 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8268fi 8269 8270 if test -n "$ac_tool_prefix"; then 8271 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8272set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8274$as_echo_n "checking for $ac_word... " >&6; } 8275if ${ac_cv_prog_NMEDIT+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 if test -n "$NMEDIT"; then 8279 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8280else 8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8282for as_dir in $PATH 8283do 8284 IFS=$as_save_IFS 8285 test -z "$as_dir" && as_dir=. 8286 for ac_exec_ext in '' $ac_executable_extensions; do 8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8288 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8290 break 2 8291 fi 8292done 8293 done 8294IFS=$as_save_IFS 8295 8296fi 8297fi 8298NMEDIT=$ac_cv_prog_NMEDIT 8299if test -n "$NMEDIT"; then 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8301$as_echo "$NMEDIT" >&6; } 8302else 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8304$as_echo "no" >&6; } 8305fi 8306 8307 8308fi 8309if test -z "$ac_cv_prog_NMEDIT"; then 8310 ac_ct_NMEDIT=$NMEDIT 8311 # Extract the first word of "nmedit", so it can be a program name with args. 8312set dummy nmedit; ac_word=$2 8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8314$as_echo_n "checking for $ac_word... " >&6; } 8315if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8316 $as_echo_n "(cached) " >&6 8317else 8318 if test -n "$ac_ct_NMEDIT"; then 8319 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8320else 8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8322for as_dir in $PATH 8323do 8324 IFS=$as_save_IFS 8325 test -z "$as_dir" && as_dir=. 8326 for ac_exec_ext in '' $ac_executable_extensions; do 8327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8328 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8330 break 2 8331 fi 8332done 8333 done 8334IFS=$as_save_IFS 8335 8336fi 8337fi 8338ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8339if test -n "$ac_ct_NMEDIT"; then 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8341$as_echo "$ac_ct_NMEDIT" >&6; } 8342else 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8344$as_echo "no" >&6; } 8345fi 8346 8347 if test "x$ac_ct_NMEDIT" = x; then 8348 NMEDIT=":" 8349 else 8350 case $cross_compiling:$ac_tool_warned in 8351yes:) 8352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8354ac_tool_warned=yes ;; 8355esac 8356 NMEDIT=$ac_ct_NMEDIT 8357 fi 8358else 8359 NMEDIT="$ac_cv_prog_NMEDIT" 8360fi 8361 8362 if test -n "$ac_tool_prefix"; then 8363 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8364set dummy ${ac_tool_prefix}lipo; ac_word=$2 8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8366$as_echo_n "checking for $ac_word... " >&6; } 8367if ${ac_cv_prog_LIPO+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369else 8370 if test -n "$LIPO"; then 8371 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8372else 8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8374for as_dir in $PATH 8375do 8376 IFS=$as_save_IFS 8377 test -z "$as_dir" && as_dir=. 8378 for ac_exec_ext in '' $ac_executable_extensions; do 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8380 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8382 break 2 8383 fi 8384done 8385 done 8386IFS=$as_save_IFS 8387 8388fi 8389fi 8390LIPO=$ac_cv_prog_LIPO 8391if test -n "$LIPO"; then 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8393$as_echo "$LIPO" >&6; } 8394else 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8396$as_echo "no" >&6; } 8397fi 8398 8399 8400fi 8401if test -z "$ac_cv_prog_LIPO"; then 8402 ac_ct_LIPO=$LIPO 8403 # Extract the first word of "lipo", so it can be a program name with args. 8404set dummy lipo; ac_word=$2 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8406$as_echo_n "checking for $ac_word... " >&6; } 8407if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409else 8410 if test -n "$ac_ct_LIPO"; then 8411 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8412else 8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8414for as_dir in $PATH 8415do 8416 IFS=$as_save_IFS 8417 test -z "$as_dir" && as_dir=. 8418 for ac_exec_ext in '' $ac_executable_extensions; do 8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8420 ac_cv_prog_ac_ct_LIPO="lipo" 8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8422 break 2 8423 fi 8424done 8425 done 8426IFS=$as_save_IFS 8427 8428fi 8429fi 8430ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8431if test -n "$ac_ct_LIPO"; then 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8433$as_echo "$ac_ct_LIPO" >&6; } 8434else 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8436$as_echo "no" >&6; } 8437fi 8438 8439 if test "x$ac_ct_LIPO" = x; then 8440 LIPO=":" 8441 else 8442 case $cross_compiling:$ac_tool_warned in 8443yes:) 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8446ac_tool_warned=yes ;; 8447esac 8448 LIPO=$ac_ct_LIPO 8449 fi 8450else 8451 LIPO="$ac_cv_prog_LIPO" 8452fi 8453 8454 if test -n "$ac_tool_prefix"; then 8455 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8456set dummy ${ac_tool_prefix}otool; ac_word=$2 8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8458$as_echo_n "checking for $ac_word... " >&6; } 8459if ${ac_cv_prog_OTOOL+:} false; then : 8460 $as_echo_n "(cached) " >&6 8461else 8462 if test -n "$OTOOL"; then 8463 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8464else 8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8466for as_dir in $PATH 8467do 8468 IFS=$as_save_IFS 8469 test -z "$as_dir" && as_dir=. 8470 for ac_exec_ext in '' $ac_executable_extensions; do 8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8472 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8474 break 2 8475 fi 8476done 8477 done 8478IFS=$as_save_IFS 8479 8480fi 8481fi 8482OTOOL=$ac_cv_prog_OTOOL 8483if test -n "$OTOOL"; then 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8485$as_echo "$OTOOL" >&6; } 8486else 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8488$as_echo "no" >&6; } 8489fi 8490 8491 8492fi 8493if test -z "$ac_cv_prog_OTOOL"; then 8494 ac_ct_OTOOL=$OTOOL 8495 # Extract the first word of "otool", so it can be a program name with args. 8496set dummy otool; ac_word=$2 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8498$as_echo_n "checking for $ac_word... " >&6; } 8499if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8500 $as_echo_n "(cached) " >&6 8501else 8502 if test -n "$ac_ct_OTOOL"; then 8503 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8504else 8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8506for as_dir in $PATH 8507do 8508 IFS=$as_save_IFS 8509 test -z "$as_dir" && as_dir=. 8510 for ac_exec_ext in '' $ac_executable_extensions; do 8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8512 ac_cv_prog_ac_ct_OTOOL="otool" 8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8514 break 2 8515 fi 8516done 8517 done 8518IFS=$as_save_IFS 8519 8520fi 8521fi 8522ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8523if test -n "$ac_ct_OTOOL"; then 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8525$as_echo "$ac_ct_OTOOL" >&6; } 8526else 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8528$as_echo "no" >&6; } 8529fi 8530 8531 if test "x$ac_ct_OTOOL" = x; then 8532 OTOOL=":" 8533 else 8534 case $cross_compiling:$ac_tool_warned in 8535yes:) 8536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8538ac_tool_warned=yes ;; 8539esac 8540 OTOOL=$ac_ct_OTOOL 8541 fi 8542else 8543 OTOOL="$ac_cv_prog_OTOOL" 8544fi 8545 8546 if test -n "$ac_tool_prefix"; then 8547 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8548set dummy ${ac_tool_prefix}otool64; ac_word=$2 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8550$as_echo_n "checking for $ac_word... " >&6; } 8551if ${ac_cv_prog_OTOOL64+:} false; then : 8552 $as_echo_n "(cached) " >&6 8553else 8554 if test -n "$OTOOL64"; then 8555 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8556else 8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8558for as_dir in $PATH 8559do 8560 IFS=$as_save_IFS 8561 test -z "$as_dir" && as_dir=. 8562 for ac_exec_ext in '' $ac_executable_extensions; do 8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8564 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8566 break 2 8567 fi 8568done 8569 done 8570IFS=$as_save_IFS 8571 8572fi 8573fi 8574OTOOL64=$ac_cv_prog_OTOOL64 8575if test -n "$OTOOL64"; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8577$as_echo "$OTOOL64" >&6; } 8578else 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8580$as_echo "no" >&6; } 8581fi 8582 8583 8584fi 8585if test -z "$ac_cv_prog_OTOOL64"; then 8586 ac_ct_OTOOL64=$OTOOL64 8587 # Extract the first word of "otool64", so it can be a program name with args. 8588set dummy otool64; ac_word=$2 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8590$as_echo_n "checking for $ac_word... " >&6; } 8591if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 if test -n "$ac_ct_OTOOL64"; then 8595 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8596else 8597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8598for as_dir in $PATH 8599do 8600 IFS=$as_save_IFS 8601 test -z "$as_dir" && as_dir=. 8602 for ac_exec_ext in '' $ac_executable_extensions; do 8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8604 ac_cv_prog_ac_ct_OTOOL64="otool64" 8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8606 break 2 8607 fi 8608done 8609 done 8610IFS=$as_save_IFS 8611 8612fi 8613fi 8614ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8615if test -n "$ac_ct_OTOOL64"; then 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8617$as_echo "$ac_ct_OTOOL64" >&6; } 8618else 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8620$as_echo "no" >&6; } 8621fi 8622 8623 if test "x$ac_ct_OTOOL64" = x; then 8624 OTOOL64=":" 8625 else 8626 case $cross_compiling:$ac_tool_warned in 8627yes:) 8628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8630ac_tool_warned=yes ;; 8631esac 8632 OTOOL64=$ac_ct_OTOOL64 8633 fi 8634else 8635 OTOOL64="$ac_cv_prog_OTOOL64" 8636fi 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8665$as_echo_n "checking for -single_module linker flag... " >&6; } 8666if ${lt_cv_apple_cc_single_mod+:} false; then : 8667 $as_echo_n "(cached) " >&6 8668else 8669 lt_cv_apple_cc_single_mod=no 8670 if test -z "$LT_MULTI_MODULE"; then 8671 # By default we will add the -single_module flag. You can override 8672 # by either setting the environment variable LT_MULTI_MODULE 8673 # non-empty at configure time, or by adding -multi_module to the 8674 # link flags. 8675 rm -rf libconftest.dylib* 8676 echo "int foo(void){return 1;}" > conftest.c 8677 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8678-dynamiclib -Wl,-single_module conftest.c" >&5 8679 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8680 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8681 _lt_result=$? 8682 # If there is a non-empty error log, and "single_module" 8683 # appears in it, assume the flag caused a linker warning 8684 if test -s conftest.err && $GREP single_module conftest.err; then 8685 cat conftest.err >&5 8686 # Otherwise, if the output was created with a 0 exit code from 8687 # the compiler, it worked. 8688 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8689 lt_cv_apple_cc_single_mod=yes 8690 else 8691 cat conftest.err >&5 8692 fi 8693 rm -rf libconftest.dylib* 8694 rm -f conftest.* 8695 fi 8696fi 8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8698$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8699 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8701$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8702if ${lt_cv_ld_exported_symbols_list+:} false; then : 8703 $as_echo_n "(cached) " >&6 8704else 8705 lt_cv_ld_exported_symbols_list=no 8706 save_LDFLAGS=$LDFLAGS 8707 echo "_main" > conftest.sym 8708 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710/* end confdefs.h. */ 8711 8712int 8713main () 8714{ 8715 8716 ; 8717 return 0; 8718} 8719_ACEOF 8720if ac_fn_c_try_link "$LINENO"; then : 8721 lt_cv_ld_exported_symbols_list=yes 8722else 8723 lt_cv_ld_exported_symbols_list=no 8724fi 8725rm -f core conftest.err conftest.$ac_objext \ 8726 conftest$ac_exeext conftest.$ac_ext 8727 LDFLAGS=$save_LDFLAGS 8728 8729fi 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8731$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8732 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8734$as_echo_n "checking for -force_load linker flag... " >&6; } 8735if ${lt_cv_ld_force_load+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 lt_cv_ld_force_load=no 8739 cat > conftest.c << _LT_EOF 8740int forced_loaded() { return 2;} 8741_LT_EOF 8742 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8743 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8744 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8745 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8746 echo "$RANLIB libconftest.a" >&5 8747 $RANLIB libconftest.a 2>&5 8748 cat > conftest.c << _LT_EOF 8749int main() { return 0;} 8750_LT_EOF 8751 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8752 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8753 _lt_result=$? 8754 if test -s conftest.err && $GREP force_load conftest.err; then 8755 cat conftest.err >&5 8756 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8757 lt_cv_ld_force_load=yes 8758 else 8759 cat conftest.err >&5 8760 fi 8761 rm -f conftest.err libconftest.a conftest conftest.c 8762 rm -rf conftest.dSYM 8763 8764fi 8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8766$as_echo "$lt_cv_ld_force_load" >&6; } 8767 case $host_os in 8768 rhapsody* | darwin1.[012]) 8769 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8770 darwin1.*) 8771 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8772 darwin*) # darwin 5.x on 8773 # if running on 10.5 or later, the deployment target defaults 8774 # to the OS version, if on x86, and 10.4, the deployment 8775 # target defaults to 10.4. Don't you love it? 8776 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8777 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8778 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8779 10.[012][,.]*) 8780 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8781 10.*) 8782 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8783 esac 8784 ;; 8785 esac 8786 if test yes = "$lt_cv_apple_cc_single_mod"; then 8787 _lt_dar_single_mod='$single_module' 8788 fi 8789 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8790 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8791 else 8792 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8793 fi 8794 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8795 _lt_dsymutil='~$DSYMUTIL $lib || :' 8796 else 8797 _lt_dsymutil= 8798 fi 8799 ;; 8800 esac 8801 8802# func_munge_path_list VARIABLE PATH 8803# ----------------------------------- 8804# VARIABLE is name of variable containing _space_ separated list of 8805# directories to be munged by the contents of PATH, which is string 8806# having a format: 8807# "DIR[:DIR]:" 8808# string "DIR[ DIR]" will be prepended to VARIABLE 8809# ":DIR[:DIR]" 8810# string "DIR[ DIR]" will be appended to VARIABLE 8811# "DIRP[:DIRP]::[DIRA:]DIRA" 8812# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8813# "DIRA[ DIRA]" will be appended to VARIABLE 8814# "DIR[:DIR]" 8815# VARIABLE will be replaced by "DIR[ DIR]" 8816func_munge_path_list () 8817{ 8818 case x$2 in 8819 x) 8820 ;; 8821 *:) 8822 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8823 ;; 8824 x:*) 8825 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8826 ;; 8827 *::*) 8828 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8829 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8830 ;; 8831 *) 8832 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8833 ;; 8834 esac 8835} 8836 8837for ac_header in dlfcn.h 8838do : 8839 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8840" 8841if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8842 cat >>confdefs.h <<_ACEOF 8843#define HAVE_DLFCN_H 1 8844_ACEOF 8845 8846fi 8847 8848done 8849 8850 8851 8852 8853func_stripname_cnf () 8854{ 8855 case $2 in 8856 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8857 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8858 esac 8859} # func_stripname_cnf 8860 8861 8862 8863 8864 8865# Set options 8866 8867 8868 8869 enable_dlopen=no 8870 8871 8872 enable_win32_dll=no 8873 8874 8875 # Check whether --enable-shared was given. 8876if test "${enable_shared+set}" = set; then : 8877 enableval=$enable_shared; p=${PACKAGE-default} 8878 case $enableval in 8879 yes) enable_shared=yes ;; 8880 no) enable_shared=no ;; 8881 *) 8882 enable_shared=no 8883 # Look at the argument we got. We use all the common list separators. 8884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8885 for pkg in $enableval; do 8886 IFS=$lt_save_ifs 8887 if test "X$pkg" = "X$p"; then 8888 enable_shared=yes 8889 fi 8890 done 8891 IFS=$lt_save_ifs 8892 ;; 8893 esac 8894else 8895 enable_shared=yes 8896fi 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 # Check whether --enable-static was given. 8907if test "${enable_static+set}" = set; then : 8908 enableval=$enable_static; p=${PACKAGE-default} 8909 case $enableval in 8910 yes) enable_static=yes ;; 8911 no) enable_static=no ;; 8912 *) 8913 enable_static=no 8914 # Look at the argument we got. We use all the common list separators. 8915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8916 for pkg in $enableval; do 8917 IFS=$lt_save_ifs 8918 if test "X$pkg" = "X$p"; then 8919 enable_static=yes 8920 fi 8921 done 8922 IFS=$lt_save_ifs 8923 ;; 8924 esac 8925else 8926 enable_static=yes 8927fi 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938# Check whether --with-pic was given. 8939if test "${with_pic+set}" = set; then : 8940 withval=$with_pic; lt_p=${PACKAGE-default} 8941 case $withval in 8942 yes|no) pic_mode=$withval ;; 8943 *) 8944 pic_mode=default 8945 # Look at the argument we got. We use all the common list separators. 8946 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8947 for lt_pkg in $withval; do 8948 IFS=$lt_save_ifs 8949 if test "X$lt_pkg" = "X$lt_p"; then 8950 pic_mode=yes 8951 fi 8952 done 8953 IFS=$lt_save_ifs 8954 ;; 8955 esac 8956else 8957 pic_mode=default 8958fi 8959 8960 8961 8962 8963 8964 8965 8966 8967 # Check whether --enable-fast-install was given. 8968if test "${enable_fast_install+set}" = set; then : 8969 enableval=$enable_fast_install; p=${PACKAGE-default} 8970 case $enableval in 8971 yes) enable_fast_install=yes ;; 8972 no) enable_fast_install=no ;; 8973 *) 8974 enable_fast_install=no 8975 # Look at the argument we got. We use all the common list separators. 8976 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8977 for pkg in $enableval; do 8978 IFS=$lt_save_ifs 8979 if test "X$pkg" = "X$p"; then 8980 enable_fast_install=yes 8981 fi 8982 done 8983 IFS=$lt_save_ifs 8984 ;; 8985 esac 8986else 8987 enable_fast_install=yes 8988fi 8989 8990 8991 8992 8993 8994 8995 8996 8997 shared_archive_member_spec= 8998case $host,$enable_shared in 8999power*-*-aix[5-9]*,yes) 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9001$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9002 9003# Check whether --with-aix-soname was given. 9004if test "${with_aix_soname+set}" = set; then : 9005 withval=$with_aix_soname; case $withval in 9006 aix|svr4|both) 9007 ;; 9008 *) 9009 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9010 ;; 9011 esac 9012 lt_cv_with_aix_soname=$with_aix_soname 9013else 9014 if ${lt_cv_with_aix_soname+:} false; then : 9015 $as_echo_n "(cached) " >&6 9016else 9017 lt_cv_with_aix_soname=aix 9018fi 9019 9020 with_aix_soname=$lt_cv_with_aix_soname 9021fi 9022 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9024$as_echo "$with_aix_soname" >&6; } 9025 if test aix != "$with_aix_soname"; then 9026 # For the AIX way of multilib, we name the shared archive member 9027 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9028 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9029 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9030 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9031 if test 64 = "${OBJECT_MODE-32}"; then 9032 shared_archive_member_spec=shr_64 9033 else 9034 shared_archive_member_spec=shr 9035 fi 9036 fi 9037 ;; 9038*) 9039 with_aix_soname=aix 9040 ;; 9041esac 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052# This can be used to rebuild libtool when needed 9053LIBTOOL_DEPS=$ltmain 9054 9055# Always use our own libtool. 9056LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087test -z "$LN_S" && LN_S="ln -s" 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102if test -n "${ZSH_VERSION+set}"; then 9103 setopt NO_GLOB_SUBST 9104fi 9105 9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9107$as_echo_n "checking for objdir... " >&6; } 9108if ${lt_cv_objdir+:} false; then : 9109 $as_echo_n "(cached) " >&6 9110else 9111 rm -f .libs 2>/dev/null 9112mkdir .libs 2>/dev/null 9113if test -d .libs; then 9114 lt_cv_objdir=.libs 9115else 9116 # MS-DOS does not allow filenames that begin with a dot. 9117 lt_cv_objdir=_libs 9118fi 9119rmdir .libs 2>/dev/null 9120fi 9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9122$as_echo "$lt_cv_objdir" >&6; } 9123objdir=$lt_cv_objdir 9124 9125 9126 9127 9128 9129cat >>confdefs.h <<_ACEOF 9130#define LT_OBJDIR "$lt_cv_objdir/" 9131_ACEOF 9132 9133 9134 9135 9136case $host_os in 9137aix3*) 9138 # AIX sometimes has problems with the GCC collect2 program. For some 9139 # reason, if we set the COLLECT_NAMES environment variable, the problems 9140 # vanish in a puff of smoke. 9141 if test set != "${COLLECT_NAMES+set}"; then 9142 COLLECT_NAMES= 9143 export COLLECT_NAMES 9144 fi 9145 ;; 9146esac 9147 9148# Global variables: 9149ofile=libtool 9150can_build_shared=yes 9151 9152# All known linkers require a '.a' archive for static linking (except MSVC and 9153# ICC, which need '.lib'). 9154libext=a 9155 9156with_gnu_ld=$lt_cv_prog_gnu_ld 9157 9158old_CC=$CC 9159old_CFLAGS=$CFLAGS 9160 9161# Set sane defaults for various variables 9162test -z "$CC" && CC=cc 9163test -z "$LTCC" && LTCC=$CC 9164test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9165test -z "$LD" && LD=ld 9166test -z "$ac_objext" && ac_objext=o 9167 9168func_cc_basename $compiler 9169cc_basename=$func_cc_basename_result 9170 9171 9172# Only perform the check for file, if the check method requires it 9173test -z "$MAGIC_CMD" && MAGIC_CMD=file 9174case $deplibs_check_method in 9175file_magic*) 9176 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9178$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9179if ${lt_cv_path_MAGIC_CMD+:} false; then : 9180 $as_echo_n "(cached) " >&6 9181else 9182 case $MAGIC_CMD in 9183[\\/*] | ?:[\\/]*) 9184 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9185 ;; 9186*) 9187 lt_save_MAGIC_CMD=$MAGIC_CMD 9188 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9190 for ac_dir in $ac_dummy; do 9191 IFS=$lt_save_ifs 9192 test -z "$ac_dir" && ac_dir=. 9193 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9194 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9195 if test -n "$file_magic_test_file"; then 9196 case $deplibs_check_method in 9197 "file_magic "*) 9198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9199 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9201 $EGREP "$file_magic_regex" > /dev/null; then 9202 : 9203 else 9204 cat <<_LT_EOF 1>&2 9205 9206*** Warning: the command libtool uses to detect shared libraries, 9207*** $file_magic_cmd, produces output that libtool cannot recognize. 9208*** The result is that libtool may fail to recognize shared libraries 9209*** as such. This will affect the creation of libtool libraries that 9210*** depend on shared libraries, but programs linked with such libtool 9211*** libraries will work regardless of this problem. Nevertheless, you 9212*** may want to report the problem to your system manager and/or to 9213*** bug-libtool@gnu.org 9214 9215_LT_EOF 9216 fi ;; 9217 esac 9218 fi 9219 break 9220 fi 9221 done 9222 IFS=$lt_save_ifs 9223 MAGIC_CMD=$lt_save_MAGIC_CMD 9224 ;; 9225esac 9226fi 9227 9228MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9229if test -n "$MAGIC_CMD"; then 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9231$as_echo "$MAGIC_CMD" >&6; } 9232else 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9234$as_echo "no" >&6; } 9235fi 9236 9237 9238 9239 9240 9241if test -z "$lt_cv_path_MAGIC_CMD"; then 9242 if test -n "$ac_tool_prefix"; then 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9244$as_echo_n "checking for file... " >&6; } 9245if ${lt_cv_path_MAGIC_CMD+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 case $MAGIC_CMD in 9249[\\/*] | ?:[\\/]*) 9250 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9251 ;; 9252*) 9253 lt_save_MAGIC_CMD=$MAGIC_CMD 9254 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9256 for ac_dir in $ac_dummy; do 9257 IFS=$lt_save_ifs 9258 test -z "$ac_dir" && ac_dir=. 9259 if test -f "$ac_dir/file"; then 9260 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9261 if test -n "$file_magic_test_file"; then 9262 case $deplibs_check_method in 9263 "file_magic "*) 9264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9267 $EGREP "$file_magic_regex" > /dev/null; then 9268 : 9269 else 9270 cat <<_LT_EOF 1>&2 9271 9272*** Warning: the command libtool uses to detect shared libraries, 9273*** $file_magic_cmd, produces output that libtool cannot recognize. 9274*** The result is that libtool may fail to recognize shared libraries 9275*** as such. This will affect the creation of libtool libraries that 9276*** depend on shared libraries, but programs linked with such libtool 9277*** libraries will work regardless of this problem. Nevertheless, you 9278*** may want to report the problem to your system manager and/or to 9279*** bug-libtool@gnu.org 9280 9281_LT_EOF 9282 fi ;; 9283 esac 9284 fi 9285 break 9286 fi 9287 done 9288 IFS=$lt_save_ifs 9289 MAGIC_CMD=$lt_save_MAGIC_CMD 9290 ;; 9291esac 9292fi 9293 9294MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9295if test -n "$MAGIC_CMD"; then 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9297$as_echo "$MAGIC_CMD" >&6; } 9298else 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9300$as_echo "no" >&6; } 9301fi 9302 9303 9304 else 9305 MAGIC_CMD=: 9306 fi 9307fi 9308 9309 fi 9310 ;; 9311esac 9312 9313# Use C for the default configuration in the libtool script 9314 9315lt_save_CC=$CC 9316ac_ext=c 9317ac_cpp='$CPP $CPPFLAGS' 9318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9320ac_compiler_gnu=$ac_cv_c_compiler_gnu 9321 9322 9323# Source file extension for C test sources. 9324ac_ext=c 9325 9326# Object file extension for compiled C test sources. 9327objext=o 9328objext=$objext 9329 9330# Code to be used in simple compile tests 9331lt_simple_compile_test_code="int some_variable = 0;" 9332 9333# Code to be used in simple link tests 9334lt_simple_link_test_code='int main(){return(0);}' 9335 9336 9337 9338 9339 9340 9341 9342# If no C compiler was specified, use CC. 9343LTCC=${LTCC-"$CC"} 9344 9345# If no C compiler flags were specified, use CFLAGS. 9346LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9347 9348# Allow CC to be a program name with arguments. 9349compiler=$CC 9350 9351# Save the default compiler, since it gets overwritten when the other 9352# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9353compiler_DEFAULT=$CC 9354 9355# save warnings/boilerplate of simple test code 9356ac_outfile=conftest.$ac_objext 9357echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9358eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9359_lt_compiler_boilerplate=`cat conftest.err` 9360$RM conftest* 9361 9362ac_outfile=conftest.$ac_objext 9363echo "$lt_simple_link_test_code" >conftest.$ac_ext 9364eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9365_lt_linker_boilerplate=`cat conftest.err` 9366$RM -r conftest* 9367 9368 9369## CAVEAT EMPTOR: 9370## There is no encapsulation within the following macros, do not change 9371## the running order or otherwise move them around unless you know exactly 9372## what you are doing... 9373if test -n "$compiler"; then 9374 9375lt_prog_compiler_no_builtin_flag= 9376 9377if test yes = "$GCC"; then 9378 case $cc_basename in 9379 nvcc*) 9380 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9381 *) 9382 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9383 esac 9384 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9386$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9387if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 lt_cv_prog_compiler_rtti_exceptions=no 9391 ac_outfile=conftest.$ac_objext 9392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9393 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9394 # Insert the option either (1) after the last *FLAGS variable, or 9395 # (2) before a word containing "conftest.", or (3) at the end. 9396 # Note that $ac_compile itself does not contain backslashes and begins 9397 # with a dollar sign (not a hyphen), so the echo should work correctly. 9398 # The option is referenced via a variable to avoid confusing sed. 9399 lt_compile=`echo "$ac_compile" | $SED \ 9400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9402 -e 's:$: $lt_compiler_flag:'` 9403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9404 (eval "$lt_compile" 2>conftest.err) 9405 ac_status=$? 9406 cat conftest.err >&5 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 if (exit $ac_status) && test -s "$ac_outfile"; then 9409 # The compiler can only warn and ignore the option if not recognized 9410 # So say no if there are warnings other than the usual output. 9411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9414 lt_cv_prog_compiler_rtti_exceptions=yes 9415 fi 9416 fi 9417 $RM conftest* 9418 9419fi 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9421$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9422 9423if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9425else 9426 : 9427fi 9428 9429fi 9430 9431 9432 9433 9434 9435 9436 lt_prog_compiler_wl= 9437lt_prog_compiler_pic= 9438lt_prog_compiler_static= 9439 9440 9441 if test yes = "$GCC"; then 9442 lt_prog_compiler_wl='-Wl,' 9443 lt_prog_compiler_static='-static' 9444 9445 case $host_os in 9446 aix*) 9447 # All AIX code is PIC. 9448 if test ia64 = "$host_cpu"; then 9449 # AIX 5 now supports IA64 processor 9450 lt_prog_compiler_static='-Bstatic' 9451 fi 9452 lt_prog_compiler_pic='-fPIC' 9453 ;; 9454 9455 amigaos*) 9456 case $host_cpu in 9457 powerpc) 9458 # see comment about AmigaOS4 .so support 9459 lt_prog_compiler_pic='-fPIC' 9460 ;; 9461 m68k) 9462 # FIXME: we need at least 68020 code to build shared libraries, but 9463 # adding the '-m68020' flag to GCC prevents building anything better, 9464 # like '-m68040'. 9465 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9466 ;; 9467 esac 9468 ;; 9469 9470 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9471 # PIC is the default for these OSes. 9472 ;; 9473 9474 mingw* | cygwin* | pw32* | os2* | cegcc*) 9475 # This hack is so that the source file can tell whether it is being 9476 # built for inclusion in a dll (and should export symbols for example). 9477 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9478 # (--disable-auto-import) libraries 9479 lt_prog_compiler_pic='-DDLL_EXPORT' 9480 case $host_os in 9481 os2*) 9482 lt_prog_compiler_static='$wl-static' 9483 ;; 9484 esac 9485 ;; 9486 9487 darwin* | rhapsody*) 9488 # PIC is the default on this platform 9489 # Common symbols not allowed in MH_DYLIB files 9490 lt_prog_compiler_pic='-fno-common' 9491 ;; 9492 9493 haiku*) 9494 # PIC is the default for Haiku. 9495 # The "-static" flag exists, but is broken. 9496 lt_prog_compiler_static= 9497 ;; 9498 9499 hpux*) 9500 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9501 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9502 # sets the default TLS model and affects inlining. 9503 case $host_cpu in 9504 hppa*64*) 9505 # +Z the default 9506 ;; 9507 *) 9508 lt_prog_compiler_pic='-fPIC' 9509 ;; 9510 esac 9511 ;; 9512 9513 interix[3-9]*) 9514 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9515 # Instead, we relocate shared libraries at runtime. 9516 ;; 9517 9518 msdosdjgpp*) 9519 # Just because we use GCC doesn't mean we suddenly get shared libraries 9520 # on systems that don't support them. 9521 lt_prog_compiler_can_build_shared=no 9522 enable_shared=no 9523 ;; 9524 9525 *nto* | *qnx*) 9526 # QNX uses GNU C++, but need to define -shared option too, otherwise 9527 # it will coredump. 9528 lt_prog_compiler_pic='-fPIC -shared' 9529 ;; 9530 9531 sysv4*MP*) 9532 if test -d /usr/nec; then 9533 lt_prog_compiler_pic=-Kconform_pic 9534 fi 9535 ;; 9536 9537 *) 9538 lt_prog_compiler_pic='-fPIC' 9539 ;; 9540 esac 9541 9542 case $cc_basename in 9543 nvcc*) # Cuda Compiler Driver 2.2 9544 lt_prog_compiler_wl='-Xlinker ' 9545 if test -n "$lt_prog_compiler_pic"; then 9546 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9547 fi 9548 ;; 9549 esac 9550 else 9551 # PORTME Check for flag to pass linker flags through the system compiler. 9552 case $host_os in 9553 aix*) 9554 lt_prog_compiler_wl='-Wl,' 9555 if test ia64 = "$host_cpu"; then 9556 # AIX 5 now supports IA64 processor 9557 lt_prog_compiler_static='-Bstatic' 9558 else 9559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9560 fi 9561 ;; 9562 9563 darwin* | rhapsody*) 9564 # PIC is the default on this platform 9565 # Common symbols not allowed in MH_DYLIB files 9566 lt_prog_compiler_pic='-fno-common' 9567 case $cc_basename in 9568 nagfor*) 9569 # NAG Fortran compiler 9570 lt_prog_compiler_wl='-Wl,-Wl,,' 9571 lt_prog_compiler_pic='-PIC' 9572 lt_prog_compiler_static='-Bstatic' 9573 ;; 9574 esac 9575 ;; 9576 9577 mingw* | cygwin* | pw32* | os2* | cegcc*) 9578 # This hack is so that the source file can tell whether it is being 9579 # built for inclusion in a dll (and should export symbols for example). 9580 lt_prog_compiler_pic='-DDLL_EXPORT' 9581 case $host_os in 9582 os2*) 9583 lt_prog_compiler_static='$wl-static' 9584 ;; 9585 esac 9586 ;; 9587 9588 hpux9* | hpux10* | hpux11*) 9589 lt_prog_compiler_wl='-Wl,' 9590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9591 # not for PA HP-UX. 9592 case $host_cpu in 9593 hppa*64*|ia64*) 9594 # +Z the default 9595 ;; 9596 *) 9597 lt_prog_compiler_pic='+Z' 9598 ;; 9599 esac 9600 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9601 lt_prog_compiler_static='$wl-a ${wl}archive' 9602 ;; 9603 9604 irix5* | irix6* | nonstopux*) 9605 lt_prog_compiler_wl='-Wl,' 9606 # PIC (with -KPIC) is the default. 9607 lt_prog_compiler_static='-non_shared' 9608 ;; 9609 9610 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9611 case $cc_basename in 9612 # old Intel for x86_64, which still supported -KPIC. 9613 ecc*) 9614 lt_prog_compiler_wl='-Wl,' 9615 lt_prog_compiler_pic='-KPIC' 9616 lt_prog_compiler_static='-static' 9617 ;; 9618 # icc used to be incompatible with GCC. 9619 # ICC 10 doesn't accept -KPIC any more. 9620 icc* | ifort*) 9621 lt_prog_compiler_wl='-Wl,' 9622 lt_prog_compiler_pic='-fPIC' 9623 lt_prog_compiler_static='-static' 9624 ;; 9625 # Lahey Fortran 8.1. 9626 lf95*) 9627 lt_prog_compiler_wl='-Wl,' 9628 lt_prog_compiler_pic='--shared' 9629 lt_prog_compiler_static='--static' 9630 ;; 9631 nagfor*) 9632 # NAG Fortran compiler 9633 lt_prog_compiler_wl='-Wl,-Wl,,' 9634 lt_prog_compiler_pic='-PIC' 9635 lt_prog_compiler_static='-Bstatic' 9636 ;; 9637 tcc*) 9638 # Fabrice Bellard et al's Tiny C Compiler 9639 lt_prog_compiler_wl='-Wl,' 9640 lt_prog_compiler_pic='-fPIC' 9641 lt_prog_compiler_static='-static' 9642 ;; 9643 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9644 # Portland Group compilers (*not* the Pentium gcc compiler, 9645 # which looks to be a dead project) 9646 lt_prog_compiler_wl='-Wl,' 9647 lt_prog_compiler_pic='-fpic' 9648 lt_prog_compiler_static='-Bstatic' 9649 ;; 9650 ccc*) 9651 lt_prog_compiler_wl='-Wl,' 9652 # All Alpha code is PIC. 9653 lt_prog_compiler_static='-non_shared' 9654 ;; 9655 xl* | bgxl* | bgf* | mpixl*) 9656 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9657 lt_prog_compiler_wl='-Wl,' 9658 lt_prog_compiler_pic='-qpic' 9659 lt_prog_compiler_static='-qstaticlink' 9660 ;; 9661 *) 9662 case `$CC -V 2>&1 | sed 5q` in 9663 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9664 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9665 lt_prog_compiler_pic='-KPIC' 9666 lt_prog_compiler_static='-Bstatic' 9667 lt_prog_compiler_wl='' 9668 ;; 9669 *Sun\ F* | *Sun*Fortran*) 9670 lt_prog_compiler_pic='-KPIC' 9671 lt_prog_compiler_static='-Bstatic' 9672 lt_prog_compiler_wl='-Qoption ld ' 9673 ;; 9674 *Sun\ C*) 9675 # Sun C 5.9 9676 lt_prog_compiler_pic='-KPIC' 9677 lt_prog_compiler_static='-Bstatic' 9678 lt_prog_compiler_wl='-Wl,' 9679 ;; 9680 *Intel*\ [CF]*Compiler*) 9681 lt_prog_compiler_wl='-Wl,' 9682 lt_prog_compiler_pic='-fPIC' 9683 lt_prog_compiler_static='-static' 9684 ;; 9685 *Portland\ Group*) 9686 lt_prog_compiler_wl='-Wl,' 9687 lt_prog_compiler_pic='-fpic' 9688 lt_prog_compiler_static='-Bstatic' 9689 ;; 9690 esac 9691 ;; 9692 esac 9693 ;; 9694 9695 newsos6) 9696 lt_prog_compiler_pic='-KPIC' 9697 lt_prog_compiler_static='-Bstatic' 9698 ;; 9699 9700 *nto* | *qnx*) 9701 # QNX uses GNU C++, but need to define -shared option too, otherwise 9702 # it will coredump. 9703 lt_prog_compiler_pic='-fPIC -shared' 9704 ;; 9705 9706 osf3* | osf4* | osf5*) 9707 lt_prog_compiler_wl='-Wl,' 9708 # All OSF/1 code is PIC. 9709 lt_prog_compiler_static='-non_shared' 9710 ;; 9711 9712 rdos*) 9713 lt_prog_compiler_static='-non_shared' 9714 ;; 9715 9716 solaris*) 9717 lt_prog_compiler_pic='-KPIC' 9718 lt_prog_compiler_static='-Bstatic' 9719 case $cc_basename in 9720 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9721 lt_prog_compiler_wl='-Qoption ld ';; 9722 *) 9723 lt_prog_compiler_wl='-Wl,';; 9724 esac 9725 ;; 9726 9727 sunos4*) 9728 lt_prog_compiler_wl='-Qoption ld ' 9729 lt_prog_compiler_pic='-PIC' 9730 lt_prog_compiler_static='-Bstatic' 9731 ;; 9732 9733 sysv4 | sysv4.2uw2* | sysv4.3*) 9734 lt_prog_compiler_wl='-Wl,' 9735 lt_prog_compiler_pic='-KPIC' 9736 lt_prog_compiler_static='-Bstatic' 9737 ;; 9738 9739 sysv4*MP*) 9740 if test -d /usr/nec; then 9741 lt_prog_compiler_pic='-Kconform_pic' 9742 lt_prog_compiler_static='-Bstatic' 9743 fi 9744 ;; 9745 9746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9747 lt_prog_compiler_wl='-Wl,' 9748 lt_prog_compiler_pic='-KPIC' 9749 lt_prog_compiler_static='-Bstatic' 9750 ;; 9751 9752 unicos*) 9753 lt_prog_compiler_wl='-Wl,' 9754 lt_prog_compiler_can_build_shared=no 9755 ;; 9756 9757 uts4*) 9758 lt_prog_compiler_pic='-pic' 9759 lt_prog_compiler_static='-Bstatic' 9760 ;; 9761 9762 *) 9763 lt_prog_compiler_can_build_shared=no 9764 ;; 9765 esac 9766 fi 9767 9768case $host_os in 9769 # For platforms that do not support PIC, -DPIC is meaningless: 9770 *djgpp*) 9771 lt_prog_compiler_pic= 9772 ;; 9773 *) 9774 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9775 ;; 9776esac 9777 9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9779$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9780if ${lt_cv_prog_compiler_pic+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782else 9783 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9786$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9787lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9788 9789# 9790# Check to make sure the PIC flag actually works. 9791# 9792if test -n "$lt_prog_compiler_pic"; then 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9794$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9795if ${lt_cv_prog_compiler_pic_works+:} false; then : 9796 $as_echo_n "(cached) " >&6 9797else 9798 lt_cv_prog_compiler_pic_works=no 9799 ac_outfile=conftest.$ac_objext 9800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9802 # Insert the option either (1) after the last *FLAGS variable, or 9803 # (2) before a word containing "conftest.", or (3) at the end. 9804 # Note that $ac_compile itself does not contain backslashes and begins 9805 # with a dollar sign (not a hyphen), so the echo should work correctly. 9806 # The option is referenced via a variable to avoid confusing sed. 9807 lt_compile=`echo "$ac_compile" | $SED \ 9808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9810 -e 's:$: $lt_compiler_flag:'` 9811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9812 (eval "$lt_compile" 2>conftest.err) 9813 ac_status=$? 9814 cat conftest.err >&5 9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9816 if (exit $ac_status) && test -s "$ac_outfile"; then 9817 # The compiler can only warn and ignore the option if not recognized 9818 # So say no if there are warnings other than the usual output. 9819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9822 lt_cv_prog_compiler_pic_works=yes 9823 fi 9824 fi 9825 $RM conftest* 9826 9827fi 9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9829$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9830 9831if test yes = "$lt_cv_prog_compiler_pic_works"; then 9832 case $lt_prog_compiler_pic in 9833 "" | " "*) ;; 9834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9835 esac 9836else 9837 lt_prog_compiler_pic= 9838 lt_prog_compiler_can_build_shared=no 9839fi 9840 9841fi 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853# 9854# Check to make sure the static flag actually works. 9855# 9856wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9858$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9859if ${lt_cv_prog_compiler_static_works+:} false; then : 9860 $as_echo_n "(cached) " >&6 9861else 9862 lt_cv_prog_compiler_static_works=no 9863 save_LDFLAGS=$LDFLAGS 9864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9865 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9867 # The linker can only warn and ignore the option if not recognized 9868 # So say no if there are warnings 9869 if test -s conftest.err; then 9870 # Append any errors to the config.log. 9871 cat conftest.err 1>&5 9872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9874 if diff conftest.exp conftest.er2 >/dev/null; then 9875 lt_cv_prog_compiler_static_works=yes 9876 fi 9877 else 9878 lt_cv_prog_compiler_static_works=yes 9879 fi 9880 fi 9881 $RM -r conftest* 9882 LDFLAGS=$save_LDFLAGS 9883 9884fi 9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9886$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9887 9888if test yes = "$lt_cv_prog_compiler_static_works"; then 9889 : 9890else 9891 lt_prog_compiler_static= 9892fi 9893 9894 9895 9896 9897 9898 9899 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9901$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9902if ${lt_cv_prog_compiler_c_o+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 lt_cv_prog_compiler_c_o=no 9906 $RM -r conftest 2>/dev/null 9907 mkdir conftest 9908 cd conftest 9909 mkdir out 9910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9911 9912 lt_compiler_flag="-o out/conftest2.$ac_objext" 9913 # Insert the option either (1) after the last *FLAGS variable, or 9914 # (2) before a word containing "conftest.", or (3) at the end. 9915 # Note that $ac_compile itself does not contain backslashes and begins 9916 # with a dollar sign (not a hyphen), so the echo should work correctly. 9917 lt_compile=`echo "$ac_compile" | $SED \ 9918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9920 -e 's:$: $lt_compiler_flag:'` 9921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9922 (eval "$lt_compile" 2>out/conftest.err) 9923 ac_status=$? 9924 cat out/conftest.err >&5 9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9926 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9927 then 9928 # The compiler can only warn and ignore the option if not recognized 9929 # So say no if there are warnings 9930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9933 lt_cv_prog_compiler_c_o=yes 9934 fi 9935 fi 9936 chmod u+w . 2>&5 9937 $RM conftest* 9938 # SGI C++ compiler will create directory out/ii_files/ for 9939 # template instantiation 9940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9941 $RM out/* && rmdir out 9942 cd .. 9943 $RM -r conftest 9944 $RM conftest* 9945 9946fi 9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9948$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9949 9950 9951 9952 9953 9954 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9956$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9957if ${lt_cv_prog_compiler_c_o+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 lt_cv_prog_compiler_c_o=no 9961 $RM -r conftest 2>/dev/null 9962 mkdir conftest 9963 cd conftest 9964 mkdir out 9965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9966 9967 lt_compiler_flag="-o out/conftest2.$ac_objext" 9968 # Insert the option either (1) after the last *FLAGS variable, or 9969 # (2) before a word containing "conftest.", or (3) at the end. 9970 # Note that $ac_compile itself does not contain backslashes and begins 9971 # with a dollar sign (not a hyphen), so the echo should work correctly. 9972 lt_compile=`echo "$ac_compile" | $SED \ 9973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9975 -e 's:$: $lt_compiler_flag:'` 9976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9977 (eval "$lt_compile" 2>out/conftest.err) 9978 ac_status=$? 9979 cat out/conftest.err >&5 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9981 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9982 then 9983 # The compiler can only warn and ignore the option if not recognized 9984 # So say no if there are warnings 9985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9988 lt_cv_prog_compiler_c_o=yes 9989 fi 9990 fi 9991 chmod u+w . 2>&5 9992 $RM conftest* 9993 # SGI C++ compiler will create directory out/ii_files/ for 9994 # template instantiation 9995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9996 $RM out/* && rmdir out 9997 cd .. 9998 $RM -r conftest 9999 $RM conftest* 10000 10001fi 10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10003$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10004 10005 10006 10007 10008hard_links=nottested 10009if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10010 # do not overwrite the value of need_locks provided by the user 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10012$as_echo_n "checking if we can lock with hard links... " >&6; } 10013 hard_links=yes 10014 $RM conftest* 10015 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10016 touch conftest.a 10017 ln conftest.a conftest.b 2>&5 || hard_links=no 10018 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10020$as_echo "$hard_links" >&6; } 10021 if test no = "$hard_links"; then 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10023$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10024 need_locks=warn 10025 fi 10026else 10027 need_locks=no 10028fi 10029 10030 10031 10032 10033 10034 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10036$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10037 10038 runpath_var= 10039 allow_undefined_flag= 10040 always_export_symbols=no 10041 archive_cmds= 10042 archive_expsym_cmds= 10043 compiler_needs_object=no 10044 enable_shared_with_static_runtimes=no 10045 export_dynamic_flag_spec= 10046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10047 hardcode_automatic=no 10048 hardcode_direct=no 10049 hardcode_direct_absolute=no 10050 hardcode_libdir_flag_spec= 10051 hardcode_libdir_separator= 10052 hardcode_minus_L=no 10053 hardcode_shlibpath_var=unsupported 10054 inherit_rpath=no 10055 link_all_deplibs=unknown 10056 module_cmds= 10057 module_expsym_cmds= 10058 old_archive_from_new_cmds= 10059 old_archive_from_expsyms_cmds= 10060 thread_safe_flag_spec= 10061 whole_archive_flag_spec= 10062 # include_expsyms should be a list of space-separated symbols to be *always* 10063 # included in the symbol list 10064 include_expsyms= 10065 # exclude_expsyms can be an extended regexp of symbols to exclude 10066 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10067 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10068 # as well as any symbol that contains 'd'. 10069 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10071 # platforms (ab)use it in PIC code, but their linkers get confused if 10072 # the symbol is explicitly referenced. Since portable code cannot 10073 # rely on this symbol name, it's probably fine to never include it in 10074 # preloaded symbol tables. 10075 # Exclude shared library initialization/finalization symbols. 10076 extract_expsyms_cmds= 10077 10078 case $host_os in 10079 cygwin* | mingw* | pw32* | cegcc*) 10080 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10081 # When not using gcc, we currently assume that we are using 10082 # Microsoft Visual C++ or Intel C++ Compiler. 10083 if test yes != "$GCC"; then 10084 with_gnu_ld=no 10085 fi 10086 ;; 10087 interix*) 10088 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10089 with_gnu_ld=yes 10090 ;; 10091 openbsd* | bitrig*) 10092 with_gnu_ld=no 10093 ;; 10094 esac 10095 10096 ld_shlibs=yes 10097 10098 # On some targets, GNU ld is compatible enough with the native linker 10099 # that we're better off using the native interface for both. 10100 lt_use_gnu_ld_interface=no 10101 if test yes = "$with_gnu_ld"; then 10102 case $host_os in 10103 aix*) 10104 # The AIX port of GNU ld has always aspired to compatibility 10105 # with the native linker. However, as the warning in the GNU ld 10106 # block says, versions before 2.19.5* couldn't really create working 10107 # shared libraries, regardless of the interface used. 10108 case `$LD -v 2>&1` in 10109 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10110 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10111 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10112 *) 10113 lt_use_gnu_ld_interface=yes 10114 ;; 10115 esac 10116 ;; 10117 *) 10118 lt_use_gnu_ld_interface=yes 10119 ;; 10120 esac 10121 fi 10122 10123 if test yes = "$lt_use_gnu_ld_interface"; then 10124 # If archive_cmds runs LD, not CC, wlarc should be empty 10125 wlarc='$wl' 10126 10127 # Set some defaults for GNU ld with shared library support. These 10128 # are reset later if shared libraries are not supported. Putting them 10129 # here allows them to be overridden if necessary. 10130 runpath_var=LD_RUN_PATH 10131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10132 export_dynamic_flag_spec='$wl--export-dynamic' 10133 # ancient GNU ld didn't support --whole-archive et. al. 10134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10135 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10136 else 10137 whole_archive_flag_spec= 10138 fi 10139 supports_anon_versioning=no 10140 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10141 *GNU\ gold*) supports_anon_versioning=yes ;; 10142 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10143 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10144 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10145 *\ 2.11.*) ;; # other 2.11 versions 10146 *) supports_anon_versioning=yes ;; 10147 esac 10148 10149 # See if GNU ld supports shared libraries. 10150 case $host_os in 10151 aix[3-9]*) 10152 # On AIX/PPC, the GNU linker is very broken 10153 if test ia64 != "$host_cpu"; then 10154 ld_shlibs=no 10155 cat <<_LT_EOF 1>&2 10156 10157*** Warning: the GNU linker, at least up to release 2.19, is reported 10158*** to be unable to reliably create shared libraries on AIX. 10159*** Therefore, libtool is disabling shared libraries support. If you 10160*** really care for shared libraries, you may want to install binutils 10161*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10162*** You will then need to restart the configuration process. 10163 10164_LT_EOF 10165 fi 10166 ;; 10167 10168 amigaos*) 10169 case $host_cpu in 10170 powerpc) 10171 # see comment about AmigaOS4 .so support 10172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10173 archive_expsym_cmds='' 10174 ;; 10175 m68k) 10176 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)' 10177 hardcode_libdir_flag_spec='-L$libdir' 10178 hardcode_minus_L=yes 10179 ;; 10180 esac 10181 ;; 10182 10183 beos*) 10184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10185 allow_undefined_flag=unsupported 10186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10187 # support --undefined. This deserves some investigation. FIXME 10188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10189 else 10190 ld_shlibs=no 10191 fi 10192 ;; 10193 10194 cygwin* | mingw* | pw32* | cegcc*) 10195 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10196 # as there is no search path for DLLs. 10197 hardcode_libdir_flag_spec='-L$libdir' 10198 export_dynamic_flag_spec='$wl--export-all-symbols' 10199 allow_undefined_flag=unsupported 10200 always_export_symbols=no 10201 enable_shared_with_static_runtimes=yes 10202 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' 10203 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10204 10205 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10207 # If the export-symbols file already is a .def file, use it as 10208 # is; otherwise, prepend EXPORTS... 10209 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10210 cp $export_symbols $output_objdir/$soname.def; 10211 else 10212 echo EXPORTS > $output_objdir/$soname.def; 10213 cat $export_symbols >> $output_objdir/$soname.def; 10214 fi~ 10215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10216 else 10217 ld_shlibs=no 10218 fi 10219 ;; 10220 10221 haiku*) 10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10223 link_all_deplibs=yes 10224 ;; 10225 10226 os2*) 10227 hardcode_libdir_flag_spec='-L$libdir' 10228 hardcode_minus_L=yes 10229 allow_undefined_flag=unsupported 10230 shrext_cmds=.dll 10231 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10232 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10233 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10234 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10235 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10236 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10237 emximp -o $lib $output_objdir/$libname.def' 10238 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10239 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10240 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10241 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10242 prefix_cmds="$SED"~ 10243 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10244 prefix_cmds="$prefix_cmds -e 1d"; 10245 fi~ 10246 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10247 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10248 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10249 emximp -o $lib $output_objdir/$libname.def' 10250 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10251 enable_shared_with_static_runtimes=yes 10252 file_list_spec='@' 10253 ;; 10254 10255 interix[3-9]*) 10256 hardcode_direct=no 10257 hardcode_shlibpath_var=no 10258 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10259 export_dynamic_flag_spec='$wl-E' 10260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10261 # Instead, shared libraries are loaded at an image base (0x10000000 by 10262 # default) and relocated if they conflict, which is a slow very memory 10263 # consuming and fragmenting process. To avoid this, we pick a random, 10264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10265 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10267 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' 10268 ;; 10269 10270 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10271 tmp_diet=no 10272 if test linux-dietlibc = "$host_os"; then 10273 case $cc_basename in 10274 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10275 esac 10276 fi 10277 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10278 && test no = "$tmp_diet" 10279 then 10280 tmp_addflag=' $pic_flag' 10281 tmp_sharedflag='-shared' 10282 case $cc_basename,$host_cpu in 10283 pgcc*) # Portland Group C compiler 10284 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' 10285 tmp_addflag=' $pic_flag' 10286 ;; 10287 pgf77* | pgf90* | pgf95* | pgfortran*) 10288 # Portland Group f77 and f90 compilers 10289 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' 10290 tmp_addflag=' $pic_flag -Mnomain' ;; 10291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10292 tmp_addflag=' -i_dynamic' ;; 10293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10294 tmp_addflag=' -i_dynamic -nofor_main' ;; 10295 ifc* | ifort*) # Intel Fortran compiler 10296 tmp_addflag=' -nofor_main' ;; 10297 lf95*) # Lahey Fortran 8.1 10298 whole_archive_flag_spec= 10299 tmp_sharedflag='--shared' ;; 10300 nagfor*) # NAGFOR 5.3 10301 tmp_sharedflag='-Wl,-shared' ;; 10302 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10303 tmp_sharedflag='-qmkshrobj' 10304 tmp_addflag= ;; 10305 nvcc*) # Cuda Compiler Driver 2.2 10306 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' 10307 compiler_needs_object=yes 10308 ;; 10309 esac 10310 case `$CC -V 2>&1 | sed 5q` in 10311 *Sun\ C*) # Sun C 5.9 10312 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' 10313 compiler_needs_object=yes 10314 tmp_sharedflag='-G' ;; 10315 *Sun\ F*) # Sun Fortran 8.3 10316 tmp_sharedflag='-G' ;; 10317 esac 10318 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10319 10320 if test yes = "$supports_anon_versioning"; then 10321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10323 echo "local: *; };" >> $output_objdir/$libname.ver~ 10324 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10325 fi 10326 10327 case $cc_basename in 10328 tcc*) 10329 export_dynamic_flag_spec='-rdynamic' 10330 ;; 10331 xlf* | bgf* | bgxlf* | mpixlf*) 10332 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10333 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10335 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10336 if test yes = "$supports_anon_versioning"; then 10337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10339 echo "local: *; };" >> $output_objdir/$libname.ver~ 10340 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10341 fi 10342 ;; 10343 esac 10344 else 10345 ld_shlibs=no 10346 fi 10347 ;; 10348 10349 netbsd*) 10350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10351 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10352 wlarc= 10353 else 10354 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10355 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10356 fi 10357 ;; 10358 10359 solaris*) 10360 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10361 ld_shlibs=no 10362 cat <<_LT_EOF 1>&2 10363 10364*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10365*** create shared libraries on Solaris systems. Therefore, libtool 10366*** is disabling shared libraries support. We urge you to upgrade GNU 10367*** binutils to release 2.9.1 or newer. Another option is to modify 10368*** your PATH or compiler configuration so that the native linker is 10369*** used, and then restart. 10370 10371_LT_EOF 10372 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10374 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10375 else 10376 ld_shlibs=no 10377 fi 10378 ;; 10379 10380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10381 case `$LD -v 2>&1` in 10382 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10383 ld_shlibs=no 10384 cat <<_LT_EOF 1>&2 10385 10386*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10387*** reliably create shared libraries on SCO systems. Therefore, libtool 10388*** is disabling shared libraries support. We urge you to upgrade GNU 10389*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10390*** your PATH or compiler configuration so that the native linker is 10391*** used, and then restart. 10392 10393_LT_EOF 10394 ;; 10395 *) 10396 # For security reasons, it is highly recommended that you always 10397 # use absolute paths for naming shared libraries, and exclude the 10398 # DT_RUNPATH tag from executables and libraries. But doing so 10399 # requires that you compile everything twice, which is a pain. 10400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10401 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10404 else 10405 ld_shlibs=no 10406 fi 10407 ;; 10408 esac 10409 ;; 10410 10411 sunos4*) 10412 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10413 wlarc= 10414 hardcode_direct=yes 10415 hardcode_shlibpath_var=no 10416 ;; 10417 10418 *) 10419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10421 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10422 else 10423 ld_shlibs=no 10424 fi 10425 ;; 10426 esac 10427 10428 if test no = "$ld_shlibs"; then 10429 runpath_var= 10430 hardcode_libdir_flag_spec= 10431 export_dynamic_flag_spec= 10432 whole_archive_flag_spec= 10433 fi 10434 else 10435 # PORTME fill in a description of your system's linker (not GNU ld) 10436 case $host_os in 10437 aix3*) 10438 allow_undefined_flag=unsupported 10439 always_export_symbols=yes 10440 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' 10441 # Note: this linker hardcodes the directories in LIBPATH if there 10442 # are no directories specified by -L. 10443 hardcode_minus_L=yes 10444 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10445 # Neither direct hardcoding nor static linking is supported with a 10446 # broken collect2. 10447 hardcode_direct=unsupported 10448 fi 10449 ;; 10450 10451 aix[4-9]*) 10452 if test ia64 = "$host_cpu"; then 10453 # On IA64, the linker does run time linking by default, so we don't 10454 # have to do anything special. 10455 aix_use_runtimelinking=no 10456 exp_sym_flag='-Bexport' 10457 no_entry_flag= 10458 else 10459 # If we're using GNU nm, then we don't want the "-C" option. 10460 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10461 # Without the "-l" option, or with the "-B" option, AIX nm treats 10462 # weak defined symbols like other global defined symbols, whereas 10463 # GNU nm marks them as "W". 10464 # While the 'weak' keyword is ignored in the Export File, we need 10465 # it in the Import File for the 'aix-soname' feature, so we have 10466 # to replace the "-B" option with "-P" for AIX nm. 10467 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10468 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' 10469 else 10470 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 == "L") || (\$ 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' 10471 fi 10472 aix_use_runtimelinking=no 10473 10474 # Test if we are trying to use run time linking or normal 10475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10476 # have runtime linking enabled, and use it for executables. 10477 # For shared libraries, we enable/disable runtime linking 10478 # depending on the kind of the shared library created - 10479 # when "with_aix_soname,aix_use_runtimelinking" is: 10480 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10481 # "aix,yes" lib.so shared, rtl:yes, for executables 10482 # lib.a static archive 10483 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10484 # lib.a(lib.so.V) shared, rtl:no, for executables 10485 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10486 # lib.a(lib.so.V) shared, rtl:no 10487 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10488 # lib.a static archive 10489 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10490 for ld_flag in $LDFLAGS; do 10491 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10492 aix_use_runtimelinking=yes 10493 break 10494 fi 10495 done 10496 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10497 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10498 # so we don't have lib.a shared libs to link our executables. 10499 # We have to force runtime linking in this case. 10500 aix_use_runtimelinking=yes 10501 LDFLAGS="$LDFLAGS -Wl,-brtl" 10502 fi 10503 ;; 10504 esac 10505 10506 exp_sym_flag='-bexport' 10507 no_entry_flag='-bnoentry' 10508 fi 10509 10510 # When large executables or shared objects are built, AIX ld can 10511 # have problems creating the table of contents. If linking a library 10512 # or program results in "error TOC overflow" add -mminimal-toc to 10513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10515 10516 archive_cmds='' 10517 hardcode_direct=yes 10518 hardcode_direct_absolute=yes 10519 hardcode_libdir_separator=':' 10520 link_all_deplibs=yes 10521 file_list_spec='$wl-f,' 10522 case $with_aix_soname,$aix_use_runtimelinking in 10523 aix,*) ;; # traditional, no import file 10524 svr4,* | *,yes) # use import file 10525 # The Import File defines what to hardcode. 10526 hardcode_direct=no 10527 hardcode_direct_absolute=no 10528 ;; 10529 esac 10530 10531 if test yes = "$GCC"; then 10532 case $host_os in aix4.[012]|aix4.[012].*) 10533 # We only want to do this on AIX 4.2 and lower, the check 10534 # below for broken collect2 doesn't work under 4.3+ 10535 collect2name=`$CC -print-prog-name=collect2` 10536 if test -f "$collect2name" && 10537 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10538 then 10539 # We have reworked collect2 10540 : 10541 else 10542 # We have old collect2 10543 hardcode_direct=unsupported 10544 # It fails to find uninstalled libraries when the uninstalled 10545 # path is not listed in the libpath. Setting hardcode_minus_L 10546 # to unsupported forces relinking 10547 hardcode_minus_L=yes 10548 hardcode_libdir_flag_spec='-L$libdir' 10549 hardcode_libdir_separator= 10550 fi 10551 ;; 10552 esac 10553 shared_flag='-shared' 10554 if test yes = "$aix_use_runtimelinking"; then 10555 shared_flag="$shared_flag "'$wl-G' 10556 fi 10557 # Need to ensure runtime linking is disabled for the traditional 10558 # shared library, or the linker may eventually find shared libraries 10559 # /with/ Import File - we do not want to mix them. 10560 shared_flag_aix='-shared' 10561 shared_flag_svr4='-shared $wl-G' 10562 else 10563 # not using gcc 10564 if test ia64 = "$host_cpu"; then 10565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10566 # chokes on -Wl,-G. The following line is correct: 10567 shared_flag='-G' 10568 else 10569 if test yes = "$aix_use_runtimelinking"; then 10570 shared_flag='$wl-G' 10571 else 10572 shared_flag='$wl-bM:SRE' 10573 fi 10574 shared_flag_aix='$wl-bM:SRE' 10575 shared_flag_svr4='$wl-G' 10576 fi 10577 fi 10578 10579 export_dynamic_flag_spec='$wl-bexpall' 10580 # It seems that -bexpall does not export symbols beginning with 10581 # underscore (_), so it is better to generate a list of symbols to export. 10582 always_export_symbols=yes 10583 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10584 # Warning - without using the other runtime loading flags (-brtl), 10585 # -berok will link without error, but may produce a broken library. 10586 allow_undefined_flag='-berok' 10587 # Determine the default libpath from the value encoded in an 10588 # empty executable. 10589 if test set = "${lt_cv_aix_libpath+set}"; then 10590 aix_libpath=$lt_cv_aix_libpath 10591else 10592 if ${lt_cv_aix_libpath_+:} false; then : 10593 $as_echo_n "(cached) " >&6 10594else 10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10596/* end confdefs.h. */ 10597 10598int 10599main () 10600{ 10601 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606if ac_fn_c_try_link "$LINENO"; then : 10607 10608 lt_aix_libpath_sed=' 10609 /Import File Strings/,/^$/ { 10610 /^0/ { 10611 s/^0 *\([^ ]*\) *$/\1/ 10612 p 10613 } 10614 }' 10615 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10616 # Check for a 64-bit object if we didn't find anything. 10617 if test -z "$lt_cv_aix_libpath_"; then 10618 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10619 fi 10620fi 10621rm -f core conftest.err conftest.$ac_objext \ 10622 conftest$ac_exeext conftest.$ac_ext 10623 if test -z "$lt_cv_aix_libpath_"; then 10624 lt_cv_aix_libpath_=/usr/lib:/lib 10625 fi 10626 10627fi 10628 10629 aix_libpath=$lt_cv_aix_libpath_ 10630fi 10631 10632 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10633 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 10634 else 10635 if test ia64 = "$host_cpu"; then 10636 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10637 allow_undefined_flag="-z nodefs" 10638 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" 10639 else 10640 # Determine the default libpath from the value encoded in an 10641 # empty executable. 10642 if test set = "${lt_cv_aix_libpath+set}"; then 10643 aix_libpath=$lt_cv_aix_libpath 10644else 10645 if ${lt_cv_aix_libpath_+:} false; then : 10646 $as_echo_n "(cached) " >&6 10647else 10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649/* end confdefs.h. */ 10650 10651int 10652main () 10653{ 10654 10655 ; 10656 return 0; 10657} 10658_ACEOF 10659if ac_fn_c_try_link "$LINENO"; then : 10660 10661 lt_aix_libpath_sed=' 10662 /Import File Strings/,/^$/ { 10663 /^0/ { 10664 s/^0 *\([^ ]*\) *$/\1/ 10665 p 10666 } 10667 }' 10668 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10669 # Check for a 64-bit object if we didn't find anything. 10670 if test -z "$lt_cv_aix_libpath_"; then 10671 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10672 fi 10673fi 10674rm -f core conftest.err conftest.$ac_objext \ 10675 conftest$ac_exeext conftest.$ac_ext 10676 if test -z "$lt_cv_aix_libpath_"; then 10677 lt_cv_aix_libpath_=/usr/lib:/lib 10678 fi 10679 10680fi 10681 10682 aix_libpath=$lt_cv_aix_libpath_ 10683fi 10684 10685 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10686 # Warning - without using the other run time loading flags, 10687 # -berok will link without error, but may produce a broken library. 10688 no_undefined_flag=' $wl-bernotok' 10689 allow_undefined_flag=' $wl-berok' 10690 if test yes = "$with_gnu_ld"; then 10691 # We only use this code for GNU lds that support --whole-archive. 10692 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10693 else 10694 # Exported symbols can be pulled into shared objects from archives 10695 whole_archive_flag_spec='$convenience' 10696 fi 10697 archive_cmds_need_lc=yes 10698 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10699 # -brtl affects multiple linker settings, -berok does not and is overridden later 10700 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10701 if test svr4 != "$with_aix_soname"; then 10702 # This is similar to how AIX traditionally builds its shared libraries. 10703 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' 10704 fi 10705 if test aix != "$with_aix_soname"; then 10706 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' 10707 else 10708 # used by -dlpreopen to get the symbols 10709 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10710 fi 10711 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10712 fi 10713 fi 10714 ;; 10715 10716 amigaos*) 10717 case $host_cpu in 10718 powerpc) 10719 # see comment about AmigaOS4 .so support 10720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10721 archive_expsym_cmds='' 10722 ;; 10723 m68k) 10724 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)' 10725 hardcode_libdir_flag_spec='-L$libdir' 10726 hardcode_minus_L=yes 10727 ;; 10728 esac 10729 ;; 10730 10731 bsdi[45]*) 10732 export_dynamic_flag_spec=-rdynamic 10733 ;; 10734 10735 cygwin* | mingw* | pw32* | cegcc*) 10736 # When not using gcc, we currently assume that we are using 10737 # Microsoft Visual C++ or Intel C++ Compiler. 10738 # hardcode_libdir_flag_spec is actually meaningless, as there is 10739 # no search path for DLLs. 10740 case $cc_basename in 10741 cl* | icl*) 10742 # Native MSVC or ICC 10743 hardcode_libdir_flag_spec=' ' 10744 allow_undefined_flag=unsupported 10745 always_export_symbols=yes 10746 file_list_spec='@' 10747 # Tell ltmain to make .lib files, not .a files. 10748 libext=lib 10749 # Tell ltmain to make .dll files, not .so files. 10750 shrext_cmds=.dll 10751 # FIXME: Setting linknames here is a bad hack. 10752 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10753 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10754 cp "$export_symbols" "$output_objdir/$soname.def"; 10755 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10756 else 10757 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10758 fi~ 10759 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10760 linknames=' 10761 # The linker will not automatically build a static lib if we build a DLL. 10762 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10763 enable_shared_with_static_runtimes=yes 10764 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10766 # Don't use ranlib 10767 old_postinstall_cmds='chmod 644 $oldlib' 10768 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10769 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10770 case $lt_outputfile in 10771 *.exe|*.EXE) ;; 10772 *) 10773 lt_outputfile=$lt_outputfile.exe 10774 lt_tool_outputfile=$lt_tool_outputfile.exe 10775 ;; 10776 esac~ 10777 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10778 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10779 $RM "$lt_outputfile.manifest"; 10780 fi' 10781 ;; 10782 *) 10783 # Assume MSVC and ICC wrapper 10784 hardcode_libdir_flag_spec=' ' 10785 allow_undefined_flag=unsupported 10786 # Tell ltmain to make .lib files, not .a files. 10787 libext=lib 10788 # Tell ltmain to make .dll files, not .so files. 10789 shrext_cmds=.dll 10790 # FIXME: Setting linknames here is a bad hack. 10791 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10792 # The linker will automatically build a .lib file if we build a DLL. 10793 old_archive_from_new_cmds='true' 10794 # FIXME: Should let the user specify the lib program. 10795 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10796 enable_shared_with_static_runtimes=yes 10797 ;; 10798 esac 10799 ;; 10800 10801 darwin* | rhapsody*) 10802 10803 10804 archive_cmds_need_lc=no 10805 hardcode_direct=no 10806 hardcode_automatic=yes 10807 hardcode_shlibpath_var=unsupported 10808 if test yes = "$lt_cv_ld_force_load"; then 10809 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\"`' 10810 10811 else 10812 whole_archive_flag_spec='' 10813 fi 10814 link_all_deplibs=yes 10815 allow_undefined_flag=$_lt_dar_allow_undefined 10816 case $cc_basename in 10817 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10818 *) _lt_dar_can_shared=$GCC ;; 10819 esac 10820 if test yes = "$_lt_dar_can_shared"; then 10821 output_verbose_link_cmd=func_echo_all 10822 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10823 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10824 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" 10825 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" 10826 10827 else 10828 ld_shlibs=no 10829 fi 10830 10831 ;; 10832 10833 dgux*) 10834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10835 hardcode_libdir_flag_spec='-L$libdir' 10836 hardcode_shlibpath_var=no 10837 ;; 10838 10839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10840 # support. Future versions do this automatically, but an explicit c++rt0.o 10841 # does not break anything, and helps significantly (at the cost of a little 10842 # extra space). 10843 freebsd2.2*) 10844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10845 hardcode_libdir_flag_spec='-R$libdir' 10846 hardcode_direct=yes 10847 hardcode_shlibpath_var=no 10848 ;; 10849 10850 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10851 freebsd2.*) 10852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10853 hardcode_direct=yes 10854 hardcode_minus_L=yes 10855 hardcode_shlibpath_var=no 10856 ;; 10857 10858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10859 freebsd* | dragonfly*) 10860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10861 hardcode_libdir_flag_spec='-R$libdir' 10862 hardcode_direct=yes 10863 hardcode_shlibpath_var=no 10864 ;; 10865 10866 hpux9*) 10867 if test yes = "$GCC"; then 10868 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' 10869 else 10870 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' 10871 fi 10872 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10873 hardcode_libdir_separator=: 10874 hardcode_direct=yes 10875 10876 # hardcode_minus_L: Not really in the search PATH, 10877 # but as the default location of the library. 10878 hardcode_minus_L=yes 10879 export_dynamic_flag_spec='$wl-E' 10880 ;; 10881 10882 hpux10*) 10883 if test yes,no = "$GCC,$with_gnu_ld"; then 10884 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10885 else 10886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10887 fi 10888 if test no = "$with_gnu_ld"; then 10889 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10890 hardcode_libdir_separator=: 10891 hardcode_direct=yes 10892 hardcode_direct_absolute=yes 10893 export_dynamic_flag_spec='$wl-E' 10894 # hardcode_minus_L: Not really in the search PATH, 10895 # but as the default location of the library. 10896 hardcode_minus_L=yes 10897 fi 10898 ;; 10899 10900 hpux11*) 10901 if test yes,no = "$GCC,$with_gnu_ld"; then 10902 case $host_cpu in 10903 hppa*64*) 10904 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10905 ;; 10906 ia64*) 10907 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10908 ;; 10909 *) 10910 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10911 ;; 10912 esac 10913 else 10914 case $host_cpu in 10915 hppa*64*) 10916 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10917 ;; 10918 ia64*) 10919 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10920 ;; 10921 *) 10922 10923 # Older versions of the 11.00 compiler do not understand -b yet 10924 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10926$as_echo_n "checking if $CC understands -b... " >&6; } 10927if ${lt_cv_prog_compiler__b+:} false; then : 10928 $as_echo_n "(cached) " >&6 10929else 10930 lt_cv_prog_compiler__b=no 10931 save_LDFLAGS=$LDFLAGS 10932 LDFLAGS="$LDFLAGS -b" 10933 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10935 # The linker can only warn and ignore the option if not recognized 10936 # So say no if there are warnings 10937 if test -s conftest.err; then 10938 # Append any errors to the config.log. 10939 cat conftest.err 1>&5 10940 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10942 if diff conftest.exp conftest.er2 >/dev/null; then 10943 lt_cv_prog_compiler__b=yes 10944 fi 10945 else 10946 lt_cv_prog_compiler__b=yes 10947 fi 10948 fi 10949 $RM -r conftest* 10950 LDFLAGS=$save_LDFLAGS 10951 10952fi 10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10954$as_echo "$lt_cv_prog_compiler__b" >&6; } 10955 10956if test yes = "$lt_cv_prog_compiler__b"; then 10957 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10958else 10959 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10960fi 10961 10962 ;; 10963 esac 10964 fi 10965 if test no = "$with_gnu_ld"; then 10966 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10967 hardcode_libdir_separator=: 10968 10969 case $host_cpu in 10970 hppa*64*|ia64*) 10971 hardcode_direct=no 10972 hardcode_shlibpath_var=no 10973 ;; 10974 *) 10975 hardcode_direct=yes 10976 hardcode_direct_absolute=yes 10977 export_dynamic_flag_spec='$wl-E' 10978 10979 # hardcode_minus_L: Not really in the search PATH, 10980 # but as the default location of the library. 10981 hardcode_minus_L=yes 10982 ;; 10983 esac 10984 fi 10985 ;; 10986 10987 irix5* | irix6* | nonstopux*) 10988 if test yes = "$GCC"; then 10989 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' 10990 # Try to use the -exported_symbol ld option, if it does not 10991 # work, assume that -exports_file does not work either and 10992 # implicitly export all symbols. 10993 # This should be the same for all languages, so no per-tag cache variable. 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10995$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10996if ${lt_cv_irix_exported_symbol+:} false; then : 10997 $as_echo_n "(cached) " >&6 10998else 10999 save_LDFLAGS=$LDFLAGS 11000 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11002/* end confdefs.h. */ 11003int foo (void) { return 0; } 11004_ACEOF 11005if ac_fn_c_try_link "$LINENO"; then : 11006 lt_cv_irix_exported_symbol=yes 11007else 11008 lt_cv_irix_exported_symbol=no 11009fi 11010rm -f core conftest.err conftest.$ac_objext \ 11011 conftest$ac_exeext conftest.$ac_ext 11012 LDFLAGS=$save_LDFLAGS 11013fi 11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11015$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11016 if test yes = "$lt_cv_irix_exported_symbol"; then 11017 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' 11018 fi 11019 else 11020 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' 11021 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' 11022 fi 11023 archive_cmds_need_lc='no' 11024 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11025 hardcode_libdir_separator=: 11026 inherit_rpath=yes 11027 link_all_deplibs=yes 11028 ;; 11029 11030 linux*) 11031 case $cc_basename in 11032 tcc*) 11033 # Fabrice Bellard et al's Tiny C Compiler 11034 ld_shlibs=yes 11035 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11036 ;; 11037 esac 11038 ;; 11039 11040 netbsd*) 11041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11043 else 11044 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11045 fi 11046 hardcode_libdir_flag_spec='-R$libdir' 11047 hardcode_direct=yes 11048 hardcode_shlibpath_var=no 11049 ;; 11050 11051 newsos6) 11052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11053 hardcode_direct=yes 11054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11055 hardcode_libdir_separator=: 11056 hardcode_shlibpath_var=no 11057 ;; 11058 11059 *nto* | *qnx*) 11060 ;; 11061 11062 openbsd* | bitrig*) 11063 if test -f /usr/libexec/ld.so; then 11064 hardcode_direct=yes 11065 hardcode_shlibpath_var=no 11066 hardcode_direct_absolute=yes 11067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11069 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11070 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11071 export_dynamic_flag_spec='$wl-E' 11072 else 11073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11074 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11075 fi 11076 else 11077 ld_shlibs=no 11078 fi 11079 ;; 11080 11081 os2*) 11082 hardcode_libdir_flag_spec='-L$libdir' 11083 hardcode_minus_L=yes 11084 allow_undefined_flag=unsupported 11085 shrext_cmds=.dll 11086 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11087 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11088 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11089 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11090 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11091 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11092 emximp -o $lib $output_objdir/$libname.def' 11093 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11094 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11095 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11096 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11097 prefix_cmds="$SED"~ 11098 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11099 prefix_cmds="$prefix_cmds -e 1d"; 11100 fi~ 11101 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11102 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11103 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11104 emximp -o $lib $output_objdir/$libname.def' 11105 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11106 enable_shared_with_static_runtimes=yes 11107 file_list_spec='@' 11108 ;; 11109 11110 osf3*) 11111 if test yes = "$GCC"; then 11112 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11113 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' 11114 else 11115 allow_undefined_flag=' -expect_unresolved \*' 11116 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' 11117 fi 11118 archive_cmds_need_lc='no' 11119 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11120 hardcode_libdir_separator=: 11121 ;; 11122 11123 osf4* | osf5*) # as osf3* with the addition of -msym flag 11124 if test yes = "$GCC"; then 11125 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11126 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' 11127 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11128 else 11129 allow_undefined_flag=' -expect_unresolved \*' 11130 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' 11131 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~ 11132 $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' 11133 11134 # Both c and cxx compiler support -rpath directly 11135 hardcode_libdir_flag_spec='-rpath $libdir' 11136 fi 11137 archive_cmds_need_lc='no' 11138 hardcode_libdir_separator=: 11139 ;; 11140 11141 solaris*) 11142 no_undefined_flag=' -z defs' 11143 if test yes = "$GCC"; then 11144 wlarc='$wl' 11145 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11147 $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' 11148 else 11149 case `$CC -V 2>&1` in 11150 *"Compilers 5.0"*) 11151 wlarc='' 11152 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11154 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11155 ;; 11156 *) 11157 wlarc='$wl' 11158 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11160 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11161 ;; 11162 esac 11163 fi 11164 hardcode_libdir_flag_spec='-R$libdir' 11165 hardcode_shlibpath_var=no 11166 case $host_os in 11167 solaris2.[0-5] | solaris2.[0-5].*) ;; 11168 *) 11169 # The compiler driver will combine and reorder linker options, 11170 # but understands '-z linker_flag'. GCC discards it without '$wl', 11171 # but is careful enough not to reorder. 11172 # Supported since Solaris 2.6 (maybe 2.5.1?) 11173 if test yes = "$GCC"; then 11174 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11175 else 11176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11177 fi 11178 ;; 11179 esac 11180 link_all_deplibs=yes 11181 ;; 11182 11183 sunos4*) 11184 if test sequent = "$host_vendor"; then 11185 # Use $CC to link under sequent, because it throws in some extra .o 11186 # files that make .init and .fini sections work. 11187 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11188 else 11189 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11190 fi 11191 hardcode_libdir_flag_spec='-L$libdir' 11192 hardcode_direct=yes 11193 hardcode_minus_L=yes 11194 hardcode_shlibpath_var=no 11195 ;; 11196 11197 sysv4) 11198 case $host_vendor in 11199 sni) 11200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11201 hardcode_direct=yes # is this really true??? 11202 ;; 11203 siemens) 11204 ## LD is ld it makes a PLAMLIB 11205 ## CC just makes a GrossModule. 11206 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11207 reload_cmds='$CC -r -o $output$reload_objs' 11208 hardcode_direct=no 11209 ;; 11210 motorola) 11211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11212 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11213 ;; 11214 esac 11215 runpath_var='LD_RUN_PATH' 11216 hardcode_shlibpath_var=no 11217 ;; 11218 11219 sysv4.3*) 11220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11221 hardcode_shlibpath_var=no 11222 export_dynamic_flag_spec='-Bexport' 11223 ;; 11224 11225 sysv4*MP*) 11226 if test -d /usr/nec; then 11227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11228 hardcode_shlibpath_var=no 11229 runpath_var=LD_RUN_PATH 11230 hardcode_runpath_var=yes 11231 ld_shlibs=yes 11232 fi 11233 ;; 11234 11235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11236 no_undefined_flag='$wl-z,text' 11237 archive_cmds_need_lc=no 11238 hardcode_shlibpath_var=no 11239 runpath_var='LD_RUN_PATH' 11240 11241 if test yes = "$GCC"; then 11242 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11243 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11244 else 11245 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11246 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11247 fi 11248 ;; 11249 11250 sysv5* | sco3.2v5* | sco5v6*) 11251 # Note: We CANNOT use -z defs as we might desire, because we do not 11252 # link with -lc, and that would cause any symbols used from libc to 11253 # always be unresolved, which means just about no library would 11254 # ever link correctly. If we're not using GNU ld we use -z text 11255 # though, which does catch some bad symbols but isn't as heavy-handed 11256 # as -z defs. 11257 no_undefined_flag='$wl-z,text' 11258 allow_undefined_flag='$wl-z,nodefs' 11259 archive_cmds_need_lc=no 11260 hardcode_shlibpath_var=no 11261 hardcode_libdir_flag_spec='$wl-R,$libdir' 11262 hardcode_libdir_separator=':' 11263 link_all_deplibs=yes 11264 export_dynamic_flag_spec='$wl-Bexport' 11265 runpath_var='LD_RUN_PATH' 11266 11267 if test yes = "$GCC"; then 11268 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11269 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11270 else 11271 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11272 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11273 fi 11274 ;; 11275 11276 uts4*) 11277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11278 hardcode_libdir_flag_spec='-L$libdir' 11279 hardcode_shlibpath_var=no 11280 ;; 11281 11282 *) 11283 ld_shlibs=no 11284 ;; 11285 esac 11286 11287 if test sni = "$host_vendor"; then 11288 case $host in 11289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11290 export_dynamic_flag_spec='$wl-Blargedynsym' 11291 ;; 11292 esac 11293 fi 11294 fi 11295 11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11297$as_echo "$ld_shlibs" >&6; } 11298test no = "$ld_shlibs" && can_build_shared=no 11299 11300with_gnu_ld=$with_gnu_ld 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316# 11317# Do we need to explicitly link libc? 11318# 11319case "x$archive_cmds_need_lc" in 11320x|xyes) 11321 # Assume -lc should be added 11322 archive_cmds_need_lc=yes 11323 11324 if test yes,yes = "$GCC,$enable_shared"; then 11325 case $archive_cmds in 11326 *'~'*) 11327 # FIXME: we may have to deal with multi-command sequences. 11328 ;; 11329 '$CC '*) 11330 # Test whether the compiler implicitly links with -lc since on some 11331 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11332 # to ld, don't add -lc before -lgcc. 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11334$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11335if ${lt_cv_archive_cmds_need_lc+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337else 11338 $RM conftest* 11339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11340 11341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11342 (eval $ac_compile) 2>&5 11343 ac_status=$? 11344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11345 test $ac_status = 0; } 2>conftest.err; then 11346 soname=conftest 11347 lib=conftest 11348 libobjs=conftest.$ac_objext 11349 deplibs= 11350 wl=$lt_prog_compiler_wl 11351 pic_flag=$lt_prog_compiler_pic 11352 compiler_flags=-v 11353 linker_flags=-v 11354 verstring= 11355 output_objdir=. 11356 libname=conftest 11357 lt_save_allow_undefined_flag=$allow_undefined_flag 11358 allow_undefined_flag= 11359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11360 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11361 ac_status=$? 11362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11363 test $ac_status = 0; } 11364 then 11365 lt_cv_archive_cmds_need_lc=no 11366 else 11367 lt_cv_archive_cmds_need_lc=yes 11368 fi 11369 allow_undefined_flag=$lt_save_allow_undefined_flag 11370 else 11371 cat conftest.err 1>&5 11372 fi 11373 $RM conftest* 11374 11375fi 11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11377$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11378 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11379 ;; 11380 esac 11381 fi 11382 ;; 11383esac 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11537$as_echo_n "checking dynamic linker characteristics... " >&6; } 11538 11539if test yes = "$GCC"; then 11540 case $host_os in 11541 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11542 *) lt_awk_arg='/^libraries:/' ;; 11543 esac 11544 case $host_os in 11545 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11546 *) lt_sed_strip_eq='s|=/|/|g' ;; 11547 esac 11548 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11549 case $lt_search_path_spec in 11550 *\;*) 11551 # if the path contains ";" then we assume it to be the separator 11552 # otherwise default to the standard path separator (i.e. ":") - it is 11553 # assumed that no part of a normal pathname contains ";" but that should 11554 # okay in the real world where ";" in dirpaths is itself problematic. 11555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11556 ;; 11557 *) 11558 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11559 ;; 11560 esac 11561 # Ok, now we have the path, separated by spaces, we can step through it 11562 # and add multilib dir if necessary... 11563 lt_tmp_lt_search_path_spec= 11564 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11565 # ...but if some path component already ends with the multilib dir we assume 11566 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11567 case "$lt_multi_os_dir; $lt_search_path_spec " in 11568 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11569 lt_multi_os_dir= 11570 ;; 11571 esac 11572 for lt_sys_path in $lt_search_path_spec; do 11573 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11574 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11575 elif test -n "$lt_multi_os_dir"; then 11576 test -d "$lt_sys_path" && \ 11577 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11578 fi 11579 done 11580 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11581BEGIN {RS = " "; FS = "/|\n";} { 11582 lt_foo = ""; 11583 lt_count = 0; 11584 for (lt_i = NF; lt_i > 0; lt_i--) { 11585 if ($lt_i != "" && $lt_i != ".") { 11586 if ($lt_i == "..") { 11587 lt_count++; 11588 } else { 11589 if (lt_count == 0) { 11590 lt_foo = "/" $lt_i lt_foo; 11591 } else { 11592 lt_count--; 11593 } 11594 } 11595 } 11596 } 11597 if (lt_foo != "") { lt_freq[lt_foo]++; } 11598 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11599}'` 11600 # AWK program above erroneously prepends '/' to C:/dos/paths 11601 # for these hosts. 11602 case $host_os in 11603 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11604 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11605 esac 11606 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11607else 11608 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11609fi 11610library_names_spec= 11611libname_spec='lib$name' 11612soname_spec= 11613shrext_cmds=.so 11614postinstall_cmds= 11615postuninstall_cmds= 11616finish_cmds= 11617finish_eval= 11618shlibpath_var= 11619shlibpath_overrides_runpath=unknown 11620version_type=none 11621dynamic_linker="$host_os ld.so" 11622sys_lib_dlsearch_path_spec="/lib /usr/lib" 11623need_lib_prefix=unknown 11624hardcode_into_libs=no 11625 11626# when you set need_version to no, make sure it does not cause -set_version 11627# flags to be left without arguments 11628need_version=unknown 11629 11630 11631 11632case $host_os in 11633aix3*) 11634 version_type=linux # correct to gnu/linux during the next big refactor 11635 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11636 shlibpath_var=LIBPATH 11637 11638 # AIX 3 has no versioning support, so we append a major version to the name. 11639 soname_spec='$libname$release$shared_ext$major' 11640 ;; 11641 11642aix[4-9]*) 11643 version_type=linux # correct to gnu/linux during the next big refactor 11644 need_lib_prefix=no 11645 need_version=no 11646 hardcode_into_libs=yes 11647 if test ia64 = "$host_cpu"; then 11648 # AIX 5 supports IA64 11649 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11650 shlibpath_var=LD_LIBRARY_PATH 11651 else 11652 # With GCC up to 2.95.x, collect2 would create an import file 11653 # for dependence libraries. The import file would start with 11654 # the line '#! .'. This would cause the generated library to 11655 # depend on '.', always an invalid library. This was fixed in 11656 # development snapshots of GCC prior to 3.0. 11657 case $host_os in 11658 aix4 | aix4.[01] | aix4.[01].*) 11659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11660 echo ' yes ' 11661 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11662 : 11663 else 11664 can_build_shared=no 11665 fi 11666 ;; 11667 esac 11668 # Using Import Files as archive members, it is possible to support 11669 # filename-based versioning of shared library archives on AIX. While 11670 # this would work for both with and without runtime linking, it will 11671 # prevent static linking of such archives. So we do filename-based 11672 # shared library versioning with .so extension only, which is used 11673 # when both runtime linking and shared linking is enabled. 11674 # Unfortunately, runtime linking may impact performance, so we do 11675 # not want this to be the default eventually. Also, we use the 11676 # versioned .so libs for executables only if there is the -brtl 11677 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11678 # To allow for filename-based versioning support, we need to create 11679 # libNAME.so.V as an archive file, containing: 11680 # *) an Import File, referring to the versioned filename of the 11681 # archive as well as the shared archive member, telling the 11682 # bitwidth (32 or 64) of that shared object, and providing the 11683 # list of exported symbols of that shared object, eventually 11684 # decorated with the 'weak' keyword 11685 # *) the shared object with the F_LOADONLY flag set, to really avoid 11686 # it being seen by the linker. 11687 # At run time we better use the real file rather than another symlink, 11688 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11689 11690 case $with_aix_soname,$aix_use_runtimelinking in 11691 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11692 # soname into executable. Probably we can add versioning support to 11693 # collect2, so additional links can be useful in future. 11694 aix,yes) # traditional libtool 11695 dynamic_linker='AIX unversionable lib.so' 11696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11697 # instead of lib<name>.a to let people know that these are not 11698 # typical AIX shared libraries. 11699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11700 ;; 11701 aix,no) # traditional AIX only 11702 dynamic_linker='AIX lib.a(lib.so.V)' 11703 # We preserve .a as extension for shared libraries through AIX4.2 11704 # and later when we are not doing run time linking. 11705 library_names_spec='$libname$release.a $libname.a' 11706 soname_spec='$libname$release$shared_ext$major' 11707 ;; 11708 svr4,*) # full svr4 only 11709 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11710 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11711 # We do not specify a path in Import Files, so LIBPATH fires. 11712 shlibpath_overrides_runpath=yes 11713 ;; 11714 *,yes) # both, prefer svr4 11715 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11716 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11717 # unpreferred sharedlib libNAME.a needs extra handling 11718 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"' 11719 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"' 11720 # We do not specify a path in Import Files, so LIBPATH fires. 11721 shlibpath_overrides_runpath=yes 11722 ;; 11723 *,no) # both, prefer aix 11724 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11725 library_names_spec='$libname$release.a $libname.a' 11726 soname_spec='$libname$release$shared_ext$major' 11727 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11728 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)' 11729 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"' 11730 ;; 11731 esac 11732 shlibpath_var=LIBPATH 11733 fi 11734 ;; 11735 11736amigaos*) 11737 case $host_cpu in 11738 powerpc) 11739 # Since July 2007 AmigaOS4 officially supports .so libraries. 11740 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11742 ;; 11743 m68k) 11744 library_names_spec='$libname.ixlibrary $libname.a' 11745 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11746 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' 11747 ;; 11748 esac 11749 ;; 11750 11751beos*) 11752 library_names_spec='$libname$shared_ext' 11753 dynamic_linker="$host_os ld.so" 11754 shlibpath_var=LIBRARY_PATH 11755 ;; 11756 11757bsdi[45]*) 11758 version_type=linux # correct to gnu/linux during the next big refactor 11759 need_version=no 11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11761 soname_spec='$libname$release$shared_ext$major' 11762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11763 shlibpath_var=LD_LIBRARY_PATH 11764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11766 # the default ld.so.conf also contains /usr/contrib/lib and 11767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11768 # libtool to hard-code these into programs 11769 ;; 11770 11771cygwin* | mingw* | pw32* | cegcc*) 11772 version_type=windows 11773 shrext_cmds=.dll 11774 need_version=no 11775 need_lib_prefix=no 11776 11777 case $GCC,$cc_basename in 11778 yes,*) 11779 # gcc 11780 library_names_spec='$libname.dll.a' 11781 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11782 postinstall_cmds='base_file=`basename \$file`~ 11783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11784 dldir=$destdir/`dirname \$dlpath`~ 11785 test -d \$dldir || mkdir -p \$dldir~ 11786 $install_prog $dir/$dlname \$dldir/$dlname~ 11787 chmod a+x \$dldir/$dlname~ 11788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11790 fi' 11791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11792 dlpath=$dir/\$dldll~ 11793 $RM \$dlpath' 11794 shlibpath_overrides_runpath=yes 11795 11796 case $host_os in 11797 cygwin*) 11798 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11799 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11800 11801 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11802 ;; 11803 mingw* | cegcc*) 11804 # MinGW DLLs use traditional 'lib' prefix 11805 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11806 ;; 11807 pw32*) 11808 # pw32 DLLs use 'pw' prefix rather than 'lib' 11809 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11810 ;; 11811 esac 11812 dynamic_linker='Win32 ld.exe' 11813 ;; 11814 11815 *,cl* | *,icl*) 11816 # Native MSVC or ICC 11817 libname_spec='$name' 11818 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11819 library_names_spec='$libname.dll.lib' 11820 11821 case $build_os in 11822 mingw*) 11823 sys_lib_search_path_spec= 11824 lt_save_ifs=$IFS 11825 IFS=';' 11826 for lt_path in $LIB 11827 do 11828 IFS=$lt_save_ifs 11829 # Let DOS variable expansion print the short 8.3 style file name. 11830 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11831 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11832 done 11833 IFS=$lt_save_ifs 11834 # Convert to MSYS style. 11835 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11836 ;; 11837 cygwin*) 11838 # Convert to unix form, then to dos form, then back to unix form 11839 # but this time dos style (no spaces!) so that the unix form looks 11840 # like /cygdrive/c/PROGRA~1:/cygdr... 11841 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11842 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11843 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11844 ;; 11845 *) 11846 sys_lib_search_path_spec=$LIB 11847 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11848 # It is most probably a Windows format PATH. 11849 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11850 else 11851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11852 fi 11853 # FIXME: find the short name or the path components, as spaces are 11854 # common. (e.g. "Program Files" -> "PROGRA~1") 11855 ;; 11856 esac 11857 11858 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11859 postinstall_cmds='base_file=`basename \$file`~ 11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11861 dldir=$destdir/`dirname \$dlpath`~ 11862 test -d \$dldir || mkdir -p \$dldir~ 11863 $install_prog $dir/$dlname \$dldir/$dlname' 11864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11865 dlpath=$dir/\$dldll~ 11866 $RM \$dlpath' 11867 shlibpath_overrides_runpath=yes 11868 dynamic_linker='Win32 link.exe' 11869 ;; 11870 11871 *) 11872 # Assume MSVC and ICC wrapper 11873 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11874 dynamic_linker='Win32 ld.exe' 11875 ;; 11876 esac 11877 # FIXME: first we should search . and the directory the executable is in 11878 shlibpath_var=PATH 11879 ;; 11880 11881darwin* | rhapsody*) 11882 dynamic_linker="$host_os dyld" 11883 version_type=darwin 11884 need_lib_prefix=no 11885 need_version=no 11886 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11887 soname_spec='$libname$release$major$shared_ext' 11888 shlibpath_overrides_runpath=yes 11889 shlibpath_var=DYLD_LIBRARY_PATH 11890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11891 11892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11894 ;; 11895 11896dgux*) 11897 version_type=linux # correct to gnu/linux during the next big refactor 11898 need_lib_prefix=no 11899 need_version=no 11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11901 soname_spec='$libname$release$shared_ext$major' 11902 shlibpath_var=LD_LIBRARY_PATH 11903 ;; 11904 11905freebsd* | dragonfly*) 11906 # DragonFly does not have aout. When/if they implement a new 11907 # versioning mechanism, adjust this. 11908 if test -x /usr/bin/objformat; then 11909 objformat=`/usr/bin/objformat` 11910 else 11911 case $host_os in 11912 freebsd[23].*) objformat=aout ;; 11913 *) objformat=elf ;; 11914 esac 11915 fi 11916 version_type=freebsd-$objformat 11917 case $version_type in 11918 freebsd-elf*) 11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11920 soname_spec='$libname$release$shared_ext$major' 11921 need_version=no 11922 need_lib_prefix=no 11923 ;; 11924 freebsd-*) 11925 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11926 need_version=yes 11927 ;; 11928 esac 11929 shlibpath_var=LD_LIBRARY_PATH 11930 case $host_os in 11931 freebsd2.*) 11932 shlibpath_overrides_runpath=yes 11933 ;; 11934 freebsd3.[01]* | freebsdelf3.[01]*) 11935 shlibpath_overrides_runpath=yes 11936 hardcode_into_libs=yes 11937 ;; 11938 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11939 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11940 shlibpath_overrides_runpath=no 11941 hardcode_into_libs=yes 11942 ;; 11943 *) # from 4.6 on, and DragonFly 11944 shlibpath_overrides_runpath=yes 11945 hardcode_into_libs=yes 11946 ;; 11947 esac 11948 ;; 11949 11950haiku*) 11951 version_type=linux # correct to gnu/linux during the next big refactor 11952 need_lib_prefix=no 11953 need_version=no 11954 dynamic_linker="$host_os runtime_loader" 11955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11956 soname_spec='$libname$release$shared_ext$major' 11957 shlibpath_var=LIBRARY_PATH 11958 shlibpath_overrides_runpath=no 11959 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11960 hardcode_into_libs=yes 11961 ;; 11962 11963hpux9* | hpux10* | hpux11*) 11964 # Give a soname corresponding to the major version so that dld.sl refuses to 11965 # link against other versions. 11966 version_type=sunos 11967 need_lib_prefix=no 11968 need_version=no 11969 case $host_cpu in 11970 ia64*) 11971 shrext_cmds='.so' 11972 hardcode_into_libs=yes 11973 dynamic_linker="$host_os dld.so" 11974 shlibpath_var=LD_LIBRARY_PATH 11975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11977 soname_spec='$libname$release$shared_ext$major' 11978 if test 32 = "$HPUX_IA64_MODE"; then 11979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11980 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11981 else 11982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11983 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11984 fi 11985 ;; 11986 hppa*64*) 11987 shrext_cmds='.sl' 11988 hardcode_into_libs=yes 11989 dynamic_linker="$host_os dld.sl" 11990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11993 soname_spec='$libname$release$shared_ext$major' 11994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11996 ;; 11997 *) 11998 shrext_cmds='.sl' 11999 dynamic_linker="$host_os dld.sl" 12000 shlibpath_var=SHLIB_PATH 12001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12003 soname_spec='$libname$release$shared_ext$major' 12004 ;; 12005 esac 12006 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12007 postinstall_cmds='chmod 555 $lib' 12008 # or fails outright, so override atomically: 12009 install_override_mode=555 12010 ;; 12011 12012interix[3-9]*) 12013 version_type=linux # correct to gnu/linux during the next big refactor 12014 need_lib_prefix=no 12015 need_version=no 12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12017 soname_spec='$libname$release$shared_ext$major' 12018 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12019 shlibpath_var=LD_LIBRARY_PATH 12020 shlibpath_overrides_runpath=no 12021 hardcode_into_libs=yes 12022 ;; 12023 12024irix5* | irix6* | nonstopux*) 12025 case $host_os in 12026 nonstopux*) version_type=nonstopux ;; 12027 *) 12028 if test yes = "$lt_cv_prog_gnu_ld"; then 12029 version_type=linux # correct to gnu/linux during the next big refactor 12030 else 12031 version_type=irix 12032 fi ;; 12033 esac 12034 need_lib_prefix=no 12035 need_version=no 12036 soname_spec='$libname$release$shared_ext$major' 12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12038 case $host_os in 12039 irix5* | nonstopux*) 12040 libsuff= shlibsuff= 12041 ;; 12042 *) 12043 case $LD in # libtool.m4 will add one of these switches to LD 12044 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12045 libsuff= shlibsuff= libmagic=32-bit;; 12046 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12047 libsuff=32 shlibsuff=N32 libmagic=N32;; 12048 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12049 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12050 *) libsuff= shlibsuff= libmagic=never-match;; 12051 esac 12052 ;; 12053 esac 12054 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12055 shlibpath_overrides_runpath=no 12056 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12057 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12058 hardcode_into_libs=yes 12059 ;; 12060 12061# No shared lib support for Linux oldld, aout, or coff. 12062linux*oldld* | linux*aout* | linux*coff*) 12063 dynamic_linker=no 12064 ;; 12065 12066linux*android*) 12067 version_type=none # Android doesn't support versioned libraries. 12068 need_lib_prefix=no 12069 need_version=no 12070 library_names_spec='$libname$release$shared_ext' 12071 soname_spec='$libname$release$shared_ext' 12072 finish_cmds= 12073 shlibpath_var=LD_LIBRARY_PATH 12074 shlibpath_overrides_runpath=yes 12075 12076 # This implies no fast_install, which is unacceptable. 12077 # Some rework will be needed to allow for fast_install 12078 # before this can be enabled. 12079 hardcode_into_libs=yes 12080 12081 dynamic_linker='Android linker' 12082 # Don't embed -rpath directories since the linker doesn't support them. 12083 hardcode_libdir_flag_spec='-L$libdir' 12084 ;; 12085 12086# This must be glibc/ELF. 12087linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12088 version_type=linux # correct to gnu/linux during the next big refactor 12089 need_lib_prefix=no 12090 need_version=no 12091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12092 soname_spec='$libname$release$shared_ext$major' 12093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12094 shlibpath_var=LD_LIBRARY_PATH 12095 shlibpath_overrides_runpath=no 12096 12097 # Some binutils ld are patched to set DT_RUNPATH 12098 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12099 $as_echo_n "(cached) " >&6 12100else 12101 lt_cv_shlibpath_overrides_runpath=no 12102 save_LDFLAGS=$LDFLAGS 12103 save_libdir=$libdir 12104 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12105 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12107/* end confdefs.h. */ 12108 12109int 12110main () 12111{ 12112 12113 ; 12114 return 0; 12115} 12116_ACEOF 12117if ac_fn_c_try_link "$LINENO"; then : 12118 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12119 lt_cv_shlibpath_overrides_runpath=yes 12120fi 12121fi 12122rm -f core conftest.err conftest.$ac_objext \ 12123 conftest$ac_exeext conftest.$ac_ext 12124 LDFLAGS=$save_LDFLAGS 12125 libdir=$save_libdir 12126 12127fi 12128 12129 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12130 12131 # This implies no fast_install, which is unacceptable. 12132 # Some rework will be needed to allow for fast_install 12133 # before this can be enabled. 12134 hardcode_into_libs=yes 12135 12136 # Ideally, we could use ldconfig to report *all* directores which are 12137 # searched for libraries, however this is still not possible. Aside from not 12138 # being certain /sbin/ldconfig is available, command 12139 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12140 # even though it is searched at run-time. Try to do the best guess by 12141 # appending ld.so.conf contents (and includes) to the search path. 12142 if test -f /etc/ld.so.conf; then 12143 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' ' '` 12144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12145 fi 12146 12147 # We used to test for /lib/ld.so.1 and disable shared libraries on 12148 # powerpc, because MkLinux only supported shared libraries with the 12149 # GNU dynamic linker. Since this was broken with cross compilers, 12150 # most powerpc-linux boxes support dynamic linking these days and 12151 # people can always --disable-shared, the test was removed, and we 12152 # assume the GNU/Linux dynamic linker is in use. 12153 dynamic_linker='GNU/Linux ld.so' 12154 ;; 12155 12156netbsd*) 12157 version_type=sunos 12158 need_lib_prefix=no 12159 need_version=no 12160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12163 dynamic_linker='NetBSD (a.out) ld.so' 12164 else 12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12166 soname_spec='$libname$release$shared_ext$major' 12167 dynamic_linker='NetBSD ld.elf_so' 12168 fi 12169 shlibpath_var=LD_LIBRARY_PATH 12170 shlibpath_overrides_runpath=yes 12171 hardcode_into_libs=yes 12172 ;; 12173 12174newsos6) 12175 version_type=linux # correct to gnu/linux during the next big refactor 12176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12177 shlibpath_var=LD_LIBRARY_PATH 12178 shlibpath_overrides_runpath=yes 12179 ;; 12180 12181*nto* | *qnx*) 12182 version_type=qnx 12183 need_lib_prefix=no 12184 need_version=no 12185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12186 soname_spec='$libname$release$shared_ext$major' 12187 shlibpath_var=LD_LIBRARY_PATH 12188 shlibpath_overrides_runpath=no 12189 hardcode_into_libs=yes 12190 dynamic_linker='ldqnx.so' 12191 ;; 12192 12193openbsd* | bitrig*) 12194 version_type=sunos 12195 sys_lib_dlsearch_path_spec=/usr/lib 12196 need_lib_prefix=no 12197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12198 need_version=no 12199 else 12200 need_version=yes 12201 fi 12202 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12204 shlibpath_var=LD_LIBRARY_PATH 12205 shlibpath_overrides_runpath=yes 12206 ;; 12207 12208os2*) 12209 libname_spec='$name' 12210 version_type=windows 12211 shrext_cmds=.dll 12212 need_version=no 12213 need_lib_prefix=no 12214 # OS/2 can only load a DLL with a base name of 8 characters or less. 12215 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12216 v=$($ECHO $release$versuffix | tr -d .-); 12217 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12218 $ECHO $n$v`$shared_ext' 12219 library_names_spec='${libname}_dll.$libext' 12220 dynamic_linker='OS/2 ld.exe' 12221 shlibpath_var=BEGINLIBPATH 12222 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12224 postinstall_cmds='base_file=`basename \$file`~ 12225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12226 dldir=$destdir/`dirname \$dlpath`~ 12227 test -d \$dldir || mkdir -p \$dldir~ 12228 $install_prog $dir/$dlname \$dldir/$dlname~ 12229 chmod a+x \$dldir/$dlname~ 12230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12232 fi' 12233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12234 dlpath=$dir/\$dldll~ 12235 $RM \$dlpath' 12236 ;; 12237 12238osf3* | osf4* | osf5*) 12239 version_type=osf 12240 need_lib_prefix=no 12241 need_version=no 12242 soname_spec='$libname$release$shared_ext$major' 12243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12244 shlibpath_var=LD_LIBRARY_PATH 12245 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12247 ;; 12248 12249rdos*) 12250 dynamic_linker=no 12251 ;; 12252 12253solaris*) 12254 version_type=linux # correct to gnu/linux during the next big refactor 12255 need_lib_prefix=no 12256 need_version=no 12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12258 soname_spec='$libname$release$shared_ext$major' 12259 shlibpath_var=LD_LIBRARY_PATH 12260 shlibpath_overrides_runpath=yes 12261 hardcode_into_libs=yes 12262 # ldd complains unless libraries are executable 12263 postinstall_cmds='chmod +x $lib' 12264 ;; 12265 12266sunos4*) 12267 version_type=sunos 12268 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12269 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12270 shlibpath_var=LD_LIBRARY_PATH 12271 shlibpath_overrides_runpath=yes 12272 if test yes = "$with_gnu_ld"; then 12273 need_lib_prefix=no 12274 fi 12275 need_version=yes 12276 ;; 12277 12278sysv4 | sysv4.3*) 12279 version_type=linux # correct to gnu/linux during the next big refactor 12280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12281 soname_spec='$libname$release$shared_ext$major' 12282 shlibpath_var=LD_LIBRARY_PATH 12283 case $host_vendor in 12284 sni) 12285 shlibpath_overrides_runpath=no 12286 need_lib_prefix=no 12287 runpath_var=LD_RUN_PATH 12288 ;; 12289 siemens) 12290 need_lib_prefix=no 12291 ;; 12292 motorola) 12293 need_lib_prefix=no 12294 need_version=no 12295 shlibpath_overrides_runpath=no 12296 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12297 ;; 12298 esac 12299 ;; 12300 12301sysv4*MP*) 12302 if test -d /usr/nec; then 12303 version_type=linux # correct to gnu/linux during the next big refactor 12304 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12305 soname_spec='$libname$shared_ext.$major' 12306 shlibpath_var=LD_LIBRARY_PATH 12307 fi 12308 ;; 12309 12310sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12311 version_type=sco 12312 need_lib_prefix=no 12313 need_version=no 12314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12315 soname_spec='$libname$release$shared_ext$major' 12316 shlibpath_var=LD_LIBRARY_PATH 12317 shlibpath_overrides_runpath=yes 12318 hardcode_into_libs=yes 12319 if test yes = "$with_gnu_ld"; then 12320 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12321 else 12322 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12323 case $host_os in 12324 sco3.2v5*) 12325 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12326 ;; 12327 esac 12328 fi 12329 sys_lib_dlsearch_path_spec='/usr/lib' 12330 ;; 12331 12332tpf*) 12333 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12334 version_type=linux # correct to gnu/linux during the next big refactor 12335 need_lib_prefix=no 12336 need_version=no 12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12338 shlibpath_var=LD_LIBRARY_PATH 12339 shlibpath_overrides_runpath=no 12340 hardcode_into_libs=yes 12341 ;; 12342 12343uts4*) 12344 version_type=linux # correct to gnu/linux during the next big refactor 12345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12346 soname_spec='$libname$release$shared_ext$major' 12347 shlibpath_var=LD_LIBRARY_PATH 12348 ;; 12349 12350*) 12351 dynamic_linker=no 12352 ;; 12353esac 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12355$as_echo "$dynamic_linker" >&6; } 12356test no = "$dynamic_linker" && can_build_shared=no 12357 12358variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12359if test yes = "$GCC"; then 12360 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12361fi 12362 12363if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12364 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12365fi 12366 12367if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12368 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12369fi 12370 12371# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12372configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12373 12374# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12375func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12376 12377# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12378configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12477$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12478hardcode_action= 12479if test -n "$hardcode_libdir_flag_spec" || 12480 test -n "$runpath_var" || 12481 test yes = "$hardcode_automatic"; then 12482 12483 # We can hardcode non-existent directories. 12484 if test no != "$hardcode_direct" && 12485 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12486 # have to relink, otherwise we might link with an installed library 12487 # when we should be linking with a yet-to-be-installed one 12488 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12489 test no != "$hardcode_minus_L"; then 12490 # Linking always hardcodes the temporary library directory. 12491 hardcode_action=relink 12492 else 12493 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12494 hardcode_action=immediate 12495 fi 12496else 12497 # We cannot hardcode anything, or else we can only hardcode existing 12498 # directories. 12499 hardcode_action=unsupported 12500fi 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12502$as_echo "$hardcode_action" >&6; } 12503 12504if test relink = "$hardcode_action" || 12505 test yes = "$inherit_rpath"; then 12506 # Fast installation is not supported 12507 enable_fast_install=no 12508elif test yes = "$shlibpath_overrides_runpath" || 12509 test no = "$enable_shared"; then 12510 # Fast installation is not necessary 12511 enable_fast_install=needless 12512fi 12513 12514 12515 12516 12517 12518 12519 if test yes != "$enable_dlopen"; then 12520 enable_dlopen=unknown 12521 enable_dlopen_self=unknown 12522 enable_dlopen_self_static=unknown 12523else 12524 lt_cv_dlopen=no 12525 lt_cv_dlopen_libs= 12526 12527 case $host_os in 12528 beos*) 12529 lt_cv_dlopen=load_add_on 12530 lt_cv_dlopen_libs= 12531 lt_cv_dlopen_self=yes 12532 ;; 12533 12534 mingw* | pw32* | cegcc*) 12535 lt_cv_dlopen=LoadLibrary 12536 lt_cv_dlopen_libs= 12537 ;; 12538 12539 cygwin*) 12540 lt_cv_dlopen=dlopen 12541 lt_cv_dlopen_libs= 12542 ;; 12543 12544 darwin*) 12545 # if libdl is installed we need to link against it 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12547$as_echo_n "checking for dlopen in -ldl... " >&6; } 12548if ${ac_cv_lib_dl_dlopen+:} false; then : 12549 $as_echo_n "(cached) " >&6 12550else 12551 ac_check_lib_save_LIBS=$LIBS 12552LIBS="-ldl $LIBS" 12553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12554/* end confdefs.h. */ 12555 12556/* Override any GCC internal prototype to avoid an error. 12557 Use char because int might match the return type of a GCC 12558 builtin and then its argument prototype would still apply. */ 12559#ifdef __cplusplus 12560extern "C" 12561#endif 12562char dlopen (); 12563int 12564main () 12565{ 12566return dlopen (); 12567 ; 12568 return 0; 12569} 12570_ACEOF 12571if ac_fn_c_try_link "$LINENO"; then : 12572 ac_cv_lib_dl_dlopen=yes 12573else 12574 ac_cv_lib_dl_dlopen=no 12575fi 12576rm -f core conftest.err conftest.$ac_objext \ 12577 conftest$ac_exeext conftest.$ac_ext 12578LIBS=$ac_check_lib_save_LIBS 12579fi 12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12581$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12582if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12583 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12584else 12585 12586 lt_cv_dlopen=dyld 12587 lt_cv_dlopen_libs= 12588 lt_cv_dlopen_self=yes 12589 12590fi 12591 12592 ;; 12593 12594 tpf*) 12595 # Don't try to run any link tests for TPF. We know it's impossible 12596 # because TPF is a cross-compiler, and we know how we open DSOs. 12597 lt_cv_dlopen=dlopen 12598 lt_cv_dlopen_libs= 12599 lt_cv_dlopen_self=no 12600 ;; 12601 12602 *) 12603 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12604if test "x$ac_cv_func_shl_load" = xyes; then : 12605 lt_cv_dlopen=shl_load 12606else 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12608$as_echo_n "checking for shl_load in -ldld... " >&6; } 12609if ${ac_cv_lib_dld_shl_load+:} false; then : 12610 $as_echo_n "(cached) " >&6 12611else 12612 ac_check_lib_save_LIBS=$LIBS 12613LIBS="-ldld $LIBS" 12614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616 12617/* Override any GCC internal prototype to avoid an error. 12618 Use char because int might match the return type of a GCC 12619 builtin and then its argument prototype would still apply. */ 12620#ifdef __cplusplus 12621extern "C" 12622#endif 12623char shl_load (); 12624int 12625main () 12626{ 12627return shl_load (); 12628 ; 12629 return 0; 12630} 12631_ACEOF 12632if ac_fn_c_try_link "$LINENO"; then : 12633 ac_cv_lib_dld_shl_load=yes 12634else 12635 ac_cv_lib_dld_shl_load=no 12636fi 12637rm -f core conftest.err conftest.$ac_objext \ 12638 conftest$ac_exeext conftest.$ac_ext 12639LIBS=$ac_check_lib_save_LIBS 12640fi 12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12642$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12643if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12644 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12645else 12646 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12647if test "x$ac_cv_func_dlopen" = xyes; then : 12648 lt_cv_dlopen=dlopen 12649else 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12651$as_echo_n "checking for dlopen in -ldl... " >&6; } 12652if ${ac_cv_lib_dl_dlopen+:} false; then : 12653 $as_echo_n "(cached) " >&6 12654else 12655 ac_check_lib_save_LIBS=$LIBS 12656LIBS="-ldl $LIBS" 12657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12658/* end confdefs.h. */ 12659 12660/* Override any GCC internal prototype to avoid an error. 12661 Use char because int might match the return type of a GCC 12662 builtin and then its argument prototype would still apply. */ 12663#ifdef __cplusplus 12664extern "C" 12665#endif 12666char dlopen (); 12667int 12668main () 12669{ 12670return dlopen (); 12671 ; 12672 return 0; 12673} 12674_ACEOF 12675if ac_fn_c_try_link "$LINENO"; then : 12676 ac_cv_lib_dl_dlopen=yes 12677else 12678 ac_cv_lib_dl_dlopen=no 12679fi 12680rm -f core conftest.err conftest.$ac_objext \ 12681 conftest$ac_exeext conftest.$ac_ext 12682LIBS=$ac_check_lib_save_LIBS 12683fi 12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12685$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12686if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12687 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12688else 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12690$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12691if ${ac_cv_lib_svld_dlopen+:} false; then : 12692 $as_echo_n "(cached) " >&6 12693else 12694 ac_check_lib_save_LIBS=$LIBS 12695LIBS="-lsvld $LIBS" 12696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697/* end confdefs.h. */ 12698 12699/* Override any GCC internal prototype to avoid an error. 12700 Use char because int might match the return type of a GCC 12701 builtin and then its argument prototype would still apply. */ 12702#ifdef __cplusplus 12703extern "C" 12704#endif 12705char dlopen (); 12706int 12707main () 12708{ 12709return dlopen (); 12710 ; 12711 return 0; 12712} 12713_ACEOF 12714if ac_fn_c_try_link "$LINENO"; then : 12715 ac_cv_lib_svld_dlopen=yes 12716else 12717 ac_cv_lib_svld_dlopen=no 12718fi 12719rm -f core conftest.err conftest.$ac_objext \ 12720 conftest$ac_exeext conftest.$ac_ext 12721LIBS=$ac_check_lib_save_LIBS 12722fi 12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12724$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12725if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12726 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12727else 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12729$as_echo_n "checking for dld_link in -ldld... " >&6; } 12730if ${ac_cv_lib_dld_dld_link+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732else 12733 ac_check_lib_save_LIBS=$LIBS 12734LIBS="-ldld $LIBS" 12735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736/* end confdefs.h. */ 12737 12738/* Override any GCC internal prototype to avoid an error. 12739 Use char because int might match the return type of a GCC 12740 builtin and then its argument prototype would still apply. */ 12741#ifdef __cplusplus 12742extern "C" 12743#endif 12744char dld_link (); 12745int 12746main () 12747{ 12748return dld_link (); 12749 ; 12750 return 0; 12751} 12752_ACEOF 12753if ac_fn_c_try_link "$LINENO"; then : 12754 ac_cv_lib_dld_dld_link=yes 12755else 12756 ac_cv_lib_dld_dld_link=no 12757fi 12758rm -f core conftest.err conftest.$ac_objext \ 12759 conftest$ac_exeext conftest.$ac_ext 12760LIBS=$ac_check_lib_save_LIBS 12761fi 12762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12763$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12764if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12765 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12766fi 12767 12768 12769fi 12770 12771 12772fi 12773 12774 12775fi 12776 12777 12778fi 12779 12780 12781fi 12782 12783 ;; 12784 esac 12785 12786 if test no = "$lt_cv_dlopen"; then 12787 enable_dlopen=no 12788 else 12789 enable_dlopen=yes 12790 fi 12791 12792 case $lt_cv_dlopen in 12793 dlopen) 12794 save_CPPFLAGS=$CPPFLAGS 12795 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12796 12797 save_LDFLAGS=$LDFLAGS 12798 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12799 12800 save_LIBS=$LIBS 12801 LIBS="$lt_cv_dlopen_libs $LIBS" 12802 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12804$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12805if ${lt_cv_dlopen_self+:} false; then : 12806 $as_echo_n "(cached) " >&6 12807else 12808 if test yes = "$cross_compiling"; then : 12809 lt_cv_dlopen_self=cross 12810else 12811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12812 lt_status=$lt_dlunknown 12813 cat > conftest.$ac_ext <<_LT_EOF 12814#line $LINENO "configure" 12815#include "confdefs.h" 12816 12817#if HAVE_DLFCN_H 12818#include <dlfcn.h> 12819#endif 12820 12821#include <stdio.h> 12822 12823#ifdef RTLD_GLOBAL 12824# define LT_DLGLOBAL RTLD_GLOBAL 12825#else 12826# ifdef DL_GLOBAL 12827# define LT_DLGLOBAL DL_GLOBAL 12828# else 12829# define LT_DLGLOBAL 0 12830# endif 12831#endif 12832 12833/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12834 find out it does not work in some platform. */ 12835#ifndef LT_DLLAZY_OR_NOW 12836# ifdef RTLD_LAZY 12837# define LT_DLLAZY_OR_NOW RTLD_LAZY 12838# else 12839# ifdef DL_LAZY 12840# define LT_DLLAZY_OR_NOW DL_LAZY 12841# else 12842# ifdef RTLD_NOW 12843# define LT_DLLAZY_OR_NOW RTLD_NOW 12844# else 12845# ifdef DL_NOW 12846# define LT_DLLAZY_OR_NOW DL_NOW 12847# else 12848# define LT_DLLAZY_OR_NOW 0 12849# endif 12850# endif 12851# endif 12852# endif 12853#endif 12854 12855/* When -fvisibility=hidden is used, assume the code has been annotated 12856 correspondingly for the symbols needed. */ 12857#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12858int fnord () __attribute__((visibility("default"))); 12859#endif 12860 12861int fnord () { return 42; } 12862int main () 12863{ 12864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12865 int status = $lt_dlunknown; 12866 12867 if (self) 12868 { 12869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12870 else 12871 { 12872 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12873 else puts (dlerror ()); 12874 } 12875 /* dlclose (self); */ 12876 } 12877 else 12878 puts (dlerror ()); 12879 12880 return status; 12881} 12882_LT_EOF 12883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12884 (eval $ac_link) 2>&5 12885 ac_status=$? 12886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12887 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12888 (./conftest; exit; ) >&5 2>/dev/null 12889 lt_status=$? 12890 case x$lt_status in 12891 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12892 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12893 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12894 esac 12895 else : 12896 # compilation failed 12897 lt_cv_dlopen_self=no 12898 fi 12899fi 12900rm -fr conftest* 12901 12902 12903fi 12904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12905$as_echo "$lt_cv_dlopen_self" >&6; } 12906 12907 if test yes = "$lt_cv_dlopen_self"; then 12908 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12910$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12911if ${lt_cv_dlopen_self_static+:} false; then : 12912 $as_echo_n "(cached) " >&6 12913else 12914 if test yes = "$cross_compiling"; then : 12915 lt_cv_dlopen_self_static=cross 12916else 12917 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12918 lt_status=$lt_dlunknown 12919 cat > conftest.$ac_ext <<_LT_EOF 12920#line $LINENO "configure" 12921#include "confdefs.h" 12922 12923#if HAVE_DLFCN_H 12924#include <dlfcn.h> 12925#endif 12926 12927#include <stdio.h> 12928 12929#ifdef RTLD_GLOBAL 12930# define LT_DLGLOBAL RTLD_GLOBAL 12931#else 12932# ifdef DL_GLOBAL 12933# define LT_DLGLOBAL DL_GLOBAL 12934# else 12935# define LT_DLGLOBAL 0 12936# endif 12937#endif 12938 12939/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12940 find out it does not work in some platform. */ 12941#ifndef LT_DLLAZY_OR_NOW 12942# ifdef RTLD_LAZY 12943# define LT_DLLAZY_OR_NOW RTLD_LAZY 12944# else 12945# ifdef DL_LAZY 12946# define LT_DLLAZY_OR_NOW DL_LAZY 12947# else 12948# ifdef RTLD_NOW 12949# define LT_DLLAZY_OR_NOW RTLD_NOW 12950# else 12951# ifdef DL_NOW 12952# define LT_DLLAZY_OR_NOW DL_NOW 12953# else 12954# define LT_DLLAZY_OR_NOW 0 12955# endif 12956# endif 12957# endif 12958# endif 12959#endif 12960 12961/* When -fvisibility=hidden is used, assume the code has been annotated 12962 correspondingly for the symbols needed. */ 12963#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12964int fnord () __attribute__((visibility("default"))); 12965#endif 12966 12967int fnord () { return 42; } 12968int main () 12969{ 12970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12971 int status = $lt_dlunknown; 12972 12973 if (self) 12974 { 12975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12976 else 12977 { 12978 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12979 else puts (dlerror ()); 12980 } 12981 /* dlclose (self); */ 12982 } 12983 else 12984 puts (dlerror ()); 12985 12986 return status; 12987} 12988_LT_EOF 12989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12990 (eval $ac_link) 2>&5 12991 ac_status=$? 12992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12993 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12994 (./conftest; exit; ) >&5 2>/dev/null 12995 lt_status=$? 12996 case x$lt_status in 12997 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12998 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12999 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13000 esac 13001 else : 13002 # compilation failed 13003 lt_cv_dlopen_self_static=no 13004 fi 13005fi 13006rm -fr conftest* 13007 13008 13009fi 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13011$as_echo "$lt_cv_dlopen_self_static" >&6; } 13012 fi 13013 13014 CPPFLAGS=$save_CPPFLAGS 13015 LDFLAGS=$save_LDFLAGS 13016 LIBS=$save_LIBS 13017 ;; 13018 esac 13019 13020 case $lt_cv_dlopen_self in 13021 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13022 *) enable_dlopen_self=unknown ;; 13023 esac 13024 13025 case $lt_cv_dlopen_self_static in 13026 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13027 *) enable_dlopen_self_static=unknown ;; 13028 esac 13029fi 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047striplib= 13048old_striplib= 13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13050$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13051if test -z "$STRIP"; then 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13053$as_echo "no" >&6; } 13054else 13055 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13056 old_striplib="$STRIP --strip-debug" 13057 striplib="$STRIP --strip-unneeded" 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13059$as_echo "yes" >&6; } 13060 else 13061 case $host_os in 13062 darwin*) 13063 # FIXME - insert some real tests, host_os isn't really good enough 13064 striplib="$STRIP -x" 13065 old_striplib="$STRIP -S" 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13067$as_echo "yes" >&6; } 13068 ;; 13069 freebsd*) 13070 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13071 old_striplib="$STRIP --strip-debug" 13072 striplib="$STRIP --strip-unneeded" 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13074$as_echo "yes" >&6; } 13075 else 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13077$as_echo "no" >&6; } 13078 fi 13079 ;; 13080 *) 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13082$as_echo "no" >&6; } 13083 ;; 13084 esac 13085 fi 13086fi 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 # Report what library types will actually be built 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13101$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13103$as_echo "$can_build_shared" >&6; } 13104 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13106$as_echo_n "checking whether to build shared libraries... " >&6; } 13107 test no = "$can_build_shared" && enable_shared=no 13108 13109 # On AIX, shared libraries and static libraries use the same namespace, and 13110 # are all built from PIC. 13111 case $host_os in 13112 aix3*) 13113 test yes = "$enable_shared" && enable_static=no 13114 if test -n "$RANLIB"; then 13115 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13116 postinstall_cmds='$RANLIB $lib' 13117 fi 13118 ;; 13119 13120 aix[4-9]*) 13121 if test ia64 != "$host_cpu"; then 13122 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13123 yes,aix,yes) ;; # shared object as lib.so file only 13124 yes,svr4,*) ;; # shared object as lib.so archive member only 13125 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13126 esac 13127 fi 13128 ;; 13129 esac 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13131$as_echo "$enable_shared" >&6; } 13132 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13134$as_echo_n "checking whether to build static libraries... " >&6; } 13135 # Make sure either enable_shared or enable_static is yes. 13136 test yes = "$enable_shared" || enable_static=yes 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13138$as_echo "$enable_static" >&6; } 13139 13140 13141 13142 13143fi 13144ac_ext=c 13145ac_cpp='$CPP $CPPFLAGS' 13146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13148ac_compiler_gnu=$ac_cv_c_compiler_gnu 13149 13150CC=$lt_save_CC 13151 13152 if test -n "$CXX" && ( test no != "$CXX" && 13153 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13154 (test g++ != "$CXX"))); then 13155 ac_ext=cpp 13156ac_cpp='$CXXCPP $CPPFLAGS' 13157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13161$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13162if test -z "$CXXCPP"; then 13163 if ${ac_cv_prog_CXXCPP+:} false; then : 13164 $as_echo_n "(cached) " >&6 13165else 13166 # Double quotes because CXXCPP needs to be expanded 13167 for CXXCPP in "$CXX -E" "/lib/cpp" 13168 do 13169 ac_preproc_ok=false 13170for ac_cxx_preproc_warn_flag in '' yes 13171do 13172 # Use a header file that comes with gcc, so configuring glibc 13173 # with a fresh cross-compiler works. 13174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13175 # <limits.h> exists even on freestanding compilers. 13176 # On the NeXT, cc -E runs the code through the compiler's parser, 13177 # not just through cpp. "Syntax error" is here to catch this case. 13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13179/* end confdefs.h. */ 13180#ifdef __STDC__ 13181# include <limits.h> 13182#else 13183# include <assert.h> 13184#endif 13185 Syntax error 13186_ACEOF 13187if ac_fn_cxx_try_cpp "$LINENO"; then : 13188 13189else 13190 # Broken: fails on valid input. 13191continue 13192fi 13193rm -f conftest.err conftest.i conftest.$ac_ext 13194 13195 # OK, works on sane cases. Now check whether nonexistent headers 13196 # can be detected and how. 13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13198/* end confdefs.h. */ 13199#include <ac_nonexistent.h> 13200_ACEOF 13201if ac_fn_cxx_try_cpp "$LINENO"; then : 13202 # Broken: success on invalid input. 13203continue 13204else 13205 # Passes both tests. 13206ac_preproc_ok=: 13207break 13208fi 13209rm -f conftest.err conftest.i conftest.$ac_ext 13210 13211done 13212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13213rm -f conftest.i conftest.err conftest.$ac_ext 13214if $ac_preproc_ok; then : 13215 break 13216fi 13217 13218 done 13219 ac_cv_prog_CXXCPP=$CXXCPP 13220 13221fi 13222 CXXCPP=$ac_cv_prog_CXXCPP 13223else 13224 ac_cv_prog_CXXCPP=$CXXCPP 13225fi 13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13227$as_echo "$CXXCPP" >&6; } 13228ac_preproc_ok=false 13229for ac_cxx_preproc_warn_flag in '' yes 13230do 13231 # Use a header file that comes with gcc, so configuring glibc 13232 # with a fresh cross-compiler works. 13233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13234 # <limits.h> exists even on freestanding compilers. 13235 # On the NeXT, cc -E runs the code through the compiler's parser, 13236 # not just through cpp. "Syntax error" is here to catch this case. 13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13238/* end confdefs.h. */ 13239#ifdef __STDC__ 13240# include <limits.h> 13241#else 13242# include <assert.h> 13243#endif 13244 Syntax error 13245_ACEOF 13246if ac_fn_cxx_try_cpp "$LINENO"; then : 13247 13248else 13249 # Broken: fails on valid input. 13250continue 13251fi 13252rm -f conftest.err conftest.i conftest.$ac_ext 13253 13254 # OK, works on sane cases. Now check whether nonexistent headers 13255 # can be detected and how. 13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13257/* end confdefs.h. */ 13258#include <ac_nonexistent.h> 13259_ACEOF 13260if ac_fn_cxx_try_cpp "$LINENO"; then : 13261 # Broken: success on invalid input. 13262continue 13263else 13264 # Passes both tests. 13265ac_preproc_ok=: 13266break 13267fi 13268rm -f conftest.err conftest.i conftest.$ac_ext 13269 13270done 13271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13272rm -f conftest.i conftest.err conftest.$ac_ext 13273if $ac_preproc_ok; then : 13274 13275else 13276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13278as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13279See \`config.log' for more details" "$LINENO" 5; } 13280fi 13281 13282ac_ext=c 13283ac_cpp='$CPP $CPPFLAGS' 13284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13286ac_compiler_gnu=$ac_cv_c_compiler_gnu 13287 13288else 13289 _lt_caught_CXX_error=yes 13290fi 13291 13292ac_ext=cpp 13293ac_cpp='$CXXCPP $CPPFLAGS' 13294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13297 13298archive_cmds_need_lc_CXX=no 13299allow_undefined_flag_CXX= 13300always_export_symbols_CXX=no 13301archive_expsym_cmds_CXX= 13302compiler_needs_object_CXX=no 13303export_dynamic_flag_spec_CXX= 13304hardcode_direct_CXX=no 13305hardcode_direct_absolute_CXX=no 13306hardcode_libdir_flag_spec_CXX= 13307hardcode_libdir_separator_CXX= 13308hardcode_minus_L_CXX=no 13309hardcode_shlibpath_var_CXX=unsupported 13310hardcode_automatic_CXX=no 13311inherit_rpath_CXX=no 13312module_cmds_CXX= 13313module_expsym_cmds_CXX= 13314link_all_deplibs_CXX=unknown 13315old_archive_cmds_CXX=$old_archive_cmds 13316reload_flag_CXX=$reload_flag 13317reload_cmds_CXX=$reload_cmds 13318no_undefined_flag_CXX= 13319whole_archive_flag_spec_CXX= 13320enable_shared_with_static_runtimes_CXX=no 13321 13322# Source file extension for C++ test sources. 13323ac_ext=cpp 13324 13325# Object file extension for compiled C++ test sources. 13326objext=o 13327objext_CXX=$objext 13328 13329# No sense in running all these tests if we already determined that 13330# the CXX compiler isn't working. Some variables (like enable_shared) 13331# are currently assumed to apply to all compilers on this platform, 13332# and will be corrupted by setting them based on a non-working compiler. 13333if test yes != "$_lt_caught_CXX_error"; then 13334 # Code to be used in simple compile tests 13335 lt_simple_compile_test_code="int some_variable = 0;" 13336 13337 # Code to be used in simple link tests 13338 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13339 13340 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13341 13342 13343 13344 13345 13346 13347# If no C compiler was specified, use CC. 13348LTCC=${LTCC-"$CC"} 13349 13350# If no C compiler flags were specified, use CFLAGS. 13351LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13352 13353# Allow CC to be a program name with arguments. 13354compiler=$CC 13355 13356 13357 # save warnings/boilerplate of simple test code 13358 ac_outfile=conftest.$ac_objext 13359echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13360eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13361_lt_compiler_boilerplate=`cat conftest.err` 13362$RM conftest* 13363 13364 ac_outfile=conftest.$ac_objext 13365echo "$lt_simple_link_test_code" >conftest.$ac_ext 13366eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13367_lt_linker_boilerplate=`cat conftest.err` 13368$RM -r conftest* 13369 13370 13371 # Allow CC to be a program name with arguments. 13372 lt_save_CC=$CC 13373 lt_save_CFLAGS=$CFLAGS 13374 lt_save_LD=$LD 13375 lt_save_GCC=$GCC 13376 GCC=$GXX 13377 lt_save_with_gnu_ld=$with_gnu_ld 13378 lt_save_path_LD=$lt_cv_path_LD 13379 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13380 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13381 else 13382 $as_unset lt_cv_prog_gnu_ld 13383 fi 13384 if test -n "${lt_cv_path_LDCXX+set}"; then 13385 lt_cv_path_LD=$lt_cv_path_LDCXX 13386 else 13387 $as_unset lt_cv_path_LD 13388 fi 13389 test -z "${LDCXX+set}" || LD=$LDCXX 13390 CC=${CXX-"c++"} 13391 CFLAGS=$CXXFLAGS 13392 compiler=$CC 13393 compiler_CXX=$CC 13394 func_cc_basename $compiler 13395cc_basename=$func_cc_basename_result 13396 13397 13398 if test -n "$compiler"; then 13399 # We don't want -fno-exception when compiling C++ code, so set the 13400 # no_builtin_flag separately 13401 if test yes = "$GXX"; then 13402 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13403 else 13404 lt_prog_compiler_no_builtin_flag_CXX= 13405 fi 13406 13407 if test yes = "$GXX"; then 13408 # Set up default GNU C++ configuration 13409 13410 13411 13412# Check whether --with-gnu-ld was given. 13413if test "${with_gnu_ld+set}" = set; then : 13414 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13415else 13416 with_gnu_ld=no 13417fi 13418 13419ac_prog=ld 13420if test yes = "$GCC"; then 13421 # Check if gcc -print-prog-name=ld gives a path. 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13423$as_echo_n "checking for ld used by $CC... " >&6; } 13424 case $host in 13425 *-*-mingw*) 13426 # gcc leaves a trailing carriage return, which upsets mingw 13427 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13428 *) 13429 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13430 esac 13431 case $ac_prog in 13432 # Accept absolute paths. 13433 [\\/]* | ?:[\\/]*) 13434 re_direlt='/[^/][^/]*/\.\./' 13435 # Canonicalize the pathname of ld 13436 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13437 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13438 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13439 done 13440 test -z "$LD" && LD=$ac_prog 13441 ;; 13442 "") 13443 # If it fails, then pretend we aren't using GCC. 13444 ac_prog=ld 13445 ;; 13446 *) 13447 # If it is relative, then search for the first ld in PATH. 13448 with_gnu_ld=unknown 13449 ;; 13450 esac 13451elif test yes = "$with_gnu_ld"; then 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13453$as_echo_n "checking for GNU ld... " >&6; } 13454else 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13456$as_echo_n "checking for non-GNU ld... " >&6; } 13457fi 13458if ${lt_cv_path_LD+:} false; then : 13459 $as_echo_n "(cached) " >&6 13460else 13461 if test -z "$LD"; then 13462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13463 for ac_dir in $PATH; do 13464 IFS=$lt_save_ifs 13465 test -z "$ac_dir" && ac_dir=. 13466 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13467 lt_cv_path_LD=$ac_dir/$ac_prog 13468 # Check to see if the program is GNU ld. I'd rather use --version, 13469 # but apparently some variants of GNU ld only accept -v. 13470 # Break only if it was the GNU/non-GNU ld that we prefer. 13471 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13472 *GNU* | *'with BFD'*) 13473 test no != "$with_gnu_ld" && break 13474 ;; 13475 *) 13476 test yes != "$with_gnu_ld" && break 13477 ;; 13478 esac 13479 fi 13480 done 13481 IFS=$lt_save_ifs 13482else 13483 lt_cv_path_LD=$LD # Let the user override the test with a path. 13484fi 13485fi 13486 13487LD=$lt_cv_path_LD 13488if test -n "$LD"; then 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13490$as_echo "$LD" >&6; } 13491else 13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13493$as_echo "no" >&6; } 13494fi 13495test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13497$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13498if ${lt_cv_prog_gnu_ld+:} false; then : 13499 $as_echo_n "(cached) " >&6 13500else 13501 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13502case `$LD -v 2>&1 </dev/null` in 13503*GNU* | *'with BFD'*) 13504 lt_cv_prog_gnu_ld=yes 13505 ;; 13506*) 13507 lt_cv_prog_gnu_ld=no 13508 ;; 13509esac 13510fi 13511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13512$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13513with_gnu_ld=$lt_cv_prog_gnu_ld 13514 13515 13516 13517 13518 13519 13520 13521 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13522 # archiving commands below assume that GNU ld is being used. 13523 if test yes = "$with_gnu_ld"; then 13524 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13525 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' 13526 13527 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13528 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13529 13530 # If archive_cmds runs LD, not CC, wlarc should be empty 13531 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13532 # investigate it a little bit more. (MM) 13533 wlarc='$wl' 13534 13535 # ancient GNU ld didn't support --whole-archive et. al. 13536 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13537 $GREP 'no-whole-archive' > /dev/null; then 13538 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13539 else 13540 whole_archive_flag_spec_CXX= 13541 fi 13542 else 13543 with_gnu_ld=no 13544 wlarc= 13545 13546 # A generic and very simple default shared library creation 13547 # command for GNU C++ for the case where it uses the native 13548 # linker, instead of GNU ld. If possible, this setting should 13549 # overridden to take advantage of the native linker features on 13550 # the platform it is being used on. 13551 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13552 fi 13553 13554 # Commands to make compiler produce verbose output that lists 13555 # what "hidden" libraries, object files and flags are used when 13556 # linking a shared library. 13557 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13558 13559 else 13560 GXX=no 13561 with_gnu_ld=no 13562 wlarc= 13563 fi 13564 13565 # PORTME: fill in a description of your system's C++ link characteristics 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13567$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13568 ld_shlibs_CXX=yes 13569 case $host_os in 13570 aix3*) 13571 # FIXME: insert proper C++ library support 13572 ld_shlibs_CXX=no 13573 ;; 13574 aix[4-9]*) 13575 if test ia64 = "$host_cpu"; then 13576 # On IA64, the linker does run time linking by default, so we don't 13577 # have to do anything special. 13578 aix_use_runtimelinking=no 13579 exp_sym_flag='-Bexport' 13580 no_entry_flag= 13581 else 13582 aix_use_runtimelinking=no 13583 13584 # Test if we are trying to use run time linking or normal 13585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13586 # have runtime linking enabled, and use it for executables. 13587 # For shared libraries, we enable/disable runtime linking 13588 # depending on the kind of the shared library created - 13589 # when "with_aix_soname,aix_use_runtimelinking" is: 13590 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13591 # "aix,yes" lib.so shared, rtl:yes, for executables 13592 # lib.a static archive 13593 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13594 # lib.a(lib.so.V) shared, rtl:no, for executables 13595 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13596 # lib.a(lib.so.V) shared, rtl:no 13597 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13598 # lib.a static archive 13599 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13600 for ld_flag in $LDFLAGS; do 13601 case $ld_flag in 13602 *-brtl*) 13603 aix_use_runtimelinking=yes 13604 break 13605 ;; 13606 esac 13607 done 13608 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13609 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13610 # so we don't have lib.a shared libs to link our executables. 13611 # We have to force runtime linking in this case. 13612 aix_use_runtimelinking=yes 13613 LDFLAGS="$LDFLAGS -Wl,-brtl" 13614 fi 13615 ;; 13616 esac 13617 13618 exp_sym_flag='-bexport' 13619 no_entry_flag='-bnoentry' 13620 fi 13621 13622 # When large executables or shared objects are built, AIX ld can 13623 # have problems creating the table of contents. If linking a library 13624 # or program results in "error TOC overflow" add -mminimal-toc to 13625 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13626 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13627 13628 archive_cmds_CXX='' 13629 hardcode_direct_CXX=yes 13630 hardcode_direct_absolute_CXX=yes 13631 hardcode_libdir_separator_CXX=':' 13632 link_all_deplibs_CXX=yes 13633 file_list_spec_CXX='$wl-f,' 13634 case $with_aix_soname,$aix_use_runtimelinking in 13635 aix,*) ;; # no import file 13636 svr4,* | *,yes) # use import file 13637 # The Import File defines what to hardcode. 13638 hardcode_direct_CXX=no 13639 hardcode_direct_absolute_CXX=no 13640 ;; 13641 esac 13642 13643 if test yes = "$GXX"; then 13644 case $host_os in aix4.[012]|aix4.[012].*) 13645 # We only want to do this on AIX 4.2 and lower, the check 13646 # below for broken collect2 doesn't work under 4.3+ 13647 collect2name=`$CC -print-prog-name=collect2` 13648 if test -f "$collect2name" && 13649 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13650 then 13651 # We have reworked collect2 13652 : 13653 else 13654 # We have old collect2 13655 hardcode_direct_CXX=unsupported 13656 # It fails to find uninstalled libraries when the uninstalled 13657 # path is not listed in the libpath. Setting hardcode_minus_L 13658 # to unsupported forces relinking 13659 hardcode_minus_L_CXX=yes 13660 hardcode_libdir_flag_spec_CXX='-L$libdir' 13661 hardcode_libdir_separator_CXX= 13662 fi 13663 esac 13664 shared_flag='-shared' 13665 if test yes = "$aix_use_runtimelinking"; then 13666 shared_flag=$shared_flag' $wl-G' 13667 fi 13668 # Need to ensure runtime linking is disabled for the traditional 13669 # shared library, or the linker may eventually find shared libraries 13670 # /with/ Import File - we do not want to mix them. 13671 shared_flag_aix='-shared' 13672 shared_flag_svr4='-shared $wl-G' 13673 else 13674 # not using gcc 13675 if test ia64 = "$host_cpu"; then 13676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13677 # chokes on -Wl,-G. The following line is correct: 13678 shared_flag='-G' 13679 else 13680 if test yes = "$aix_use_runtimelinking"; then 13681 shared_flag='$wl-G' 13682 else 13683 shared_flag='$wl-bM:SRE' 13684 fi 13685 shared_flag_aix='$wl-bM:SRE' 13686 shared_flag_svr4='$wl-G' 13687 fi 13688 fi 13689 13690 export_dynamic_flag_spec_CXX='$wl-bexpall' 13691 # It seems that -bexpall does not export symbols beginning with 13692 # underscore (_), so it is better to generate a list of symbols to 13693 # export. 13694 always_export_symbols_CXX=yes 13695 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13696 # Warning - without using the other runtime loading flags (-brtl), 13697 # -berok will link without error, but may produce a broken library. 13698 # The "-G" linker flag allows undefined symbols. 13699 no_undefined_flag_CXX='-bernotok' 13700 # Determine the default libpath from the value encoded in an empty 13701 # executable. 13702 if test set = "${lt_cv_aix_libpath+set}"; then 13703 aix_libpath=$lt_cv_aix_libpath 13704else 13705 if ${lt_cv_aix_libpath__CXX+:} false; then : 13706 $as_echo_n "(cached) " >&6 13707else 13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13709/* end confdefs.h. */ 13710 13711int 13712main () 13713{ 13714 13715 ; 13716 return 0; 13717} 13718_ACEOF 13719if ac_fn_cxx_try_link "$LINENO"; then : 13720 13721 lt_aix_libpath_sed=' 13722 /Import File Strings/,/^$/ { 13723 /^0/ { 13724 s/^0 *\([^ ]*\) *$/\1/ 13725 p 13726 } 13727 }' 13728 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13729 # Check for a 64-bit object if we didn't find anything. 13730 if test -z "$lt_cv_aix_libpath__CXX"; then 13731 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13732 fi 13733fi 13734rm -f core conftest.err conftest.$ac_objext \ 13735 conftest$ac_exeext conftest.$ac_ext 13736 if test -z "$lt_cv_aix_libpath__CXX"; then 13737 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13738 fi 13739 13740fi 13741 13742 aix_libpath=$lt_cv_aix_libpath__CXX 13743fi 13744 13745 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13746 13747 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 13748 else 13749 if test ia64 = "$host_cpu"; then 13750 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13751 allow_undefined_flag_CXX="-z nodefs" 13752 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" 13753 else 13754 # Determine the default libpath from the value encoded in an 13755 # empty executable. 13756 if test set = "${lt_cv_aix_libpath+set}"; then 13757 aix_libpath=$lt_cv_aix_libpath 13758else 13759 if ${lt_cv_aix_libpath__CXX+:} false; then : 13760 $as_echo_n "(cached) " >&6 13761else 13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13763/* end confdefs.h. */ 13764 13765int 13766main () 13767{ 13768 13769 ; 13770 return 0; 13771} 13772_ACEOF 13773if ac_fn_cxx_try_link "$LINENO"; then : 13774 13775 lt_aix_libpath_sed=' 13776 /Import File Strings/,/^$/ { 13777 /^0/ { 13778 s/^0 *\([^ ]*\) *$/\1/ 13779 p 13780 } 13781 }' 13782 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13783 # Check for a 64-bit object if we didn't find anything. 13784 if test -z "$lt_cv_aix_libpath__CXX"; then 13785 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13786 fi 13787fi 13788rm -f core conftest.err conftest.$ac_objext \ 13789 conftest$ac_exeext conftest.$ac_ext 13790 if test -z "$lt_cv_aix_libpath__CXX"; then 13791 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13792 fi 13793 13794fi 13795 13796 aix_libpath=$lt_cv_aix_libpath__CXX 13797fi 13798 13799 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13800 # Warning - without using the other run time loading flags, 13801 # -berok will link without error, but may produce a broken library. 13802 no_undefined_flag_CXX=' $wl-bernotok' 13803 allow_undefined_flag_CXX=' $wl-berok' 13804 if test yes = "$with_gnu_ld"; then 13805 # We only use this code for GNU lds that support --whole-archive. 13806 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13807 else 13808 # Exported symbols can be pulled into shared objects from archives 13809 whole_archive_flag_spec_CXX='$convenience' 13810 fi 13811 archive_cmds_need_lc_CXX=yes 13812 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13813 # -brtl affects multiple linker settings, -berok does not and is overridden later 13814 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13815 if test svr4 != "$with_aix_soname"; then 13816 # This is similar to how AIX traditionally builds its shared 13817 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13818 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' 13819 fi 13820 if test aix != "$with_aix_soname"; then 13821 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' 13822 else 13823 # used by -dlpreopen to get the symbols 13824 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13825 fi 13826 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13827 fi 13828 fi 13829 ;; 13830 13831 beos*) 13832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13833 allow_undefined_flag_CXX=unsupported 13834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13835 # support --undefined. This deserves some investigation. FIXME 13836 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13837 else 13838 ld_shlibs_CXX=no 13839 fi 13840 ;; 13841 13842 chorus*) 13843 case $cc_basename in 13844 *) 13845 # FIXME: insert proper C++ library support 13846 ld_shlibs_CXX=no 13847 ;; 13848 esac 13849 ;; 13850 13851 cygwin* | mingw* | pw32* | cegcc*) 13852 case $GXX,$cc_basename in 13853 ,cl* | no,cl* | ,icl* | no,icl*) 13854 # Native MSVC or ICC 13855 # hardcode_libdir_flag_spec is actually meaningless, as there is 13856 # no search path for DLLs. 13857 hardcode_libdir_flag_spec_CXX=' ' 13858 allow_undefined_flag_CXX=unsupported 13859 always_export_symbols_CXX=yes 13860 file_list_spec_CXX='@' 13861 # Tell ltmain to make .lib files, not .a files. 13862 libext=lib 13863 # Tell ltmain to make .dll files, not .so files. 13864 shrext_cmds=.dll 13865 # FIXME: Setting linknames here is a bad hack. 13866 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13867 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13868 cp "$export_symbols" "$output_objdir/$soname.def"; 13869 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13870 else 13871 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13872 fi~ 13873 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13874 linknames=' 13875 # The linker will not automatically build a static lib if we build a DLL. 13876 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13877 enable_shared_with_static_runtimes_CXX=yes 13878 # Don't use ranlib 13879 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13880 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13881 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13882 case $lt_outputfile in 13883 *.exe|*.EXE) ;; 13884 *) 13885 lt_outputfile=$lt_outputfile.exe 13886 lt_tool_outputfile=$lt_tool_outputfile.exe 13887 ;; 13888 esac~ 13889 func_to_tool_file "$lt_outputfile"~ 13890 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13891 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13892 $RM "$lt_outputfile.manifest"; 13893 fi' 13894 ;; 13895 *) 13896 # g++ 13897 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13898 # as there is no search path for DLLs. 13899 hardcode_libdir_flag_spec_CXX='-L$libdir' 13900 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13901 allow_undefined_flag_CXX=unsupported 13902 always_export_symbols_CXX=no 13903 enable_shared_with_static_runtimes_CXX=yes 13904 13905 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13906 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' 13907 # If the export-symbols file already is a .def file, use it as 13908 # is; otherwise, prepend EXPORTS... 13909 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13910 cp $export_symbols $output_objdir/$soname.def; 13911 else 13912 echo EXPORTS > $output_objdir/$soname.def; 13913 cat $export_symbols >> $output_objdir/$soname.def; 13914 fi~ 13915 $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' 13916 else 13917 ld_shlibs_CXX=no 13918 fi 13919 ;; 13920 esac 13921 ;; 13922 darwin* | rhapsody*) 13923 13924 13925 archive_cmds_need_lc_CXX=no 13926 hardcode_direct_CXX=no 13927 hardcode_automatic_CXX=yes 13928 hardcode_shlibpath_var_CXX=unsupported 13929 if test yes = "$lt_cv_ld_force_load"; then 13930 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\"`' 13931 13932 else 13933 whole_archive_flag_spec_CXX='' 13934 fi 13935 link_all_deplibs_CXX=yes 13936 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13937 case $cc_basename in 13938 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13939 *) _lt_dar_can_shared=$GCC ;; 13940 esac 13941 if test yes = "$_lt_dar_can_shared"; then 13942 output_verbose_link_cmd=func_echo_all 13943 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" 13944 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13945 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" 13946 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" 13947 if test yes != "$lt_cv_apple_cc_single_mod"; then 13948 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" 13949 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" 13950 fi 13951 13952 else 13953 ld_shlibs_CXX=no 13954 fi 13955 13956 ;; 13957 13958 os2*) 13959 hardcode_libdir_flag_spec_CXX='-L$libdir' 13960 hardcode_minus_L_CXX=yes 13961 allow_undefined_flag_CXX=unsupported 13962 shrext_cmds=.dll 13963 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13964 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13965 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13966 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13967 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13968 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13969 emximp -o $lib $output_objdir/$libname.def' 13970 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13971 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13972 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13973 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13974 prefix_cmds="$SED"~ 13975 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13976 prefix_cmds="$prefix_cmds -e 1d"; 13977 fi~ 13978 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13979 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13980 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13981 emximp -o $lib $output_objdir/$libname.def' 13982 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13983 enable_shared_with_static_runtimes_CXX=yes 13984 file_list_spec_CXX='@' 13985 ;; 13986 13987 dgux*) 13988 case $cc_basename in 13989 ec++*) 13990 # FIXME: insert proper C++ library support 13991 ld_shlibs_CXX=no 13992 ;; 13993 ghcx*) 13994 # Green Hills C++ Compiler 13995 # FIXME: insert proper C++ library support 13996 ld_shlibs_CXX=no 13997 ;; 13998 *) 13999 # FIXME: insert proper C++ library support 14000 ld_shlibs_CXX=no 14001 ;; 14002 esac 14003 ;; 14004 14005 freebsd2.*) 14006 # C++ shared libraries reported to be fairly broken before 14007 # switch to ELF 14008 ld_shlibs_CXX=no 14009 ;; 14010 14011 freebsd-elf*) 14012 archive_cmds_need_lc_CXX=no 14013 ;; 14014 14015 freebsd* | dragonfly*) 14016 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14017 # conventions 14018 ld_shlibs_CXX=yes 14019 ;; 14020 14021 haiku*) 14022 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14023 link_all_deplibs_CXX=yes 14024 ;; 14025 14026 hpux9*) 14027 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14028 hardcode_libdir_separator_CXX=: 14029 export_dynamic_flag_spec_CXX='$wl-E' 14030 hardcode_direct_CXX=yes 14031 hardcode_minus_L_CXX=yes # Not in the search PATH, 14032 # but as the default 14033 # location of the library. 14034 14035 case $cc_basename in 14036 CC*) 14037 # FIXME: insert proper C++ library support 14038 ld_shlibs_CXX=no 14039 ;; 14040 aCC*) 14041 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' 14042 # Commands to make compiler produce verbose output that lists 14043 # what "hidden" libraries, object files and flags are used when 14044 # linking a shared library. 14045 # 14046 # There doesn't appear to be a way to prevent this compiler from 14047 # explicitly linking system object files so we need to strip them 14048 # from the output so that they don't get included in the library 14049 # dependencies. 14050 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"' 14051 ;; 14052 *) 14053 if test yes = "$GXX"; then 14054 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' 14055 else 14056 # FIXME: insert proper C++ library support 14057 ld_shlibs_CXX=no 14058 fi 14059 ;; 14060 esac 14061 ;; 14062 14063 hpux10*|hpux11*) 14064 if test no = "$with_gnu_ld"; then 14065 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14066 hardcode_libdir_separator_CXX=: 14067 14068 case $host_cpu in 14069 hppa*64*|ia64*) 14070 ;; 14071 *) 14072 export_dynamic_flag_spec_CXX='$wl-E' 14073 ;; 14074 esac 14075 fi 14076 case $host_cpu in 14077 hppa*64*|ia64*) 14078 hardcode_direct_CXX=no 14079 hardcode_shlibpath_var_CXX=no 14080 ;; 14081 *) 14082 hardcode_direct_CXX=yes 14083 hardcode_direct_absolute_CXX=yes 14084 hardcode_minus_L_CXX=yes # Not in the search PATH, 14085 # but as the default 14086 # location of the library. 14087 ;; 14088 esac 14089 14090 case $cc_basename in 14091 CC*) 14092 # FIXME: insert proper C++ library support 14093 ld_shlibs_CXX=no 14094 ;; 14095 aCC*) 14096 case $host_cpu in 14097 hppa*64*) 14098 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14099 ;; 14100 ia64*) 14101 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14102 ;; 14103 *) 14104 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14105 ;; 14106 esac 14107 # Commands to make compiler produce verbose output that lists 14108 # what "hidden" libraries, object files and flags are used when 14109 # linking a shared library. 14110 # 14111 # There doesn't appear to be a way to prevent this compiler from 14112 # explicitly linking system object files so we need to strip them 14113 # from the output so that they don't get included in the library 14114 # dependencies. 14115 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"' 14116 ;; 14117 *) 14118 if test yes = "$GXX"; then 14119 if test no = "$with_gnu_ld"; then 14120 case $host_cpu in 14121 hppa*64*) 14122 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14123 ;; 14124 ia64*) 14125 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14126 ;; 14127 *) 14128 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' 14129 ;; 14130 esac 14131 fi 14132 else 14133 # FIXME: insert proper C++ library support 14134 ld_shlibs_CXX=no 14135 fi 14136 ;; 14137 esac 14138 ;; 14139 14140 interix[3-9]*) 14141 hardcode_direct_CXX=no 14142 hardcode_shlibpath_var_CXX=no 14143 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14144 export_dynamic_flag_spec_CXX='$wl-E' 14145 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14146 # Instead, shared libraries are loaded at an image base (0x10000000 by 14147 # default) and relocated if they conflict, which is a slow very memory 14148 # consuming and fragmenting process. To avoid this, we pick a random, 14149 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14150 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14151 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' 14152 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' 14153 ;; 14154 irix5* | irix6*) 14155 case $cc_basename in 14156 CC*) 14157 # SGI C++ 14158 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' 14159 14160 # Archives containing C++ object files must be created using 14161 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14162 # necessary to make sure instantiated templates are included 14163 # in the archive. 14164 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14165 ;; 14166 *) 14167 if test yes = "$GXX"; then 14168 if test no = "$with_gnu_ld"; then 14169 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' 14170 else 14171 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' 14172 fi 14173 fi 14174 link_all_deplibs_CXX=yes 14175 ;; 14176 esac 14177 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14178 hardcode_libdir_separator_CXX=: 14179 inherit_rpath_CXX=yes 14180 ;; 14181 14182 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14183 case $cc_basename in 14184 KCC*) 14185 # Kuck and Associates, Inc. (KAI) C++ Compiler 14186 14187 # KCC will only create a shared library if the output file 14188 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14189 # to its proper name (with version) after linking. 14190 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' 14191 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' 14192 # Commands to make compiler produce verbose output that lists 14193 # what "hidden" libraries, object files and flags are used when 14194 # linking a shared library. 14195 # 14196 # There doesn't appear to be a way to prevent this compiler from 14197 # explicitly linking system object files so we need to strip them 14198 # from the output so that they don't get included in the library 14199 # dependencies. 14200 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"' 14201 14202 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14203 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14204 14205 # Archives containing C++ object files must be created using 14206 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14207 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14208 ;; 14209 icpc* | ecpc* ) 14210 # Intel C++ 14211 with_gnu_ld=yes 14212 # version 8.0 and above of icpc choke on multiply defined symbols 14213 # if we add $predep_objects and $postdep_objects, however 7.1 and 14214 # earlier do not add the objects themselves. 14215 case `$CC -V 2>&1` in 14216 *"Version 7."*) 14217 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14218 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' 14219 ;; 14220 *) # Version 8.0 or newer 14221 tmp_idyn= 14222 case $host_cpu in 14223 ia64*) tmp_idyn=' -i_dynamic';; 14224 esac 14225 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14226 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' 14227 ;; 14228 esac 14229 archive_cmds_need_lc_CXX=no 14230 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14231 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14232 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14233 ;; 14234 pgCC* | pgcpp*) 14235 # Portland Group C++ compiler 14236 case `$CC -V` in 14237 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14238 prelink_cmds_CXX='tpldir=Template.dir~ 14239 rm -rf $tpldir~ 14240 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14241 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14242 old_archive_cmds_CXX='tpldir=Template.dir~ 14243 rm -rf $tpldir~ 14244 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14245 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14246 $RANLIB $oldlib' 14247 archive_cmds_CXX='tpldir=Template.dir~ 14248 rm -rf $tpldir~ 14249 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14250 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14251 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14252 rm -rf $tpldir~ 14253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14254 $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' 14255 ;; 14256 *) # Version 6 and above use weak symbols 14257 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14258 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' 14259 ;; 14260 esac 14261 14262 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14263 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14264 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' 14265 ;; 14266 cxx*) 14267 # Compaq C++ 14268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14269 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' 14270 14271 runpath_var=LD_RUN_PATH 14272 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14273 hardcode_libdir_separator_CXX=: 14274 14275 # Commands to make compiler produce verbose output that lists 14276 # what "hidden" libraries, object files and flags are used when 14277 # linking a shared library. 14278 # 14279 # There doesn't appear to be a way to prevent this compiler from 14280 # explicitly linking system object files so we need to strip them 14281 # from the output so that they don't get included in the library 14282 # dependencies. 14283 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' 14284 ;; 14285 xl* | mpixl* | bgxl*) 14286 # IBM XL 8.0 on PPC, with GNU ld 14287 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14288 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14289 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14290 if test yes = "$supports_anon_versioning"; then 14291 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14293 echo "local: *; };" >> $output_objdir/$libname.ver~ 14294 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14295 fi 14296 ;; 14297 *) 14298 case `$CC -V 2>&1 | sed 5q` in 14299 *Sun\ C*) 14300 # Sun C++ 5.9 14301 no_undefined_flag_CXX=' -zdefs' 14302 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14303 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' 14304 hardcode_libdir_flag_spec_CXX='-R$libdir' 14305 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' 14306 compiler_needs_object_CXX=yes 14307 14308 # Not sure whether something based on 14309 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14310 # would be better. 14311 output_verbose_link_cmd='func_echo_all' 14312 14313 # Archives containing C++ object files must be created using 14314 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14315 # necessary to make sure instantiated templates are included 14316 # in the archive. 14317 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14318 ;; 14319 esac 14320 ;; 14321 esac 14322 ;; 14323 14324 lynxos*) 14325 # FIXME: insert proper C++ library support 14326 ld_shlibs_CXX=no 14327 ;; 14328 14329 m88k*) 14330 # FIXME: insert proper C++ library support 14331 ld_shlibs_CXX=no 14332 ;; 14333 14334 mvs*) 14335 case $cc_basename in 14336 cxx*) 14337 # FIXME: insert proper C++ library support 14338 ld_shlibs_CXX=no 14339 ;; 14340 *) 14341 # FIXME: insert proper C++ library support 14342 ld_shlibs_CXX=no 14343 ;; 14344 esac 14345 ;; 14346 14347 netbsd*) 14348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14349 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14350 wlarc= 14351 hardcode_libdir_flag_spec_CXX='-R$libdir' 14352 hardcode_direct_CXX=yes 14353 hardcode_shlibpath_var_CXX=no 14354 fi 14355 # Workaround some broken pre-1.5 toolchains 14356 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14357 ;; 14358 14359 *nto* | *qnx*) 14360 ld_shlibs_CXX=yes 14361 ;; 14362 14363 openbsd* | bitrig*) 14364 if test -f /usr/libexec/ld.so; then 14365 hardcode_direct_CXX=yes 14366 hardcode_shlibpath_var_CXX=no 14367 hardcode_direct_absolute_CXX=yes 14368 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14369 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14370 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14371 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14372 export_dynamic_flag_spec_CXX='$wl-E' 14373 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14374 fi 14375 output_verbose_link_cmd=func_echo_all 14376 else 14377 ld_shlibs_CXX=no 14378 fi 14379 ;; 14380 14381 osf3* | osf4* | osf5*) 14382 case $cc_basename in 14383 KCC*) 14384 # Kuck and Associates, Inc. (KAI) C++ Compiler 14385 14386 # KCC will only create a shared library if the output file 14387 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14388 # to its proper name (with version) after linking. 14389 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' 14390 14391 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14392 hardcode_libdir_separator_CXX=: 14393 14394 # Archives containing C++ object files must be created using 14395 # the KAI C++ compiler. 14396 case $host in 14397 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14398 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14399 esac 14400 ;; 14401 RCC*) 14402 # Rational C++ 2.4.1 14403 # FIXME: insert proper C++ library support 14404 ld_shlibs_CXX=no 14405 ;; 14406 cxx*) 14407 case $host in 14408 osf3*) 14409 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14410 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' 14411 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14412 ;; 14413 *) 14414 allow_undefined_flag_CXX=' -expect_unresolved \*' 14415 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' 14416 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14417 echo "-hidden">> $lib.exp~ 14418 $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~ 14419 $RM $lib.exp' 14420 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14421 ;; 14422 esac 14423 14424 hardcode_libdir_separator_CXX=: 14425 14426 # Commands to make compiler produce verbose output that lists 14427 # what "hidden" libraries, object files and flags are used when 14428 # linking a shared library. 14429 # 14430 # There doesn't appear to be a way to prevent this compiler from 14431 # explicitly linking system object files so we need to strip them 14432 # from the output so that they don't get included in the library 14433 # dependencies. 14434 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"' 14435 ;; 14436 *) 14437 if test yes,no = "$GXX,$with_gnu_ld"; then 14438 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14439 case $host in 14440 osf3*) 14441 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' 14442 ;; 14443 *) 14444 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' 14445 ;; 14446 esac 14447 14448 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14449 hardcode_libdir_separator_CXX=: 14450 14451 # Commands to make compiler produce verbose output that lists 14452 # what "hidden" libraries, object files and flags are used when 14453 # linking a shared library. 14454 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14455 14456 else 14457 # FIXME: insert proper C++ library support 14458 ld_shlibs_CXX=no 14459 fi 14460 ;; 14461 esac 14462 ;; 14463 14464 psos*) 14465 # FIXME: insert proper C++ library support 14466 ld_shlibs_CXX=no 14467 ;; 14468 14469 sunos4*) 14470 case $cc_basename in 14471 CC*) 14472 # Sun C++ 4.x 14473 # FIXME: insert proper C++ library support 14474 ld_shlibs_CXX=no 14475 ;; 14476 lcc*) 14477 # Lucid 14478 # FIXME: insert proper C++ library support 14479 ld_shlibs_CXX=no 14480 ;; 14481 *) 14482 # FIXME: insert proper C++ library support 14483 ld_shlibs_CXX=no 14484 ;; 14485 esac 14486 ;; 14487 14488 solaris*) 14489 case $cc_basename in 14490 CC* | sunCC*) 14491 # Sun C++ 4.2, 5.x and Centerline C++ 14492 archive_cmds_need_lc_CXX=yes 14493 no_undefined_flag_CXX=' -zdefs' 14494 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14495 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14496 $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' 14497 14498 hardcode_libdir_flag_spec_CXX='-R$libdir' 14499 hardcode_shlibpath_var_CXX=no 14500 case $host_os in 14501 solaris2.[0-5] | solaris2.[0-5].*) ;; 14502 *) 14503 # The compiler driver will combine and reorder linker options, 14504 # but understands '-z linker_flag'. 14505 # Supported since Solaris 2.6 (maybe 2.5.1?) 14506 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14507 ;; 14508 esac 14509 link_all_deplibs_CXX=yes 14510 14511 output_verbose_link_cmd='func_echo_all' 14512 14513 # Archives containing C++ object files must be created using 14514 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14515 # necessary to make sure instantiated templates are included 14516 # in the archive. 14517 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14518 ;; 14519 gcx*) 14520 # Green Hills C++ Compiler 14521 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14522 14523 # The C++ compiler must be used to create the archive. 14524 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14525 ;; 14526 *) 14527 # GNU C++ compiler with Solaris linker 14528 if test yes,no = "$GXX,$with_gnu_ld"; then 14529 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14530 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14531 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14532 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14533 $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' 14534 14535 # Commands to make compiler produce verbose output that lists 14536 # what "hidden" libraries, object files and flags are used when 14537 # linking a shared library. 14538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14539 else 14540 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14541 # platform. 14542 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14543 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14544 $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' 14545 14546 # Commands to make compiler produce verbose output that lists 14547 # what "hidden" libraries, object files and flags are used when 14548 # linking a shared library. 14549 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14550 fi 14551 14552 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14553 case $host_os in 14554 solaris2.[0-5] | solaris2.[0-5].*) ;; 14555 *) 14556 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14557 ;; 14558 esac 14559 fi 14560 ;; 14561 esac 14562 ;; 14563 14564 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14565 no_undefined_flag_CXX='$wl-z,text' 14566 archive_cmds_need_lc_CXX=no 14567 hardcode_shlibpath_var_CXX=no 14568 runpath_var='LD_RUN_PATH' 14569 14570 case $cc_basename in 14571 CC*) 14572 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14573 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14574 ;; 14575 *) 14576 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14577 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14578 ;; 14579 esac 14580 ;; 14581 14582 sysv5* | sco3.2v5* | sco5v6*) 14583 # Note: We CANNOT use -z defs as we might desire, because we do not 14584 # link with -lc, and that would cause any symbols used from libc to 14585 # always be unresolved, which means just about no library would 14586 # ever link correctly. If we're not using GNU ld we use -z text 14587 # though, which does catch some bad symbols but isn't as heavy-handed 14588 # as -z defs. 14589 no_undefined_flag_CXX='$wl-z,text' 14590 allow_undefined_flag_CXX='$wl-z,nodefs' 14591 archive_cmds_need_lc_CXX=no 14592 hardcode_shlibpath_var_CXX=no 14593 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14594 hardcode_libdir_separator_CXX=':' 14595 link_all_deplibs_CXX=yes 14596 export_dynamic_flag_spec_CXX='$wl-Bexport' 14597 runpath_var='LD_RUN_PATH' 14598 14599 case $cc_basename in 14600 CC*) 14601 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14602 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14603 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14604 '"$old_archive_cmds_CXX" 14605 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14606 '"$reload_cmds_CXX" 14607 ;; 14608 *) 14609 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14610 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14611 ;; 14612 esac 14613 ;; 14614 14615 tandem*) 14616 case $cc_basename in 14617 NCC*) 14618 # NonStop-UX NCC 3.20 14619 # FIXME: insert proper C++ library support 14620 ld_shlibs_CXX=no 14621 ;; 14622 *) 14623 # FIXME: insert proper C++ library support 14624 ld_shlibs_CXX=no 14625 ;; 14626 esac 14627 ;; 14628 14629 vxworks*) 14630 # FIXME: insert proper C++ library support 14631 ld_shlibs_CXX=no 14632 ;; 14633 14634 *) 14635 # FIXME: insert proper C++ library support 14636 ld_shlibs_CXX=no 14637 ;; 14638 esac 14639 14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14641$as_echo "$ld_shlibs_CXX" >&6; } 14642 test no = "$ld_shlibs_CXX" && can_build_shared=no 14643 14644 GCC_CXX=$GXX 14645 LD_CXX=$LD 14646 14647 ## CAVEAT EMPTOR: 14648 ## There is no encapsulation within the following macros, do not change 14649 ## the running order or otherwise move them around unless you know exactly 14650 ## what you are doing... 14651 # Dependencies to place before and after the object being linked: 14652predep_objects_CXX= 14653postdep_objects_CXX= 14654predeps_CXX= 14655postdeps_CXX= 14656compiler_lib_search_path_CXX= 14657 14658cat > conftest.$ac_ext <<_LT_EOF 14659class Foo 14660{ 14661public: 14662 Foo (void) { a = 0; } 14663private: 14664 int a; 14665}; 14666_LT_EOF 14667 14668 14669_lt_libdeps_save_CFLAGS=$CFLAGS 14670case "$CC $CFLAGS " in #( 14671*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14672*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14673*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14674esac 14675 14676if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14677 (eval $ac_compile) 2>&5 14678 ac_status=$? 14679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14680 test $ac_status = 0; }; then 14681 # Parse the compiler output and extract the necessary 14682 # objects, libraries and library flags. 14683 14684 # Sentinel used to keep track of whether or not we are before 14685 # the conftest object file. 14686 pre_test_object_deps_done=no 14687 14688 for p in `eval "$output_verbose_link_cmd"`; do 14689 case $prev$p in 14690 14691 -L* | -R* | -l*) 14692 # Some compilers place space between "-{L,R}" and the path. 14693 # Remove the space. 14694 if test x-L = "$p" || 14695 test x-R = "$p"; then 14696 prev=$p 14697 continue 14698 fi 14699 14700 # Expand the sysroot to ease extracting the directories later. 14701 if test -z "$prev"; then 14702 case $p in 14703 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14704 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14705 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14706 esac 14707 fi 14708 case $p in 14709 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14710 esac 14711 if test no = "$pre_test_object_deps_done"; then 14712 case $prev in 14713 -L | -R) 14714 # Internal compiler library paths should come after those 14715 # provided the user. The postdeps already come after the 14716 # user supplied libs so there is no need to process them. 14717 if test -z "$compiler_lib_search_path_CXX"; then 14718 compiler_lib_search_path_CXX=$prev$p 14719 else 14720 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14721 fi 14722 ;; 14723 # The "-l" case would never come before the object being 14724 # linked, so don't bother handling this case. 14725 esac 14726 else 14727 if test -z "$postdeps_CXX"; then 14728 postdeps_CXX=$prev$p 14729 else 14730 postdeps_CXX="${postdeps_CXX} $prev$p" 14731 fi 14732 fi 14733 prev= 14734 ;; 14735 14736 *.lto.$objext) ;; # Ignore GCC LTO objects 14737 *.$objext) 14738 # This assumes that the test object file only shows up 14739 # once in the compiler output. 14740 if test "$p" = "conftest.$objext"; then 14741 pre_test_object_deps_done=yes 14742 continue 14743 fi 14744 14745 if test no = "$pre_test_object_deps_done"; then 14746 if test -z "$predep_objects_CXX"; then 14747 predep_objects_CXX=$p 14748 else 14749 predep_objects_CXX="$predep_objects_CXX $p" 14750 fi 14751 else 14752 if test -z "$postdep_objects_CXX"; then 14753 postdep_objects_CXX=$p 14754 else 14755 postdep_objects_CXX="$postdep_objects_CXX $p" 14756 fi 14757 fi 14758 ;; 14759 14760 *) ;; # Ignore the rest. 14761 14762 esac 14763 done 14764 14765 # Clean up. 14766 rm -f a.out a.exe 14767else 14768 echo "libtool.m4: error: problem compiling CXX test program" 14769fi 14770 14771$RM -f confest.$objext 14772CFLAGS=$_lt_libdeps_save_CFLAGS 14773 14774# PORTME: override above test on systems where it is broken 14775case $host_os in 14776interix[3-9]*) 14777 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14778 # hack all around it, let's just trust "g++" to DTRT. 14779 predep_objects_CXX= 14780 postdep_objects_CXX= 14781 postdeps_CXX= 14782 ;; 14783esac 14784 14785 14786case " $postdeps_CXX " in 14787*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14788esac 14789 compiler_lib_search_dirs_CXX= 14790if test -n "${compiler_lib_search_path_CXX}"; then 14791 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14792fi 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 lt_prog_compiler_wl_CXX= 14825lt_prog_compiler_pic_CXX= 14826lt_prog_compiler_static_CXX= 14827 14828 14829 # C++ specific cases for pic, static, wl, etc. 14830 if test yes = "$GXX"; then 14831 lt_prog_compiler_wl_CXX='-Wl,' 14832 lt_prog_compiler_static_CXX='-static' 14833 14834 case $host_os in 14835 aix*) 14836 # All AIX code is PIC. 14837 if test ia64 = "$host_cpu"; then 14838 # AIX 5 now supports IA64 processor 14839 lt_prog_compiler_static_CXX='-Bstatic' 14840 fi 14841 lt_prog_compiler_pic_CXX='-fPIC' 14842 ;; 14843 14844 amigaos*) 14845 case $host_cpu in 14846 powerpc) 14847 # see comment about AmigaOS4 .so support 14848 lt_prog_compiler_pic_CXX='-fPIC' 14849 ;; 14850 m68k) 14851 # FIXME: we need at least 68020 code to build shared libraries, but 14852 # adding the '-m68020' flag to GCC prevents building anything better, 14853 # like '-m68040'. 14854 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14855 ;; 14856 esac 14857 ;; 14858 14859 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14860 # PIC is the default for these OSes. 14861 ;; 14862 mingw* | cygwin* | os2* | pw32* | cegcc*) 14863 # This hack is so that the source file can tell whether it is being 14864 # built for inclusion in a dll (and should export symbols for example). 14865 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14866 # (--disable-auto-import) libraries 14867 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14868 case $host_os in 14869 os2*) 14870 lt_prog_compiler_static_CXX='$wl-static' 14871 ;; 14872 esac 14873 ;; 14874 darwin* | rhapsody*) 14875 # PIC is the default on this platform 14876 # Common symbols not allowed in MH_DYLIB files 14877 lt_prog_compiler_pic_CXX='-fno-common' 14878 ;; 14879 *djgpp*) 14880 # DJGPP does not support shared libraries at all 14881 lt_prog_compiler_pic_CXX= 14882 ;; 14883 haiku*) 14884 # PIC is the default for Haiku. 14885 # The "-static" flag exists, but is broken. 14886 lt_prog_compiler_static_CXX= 14887 ;; 14888 interix[3-9]*) 14889 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14890 # Instead, we relocate shared libraries at runtime. 14891 ;; 14892 sysv4*MP*) 14893 if test -d /usr/nec; then 14894 lt_prog_compiler_pic_CXX=-Kconform_pic 14895 fi 14896 ;; 14897 hpux*) 14898 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14899 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14900 # sets the default TLS model and affects inlining. 14901 case $host_cpu in 14902 hppa*64*) 14903 ;; 14904 *) 14905 lt_prog_compiler_pic_CXX='-fPIC' 14906 ;; 14907 esac 14908 ;; 14909 *qnx* | *nto*) 14910 # QNX uses GNU C++, but need to define -shared option too, otherwise 14911 # it will coredump. 14912 lt_prog_compiler_pic_CXX='-fPIC -shared' 14913 ;; 14914 *) 14915 lt_prog_compiler_pic_CXX='-fPIC' 14916 ;; 14917 esac 14918 else 14919 case $host_os in 14920 aix[4-9]*) 14921 # All AIX code is PIC. 14922 if test ia64 = "$host_cpu"; then 14923 # AIX 5 now supports IA64 processor 14924 lt_prog_compiler_static_CXX='-Bstatic' 14925 else 14926 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14927 fi 14928 ;; 14929 chorus*) 14930 case $cc_basename in 14931 cxch68*) 14932 # Green Hills C++ Compiler 14933 # _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" 14934 ;; 14935 esac 14936 ;; 14937 mingw* | cygwin* | os2* | pw32* | cegcc*) 14938 # This hack is so that the source file can tell whether it is being 14939 # built for inclusion in a dll (and should export symbols for example). 14940 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14941 ;; 14942 dgux*) 14943 case $cc_basename in 14944 ec++*) 14945 lt_prog_compiler_pic_CXX='-KPIC' 14946 ;; 14947 ghcx*) 14948 # Green Hills C++ Compiler 14949 lt_prog_compiler_pic_CXX='-pic' 14950 ;; 14951 *) 14952 ;; 14953 esac 14954 ;; 14955 freebsd* | dragonfly*) 14956 # FreeBSD uses GNU C++ 14957 ;; 14958 hpux9* | hpux10* | hpux11*) 14959 case $cc_basename in 14960 CC*) 14961 lt_prog_compiler_wl_CXX='-Wl,' 14962 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14963 if test ia64 != "$host_cpu"; then 14964 lt_prog_compiler_pic_CXX='+Z' 14965 fi 14966 ;; 14967 aCC*) 14968 lt_prog_compiler_wl_CXX='-Wl,' 14969 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14970 case $host_cpu in 14971 hppa*64*|ia64*) 14972 # +Z the default 14973 ;; 14974 *) 14975 lt_prog_compiler_pic_CXX='+Z' 14976 ;; 14977 esac 14978 ;; 14979 *) 14980 ;; 14981 esac 14982 ;; 14983 interix*) 14984 # This is c89, which is MS Visual C++ (no shared libs) 14985 # Anyone wants to do a port? 14986 ;; 14987 irix5* | irix6* | nonstopux*) 14988 case $cc_basename in 14989 CC*) 14990 lt_prog_compiler_wl_CXX='-Wl,' 14991 lt_prog_compiler_static_CXX='-non_shared' 14992 # CC pic flag -KPIC is the default. 14993 ;; 14994 *) 14995 ;; 14996 esac 14997 ;; 14998 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14999 case $cc_basename in 15000 KCC*) 15001 # KAI C++ Compiler 15002 lt_prog_compiler_wl_CXX='--backend -Wl,' 15003 lt_prog_compiler_pic_CXX='-fPIC' 15004 ;; 15005 ecpc* ) 15006 # old Intel C++ for x86_64, which still supported -KPIC. 15007 lt_prog_compiler_wl_CXX='-Wl,' 15008 lt_prog_compiler_pic_CXX='-KPIC' 15009 lt_prog_compiler_static_CXX='-static' 15010 ;; 15011 icpc* ) 15012 # Intel C++, used to be incompatible with GCC. 15013 # ICC 10 doesn't accept -KPIC any more. 15014 lt_prog_compiler_wl_CXX='-Wl,' 15015 lt_prog_compiler_pic_CXX='-fPIC' 15016 lt_prog_compiler_static_CXX='-static' 15017 ;; 15018 pgCC* | pgcpp*) 15019 # Portland Group C++ compiler 15020 lt_prog_compiler_wl_CXX='-Wl,' 15021 lt_prog_compiler_pic_CXX='-fpic' 15022 lt_prog_compiler_static_CXX='-Bstatic' 15023 ;; 15024 cxx*) 15025 # Compaq C++ 15026 # Make sure the PIC flag is empty. It appears that all Alpha 15027 # Linux and Compaq Tru64 Unix objects are PIC. 15028 lt_prog_compiler_pic_CXX= 15029 lt_prog_compiler_static_CXX='-non_shared' 15030 ;; 15031 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15032 # IBM XL 8.0, 9.0 on PPC and BlueGene 15033 lt_prog_compiler_wl_CXX='-Wl,' 15034 lt_prog_compiler_pic_CXX='-qpic' 15035 lt_prog_compiler_static_CXX='-qstaticlink' 15036 ;; 15037 *) 15038 case `$CC -V 2>&1 | sed 5q` in 15039 *Sun\ C*) 15040 # Sun C++ 5.9 15041 lt_prog_compiler_pic_CXX='-KPIC' 15042 lt_prog_compiler_static_CXX='-Bstatic' 15043 lt_prog_compiler_wl_CXX='-Qoption ld ' 15044 ;; 15045 esac 15046 ;; 15047 esac 15048 ;; 15049 lynxos*) 15050 ;; 15051 m88k*) 15052 ;; 15053 mvs*) 15054 case $cc_basename in 15055 cxx*) 15056 lt_prog_compiler_pic_CXX='-W c,exportall' 15057 ;; 15058 *) 15059 ;; 15060 esac 15061 ;; 15062 netbsd*) 15063 ;; 15064 *qnx* | *nto*) 15065 # QNX uses GNU C++, but need to define -shared option too, otherwise 15066 # it will coredump. 15067 lt_prog_compiler_pic_CXX='-fPIC -shared' 15068 ;; 15069 osf3* | osf4* | osf5*) 15070 case $cc_basename in 15071 KCC*) 15072 lt_prog_compiler_wl_CXX='--backend -Wl,' 15073 ;; 15074 RCC*) 15075 # Rational C++ 2.4.1 15076 lt_prog_compiler_pic_CXX='-pic' 15077 ;; 15078 cxx*) 15079 # Digital/Compaq C++ 15080 lt_prog_compiler_wl_CXX='-Wl,' 15081 # Make sure the PIC flag is empty. It appears that all Alpha 15082 # Linux and Compaq Tru64 Unix objects are PIC. 15083 lt_prog_compiler_pic_CXX= 15084 lt_prog_compiler_static_CXX='-non_shared' 15085 ;; 15086 *) 15087 ;; 15088 esac 15089 ;; 15090 psos*) 15091 ;; 15092 solaris*) 15093 case $cc_basename in 15094 CC* | sunCC*) 15095 # Sun C++ 4.2, 5.x and Centerline C++ 15096 lt_prog_compiler_pic_CXX='-KPIC' 15097 lt_prog_compiler_static_CXX='-Bstatic' 15098 lt_prog_compiler_wl_CXX='-Qoption ld ' 15099 ;; 15100 gcx*) 15101 # Green Hills C++ Compiler 15102 lt_prog_compiler_pic_CXX='-PIC' 15103 ;; 15104 *) 15105 ;; 15106 esac 15107 ;; 15108 sunos4*) 15109 case $cc_basename in 15110 CC*) 15111 # Sun C++ 4.x 15112 lt_prog_compiler_pic_CXX='-pic' 15113 lt_prog_compiler_static_CXX='-Bstatic' 15114 ;; 15115 lcc*) 15116 # Lucid 15117 lt_prog_compiler_pic_CXX='-pic' 15118 ;; 15119 *) 15120 ;; 15121 esac 15122 ;; 15123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15124 case $cc_basename in 15125 CC*) 15126 lt_prog_compiler_wl_CXX='-Wl,' 15127 lt_prog_compiler_pic_CXX='-KPIC' 15128 lt_prog_compiler_static_CXX='-Bstatic' 15129 ;; 15130 esac 15131 ;; 15132 tandem*) 15133 case $cc_basename in 15134 NCC*) 15135 # NonStop-UX NCC 3.20 15136 lt_prog_compiler_pic_CXX='-KPIC' 15137 ;; 15138 *) 15139 ;; 15140 esac 15141 ;; 15142 vxworks*) 15143 ;; 15144 *) 15145 lt_prog_compiler_can_build_shared_CXX=no 15146 ;; 15147 esac 15148 fi 15149 15150case $host_os in 15151 # For platforms that do not support PIC, -DPIC is meaningless: 15152 *djgpp*) 15153 lt_prog_compiler_pic_CXX= 15154 ;; 15155 *) 15156 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15157 ;; 15158esac 15159 15160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15161$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15162if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15163 $as_echo_n "(cached) " >&6 15164else 15165 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15166fi 15167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15168$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15169lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15170 15171# 15172# Check to make sure the PIC flag actually works. 15173# 15174if test -n "$lt_prog_compiler_pic_CXX"; then 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15176$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15177if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15178 $as_echo_n "(cached) " >&6 15179else 15180 lt_cv_prog_compiler_pic_works_CXX=no 15181 ac_outfile=conftest.$ac_objext 15182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15183 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15184 # Insert the option either (1) after the last *FLAGS variable, or 15185 # (2) before a word containing "conftest.", or (3) at the end. 15186 # Note that $ac_compile itself does not contain backslashes and begins 15187 # with a dollar sign (not a hyphen), so the echo should work correctly. 15188 # The option is referenced via a variable to avoid confusing sed. 15189 lt_compile=`echo "$ac_compile" | $SED \ 15190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15192 -e 's:$: $lt_compiler_flag:'` 15193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15194 (eval "$lt_compile" 2>conftest.err) 15195 ac_status=$? 15196 cat conftest.err >&5 15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15198 if (exit $ac_status) && test -s "$ac_outfile"; then 15199 # The compiler can only warn and ignore the option if not recognized 15200 # So say no if there are warnings other than the usual output. 15201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15204 lt_cv_prog_compiler_pic_works_CXX=yes 15205 fi 15206 fi 15207 $RM conftest* 15208 15209fi 15210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15211$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15212 15213if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15214 case $lt_prog_compiler_pic_CXX in 15215 "" | " "*) ;; 15216 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15217 esac 15218else 15219 lt_prog_compiler_pic_CXX= 15220 lt_prog_compiler_can_build_shared_CXX=no 15221fi 15222 15223fi 15224 15225 15226 15227 15228 15229# 15230# Check to make sure the static flag actually works. 15231# 15232wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15234$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15235if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15236 $as_echo_n "(cached) " >&6 15237else 15238 lt_cv_prog_compiler_static_works_CXX=no 15239 save_LDFLAGS=$LDFLAGS 15240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15241 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15243 # The linker can only warn and ignore the option if not recognized 15244 # So say no if there are warnings 15245 if test -s conftest.err; then 15246 # Append any errors to the config.log. 15247 cat conftest.err 1>&5 15248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15250 if diff conftest.exp conftest.er2 >/dev/null; then 15251 lt_cv_prog_compiler_static_works_CXX=yes 15252 fi 15253 else 15254 lt_cv_prog_compiler_static_works_CXX=yes 15255 fi 15256 fi 15257 $RM -r conftest* 15258 LDFLAGS=$save_LDFLAGS 15259 15260fi 15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15262$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15263 15264if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15265 : 15266else 15267 lt_prog_compiler_static_CXX= 15268fi 15269 15270 15271 15272 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15274$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15275if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15276 $as_echo_n "(cached) " >&6 15277else 15278 lt_cv_prog_compiler_c_o_CXX=no 15279 $RM -r conftest 2>/dev/null 15280 mkdir conftest 15281 cd conftest 15282 mkdir out 15283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15284 15285 lt_compiler_flag="-o out/conftest2.$ac_objext" 15286 # Insert the option either (1) after the last *FLAGS variable, or 15287 # (2) before a word containing "conftest.", or (3) at the end. 15288 # Note that $ac_compile itself does not contain backslashes and begins 15289 # with a dollar sign (not a hyphen), so the echo should work correctly. 15290 lt_compile=`echo "$ac_compile" | $SED \ 15291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15293 -e 's:$: $lt_compiler_flag:'` 15294 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15295 (eval "$lt_compile" 2>out/conftest.err) 15296 ac_status=$? 15297 cat out/conftest.err >&5 15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15299 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15300 then 15301 # The compiler can only warn and ignore the option if not recognized 15302 # So say no if there are warnings 15303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15304 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15305 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15306 lt_cv_prog_compiler_c_o_CXX=yes 15307 fi 15308 fi 15309 chmod u+w . 2>&5 15310 $RM conftest* 15311 # SGI C++ compiler will create directory out/ii_files/ for 15312 # template instantiation 15313 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15314 $RM out/* && rmdir out 15315 cd .. 15316 $RM -r conftest 15317 $RM conftest* 15318 15319fi 15320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15321$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15322 15323 15324 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15326$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15327if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 lt_cv_prog_compiler_c_o_CXX=no 15331 $RM -r conftest 2>/dev/null 15332 mkdir conftest 15333 cd conftest 15334 mkdir out 15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15336 15337 lt_compiler_flag="-o out/conftest2.$ac_objext" 15338 # Insert the option either (1) after the last *FLAGS variable, or 15339 # (2) before a word containing "conftest.", or (3) at the end. 15340 # Note that $ac_compile itself does not contain backslashes and begins 15341 # with a dollar sign (not a hyphen), so the echo should work correctly. 15342 lt_compile=`echo "$ac_compile" | $SED \ 15343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15345 -e 's:$: $lt_compiler_flag:'` 15346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15347 (eval "$lt_compile" 2>out/conftest.err) 15348 ac_status=$? 15349 cat out/conftest.err >&5 15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15351 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15352 then 15353 # The compiler can only warn and ignore the option if not recognized 15354 # So say no if there are warnings 15355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15358 lt_cv_prog_compiler_c_o_CXX=yes 15359 fi 15360 fi 15361 chmod u+w . 2>&5 15362 $RM conftest* 15363 # SGI C++ compiler will create directory out/ii_files/ for 15364 # template instantiation 15365 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15366 $RM out/* && rmdir out 15367 cd .. 15368 $RM -r conftest 15369 $RM conftest* 15370 15371fi 15372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15373$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15374 15375 15376 15377 15378hard_links=nottested 15379if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15380 # do not overwrite the value of need_locks provided by the user 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15382$as_echo_n "checking if we can lock with hard links... " >&6; } 15383 hard_links=yes 15384 $RM conftest* 15385 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15386 touch conftest.a 15387 ln conftest.a conftest.b 2>&5 || hard_links=no 15388 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15390$as_echo "$hard_links" >&6; } 15391 if test no = "$hard_links"; then 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15393$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15394 need_locks=warn 15395 fi 15396else 15397 need_locks=no 15398fi 15399 15400 15401 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15403$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15404 15405 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15406 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15407 case $host_os in 15408 aix[4-9]*) 15409 # If we're using GNU nm, then we don't want the "-C" option. 15410 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15411 # Without the "-l" option, or with the "-B" option, AIX nm treats 15412 # weak defined symbols like other global defined symbols, whereas 15413 # GNU nm marks them as "W". 15414 # While the 'weak' keyword is ignored in the Export File, we need 15415 # it in the Import File for the 'aix-soname' feature, so we have 15416 # to replace the "-B" option with "-P" for AIX nm. 15417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15418 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' 15419 else 15420 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 == "L") || (\$ 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' 15421 fi 15422 ;; 15423 pw32*) 15424 export_symbols_cmds_CXX=$ltdll_cmds 15425 ;; 15426 cygwin* | mingw* | cegcc*) 15427 case $cc_basename in 15428 cl* | icl*) 15429 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15430 ;; 15431 *) 15432 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' 15433 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15434 ;; 15435 esac 15436 ;; 15437 *) 15438 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15439 ;; 15440 esac 15441 15442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15443$as_echo "$ld_shlibs_CXX" >&6; } 15444test no = "$ld_shlibs_CXX" && can_build_shared=no 15445 15446with_gnu_ld_CXX=$with_gnu_ld 15447 15448 15449 15450 15451 15452 15453# 15454# Do we need to explicitly link libc? 15455# 15456case "x$archive_cmds_need_lc_CXX" in 15457x|xyes) 15458 # Assume -lc should be added 15459 archive_cmds_need_lc_CXX=yes 15460 15461 if test yes,yes = "$GCC,$enable_shared"; then 15462 case $archive_cmds_CXX in 15463 *'~'*) 15464 # FIXME: we may have to deal with multi-command sequences. 15465 ;; 15466 '$CC '*) 15467 # Test whether the compiler implicitly links with -lc since on some 15468 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15469 # to ld, don't add -lc before -lgcc. 15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15471$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15472if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15473 $as_echo_n "(cached) " >&6 15474else 15475 $RM conftest* 15476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15477 15478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15479 (eval $ac_compile) 2>&5 15480 ac_status=$? 15481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15482 test $ac_status = 0; } 2>conftest.err; then 15483 soname=conftest 15484 lib=conftest 15485 libobjs=conftest.$ac_objext 15486 deplibs= 15487 wl=$lt_prog_compiler_wl_CXX 15488 pic_flag=$lt_prog_compiler_pic_CXX 15489 compiler_flags=-v 15490 linker_flags=-v 15491 verstring= 15492 output_objdir=. 15493 libname=conftest 15494 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15495 allow_undefined_flag_CXX= 15496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15497 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15498 ac_status=$? 15499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15500 test $ac_status = 0; } 15501 then 15502 lt_cv_archive_cmds_need_lc_CXX=no 15503 else 15504 lt_cv_archive_cmds_need_lc_CXX=yes 15505 fi 15506 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15507 else 15508 cat conftest.err 1>&5 15509 fi 15510 $RM conftest* 15511 15512fi 15513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15514$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15515 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15516 ;; 15517 esac 15518 fi 15519 ;; 15520esac 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15584$as_echo_n "checking dynamic linker characteristics... " >&6; } 15585 15586library_names_spec= 15587libname_spec='lib$name' 15588soname_spec= 15589shrext_cmds=.so 15590postinstall_cmds= 15591postuninstall_cmds= 15592finish_cmds= 15593finish_eval= 15594shlibpath_var= 15595shlibpath_overrides_runpath=unknown 15596version_type=none 15597dynamic_linker="$host_os ld.so" 15598sys_lib_dlsearch_path_spec="/lib /usr/lib" 15599need_lib_prefix=unknown 15600hardcode_into_libs=no 15601 15602# when you set need_version to no, make sure it does not cause -set_version 15603# flags to be left without arguments 15604need_version=unknown 15605 15606 15607 15608case $host_os in 15609aix3*) 15610 version_type=linux # correct to gnu/linux during the next big refactor 15611 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15612 shlibpath_var=LIBPATH 15613 15614 # AIX 3 has no versioning support, so we append a major version to the name. 15615 soname_spec='$libname$release$shared_ext$major' 15616 ;; 15617 15618aix[4-9]*) 15619 version_type=linux # correct to gnu/linux during the next big refactor 15620 need_lib_prefix=no 15621 need_version=no 15622 hardcode_into_libs=yes 15623 if test ia64 = "$host_cpu"; then 15624 # AIX 5 supports IA64 15625 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15626 shlibpath_var=LD_LIBRARY_PATH 15627 else 15628 # With GCC up to 2.95.x, collect2 would create an import file 15629 # for dependence libraries. The import file would start with 15630 # the line '#! .'. This would cause the generated library to 15631 # depend on '.', always an invalid library. This was fixed in 15632 # development snapshots of GCC prior to 3.0. 15633 case $host_os in 15634 aix4 | aix4.[01] | aix4.[01].*) 15635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15636 echo ' yes ' 15637 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15638 : 15639 else 15640 can_build_shared=no 15641 fi 15642 ;; 15643 esac 15644 # Using Import Files as archive members, it is possible to support 15645 # filename-based versioning of shared library archives on AIX. While 15646 # this would work for both with and without runtime linking, it will 15647 # prevent static linking of such archives. So we do filename-based 15648 # shared library versioning with .so extension only, which is used 15649 # when both runtime linking and shared linking is enabled. 15650 # Unfortunately, runtime linking may impact performance, so we do 15651 # not want this to be the default eventually. Also, we use the 15652 # versioned .so libs for executables only if there is the -brtl 15653 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15654 # To allow for filename-based versioning support, we need to create 15655 # libNAME.so.V as an archive file, containing: 15656 # *) an Import File, referring to the versioned filename of the 15657 # archive as well as the shared archive member, telling the 15658 # bitwidth (32 or 64) of that shared object, and providing the 15659 # list of exported symbols of that shared object, eventually 15660 # decorated with the 'weak' keyword 15661 # *) the shared object with the F_LOADONLY flag set, to really avoid 15662 # it being seen by the linker. 15663 # At run time we better use the real file rather than another symlink, 15664 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15665 15666 case $with_aix_soname,$aix_use_runtimelinking in 15667 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15668 # soname into executable. Probably we can add versioning support to 15669 # collect2, so additional links can be useful in future. 15670 aix,yes) # traditional libtool 15671 dynamic_linker='AIX unversionable lib.so' 15672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15673 # instead of lib<name>.a to let people know that these are not 15674 # typical AIX shared libraries. 15675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15676 ;; 15677 aix,no) # traditional AIX only 15678 dynamic_linker='AIX lib.a(lib.so.V)' 15679 # We preserve .a as extension for shared libraries through AIX4.2 15680 # and later when we are not doing run time linking. 15681 library_names_spec='$libname$release.a $libname.a' 15682 soname_spec='$libname$release$shared_ext$major' 15683 ;; 15684 svr4,*) # full svr4 only 15685 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15686 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15687 # We do not specify a path in Import Files, so LIBPATH fires. 15688 shlibpath_overrides_runpath=yes 15689 ;; 15690 *,yes) # both, prefer svr4 15691 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15692 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15693 # unpreferred sharedlib libNAME.a needs extra handling 15694 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"' 15695 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"' 15696 # We do not specify a path in Import Files, so LIBPATH fires. 15697 shlibpath_overrides_runpath=yes 15698 ;; 15699 *,no) # both, prefer aix 15700 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15701 library_names_spec='$libname$release.a $libname.a' 15702 soname_spec='$libname$release$shared_ext$major' 15703 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15704 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)' 15705 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"' 15706 ;; 15707 esac 15708 shlibpath_var=LIBPATH 15709 fi 15710 ;; 15711 15712amigaos*) 15713 case $host_cpu in 15714 powerpc) 15715 # Since July 2007 AmigaOS4 officially supports .so libraries. 15716 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15718 ;; 15719 m68k) 15720 library_names_spec='$libname.ixlibrary $libname.a' 15721 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15722 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' 15723 ;; 15724 esac 15725 ;; 15726 15727beos*) 15728 library_names_spec='$libname$shared_ext' 15729 dynamic_linker="$host_os ld.so" 15730 shlibpath_var=LIBRARY_PATH 15731 ;; 15732 15733bsdi[45]*) 15734 version_type=linux # correct to gnu/linux during the next big refactor 15735 need_version=no 15736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15737 soname_spec='$libname$release$shared_ext$major' 15738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15739 shlibpath_var=LD_LIBRARY_PATH 15740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15742 # the default ld.so.conf also contains /usr/contrib/lib and 15743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15744 # libtool to hard-code these into programs 15745 ;; 15746 15747cygwin* | mingw* | pw32* | cegcc*) 15748 version_type=windows 15749 shrext_cmds=.dll 15750 need_version=no 15751 need_lib_prefix=no 15752 15753 case $GCC,$cc_basename in 15754 yes,*) 15755 # gcc 15756 library_names_spec='$libname.dll.a' 15757 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15758 postinstall_cmds='base_file=`basename \$file`~ 15759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15760 dldir=$destdir/`dirname \$dlpath`~ 15761 test -d \$dldir || mkdir -p \$dldir~ 15762 $install_prog $dir/$dlname \$dldir/$dlname~ 15763 chmod a+x \$dldir/$dlname~ 15764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15766 fi' 15767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15768 dlpath=$dir/\$dldll~ 15769 $RM \$dlpath' 15770 shlibpath_overrides_runpath=yes 15771 15772 case $host_os in 15773 cygwin*) 15774 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15775 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15776 15777 ;; 15778 mingw* | cegcc*) 15779 # MinGW DLLs use traditional 'lib' prefix 15780 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15781 ;; 15782 pw32*) 15783 # pw32 DLLs use 'pw' prefix rather than 'lib' 15784 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15785 ;; 15786 esac 15787 dynamic_linker='Win32 ld.exe' 15788 ;; 15789 15790 *,cl* | *,icl*) 15791 # Native MSVC or ICC 15792 libname_spec='$name' 15793 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15794 library_names_spec='$libname.dll.lib' 15795 15796 case $build_os in 15797 mingw*) 15798 sys_lib_search_path_spec= 15799 lt_save_ifs=$IFS 15800 IFS=';' 15801 for lt_path in $LIB 15802 do 15803 IFS=$lt_save_ifs 15804 # Let DOS variable expansion print the short 8.3 style file name. 15805 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15806 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15807 done 15808 IFS=$lt_save_ifs 15809 # Convert to MSYS style. 15810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15811 ;; 15812 cygwin*) 15813 # Convert to unix form, then to dos form, then back to unix form 15814 # but this time dos style (no spaces!) so that the unix form looks 15815 # like /cygdrive/c/PROGRA~1:/cygdr... 15816 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15817 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15818 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15819 ;; 15820 *) 15821 sys_lib_search_path_spec=$LIB 15822 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15823 # It is most probably a Windows format PATH. 15824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15825 else 15826 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15827 fi 15828 # FIXME: find the short name or the path components, as spaces are 15829 # common. (e.g. "Program Files" -> "PROGRA~1") 15830 ;; 15831 esac 15832 15833 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15834 postinstall_cmds='base_file=`basename \$file`~ 15835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15836 dldir=$destdir/`dirname \$dlpath`~ 15837 test -d \$dldir || mkdir -p \$dldir~ 15838 $install_prog $dir/$dlname \$dldir/$dlname' 15839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15840 dlpath=$dir/\$dldll~ 15841 $RM \$dlpath' 15842 shlibpath_overrides_runpath=yes 15843 dynamic_linker='Win32 link.exe' 15844 ;; 15845 15846 *) 15847 # Assume MSVC and ICC wrapper 15848 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15849 dynamic_linker='Win32 ld.exe' 15850 ;; 15851 esac 15852 # FIXME: first we should search . and the directory the executable is in 15853 shlibpath_var=PATH 15854 ;; 15855 15856darwin* | rhapsody*) 15857 dynamic_linker="$host_os dyld" 15858 version_type=darwin 15859 need_lib_prefix=no 15860 need_version=no 15861 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15862 soname_spec='$libname$release$major$shared_ext' 15863 shlibpath_overrides_runpath=yes 15864 shlibpath_var=DYLD_LIBRARY_PATH 15865 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15866 15867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15868 ;; 15869 15870dgux*) 15871 version_type=linux # correct to gnu/linux during the next big refactor 15872 need_lib_prefix=no 15873 need_version=no 15874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15875 soname_spec='$libname$release$shared_ext$major' 15876 shlibpath_var=LD_LIBRARY_PATH 15877 ;; 15878 15879freebsd* | dragonfly*) 15880 # DragonFly does not have aout. When/if they implement a new 15881 # versioning mechanism, adjust this. 15882 if test -x /usr/bin/objformat; then 15883 objformat=`/usr/bin/objformat` 15884 else 15885 case $host_os in 15886 freebsd[23].*) objformat=aout ;; 15887 *) objformat=elf ;; 15888 esac 15889 fi 15890 version_type=freebsd-$objformat 15891 case $version_type in 15892 freebsd-elf*) 15893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15894 soname_spec='$libname$release$shared_ext$major' 15895 need_version=no 15896 need_lib_prefix=no 15897 ;; 15898 freebsd-*) 15899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15900 need_version=yes 15901 ;; 15902 esac 15903 shlibpath_var=LD_LIBRARY_PATH 15904 case $host_os in 15905 freebsd2.*) 15906 shlibpath_overrides_runpath=yes 15907 ;; 15908 freebsd3.[01]* | freebsdelf3.[01]*) 15909 shlibpath_overrides_runpath=yes 15910 hardcode_into_libs=yes 15911 ;; 15912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15914 shlibpath_overrides_runpath=no 15915 hardcode_into_libs=yes 15916 ;; 15917 *) # from 4.6 on, and DragonFly 15918 shlibpath_overrides_runpath=yes 15919 hardcode_into_libs=yes 15920 ;; 15921 esac 15922 ;; 15923 15924haiku*) 15925 version_type=linux # correct to gnu/linux during the next big refactor 15926 need_lib_prefix=no 15927 need_version=no 15928 dynamic_linker="$host_os runtime_loader" 15929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15930 soname_spec='$libname$release$shared_ext$major' 15931 shlibpath_var=LIBRARY_PATH 15932 shlibpath_overrides_runpath=no 15933 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15934 hardcode_into_libs=yes 15935 ;; 15936 15937hpux9* | hpux10* | hpux11*) 15938 # Give a soname corresponding to the major version so that dld.sl refuses to 15939 # link against other versions. 15940 version_type=sunos 15941 need_lib_prefix=no 15942 need_version=no 15943 case $host_cpu in 15944 ia64*) 15945 shrext_cmds='.so' 15946 hardcode_into_libs=yes 15947 dynamic_linker="$host_os dld.so" 15948 shlibpath_var=LD_LIBRARY_PATH 15949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15951 soname_spec='$libname$release$shared_ext$major' 15952 if test 32 = "$HPUX_IA64_MODE"; then 15953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15954 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15955 else 15956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15957 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15958 fi 15959 ;; 15960 hppa*64*) 15961 shrext_cmds='.sl' 15962 hardcode_into_libs=yes 15963 dynamic_linker="$host_os dld.sl" 15964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15967 soname_spec='$libname$release$shared_ext$major' 15968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15970 ;; 15971 *) 15972 shrext_cmds='.sl' 15973 dynamic_linker="$host_os dld.sl" 15974 shlibpath_var=SHLIB_PATH 15975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15977 soname_spec='$libname$release$shared_ext$major' 15978 ;; 15979 esac 15980 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15981 postinstall_cmds='chmod 555 $lib' 15982 # or fails outright, so override atomically: 15983 install_override_mode=555 15984 ;; 15985 15986interix[3-9]*) 15987 version_type=linux # correct to gnu/linux during the next big refactor 15988 need_lib_prefix=no 15989 need_version=no 15990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15991 soname_spec='$libname$release$shared_ext$major' 15992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15993 shlibpath_var=LD_LIBRARY_PATH 15994 shlibpath_overrides_runpath=no 15995 hardcode_into_libs=yes 15996 ;; 15997 15998irix5* | irix6* | nonstopux*) 15999 case $host_os in 16000 nonstopux*) version_type=nonstopux ;; 16001 *) 16002 if test yes = "$lt_cv_prog_gnu_ld"; then 16003 version_type=linux # correct to gnu/linux during the next big refactor 16004 else 16005 version_type=irix 16006 fi ;; 16007 esac 16008 need_lib_prefix=no 16009 need_version=no 16010 soname_spec='$libname$release$shared_ext$major' 16011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16012 case $host_os in 16013 irix5* | nonstopux*) 16014 libsuff= shlibsuff= 16015 ;; 16016 *) 16017 case $LD in # libtool.m4 will add one of these switches to LD 16018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16019 libsuff= shlibsuff= libmagic=32-bit;; 16020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16021 libsuff=32 shlibsuff=N32 libmagic=N32;; 16022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16023 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16024 *) libsuff= shlibsuff= libmagic=never-match;; 16025 esac 16026 ;; 16027 esac 16028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16029 shlibpath_overrides_runpath=no 16030 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16031 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16032 hardcode_into_libs=yes 16033 ;; 16034 16035# No shared lib support for Linux oldld, aout, or coff. 16036linux*oldld* | linux*aout* | linux*coff*) 16037 dynamic_linker=no 16038 ;; 16039 16040linux*android*) 16041 version_type=none # Android doesn't support versioned libraries. 16042 need_lib_prefix=no 16043 need_version=no 16044 library_names_spec='$libname$release$shared_ext' 16045 soname_spec='$libname$release$shared_ext' 16046 finish_cmds= 16047 shlibpath_var=LD_LIBRARY_PATH 16048 shlibpath_overrides_runpath=yes 16049 16050 # This implies no fast_install, which is unacceptable. 16051 # Some rework will be needed to allow for fast_install 16052 # before this can be enabled. 16053 hardcode_into_libs=yes 16054 16055 dynamic_linker='Android linker' 16056 # Don't embed -rpath directories since the linker doesn't support them. 16057 hardcode_libdir_flag_spec_CXX='-L$libdir' 16058 ;; 16059 16060# This must be glibc/ELF. 16061linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16062 version_type=linux # correct to gnu/linux during the next big refactor 16063 need_lib_prefix=no 16064 need_version=no 16065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16066 soname_spec='$libname$release$shared_ext$major' 16067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16068 shlibpath_var=LD_LIBRARY_PATH 16069 shlibpath_overrides_runpath=no 16070 16071 # Some binutils ld are patched to set DT_RUNPATH 16072 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16073 $as_echo_n "(cached) " >&6 16074else 16075 lt_cv_shlibpath_overrides_runpath=no 16076 save_LDFLAGS=$LDFLAGS 16077 save_libdir=$libdir 16078 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16079 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082 16083int 16084main () 16085{ 16086 16087 ; 16088 return 0; 16089} 16090_ACEOF 16091if ac_fn_cxx_try_link "$LINENO"; then : 16092 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16093 lt_cv_shlibpath_overrides_runpath=yes 16094fi 16095fi 16096rm -f core conftest.err conftest.$ac_objext \ 16097 conftest$ac_exeext conftest.$ac_ext 16098 LDFLAGS=$save_LDFLAGS 16099 libdir=$save_libdir 16100 16101fi 16102 16103 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16104 16105 # This implies no fast_install, which is unacceptable. 16106 # Some rework will be needed to allow for fast_install 16107 # before this can be enabled. 16108 hardcode_into_libs=yes 16109 16110 # Ideally, we could use ldconfig to report *all* directores which are 16111 # searched for libraries, however this is still not possible. Aside from not 16112 # being certain /sbin/ldconfig is available, command 16113 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16114 # even though it is searched at run-time. Try to do the best guess by 16115 # appending ld.so.conf contents (and includes) to the search path. 16116 if test -f /etc/ld.so.conf; then 16117 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' ' '` 16118 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16119 fi 16120 16121 # We used to test for /lib/ld.so.1 and disable shared libraries on 16122 # powerpc, because MkLinux only supported shared libraries with the 16123 # GNU dynamic linker. Since this was broken with cross compilers, 16124 # most powerpc-linux boxes support dynamic linking these days and 16125 # people can always --disable-shared, the test was removed, and we 16126 # assume the GNU/Linux dynamic linker is in use. 16127 dynamic_linker='GNU/Linux ld.so' 16128 ;; 16129 16130netbsd*) 16131 version_type=sunos 16132 need_lib_prefix=no 16133 need_version=no 16134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16135 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16137 dynamic_linker='NetBSD (a.out) ld.so' 16138 else 16139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16140 soname_spec='$libname$release$shared_ext$major' 16141 dynamic_linker='NetBSD ld.elf_so' 16142 fi 16143 shlibpath_var=LD_LIBRARY_PATH 16144 shlibpath_overrides_runpath=yes 16145 hardcode_into_libs=yes 16146 ;; 16147 16148newsos6) 16149 version_type=linux # correct to gnu/linux during the next big refactor 16150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16151 shlibpath_var=LD_LIBRARY_PATH 16152 shlibpath_overrides_runpath=yes 16153 ;; 16154 16155*nto* | *qnx*) 16156 version_type=qnx 16157 need_lib_prefix=no 16158 need_version=no 16159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16160 soname_spec='$libname$release$shared_ext$major' 16161 shlibpath_var=LD_LIBRARY_PATH 16162 shlibpath_overrides_runpath=no 16163 hardcode_into_libs=yes 16164 dynamic_linker='ldqnx.so' 16165 ;; 16166 16167openbsd* | bitrig*) 16168 version_type=sunos 16169 sys_lib_dlsearch_path_spec=/usr/lib 16170 need_lib_prefix=no 16171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16172 need_version=no 16173 else 16174 need_version=yes 16175 fi 16176 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16178 shlibpath_var=LD_LIBRARY_PATH 16179 shlibpath_overrides_runpath=yes 16180 ;; 16181 16182os2*) 16183 libname_spec='$name' 16184 version_type=windows 16185 shrext_cmds=.dll 16186 need_version=no 16187 need_lib_prefix=no 16188 # OS/2 can only load a DLL with a base name of 8 characters or less. 16189 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16190 v=$($ECHO $release$versuffix | tr -d .-); 16191 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16192 $ECHO $n$v`$shared_ext' 16193 library_names_spec='${libname}_dll.$libext' 16194 dynamic_linker='OS/2 ld.exe' 16195 shlibpath_var=BEGINLIBPATH 16196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16198 postinstall_cmds='base_file=`basename \$file`~ 16199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16200 dldir=$destdir/`dirname \$dlpath`~ 16201 test -d \$dldir || mkdir -p \$dldir~ 16202 $install_prog $dir/$dlname \$dldir/$dlname~ 16203 chmod a+x \$dldir/$dlname~ 16204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16205 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16206 fi' 16207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16208 dlpath=$dir/\$dldll~ 16209 $RM \$dlpath' 16210 ;; 16211 16212osf3* | osf4* | osf5*) 16213 version_type=osf 16214 need_lib_prefix=no 16215 need_version=no 16216 soname_spec='$libname$release$shared_ext$major' 16217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16218 shlibpath_var=LD_LIBRARY_PATH 16219 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16221 ;; 16222 16223rdos*) 16224 dynamic_linker=no 16225 ;; 16226 16227solaris*) 16228 version_type=linux # correct to gnu/linux during the next big refactor 16229 need_lib_prefix=no 16230 need_version=no 16231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16232 soname_spec='$libname$release$shared_ext$major' 16233 shlibpath_var=LD_LIBRARY_PATH 16234 shlibpath_overrides_runpath=yes 16235 hardcode_into_libs=yes 16236 # ldd complains unless libraries are executable 16237 postinstall_cmds='chmod +x $lib' 16238 ;; 16239 16240sunos4*) 16241 version_type=sunos 16242 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16244 shlibpath_var=LD_LIBRARY_PATH 16245 shlibpath_overrides_runpath=yes 16246 if test yes = "$with_gnu_ld"; then 16247 need_lib_prefix=no 16248 fi 16249 need_version=yes 16250 ;; 16251 16252sysv4 | sysv4.3*) 16253 version_type=linux # correct to gnu/linux during the next big refactor 16254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16255 soname_spec='$libname$release$shared_ext$major' 16256 shlibpath_var=LD_LIBRARY_PATH 16257 case $host_vendor in 16258 sni) 16259 shlibpath_overrides_runpath=no 16260 need_lib_prefix=no 16261 runpath_var=LD_RUN_PATH 16262 ;; 16263 siemens) 16264 need_lib_prefix=no 16265 ;; 16266 motorola) 16267 need_lib_prefix=no 16268 need_version=no 16269 shlibpath_overrides_runpath=no 16270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16271 ;; 16272 esac 16273 ;; 16274 16275sysv4*MP*) 16276 if test -d /usr/nec; then 16277 version_type=linux # correct to gnu/linux during the next big refactor 16278 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16279 soname_spec='$libname$shared_ext.$major' 16280 shlibpath_var=LD_LIBRARY_PATH 16281 fi 16282 ;; 16283 16284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16285 version_type=sco 16286 need_lib_prefix=no 16287 need_version=no 16288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16289 soname_spec='$libname$release$shared_ext$major' 16290 shlibpath_var=LD_LIBRARY_PATH 16291 shlibpath_overrides_runpath=yes 16292 hardcode_into_libs=yes 16293 if test yes = "$with_gnu_ld"; then 16294 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16295 else 16296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16297 case $host_os in 16298 sco3.2v5*) 16299 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16300 ;; 16301 esac 16302 fi 16303 sys_lib_dlsearch_path_spec='/usr/lib' 16304 ;; 16305 16306tpf*) 16307 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16308 version_type=linux # correct to gnu/linux during the next big refactor 16309 need_lib_prefix=no 16310 need_version=no 16311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16312 shlibpath_var=LD_LIBRARY_PATH 16313 shlibpath_overrides_runpath=no 16314 hardcode_into_libs=yes 16315 ;; 16316 16317uts4*) 16318 version_type=linux # correct to gnu/linux during the next big refactor 16319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16320 soname_spec='$libname$release$shared_ext$major' 16321 shlibpath_var=LD_LIBRARY_PATH 16322 ;; 16323 16324*) 16325 dynamic_linker=no 16326 ;; 16327esac 16328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16329$as_echo "$dynamic_linker" >&6; } 16330test no = "$dynamic_linker" && can_build_shared=no 16331 16332variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16333if test yes = "$GCC"; then 16334 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16335fi 16336 16337if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16338 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16339fi 16340 16341if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16342 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16343fi 16344 16345# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16346configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16347 16348# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16349func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16350 16351# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16352configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 16390 16391 16392 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16394$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16395hardcode_action_CXX= 16396if test -n "$hardcode_libdir_flag_spec_CXX" || 16397 test -n "$runpath_var_CXX" || 16398 test yes = "$hardcode_automatic_CXX"; then 16399 16400 # We can hardcode non-existent directories. 16401 if test no != "$hardcode_direct_CXX" && 16402 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16403 # have to relink, otherwise we might link with an installed library 16404 # when we should be linking with a yet-to-be-installed one 16405 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16406 test no != "$hardcode_minus_L_CXX"; then 16407 # Linking always hardcodes the temporary library directory. 16408 hardcode_action_CXX=relink 16409 else 16410 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16411 hardcode_action_CXX=immediate 16412 fi 16413else 16414 # We cannot hardcode anything, or else we can only hardcode existing 16415 # directories. 16416 hardcode_action_CXX=unsupported 16417fi 16418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16419$as_echo "$hardcode_action_CXX" >&6; } 16420 16421if test relink = "$hardcode_action_CXX" || 16422 test yes = "$inherit_rpath_CXX"; then 16423 # Fast installation is not supported 16424 enable_fast_install=no 16425elif test yes = "$shlibpath_overrides_runpath" || 16426 test no = "$enable_shared"; then 16427 # Fast installation is not necessary 16428 enable_fast_install=needless 16429fi 16430 16431 16432 16433 16434 16435 16436 16437 fi # test -n "$compiler" 16438 16439 CC=$lt_save_CC 16440 CFLAGS=$lt_save_CFLAGS 16441 LDCXX=$LD 16442 LD=$lt_save_LD 16443 GCC=$lt_save_GCC 16444 with_gnu_ld=$lt_save_with_gnu_ld 16445 lt_cv_path_LDCXX=$lt_cv_path_LD 16446 lt_cv_path_LD=$lt_save_path_LD 16447 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16448 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16449fi # test yes != "$_lt_caught_CXX_error" 16450 16451ac_ext=c 16452ac_cpp='$CPP $CPPFLAGS' 16453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16455ac_compiler_gnu=$ac_cv_c_compiler_gnu 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 ac_config_commands="$ac_config_commands libtool" 16472 16473 16474 16475 16476# Only expand once: 16477 16478 16479for ac_prog in flex lex 16480do 16481 # Extract the first word of "$ac_prog", so it can be a program name with args. 16482set dummy $ac_prog; ac_word=$2 16483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16484$as_echo_n "checking for $ac_word... " >&6; } 16485if ${ac_cv_prog_LEX+:} false; then : 16486 $as_echo_n "(cached) " >&6 16487else 16488 if test -n "$LEX"; then 16489 ac_cv_prog_LEX="$LEX" # Let the user override the test. 16490else 16491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16492for as_dir in $PATH 16493do 16494 IFS=$as_save_IFS 16495 test -z "$as_dir" && as_dir=. 16496 for ac_exec_ext in '' $ac_executable_extensions; do 16497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16498 ac_cv_prog_LEX="$ac_prog" 16499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16500 break 2 16501 fi 16502done 16503 done 16504IFS=$as_save_IFS 16505 16506fi 16507fi 16508LEX=$ac_cv_prog_LEX 16509if test -n "$LEX"; then 16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 16511$as_echo "$LEX" >&6; } 16512else 16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16514$as_echo "no" >&6; } 16515fi 16516 16517 16518 test -n "$LEX" && break 16519done 16520test -n "$LEX" || LEX=":" 16521 16522if test "x$LEX" != "x:"; then 16523 cat >conftest.l <<_ACEOF 16524%% 16525a { ECHO; } 16526b { REJECT; } 16527c { yymore (); } 16528d { yyless (1); } 16529e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 16530 yyless ((input () != 0)); } 16531f { unput (yytext[0]); } 16532. { BEGIN INITIAL; } 16533%% 16534#ifdef YYTEXT_POINTER 16535extern char *yytext; 16536#endif 16537int 16538main (void) 16539{ 16540 return ! yylex () + ! yywrap (); 16541} 16542_ACEOF 16543{ { ac_try="$LEX conftest.l" 16544case "(($ac_try" in 16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16546 *) ac_try_echo=$ac_try;; 16547esac 16548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16549$as_echo "$ac_try_echo"; } >&5 16550 (eval "$LEX conftest.l") 2>&5 16551 ac_status=$? 16552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16553 test $ac_status = 0; } 16554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 16555$as_echo_n "checking lex output file root... " >&6; } 16556if ${ac_cv_prog_lex_root+:} false; then : 16557 $as_echo_n "(cached) " >&6 16558else 16559 16560if test -f lex.yy.c; then 16561 ac_cv_prog_lex_root=lex.yy 16562elif test -f lexyy.c; then 16563 ac_cv_prog_lex_root=lexyy 16564else 16565 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 16566fi 16567fi 16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 16569$as_echo "$ac_cv_prog_lex_root" >&6; } 16570LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 16571 16572if test -z "${LEXLIB+set}"; then 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 16574$as_echo_n "checking lex library... " >&6; } 16575if ${ac_cv_lib_lex+:} false; then : 16576 $as_echo_n "(cached) " >&6 16577else 16578 16579 ac_save_LIBS=$LIBS 16580 ac_cv_lib_lex='none needed' 16581 for ac_lib in '' -lfl -ll; do 16582 LIBS="$ac_lib $ac_save_LIBS" 16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16584/* end confdefs.h. */ 16585`cat $LEX_OUTPUT_ROOT.c` 16586_ACEOF 16587if ac_fn_c_try_link "$LINENO"; then : 16588 ac_cv_lib_lex=$ac_lib 16589fi 16590rm -f core conftest.err conftest.$ac_objext \ 16591 conftest$ac_exeext conftest.$ac_ext 16592 test "$ac_cv_lib_lex" != 'none needed' && break 16593 done 16594 LIBS=$ac_save_LIBS 16595 16596fi 16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 16598$as_echo "$ac_cv_lib_lex" >&6; } 16599 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 16600fi 16601 16602 16603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 16604$as_echo_n "checking whether yytext is a pointer... " >&6; } 16605if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 16606 $as_echo_n "(cached) " >&6 16607else 16608 # POSIX says lex can declare yytext either as a pointer or an array; the 16609# default is implementation-dependent. Figure out which it is, since 16610# not all implementations provide the %pointer and %array declarations. 16611ac_cv_prog_lex_yytext_pointer=no 16612ac_save_LIBS=$LIBS 16613LIBS="$LEXLIB $ac_save_LIBS" 16614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16615/* end confdefs.h. */ 16616 16617 #define YYTEXT_POINTER 1 16618`cat $LEX_OUTPUT_ROOT.c` 16619_ACEOF 16620if ac_fn_c_try_link "$LINENO"; then : 16621 ac_cv_prog_lex_yytext_pointer=yes 16622fi 16623rm -f core conftest.err conftest.$ac_objext \ 16624 conftest$ac_exeext conftest.$ac_ext 16625LIBS=$ac_save_LIBS 16626 16627fi 16628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 16629$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 16630if test $ac_cv_prog_lex_yytext_pointer = yes; then 16631 16632$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 16633 16634fi 16635rm -f conftest.l $LEX_OUTPUT_ROOT.c 16636 16637fi 16638if test "$LEX" = :; then 16639 LEX=${am_missing_run}flex 16640fi 16641 16642 16643 if test -z "$GCC"; then 16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Aa" >&5 16645$as_echo_n "checking whether ${CC-cc} accepts -Aa... " >&6; } 16646if ${ac_cv_cc_aa_flag+:} false; then : 16647 $as_echo_n "(cached) " >&6 16648else 16649 echo 'void f(){}' > conftest.c 16650if test -z "`${CC-cc} -Aa -c conftest.c 2>&1`"; then 16651 ac_cv_cc_aa_flag=yes 16652else 16653 ac_cv_cc_aa_flag=no 16654fi 16655rm -f conftest* 16656 16657fi 16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_aa_flag" >&5 16659$as_echo "$ac_cv_cc_aa_flag" >&6; } 16660 if test $ac_cv_cc_aa_flag = yes; then 16661 CFLAGS="$CFLAGS -Aa" 16662 fi 16663 fi 16664 16665 16666ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16667if test "x$ac_cv_type_size_t" = xyes; then : 16668 16669else 16670 16671cat >>confdefs.h <<_ACEOF 16672#define size_t unsigned int 16673_ACEOF 16674 16675fi 16676 16677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 16678$as_echo_n "checking for long long int... " >&6; } 16679if ${ac_cv_c_long_long+:} false; then : 16680 $as_echo_n "(cached) " >&6 16681else 16682 if test "$GCC" = yes; then 16683 ac_cv_c_long_long=yes 16684 else 16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16686/* end confdefs.h. */ 16687 16688int 16689main () 16690{ 16691long long int i; 16692 ; 16693 return 0; 16694} 16695_ACEOF 16696if ac_fn_c_try_compile "$LINENO"; then : 16697 ac_cv_c_long_long=yes 16698else 16699 ac_cv_c_long_long=no 16700fi 16701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16702 fi 16703fi 16704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5 16705$as_echo "$ac_cv_c_long_long" >&6; } 16706 if test $ac_cv_c_long_long = yes; then 16707 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 16708 16709 fi 16710 16711 16712 16713 16714# Check whether --enable-warnings was given. 16715if test "${enable_warnings+set}" = set; then : 16716 enableval=$enable_warnings; { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5 16717$as_echo_n "checking maximum warning verbosity option... " >&6; } 16718if test -n "$CXX" 16719then 16720 if test "$GXX" = "yes" 16721 then 16722 ac_compile_warnings_opt='-Wall -Wextra -Werror -fstrict-aliasing -Wshadow' 16723 fi 16724 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt" 16725 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++" 16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5 16727$as_echo "$ac_compile_warnings_msg" >&6; } 16728fi 16729 16730if test -n "$CC" 16731then 16732 if test "$GCC" = "yes" 16733 then 16734 ac_compile_warnings_opt='-Wall -Wextra -Werror -fstrict-aliasing -Wshadow' 16735 fi 16736 CFLAGS="$CFLAGS $ac_compile_warnings_opt" 16737 ac_compile_warnings_msg="$ac_compile_warnings_opt for C" 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5 16739$as_echo "$ac_compile_warnings_msg" >&6; } 16740fi 16741unset ac_compile_warnings_msg 16742unset ac_compile_warnings_opt 16743 16744 16745fi 16746 16747 16748 16749# Check whether --with-gengen was given. 16750if test "${with_gengen+set}" = set; then : 16751 withval=$with_gengen; GENGEN_TO_USE=$withval 16752else 16753 GENGEN_TO_USE=gengen 16754 16755fi 16756 16757GENGEN=$GENGEN_TO_USE 16758 16759 16760 16761# Check whether --with-gengetopt was given. 16762if test "${with_gengetopt+set}" = set; then : 16763 withval=$with_gengetopt; GENGETOPT_TO_USE=$withval 16764else 16765 GENGETOPT_TO_USE=gengetopt 16766 16767fi 16768 16769GENGETOPT=$GENGETOPT_TO_USE 16770 16771 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 16773$as_echo_n "checking whether the compiler implements namespaces... " >&6; } 16774if ${ac_cv_cxx_namespaces+:} false; then : 16775 $as_echo_n "(cached) " >&6 16776else 16777 16778 ac_ext=cpp 16779ac_cpp='$CXXCPP $CPPFLAGS' 16780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16783 16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16785/* end confdefs.h. */ 16786namespace Outer { namespace Inner { int i = 0; }} 16787int 16788main () 16789{ 16790using namespace Outer::Inner; return i; 16791 ; 16792 return 0; 16793} 16794_ACEOF 16795if ac_fn_cxx_try_compile "$LINENO"; then : 16796 ac_cv_cxx_namespaces=yes 16797else 16798 ac_cv_cxx_namespaces=no 16799fi 16800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16801 ac_ext=c 16802ac_cpp='$CPP $CPPFLAGS' 16803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16805ac_compiler_gnu=$ac_cv_c_compiler_gnu 16806 16807 16808fi 16809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5 16810$as_echo "$ac_cv_cxx_namespaces" >&6; } 16811if test "$ac_cv_cxx_namespaces" = yes; then 16812 16813$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h 16814 16815fi 16816 16817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5 16818$as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; } 16819if ${ac_cv_cxx_have_stl+:} false; then : 16820 $as_echo_n "(cached) " >&6 16821else 16822 16823 16824 ac_ext=cpp 16825ac_cpp='$CXXCPP $CPPFLAGS' 16826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16829 16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16831/* end confdefs.h. */ 16832#include <list> 16833#include <deque> 16834#ifdef HAVE_NAMESPACES 16835using namespace std; 16836#endif 16837int 16838main () 16839{ 16840list<int> x; x.push_back(5); 16841list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0; 16842 ; 16843 return 0; 16844} 16845_ACEOF 16846if ac_fn_cxx_try_compile "$LINENO"; then : 16847 ac_cv_cxx_have_stl=yes 16848else 16849 ac_cv_cxx_have_stl=no 16850fi 16851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16852 ac_ext=c 16853ac_cpp='$CPP $CPPFLAGS' 16854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16856ac_compiler_gnu=$ac_cv_c_compiler_gnu 16857 16858 16859fi 16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5 16861$as_echo "$ac_cv_cxx_have_stl" >&6; } 16862if test "$ac_cv_cxx_have_stl" = yes; then 16863 16864$as_echo "#define HAVE_STL /**/" >>confdefs.h 16865 16866fi 16867 16868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has stringstream" >&5 16869$as_echo_n "checking whether the compiler has stringstream... " >&6; } 16870if ${ac_cv_cxx_have_sstream+:} false; then : 16871 $as_echo_n "(cached) " >&6 16872else 16873 16874 16875 ac_ext=cpp 16876ac_cpp='$CXXCPP $CPPFLAGS' 16877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16880 16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16882/* end confdefs.h. */ 16883#include <sstream> 16884#ifdef HAVE_NAMESPACES 16885using namespace std; 16886#endif 16887int 16888main () 16889{ 16890stringstream message; message << "Hello"; return 0; 16891 ; 16892 return 0; 16893} 16894_ACEOF 16895if ac_fn_cxx_try_compile "$LINENO"; then : 16896 ac_cv_cxx_have_sstream=yes 16897else 16898 ac_cv_cxx_have_sstream=no 16899fi 16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16901 ac_ext=c 16902ac_cpp='$CPP $CPPFLAGS' 16903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16905ac_compiler_gnu=$ac_cv_c_compiler_gnu 16906 16907 16908fi 16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_sstream" >&5 16910$as_echo "$ac_cv_cxx_have_sstream" >&6; } 16911if test "$ac_cv_cxx_have_sstream" = yes; then 16912 16913$as_echo "#define HAVE_SSTREAM /**/" >>confdefs.h 16914 16915fi 16916 16917 16918 16919 16920 16921YFLAGS="$YFLAGS -d -v" 16922 16923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16924$as_echo_n "checking for ANSI C header files... " >&6; } 16925if ${ac_cv_header_stdc+:} false; then : 16926 $as_echo_n "(cached) " >&6 16927else 16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16929/* end confdefs.h. */ 16930#include <stdlib.h> 16931#include <stdarg.h> 16932#include <string.h> 16933#include <float.h> 16934 16935int 16936main () 16937{ 16938 16939 ; 16940 return 0; 16941} 16942_ACEOF 16943if ac_fn_c_try_compile "$LINENO"; then : 16944 ac_cv_header_stdc=yes 16945else 16946 ac_cv_header_stdc=no 16947fi 16948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16949 16950if test $ac_cv_header_stdc = yes; then 16951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16953/* end confdefs.h. */ 16954#include <string.h> 16955 16956_ACEOF 16957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16958 $EGREP "memchr" >/dev/null 2>&1; then : 16959 16960else 16961 ac_cv_header_stdc=no 16962fi 16963rm -f conftest* 16964 16965fi 16966 16967if test $ac_cv_header_stdc = yes; then 16968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16970/* end confdefs.h. */ 16971#include <stdlib.h> 16972 16973_ACEOF 16974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16975 $EGREP "free" >/dev/null 2>&1; then : 16976 16977else 16978 ac_cv_header_stdc=no 16979fi 16980rm -f conftest* 16981 16982fi 16983 16984if test $ac_cv_header_stdc = yes; then 16985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16986 if test "$cross_compiling" = yes; then : 16987 : 16988else 16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16990/* end confdefs.h. */ 16991#include <ctype.h> 16992#include <stdlib.h> 16993#if ((' ' & 0x0FF) == 0x020) 16994# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16995# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16996#else 16997# define ISLOWER(c) \ 16998 (('a' <= (c) && (c) <= 'i') \ 16999 || ('j' <= (c) && (c) <= 'r') \ 17000 || ('s' <= (c) && (c) <= 'z')) 17001# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17002#endif 17003 17004#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17005int 17006main () 17007{ 17008 int i; 17009 for (i = 0; i < 256; i++) 17010 if (XOR (islower (i), ISLOWER (i)) 17011 || toupper (i) != TOUPPER (i)) 17012 return 2; 17013 return 0; 17014} 17015_ACEOF 17016if ac_fn_c_try_run "$LINENO"; then : 17017 17018else 17019 ac_cv_header_stdc=no 17020fi 17021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17022 conftest.$ac_objext conftest.beam conftest.$ac_ext 17023fi 17024 17025fi 17026fi 17027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17028$as_echo "$ac_cv_header_stdc" >&6; } 17029if test $ac_cv_header_stdc = yes; then 17030 17031$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17032 17033fi 17034 17035for ac_header in malloc.h strings.h unistd.h libintl.h stddef.h 17036do : 17037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17038ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17039if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17040 cat >>confdefs.h <<_ACEOF 17041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17042_ACEOF 17043 17044fi 17045 17046done 17047 17048 17049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 17050$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 17051if ${ac_cv_c_const+:} false; then : 17052 $as_echo_n "(cached) " >&6 17053else 17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055/* end confdefs.h. */ 17056 17057int 17058main () 17059{ 17060 17061#ifndef __cplusplus 17062 /* Ultrix mips cc rejects this sort of thing. */ 17063 typedef int charset[2]; 17064 const charset cs = { 0, 0 }; 17065 /* SunOS 4.1.1 cc rejects this. */ 17066 char const *const *pcpcc; 17067 char **ppc; 17068 /* NEC SVR4.0.2 mips cc rejects this. */ 17069 struct point {int x, y;}; 17070 static struct point const zero = {0,0}; 17071 /* AIX XL C 1.02.0.0 rejects this. 17072 It does not let you subtract one const X* pointer from another in 17073 an arm of an if-expression whose if-part is not a constant 17074 expression */ 17075 const char *g = "string"; 17076 pcpcc = &g + (g ? g-g : 0); 17077 /* HPUX 7.0 cc rejects these. */ 17078 ++pcpcc; 17079 ppc = (char**) pcpcc; 17080 pcpcc = (char const *const *) ppc; 17081 { /* SCO 3.2v4 cc rejects this sort of thing. */ 17082 char tx; 17083 char *t = &tx; 17084 char const *s = 0 ? (char *) 0 : (char const *) 0; 17085 17086 *t++ = 0; 17087 if (s) return 0; 17088 } 17089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17090 int x[] = {25, 17}; 17091 const int *foo = &x[0]; 17092 ++foo; 17093 } 17094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17095 typedef const int *iptr; 17096 iptr p = 0; 17097 ++p; 17098 } 17099 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 17100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17101 struct s { int j; const int *ap[3]; } bx; 17102 struct s *b = &bx; b->j = 5; 17103 } 17104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17105 const int foo = 10; 17106 if (!foo) return 0; 17107 } 17108 return !cs[0] && !zero.x; 17109#endif 17110 17111 ; 17112 return 0; 17113} 17114_ACEOF 17115if ac_fn_c_try_compile "$LINENO"; then : 17116 ac_cv_c_const=yes 17117else 17118 ac_cv_c_const=no 17119fi 17120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17121fi 17122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17123$as_echo "$ac_cv_c_const" >&6; } 17124if test $ac_cv_c_const = no; then 17125 17126$as_echo "#define const /**/" >>confdefs.h 17127 17128fi 17129 17130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 17131$as_echo_n "checking for inline... " >&6; } 17132if ${ac_cv_c_inline+:} false; then : 17133 $as_echo_n "(cached) " >&6 17134else 17135 ac_cv_c_inline=no 17136for ac_kw in inline __inline__ __inline; do 17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17138/* end confdefs.h. */ 17139#ifndef __cplusplus 17140typedef int foo_t; 17141static $ac_kw foo_t static_foo () {return 0; } 17142$ac_kw foo_t foo () {return 0; } 17143#endif 17144 17145_ACEOF 17146if ac_fn_c_try_compile "$LINENO"; then : 17147 ac_cv_c_inline=$ac_kw 17148fi 17149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17150 test "$ac_cv_c_inline" != no && break 17151done 17152 17153fi 17154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 17155$as_echo "$ac_cv_c_inline" >&6; } 17156 17157case $ac_cv_c_inline in 17158 inline | yes) ;; 17159 *) 17160 case $ac_cv_c_inline in 17161 no) ac_val=;; 17162 *) ac_val=$ac_cv_c_inline;; 17163 esac 17164 cat >>confdefs.h <<_ACEOF 17165#ifndef __cplusplus 17166#define inline $ac_val 17167#endif 17168_ACEOF 17169 ;; 17170esac 17171 17172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 17173$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 17174if ${ac_cv_header_stdbool_h+:} false; then : 17175 $as_echo_n "(cached) " >&6 17176else 17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17178/* end confdefs.h. */ 17179 17180 #include <stdbool.h> 17181 #ifndef bool 17182 "error: bool is not defined" 17183 #endif 17184 #ifndef false 17185 "error: false is not defined" 17186 #endif 17187 #if false 17188 "error: false is not 0" 17189 #endif 17190 #ifndef true 17191 "error: true is not defined" 17192 #endif 17193 #if true != 1 17194 "error: true is not 1" 17195 #endif 17196 #ifndef __bool_true_false_are_defined 17197 "error: __bool_true_false_are_defined is not defined" 17198 #endif 17199 17200 struct s { _Bool s: 1; _Bool t; } s; 17201 17202 char a[true == 1 ? 1 : -1]; 17203 char b[false == 0 ? 1 : -1]; 17204 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 17205 char d[(bool) 0.5 == true ? 1 : -1]; 17206 /* See body of main program for 'e'. */ 17207 char f[(_Bool) 0.0 == false ? 1 : -1]; 17208 char g[true]; 17209 char h[sizeof (_Bool)]; 17210 char i[sizeof s.t]; 17211 enum { j = false, k = true, l = false * true, m = true * 256 }; 17212 /* The following fails for 17213 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 17214 _Bool n[m]; 17215 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 17216 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 17217 /* Catch a bug in an HP-UX C compiler. See 17218 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 17219 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 17220 */ 17221 _Bool q = true; 17222 _Bool *pq = &q; 17223 17224int 17225main () 17226{ 17227 17228 bool e = &s; 17229 *pq |= q; 17230 *pq |= ! q; 17231 /* Refer to every declared value, to avoid compiler optimizations. */ 17232 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 17233 + !m + !n + !o + !p + !q + !pq); 17234 17235 ; 17236 return 0; 17237} 17238_ACEOF 17239if ac_fn_c_try_compile "$LINENO"; then : 17240 ac_cv_header_stdbool_h=yes 17241else 17242 ac_cv_header_stdbool_h=no 17243fi 17244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17245fi 17246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 17247$as_echo "$ac_cv_header_stdbool_h" >&6; } 17248 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 17249if test "x$ac_cv_type__Bool" = xyes; then : 17250 17251cat >>confdefs.h <<_ACEOF 17252#define HAVE__BOOL 1 17253_ACEOF 17254 17255 17256fi 17257 17258 17259if test $ac_cv_header_stdbool_h = yes; then 17260 17261$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 17262 17263fi 17264 17265 17266# For gnulib. 17267 17268 17269 17270 17271 LIBC_FATAL_STDERR_=1 17272 export LIBC_FATAL_STDERR_ 17273 17274 17275 GNULIB_CHOWN=0; 17276 GNULIB_CLOSE=0; 17277 GNULIB_DUP2=0; 17278 GNULIB_DUP3=0; 17279 GNULIB_ENVIRON=0; 17280 GNULIB_EUIDACCESS=0; 17281 GNULIB_FACCESSAT=0; 17282 GNULIB_FCHDIR=0; 17283 GNULIB_FCHOWNAT=0; 17284 GNULIB_FSYNC=0; 17285 GNULIB_FTRUNCATE=0; 17286 GNULIB_GETCWD=0; 17287 GNULIB_GETDOMAINNAME=0; 17288 GNULIB_GETDTABLESIZE=0; 17289 GNULIB_GETGROUPS=0; 17290 GNULIB_GETHOSTNAME=0; 17291 GNULIB_GETLOGIN=0; 17292 GNULIB_GETLOGIN_R=0; 17293 GNULIB_GETPAGESIZE=0; 17294 GNULIB_GETUSERSHELL=0; 17295 GNULIB_LCHOWN=0; 17296 GNULIB_LINK=0; 17297 GNULIB_LINKAT=0; 17298 GNULIB_LSEEK=0; 17299 GNULIB_PIPE2=0; 17300 GNULIB_PREAD=0; 17301 GNULIB_PWRITE=0; 17302 GNULIB_READLINK=0; 17303 GNULIB_READLINKAT=0; 17304 GNULIB_RMDIR=0; 17305 GNULIB_SLEEP=0; 17306 GNULIB_SYMLINK=0; 17307 GNULIB_SYMLINKAT=0; 17308 GNULIB_TTYNAME_R=0; 17309 GNULIB_UNISTD_H_GETOPT=0; 17310 GNULIB_UNISTD_H_SIGPIPE=0; 17311 GNULIB_UNLINK=0; 17312 GNULIB_UNLINKAT=0; 17313 GNULIB_USLEEP=0; 17314 GNULIB_WRITE=0; 17315 HAVE_CHOWN=1; 17316 HAVE_DUP2=1; 17317 HAVE_DUP3=1; 17318 HAVE_EUIDACCESS=1; 17319 HAVE_FACCESSAT=1; 17320 HAVE_FCHDIR=1; 17321 HAVE_FCHOWNAT=1; 17322 HAVE_FSYNC=1; 17323 HAVE_FTRUNCATE=1; 17324 HAVE_GETDOMAINNAME=1; 17325 HAVE_GETDTABLESIZE=1; 17326 HAVE_GETGROUPS=1; 17327 HAVE_GETHOSTNAME=1; 17328 HAVE_GETLOGIN=1; 17329 HAVE_GETPAGESIZE=1; 17330 HAVE_LCHOWN=1; 17331 HAVE_LINK=1; 17332 HAVE_LINKAT=1; 17333 HAVE_PIPE2=1; 17334 HAVE_PREAD=1; 17335 HAVE_PWRITE=1; 17336 HAVE_READLINK=1; 17337 HAVE_READLINKAT=1; 17338 HAVE_SLEEP=1; 17339 HAVE_SYMLINK=1; 17340 HAVE_SYMLINKAT=1; 17341 HAVE_TTYNAME_R=1; 17342 HAVE_UNLINKAT=1; 17343 HAVE_USLEEP=1; 17344 HAVE_DECL_ENVIRON=1; 17345 HAVE_DECL_GETLOGIN_R=1; 17346 HAVE_DECL_GETPAGESIZE=1; 17347 HAVE_DECL_GETUSERSHELL=1; 17348 HAVE_OS_H=0; 17349 HAVE_SYS_PARAM_H=0; 17350 REPLACE_CHOWN=0; 17351 REPLACE_CLOSE=0; 17352 REPLACE_DUP=0; 17353 REPLACE_DUP2=0; 17354 REPLACE_FCHOWNAT=0; 17355 REPLACE_GETCWD=0; 17356 REPLACE_GETGROUPS=0; 17357 REPLACE_GETPAGESIZE=0; 17358 REPLACE_LCHOWN=0; 17359 REPLACE_LINK=0; 17360 REPLACE_LINKAT=0; 17361 REPLACE_LSEEK=0; 17362 REPLACE_PREAD=0; 17363 REPLACE_PWRITE=0; 17364 REPLACE_READLINK=0; 17365 REPLACE_RMDIR=0; 17366 REPLACE_SLEEP=0; 17367 REPLACE_SYMLINK=0; 17368 REPLACE_TTYNAME_R=0; 17369 REPLACE_UNLINK=0; 17370 REPLACE_UNLINKAT=0; 17371 REPLACE_USLEEP=0; 17372 REPLACE_WRITE=0; 17373 UNISTD_H_HAVE_WINSOCK2_H=0; 17374 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 17375 17376 17377 17378 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 17380$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 17381if ${gl_cv_have_include_next+:} false; then : 17382 $as_echo_n "(cached) " >&6 17383else 17384 rm -rf conftestd1a conftestd1b conftestd2 17385 mkdir conftestd1a conftestd1b conftestd2 17386 cat <<EOF > conftestd1a/conftest.h 17387#define DEFINED_IN_CONFTESTD1 17388#include_next <conftest.h> 17389#ifdef DEFINED_IN_CONFTESTD2 17390int foo; 17391#else 17392#error "include_next doesn't work" 17393#endif 17394EOF 17395 cat <<EOF > conftestd1b/conftest.h 17396#define DEFINED_IN_CONFTESTD1 17397#include <stdio.h> 17398#include_next <conftest.h> 17399#ifdef DEFINED_IN_CONFTESTD2 17400int foo; 17401#else 17402#error "include_next doesn't work" 17403#endif 17404EOF 17405 cat <<EOF > conftestd2/conftest.h 17406#ifndef DEFINED_IN_CONFTESTD1 17407#error "include_next test doesn't work" 17408#endif 17409#define DEFINED_IN_CONFTESTD2 17410EOF 17411 gl_save_CPPFLAGS="$CPPFLAGS" 17412 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17414/* end confdefs.h. */ 17415#include <conftest.h> 17416_ACEOF 17417if ac_fn_c_try_compile "$LINENO"; then : 17418 gl_cv_have_include_next=yes 17419else 17420 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17422/* end confdefs.h. */ 17423#include <conftest.h> 17424_ACEOF 17425if ac_fn_c_try_compile "$LINENO"; then : 17426 gl_cv_have_include_next=buggy 17427else 17428 gl_cv_have_include_next=no 17429fi 17430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17431 17432fi 17433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17434 CPPFLAGS="$gl_save_CPPFLAGS" 17435 rm -rf conftestd1a conftestd1b conftestd2 17436 17437fi 17438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 17439$as_echo "$gl_cv_have_include_next" >&6; } 17440 PRAGMA_SYSTEM_HEADER= 17441 if test $gl_cv_have_include_next = yes; then 17442 INCLUDE_NEXT=include_next 17443 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 17444 if test -n "$GCC"; then 17445 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 17446 fi 17447 else 17448 if test $gl_cv_have_include_next = buggy; then 17449 INCLUDE_NEXT=include 17450 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 17451 else 17452 INCLUDE_NEXT=include 17453 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 17454 fi 17455 fi 17456 17457 17458 17459 17460 17461 17462 17463 17464 for ac_header in $gl_header_list 17465do : 17466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17467ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17468if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17469 cat >>confdefs.h <<_ACEOF 17470#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17471_ACEOF 17472 17473fi 17474 17475done 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 : 17490 17491 17492 17493 17494 17495 17496 17497 if test $gl_cv_have_include_next = yes; then 17498 gl_cv_next_getopt_h='<'getopt.h'>' 17499 else 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 17501$as_echo_n "checking absolute name of <getopt.h>... " >&6; } 17502if ${gl_cv_next_getopt_h+:} false; then : 17503 $as_echo_n "(cached) " >&6 17504else 17505 17506 if test $ac_cv_header_getopt_h = yes; then 17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17508/* end confdefs.h. */ 17509#include <getopt.h> 17510 17511_ACEOF 17512 case "$host_os" in 17513 aix*) gl_absname_cpp="$ac_cpp -C" ;; 17514 *) gl_absname_cpp="$ac_cpp" ;; 17515 esac 17516 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 17517 sed -n '\#/getopt.h#{ 17518 s#.*"\(.*/getopt.h\)".*#\1# 17519 s#^/[^/]#//&# 17520 p 17521 q 17522 }'`'"' 17523 else 17524 gl_cv_next_getopt_h='<'getopt.h'>' 17525 fi 17526 17527fi 17528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 17529$as_echo "$gl_cv_next_getopt_h" >&6; } 17530 fi 17531 NEXT_GETOPT_H=$gl_cv_next_getopt_h 17532 17533 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 17534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 17535 gl_next_as_first_directive='<'getopt.h'>' 17536 else 17537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 17538 gl_next_as_first_directive=$gl_cv_next_getopt_h 17539 fi 17540 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive 17541 17542 17543 17544 17545 : 17546 17547 17548 17549 17550 17551 if test $ac_cv_header_getopt_h = yes; then 17552 HAVE_GETOPT_H=1 17553 else 17554 HAVE_GETOPT_H=0 17555 fi 17556 17557 17558 gl_replace_getopt= 17559 17560 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 17561 for ac_header in getopt.h 17562do : 17563 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 17564if test "x$ac_cv_header_getopt_h" = xyes; then : 17565 cat >>confdefs.h <<_ACEOF 17566#define HAVE_GETOPT_H 1 17567_ACEOF 17568 17569else 17570 gl_replace_getopt=yes 17571fi 17572 17573done 17574 17575 fi 17576 17577 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 17578 for ac_func in getopt_long_only 17579do : 17580 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 17581if test "x$ac_cv_func_getopt_long_only" = xyes; then : 17582 cat >>confdefs.h <<_ACEOF 17583#define HAVE_GETOPT_LONG_ONLY 1 17584_ACEOF 17585 17586else 17587 gl_replace_getopt=yes 17588fi 17589done 17590 17591 fi 17592 17593 if test -z "$gl_replace_getopt"; then 17594 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 17595" 17596if test "x$ac_cv_have_decl_optreset" = xyes; then : 17597 ac_have_decl=1 17598else 17599 ac_have_decl=0 17600fi 17601 17602cat >>confdefs.h <<_ACEOF 17603#define HAVE_DECL_OPTRESET $ac_have_decl 17604_ACEOF 17605if test $ac_have_decl = 1; then : 17606 17607else 17608 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 17609" 17610if test "x$ac_cv_have_decl_getopt_clip" = xyes; then : 17611 ac_have_decl=1 17612else 17613 ac_have_decl=0 17614fi 17615 17616cat >>confdefs.h <<_ACEOF 17617#define HAVE_DECL_GETOPT_CLIP $ac_have_decl 17618_ACEOF 17619 17620 17621fi 17622 17623 fi 17624 17625 if test -z "$gl_replace_getopt"; then 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 17627$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } 17628if ${gl_cv_func_getopt_posix+:} false; then : 17629 $as_echo_n "(cached) " >&6 17630else 17631 17632 if test "$cross_compiling" = yes; then : 17633 case "$host_os" in 17634 mingw*) gl_cv_func_getopt_posix="guessing no";; 17635 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";; 17636 *) gl_cv_func_getopt_posix="guessing yes";; 17637 esac 17638 17639else 17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17641/* end confdefs.h. */ 17642 17643#include <unistd.h> 17644#include <stdlib.h> 17645#include <string.h> 17646 17647#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP 17648# define OPTIND_MIN 0 17649#else 17650# define OPTIND_MIN 1 17651#endif 17652 17653int 17654main () 17655{ 17656 { 17657 int argc = 0; 17658 char *argv[10]; 17659 int c; 17660 17661 argv[argc++] = "program"; 17662 argv[argc++] = "-a"; 17663 argv[argc++] = "foo"; 17664 argv[argc++] = "bar"; 17665 argv[argc] = NULL; 17666 optind = OPTIND_MIN; 17667 opterr = 0; 17668 17669 c = getopt (argc, argv, "ab"); 17670 if (!(c == 'a')) 17671 return 1; 17672 c = getopt (argc, argv, "ab"); 17673 if (!(c == -1)) 17674 return 2; 17675 if (!(optind == 2)) 17676 return 3; 17677 } 17678 /* Some internal state exists at this point. */ 17679 { 17680 int argc = 0; 17681 char *argv[10]; 17682 int c; 17683 17684 argv[argc++] = "program"; 17685 argv[argc++] = "donald"; 17686 argv[argc++] = "-p"; 17687 argv[argc++] = "billy"; 17688 argv[argc++] = "duck"; 17689 argv[argc++] = "-a"; 17690 argv[argc++] = "bar"; 17691 argv[argc] = NULL; 17692 optind = OPTIND_MIN; 17693 opterr = 0; 17694 17695 c = getopt (argc, argv, "+abp:q:"); 17696 if (!(c == -1)) 17697 return 4; 17698 if (!(strcmp (argv[0], "program") == 0)) 17699 return 5; 17700 if (!(strcmp (argv[1], "donald") == 0)) 17701 return 6; 17702 if (!(strcmp (argv[2], "-p") == 0)) 17703 return 7; 17704 if (!(strcmp (argv[3], "billy") == 0)) 17705 return 8; 17706 if (!(strcmp (argv[4], "duck") == 0)) 17707 return 9; 17708 if (!(strcmp (argv[5], "-a") == 0)) 17709 return 10; 17710 if (!(strcmp (argv[6], "bar") == 0)) 17711 return 11; 17712 if (!(optind == 1)) 17713 return 12; 17714 } 17715 /* Detect MacOS 10.5, AIX 7.1 bug. */ 17716 { 17717 char *argv[3] = { "program", "-ab", NULL }; 17718 optind = OPTIND_MIN; 17719 opterr = 0; 17720 if (getopt (2, argv, "ab:") != 'a') 17721 return 13; 17722 if (getopt (2, argv, "ab:") != '?') 17723 return 14; 17724 if (optopt != 'b') 17725 return 15; 17726 if (optind != 2) 17727 return 16; 17728 } 17729 17730 return 0; 17731} 17732 17733_ACEOF 17734if ac_fn_c_try_run "$LINENO"; then : 17735 gl_cv_func_getopt_posix=yes 17736else 17737 gl_cv_func_getopt_posix=no 17738fi 17739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17740 conftest.$ac_objext conftest.beam conftest.$ac_ext 17741fi 17742 17743 17744fi 17745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 17746$as_echo "$gl_cv_func_getopt_posix" >&6; } 17747 case "$gl_cv_func_getopt_posix" in 17748 *no) gl_replace_getopt=yes ;; 17749 esac 17750 fi 17751 17752 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 17754$as_echo_n "checking for working GNU getopt function... " >&6; } 17755if ${gl_cv_func_getopt_gnu+:} false; then : 17756 $as_echo_n "(cached) " >&6 17757else 17758 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the 17759 # optstring is necessary for programs like m4 that have POSIX-mandated 17760 # semantics for supporting options interspersed with files. 17761 # Also, since getopt_long is a GNU extension, we require optind=0. 17762 gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes} 17763 POSIXLY_CORRECT=1 17764 export POSIXLY_CORRECT 17765 if test "$cross_compiling" = yes; then : 17766 case $host_os:$ac_cv_have_decl_optreset in 17767 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; 17768 *:yes) gl_cv_func_getopt_gnu=no;; 17769 *) gl_cv_func_getopt_gnu=yes;; 17770 esac 17771 17772else 17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17774/* end confdefs.h. */ 17775#include <getopt.h> 17776 #include <stddef.h> 17777 #include <string.h> 17778 17779int 17780main () 17781{ 17782 17783 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 17784 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 17785 OSF/1 5.1, Solaris 10. */ 17786 { 17787 char *myargv[3]; 17788 myargv[0] = "conftest"; 17789 myargv[1] = "-+"; 17790 myargv[2] = 0; 17791 opterr = 0; 17792 if (getopt (2, myargv, "+a") != '?') 17793 return 1; 17794 } 17795 /* This code succeeds on glibc 2.8, mingw, 17796 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 17797 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 17798 { 17799 char *argv[] = { "program", "-p", "foo", "bar", NULL }; 17800 17801 optind = 1; 17802 if (getopt (4, argv, "p::") != 'p') 17803 return 2; 17804 if (optarg != NULL) 17805 return 3; 17806 if (getopt (4, argv, "p::") != -1) 17807 return 4; 17808 if (optind != 2) 17809 return 5; 17810 } 17811 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ 17812 { 17813 char *argv[] = { "program", "foo", "-p", NULL }; 17814 optind = 0; 17815 if (getopt (3, argv, "-p") != 1) 17816 return 6; 17817 if (getopt (3, argv, "-p") != 'p') 17818 return 7; 17819 } 17820 /* This code fails on glibc 2.11. */ 17821 { 17822 char *argv[] = { "program", "-b", "-a", NULL }; 17823 optind = opterr = 0; 17824 if (getopt (3, argv, "+:a:b") != 'b') 17825 return 8; 17826 if (getopt (3, argv, "+:a:b") != ':') 17827 return 9; 17828 } 17829 return 0; 17830 17831 ; 17832 return 0; 17833} 17834_ACEOF 17835if ac_fn_c_try_run "$LINENO"; then : 17836 gl_cv_func_getopt_gnu=yes 17837else 17838 gl_cv_func_getopt_gnu=no 17839fi 17840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17841 conftest.$ac_objext conftest.beam conftest.$ac_ext 17842fi 17843 17844 if test "$gl_had_POSIXLY_CORRECT" != yes; then 17845 { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} 17846 fi 17847 17848fi 17849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 17850$as_echo "$gl_cv_func_getopt_gnu" >&6; } 17851 if test "$gl_cv_func_getopt_gnu" = "no"; then 17852 gl_replace_getopt=yes 17853 fi 17854 fi 17855 17856 17857 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 17858if test "x$ac_cv_have_decl_getenv" = xyes; then : 17859 ac_have_decl=1 17860else 17861 ac_have_decl=0 17862fi 17863 17864cat >>confdefs.h <<_ACEOF 17865#define HAVE_DECL_GETENV $ac_have_decl 17866_ACEOF 17867 17868 17869 17870 17871 17872 17873 17874 if test -n "$gl_replace_getopt"; then : 17875 17876 17877 17878 GETOPT_H=getopt.h 17879 17880$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 17881 17882 17883 17884 GNULIB_UNISTD_H_GETOPT=1 17885 17886 17887 17888 17889 17890 17891 17892 17893 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 17904 17905 17906 17907 : 17908 17909 17910 17911 17912 17913 17914 17915 17916fi 17917 17918 17919 17920 REPLACE_NULL=0; 17921 HAVE_WCHAR_T=1; 17922 STDDEF_H=''; 17923 17924 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 17926$as_echo_n "checking for wchar_t... " >&6; } 17927if ${gt_cv_c_wchar_t+:} false; then : 17928 $as_echo_n "(cached) " >&6 17929else 17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17931/* end confdefs.h. */ 17932#include <stddef.h> 17933 wchar_t foo = (wchar_t)'\0'; 17934int 17935main () 17936{ 17937 17938 ; 17939 return 0; 17940} 17941_ACEOF 17942if ac_fn_c_try_compile "$LINENO"; then : 17943 gt_cv_c_wchar_t=yes 17944else 17945 gt_cv_c_wchar_t=no 17946fi 17947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17948fi 17949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 17950$as_echo "$gt_cv_c_wchar_t" >&6; } 17951 if test $gt_cv_c_wchar_t = yes; then 17952 17953$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 17954 17955 fi 17956 17957 17958 17959 17960 17961 17962 17963 GNULIB_MEMCHR=0; 17964 GNULIB_MEMMEM=0; 17965 GNULIB_MEMPCPY=0; 17966 GNULIB_MEMRCHR=0; 17967 GNULIB_RAWMEMCHR=0; 17968 GNULIB_STPCPY=0; 17969 GNULIB_STPNCPY=0; 17970 GNULIB_STRCHRNUL=0; 17971 GNULIB_STRDUP=0; 17972 GNULIB_STRNCAT=0; 17973 GNULIB_STRNDUP=0; 17974 GNULIB_STRNLEN=0; 17975 GNULIB_STRPBRK=0; 17976 GNULIB_STRSEP=0; 17977 GNULIB_STRSTR=0; 17978 GNULIB_STRCASESTR=0; 17979 GNULIB_STRTOK_R=0; 17980 GNULIB_MBSLEN=0; 17981 GNULIB_MBSNLEN=0; 17982 GNULIB_MBSCHR=0; 17983 GNULIB_MBSRCHR=0; 17984 GNULIB_MBSSTR=0; 17985 GNULIB_MBSCASECMP=0; 17986 GNULIB_MBSNCASECMP=0; 17987 GNULIB_MBSPCASECMP=0; 17988 GNULIB_MBSCASESTR=0; 17989 GNULIB_MBSCSPN=0; 17990 GNULIB_MBSPBRK=0; 17991 GNULIB_MBSSPN=0; 17992 GNULIB_MBSSEP=0; 17993 GNULIB_MBSTOK_R=0; 17994 GNULIB_STRERROR=0; 17995 GNULIB_STRSIGNAL=0; 17996 GNULIB_STRVERSCMP=0; 17997 HAVE_MBSLEN=0; 17998 HAVE_MEMCHR=1; 17999 HAVE_DECL_MEMMEM=1; 18000 HAVE_MEMPCPY=1; 18001 HAVE_DECL_MEMRCHR=1; 18002 HAVE_RAWMEMCHR=1; 18003 HAVE_STPCPY=1; 18004 HAVE_STPNCPY=1; 18005 HAVE_STRCHRNUL=1; 18006 HAVE_DECL_STRDUP=1; 18007 HAVE_DECL_STRNDUP=1; 18008 HAVE_DECL_STRNLEN=1; 18009 HAVE_STRPBRK=1; 18010 HAVE_STRSEP=1; 18011 HAVE_STRCASESTR=1; 18012 HAVE_DECL_STRTOK_R=1; 18013 HAVE_DECL_STRSIGNAL=1; 18014 HAVE_STRVERSCMP=1; 18015 REPLACE_MEMCHR=0; 18016 REPLACE_MEMMEM=0; 18017 REPLACE_STPNCPY=0; 18018 REPLACE_STRDUP=0; 18019 REPLACE_STRSTR=0; 18020 REPLACE_STRCASESTR=0; 18021 REPLACE_STRERROR=0; 18022 REPLACE_STRNCAT=0; 18023 REPLACE_STRNDUP=0; 18024 REPLACE_STRNLEN=0; 18025 REPLACE_STRSIGNAL=0; 18026 REPLACE_STRTOK_R=0; 18027 UNDEFINE_STRTOK_R=0; 18028 18029 18030 18031 18032 18033 for ac_func in $gl_func_list 18034do : 18035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18036ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18037if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18038 cat >>confdefs.h <<_ACEOF 18039#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18040_ACEOF 18041 18042fi 18043done 18044 18045 18046 18047 18048 18049 18050 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" 18051if test "x$ac_cv_have_decl_strdup" = xyes; then : 18052 ac_have_decl=1 18053else 18054 ac_have_decl=0 18055fi 18056 18057cat >>confdefs.h <<_ACEOF 18058#define HAVE_DECL_STRDUP $ac_have_decl 18059_ACEOF 18060 18061 18062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 18063$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 18064if ${ac_cv_c_restrict+:} false; then : 18065 $as_echo_n "(cached) " >&6 18066else 18067 ac_cv_c_restrict=no 18068 # The order here caters to the fact that C++ does not require restrict. 18069 for ac_kw in __restrict __restrict__ _Restrict restrict; do 18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18071/* end confdefs.h. */ 18072typedef int * int_ptr; 18073 int foo (int_ptr $ac_kw ip) { 18074 return ip[0]; 18075 } 18076int 18077main () 18078{ 18079int s[1]; 18080 int * $ac_kw t = s; 18081 t[0] = 0; 18082 return foo(t) 18083 ; 18084 return 0; 18085} 18086_ACEOF 18087if ac_fn_c_try_compile "$LINENO"; then : 18088 ac_cv_c_restrict=$ac_kw 18089fi 18090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18091 test "$ac_cv_c_restrict" != no && break 18092 done 18093 18094fi 18095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 18096$as_echo "$ac_cv_c_restrict" >&6; } 18097 18098 case $ac_cv_c_restrict in 18099 restrict) ;; 18100 no) $as_echo "#define restrict /**/" >>confdefs.h 18101 ;; 18102 *) cat >>confdefs.h <<_ACEOF 18103#define restrict $ac_cv_c_restrict 18104_ACEOF 18105 ;; 18106 esac 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 : 18121 18122 18123 18124 18125 18126 18127 18128 if test $gl_cv_have_include_next = yes; then 18129 gl_cv_next_string_h='<'string.h'>' 18130 else 18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 18132$as_echo_n "checking absolute name of <string.h>... " >&6; } 18133if ${gl_cv_next_string_h+:} false; then : 18134 $as_echo_n "(cached) " >&6 18135else 18136 18137 if test $ac_cv_header_string_h = yes; then 18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18139/* end confdefs.h. */ 18140#include <string.h> 18141 18142_ACEOF 18143 case "$host_os" in 18144 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18145 *) gl_absname_cpp="$ac_cpp" ;; 18146 esac 18147 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18148 sed -n '\#/string.h#{ 18149 s#.*"\(.*/string.h\)".*#\1# 18150 s#^/[^/]#//&# 18151 p 18152 q 18153 }'`'"' 18154 else 18155 gl_cv_next_string_h='<'string.h'>' 18156 fi 18157 18158fi 18159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 18160$as_echo "$gl_cv_next_string_h" >&6; } 18161 fi 18162 NEXT_STRING_H=$gl_cv_next_string_h 18163 18164 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18166 gl_next_as_first_directive='<'string.h'>' 18167 else 18168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18169 gl_next_as_first_directive=$gl_cv_next_string_h 18170 fi 18171 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 18172 18173 18174 18175 18176 18177 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do 18178 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 18180$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 18181if eval \${$as_gl_Symbol+:} false; then : 18182 $as_echo_n "(cached) " >&6 18183else 18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18185/* end confdefs.h. */ 18186#include <string.h> 18187 18188int 18189main () 18190{ 18191#undef $gl_func 18192 (void) $gl_func; 18193 ; 18194 return 0; 18195} 18196_ACEOF 18197if ac_fn_c_try_compile "$LINENO"; then : 18198 eval "$as_gl_Symbol=yes" 18199else 18200 eval "$as_gl_Symbol=no" 18201fi 18202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18203fi 18204eval ac_res=\$$as_gl_Symbol 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18206$as_echo "$ac_res" >&6; } 18207 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 18208 cat >>confdefs.h <<_ACEOF 18209#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 18210_ACEOF 18211 18212 eval ac_cv_have_decl_$gl_func=yes 18213fi 18214 done 18215 18216 18217 18218 18219 18220 18221 18222 18223 if true; then 18224 GL_COND_LIBTOOL_TRUE= 18225 GL_COND_LIBTOOL_FALSE='#' 18226else 18227 GL_COND_LIBTOOL_TRUE='#' 18228 GL_COND_LIBTOOL_FALSE= 18229fi 18230 18231 gl_cond_libtool=true 18232 gl_m4_base='gl/m4' 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 gl_source_base='gl' 18243 # Code from module arg-nonnull: 18244 # Code from module c++defs: 18245 # Code from module extensions: 18246 # Code from module getopt: 18247 # Code from module getopt-gnu: 18248 18249 18250 18251 18252 18253 18254 18255$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h 18256 18257 18258 # Code from module getopt-posix: 18259 18260 18261 18262 18263 18264 if test -n "$gl_replace_getopt"; then : 18265 18266 18267 18268 GETOPT_H=getopt.h 18269 18270$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 18271 18272 18273 18274 GNULIB_UNISTD_H_GETOPT=1 18275 18276 18277 18278 18279 18280 18281 18282 18283 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 18294 18295 18296 18297 : 18298 18299 18300 18301 18302 18303 18304 18305 18306fi 18307 18308 18309 # Code from module gettext-h: 18310 18311 18312 # Code from module include_next: 18313 # Code from module stddef: 18314 18315 18316 18317 if test $gt_cv_c_wchar_t = no; then 18318 HAVE_WCHAR_T=0 18319 STDDEF_H=stddef.h 18320 fi 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 18322$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 18323if ${gl_cv_decl_null_works+:} false; then : 18324 $as_echo_n "(cached) " >&6 18325else 18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18327/* end confdefs.h. */ 18328#include <stddef.h> 18329 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 18330 18331int 18332main () 18333{ 18334 18335 ; 18336 return 0; 18337} 18338_ACEOF 18339if ac_fn_c_try_compile "$LINENO"; then : 18340 gl_cv_decl_null_works=yes 18341else 18342 gl_cv_decl_null_works=no 18343fi 18344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18345fi 18346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 18347$as_echo "$gl_cv_decl_null_works" >&6; } 18348 if test $gl_cv_decl_null_works = no; then 18349 REPLACE_NULL=1 18350 STDDEF_H=stddef.h 18351 fi 18352 if test -n "$STDDEF_H"; then 18353 18354 18355 18356 18357 : 18358 18359 18360 18361 18362 18363 18364 18365 if test $gl_cv_have_include_next = yes; then 18366 gl_cv_next_stddef_h='<'stddef.h'>' 18367 else 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 18369$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 18370if ${gl_cv_next_stddef_h+:} false; then : 18371 $as_echo_n "(cached) " >&6 18372else 18373 18374 if test $ac_cv_header_stddef_h = yes; then 18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18376/* end confdefs.h. */ 18377#include <stddef.h> 18378 18379_ACEOF 18380 case "$host_os" in 18381 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18382 *) gl_absname_cpp="$ac_cpp" ;; 18383 esac 18384 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18385 sed -n '\#/stddef.h#{ 18386 s#.*"\(.*/stddef.h\)".*#\1# 18387 s#^/[^/]#//&# 18388 p 18389 q 18390 }'`'"' 18391 else 18392 gl_cv_next_stddef_h='<'stddef.h'>' 18393 fi 18394 18395fi 18396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 18397$as_echo "$gl_cv_next_stddef_h" >&6; } 18398 fi 18399 NEXT_STDDEF_H=$gl_cv_next_stddef_h 18400 18401 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18403 gl_next_as_first_directive='<'stddef.h'>' 18404 else 18405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18406 gl_next_as_first_directive=$gl_cv_next_stddef_h 18407 fi 18408 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 18409 18410 18411 18412 fi 18413 18414 # Code from module strdup: 18415 18416 18417 18418 : 18419 18420 18421 18422 18423 18424 if test $ac_cv_func_strdup != yes; then 18425 18426 18427 18428 18429 18430 18431 18432 18433 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext" 18434 18435 : 18436 fi 18437 18438 : 18439 18440 18441 18442 18443 18444 if test $ac_cv_have_decl_strdup = no; then 18445 HAVE_DECL_STRDUP=0 18446 fi 18447 18448 18449 18450 18451 GNULIB_STRDUP=1 18452 18453 18454 18455$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h 18456 18457 18458 18459 # Code from module string: 18460 18461 18462 18463 # Code from module unistd: 18464 18465 18466 18467 18468 18469 18470 18471 18472 : 18473 18474 18475 18476 18477 18478 18479 18480 if test $gl_cv_have_include_next = yes; then 18481 gl_cv_next_unistd_h='<'unistd.h'>' 18482 else 18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 18484$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 18485if ${gl_cv_next_unistd_h+:} false; then : 18486 $as_echo_n "(cached) " >&6 18487else 18488 18489 if test $ac_cv_header_unistd_h = yes; then 18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491/* end confdefs.h. */ 18492#include <unistd.h> 18493 18494_ACEOF 18495 case "$host_os" in 18496 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18497 *) gl_absname_cpp="$ac_cpp" ;; 18498 esac 18499 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18500 sed -n '\#/unistd.h#{ 18501 s#.*"\(.*/unistd.h\)".*#\1# 18502 s#^/[^/]#//&# 18503 p 18504 q 18505 }'`'"' 18506 else 18507 gl_cv_next_unistd_h='<'unistd.h'>' 18508 fi 18509 18510fi 18511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 18512$as_echo "$gl_cv_next_unistd_h" >&6; } 18513 fi 18514 NEXT_UNISTD_H=$gl_cv_next_unistd_h 18515 18516 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18518 gl_next_as_first_directive='<'unistd.h'>' 18519 else 18520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18521 gl_next_as_first_directive=$gl_cv_next_unistd_h 18522 fi 18523 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 18524 18525 18526 18527 18528 18529 : 18530 18531 18532 18533 18534 18535 if test $ac_cv_header_unistd_h = yes; then 18536 HAVE_UNISTD_H=1 18537 else 18538 HAVE_UNISTD_H=0 18539 fi 18540 18541 18542 18543 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do 18544 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 18546$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 18547if eval \${$as_gl_Symbol+:} false; then : 18548 $as_echo_n "(cached) " >&6 18549else 18550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18551/* end confdefs.h. */ 18552#include <unistd.h> 18553/* Some systems declare various items in the wrong headers. */ 18554#ifndef __GLIBC__ 18555# include <fcntl.h> 18556# include <stdio.h> 18557# include <stdlib.h> 18558# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 18559# include <io.h> 18560# endif 18561#endif 18562 18563int 18564main () 18565{ 18566#undef $gl_func 18567 (void) $gl_func; 18568 ; 18569 return 0; 18570} 18571_ACEOF 18572if ac_fn_c_try_compile "$LINENO"; then : 18573 eval "$as_gl_Symbol=yes" 18574else 18575 eval "$as_gl_Symbol=no" 18576fi 18577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18578fi 18579eval ac_res=\$$as_gl_Symbol 18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18581$as_echo "$ac_res" >&6; } 18582 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 18583 cat >>confdefs.h <<_ACEOF 18584#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 18585_ACEOF 18586 18587 eval ac_cv_have_decl_$gl_func=yes 18588fi 18589 done 18590 18591 18592 # Code from module warn-on-use: 18593 # Code from module dummy: 18594 # End of code from modules 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 gltests_libdeps= 18605 gltests_ltlibdeps= 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 gl_source_base='tests' 18616 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS 18617 18618 gl_module_indicator_condition=$gltests_WITNESS 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630for ac_prog in tar gtar 18631do 18632 # Extract the first word of "$ac_prog", so it can be a program name with args. 18633set dummy $ac_prog; ac_word=$2 18634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18635$as_echo_n "checking for $ac_word... " >&6; } 18636if ${ac_cv_path_TAR+:} false; then : 18637 $as_echo_n "(cached) " >&6 18638else 18639 case $TAR in 18640 [\\/]* | ?:[\\/]*) 18641 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 18642 ;; 18643 *) 18644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18645for as_dir in $PATH 18646do 18647 IFS=$as_save_IFS 18648 test -z "$as_dir" && as_dir=. 18649 for ac_exec_ext in '' $ac_executable_extensions; do 18650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18651 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 18652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18653 break 2 18654 fi 18655done 18656 done 18657IFS=$as_save_IFS 18658 18659 ;; 18660esac 18661fi 18662TAR=$ac_cv_path_TAR 18663if test -n "$TAR"; then 18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 18665$as_echo "$TAR" >&6; } 18666else 18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18668$as_echo "no" >&6; } 18669fi 18670 18671 18672 test -n "$TAR" && break 18673done 18674 18675 18676for ac_prog in valgrind 18677do 18678 # Extract the first word of "$ac_prog", so it can be a program name with args. 18679set dummy $ac_prog; ac_word=$2 18680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18681$as_echo_n "checking for $ac_word... " >&6; } 18682if ${ac_cv_path_VALGRIND+:} false; then : 18683 $as_echo_n "(cached) " >&6 18684else 18685 case $VALGRIND in 18686 [\\/]* | ?:[\\/]*) 18687 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. 18688 ;; 18689 *) 18690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18691for as_dir in $PATH 18692do 18693 IFS=$as_save_IFS 18694 test -z "$as_dir" && as_dir=. 18695 for ac_exec_ext in '' $ac_executable_extensions; do 18696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18697 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" 18698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18699 break 2 18700 fi 18701done 18702 done 18703IFS=$as_save_IFS 18704 18705 ;; 18706esac 18707fi 18708VALGRIND=$ac_cv_path_VALGRIND 18709if test -n "$VALGRIND"; then 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 18711$as_echo "$VALGRIND" >&6; } 18712else 18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18714$as_echo "no" >&6; } 18715fi 18716 18717 18718 test -n "$VALGRIND" && break 18719done 18720test -n "$VALGRIND" || VALGRIND=":" 18721 18722 18723for ac_prog in help2man 18724do 18725 # Extract the first word of "$ac_prog", so it can be a program name with args. 18726set dummy $ac_prog; ac_word=$2 18727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18728$as_echo_n "checking for $ac_word... " >&6; } 18729if ${ac_cv_path_HELP2MAN+:} false; then : 18730 $as_echo_n "(cached) " >&6 18731else 18732 case $HELP2MAN in 18733 [\\/]* | ?:[\\/]*) 18734 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path. 18735 ;; 18736 *) 18737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18738for as_dir in $PATH 18739do 18740 IFS=$as_save_IFS 18741 test -z "$as_dir" && as_dir=. 18742 for ac_exec_ext in '' $ac_executable_extensions; do 18743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18744 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext" 18745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18746 break 2 18747 fi 18748done 18749 done 18750IFS=$as_save_IFS 18751 18752 ;; 18753esac 18754fi 18755HELP2MAN=$ac_cv_path_HELP2MAN 18756if test -n "$HELP2MAN"; then 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5 18758$as_echo "$HELP2MAN" >&6; } 18759else 18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18761$as_echo "no" >&6; } 18762fi 18763 18764 18765 test -n "$HELP2MAN" && break 18766done 18767test -n "$HELP2MAN" || HELP2MAN=":" 18768 18769 18770 if test "$cross_compiling" = no ; then 18771 NO_CROSSCOMPILING_TRUE= 18772 NO_CROSSCOMPILING_FALSE='#' 18773else 18774 NO_CROSSCOMPILING_TRUE='#' 18775 NO_CROSSCOMPILING_FALSE= 18776fi 18777 18778 18779 18780 18781ac_config_files="$ac_config_files Makefile doc/Makefile gl/Makefile src/Makefile src/skels/Makefile src/tests/Makefile tests/Makefile tests/test_conf.conf tests/test_conf_inc.conf tests/test_conf_parser_ov2.c tests/test_conf_parser_ov3.c tests/test_conf_parser_ov4.c" 18782 18783 18784 18785 18786ac_config_files="$ac_config_files tests/more_than_once.sh" 18787 18788ac_config_files="$ac_config_files tests/no_optgiven.sh" 18789 18790ac_config_files="$ac_config_files tests/test_all_opts.sh" 18791 18792ac_config_files="$ac_config_files tests/test_all_opts_file_save.sh" 18793 18794ac_config_files="$ac_config_files tests/test_conf_parser.sh" 18795 18796ac_config_files="$ac_config_files tests/test_conf_parser_err.sh" 18797 18798ac_config_files="$ac_config_files tests/test_conf_parser_err_string.sh" 18799 18800ac_config_files="$ac_config_files tests/test_conf_parser_grp.sh" 18801 18802ac_config_files="$ac_config_files tests/test_conf_parser_ov.sh" 18803 18804ac_config_files="$ac_config_files tests/test_conf_parser_ov2.sh" 18805 18806ac_config_files="$ac_config_files tests/test_conf_parser_ov3.sh" 18807 18808ac_config_files="$ac_config_files tests/test_conf_parser_ov4.sh" 18809 18810ac_config_files="$ac_config_files tests/test_conf_parser_save.sh" 18811 18812ac_config_files="$ac_config_files tests/test_default_values.sh" 18813 18814ac_config_files="$ac_config_files tests/test_dep.sh" 18815 18816ac_config_files="$ac_config_files tests/test_groups.sh" 18817 18818ac_config_files="$ac_config_files tests/test_manual_help.sh" 18819 18820ac_config_files="$ac_config_files tests/test_manual_help_args.sh" 18821 18822ac_config_files="$ac_config_files tests/test_modes.sh" 18823 18824ac_config_files="$ac_config_files tests/test_multiple.sh" 18825 18826ac_config_files="$ac_config_files tests/test_multiple_err.sh" 18827 18828ac_config_files="$ac_config_files tests/test_multiple_parsers.sh" 18829 18830ac_config_files="$ac_config_files tests/test_output_dir.sh" 18831 18832ac_config_files="$ac_config_files tests/test_output_dirs.sh" 18833 18834ac_config_files="$ac_config_files tests/test_sections.sh" 18835 18836ac_config_files="$ac_config_files tests/test_show_help.sh" 18837 18838ac_config_files="$ac_config_files tests/test_simple_multiple.sh" 18839 18840ac_config_files="$ac_config_files tests/test_simple_multiple_default.sh" 18841 18842ac_config_files="$ac_config_files tests/test_unamed.sh" 18843 18844ac_config_files="$ac_config_files tests/test_unnamed.sh" 18845 18846ac_config_files="$ac_config_files tests/test_values.sh" 18847 18848ac_config_files="$ac_config_files tests/test_values_err.sh" 18849 18850ac_config_files="$ac_config_files tests/test_wrong_ggo.sh" 18851 18852ac_config_files="$ac_config_files tests/valgrind_tests.sh" 18853 18854 18855cat >confcache <<\_ACEOF 18856# This file is a shell script that caches the results of configure 18857# tests run on this system so they can be shared between configure 18858# scripts and configure runs, see configure's option --config-cache. 18859# It is not useful on other systems. If it contains results you don't 18860# want to keep, you may remove or edit it. 18861# 18862# config.status only pays attention to the cache file if you give it 18863# the --recheck option to rerun configure. 18864# 18865# `ac_cv_env_foo' variables (set or unset) will be overridden when 18866# loading this file, other *unset* `ac_cv_foo' will be assigned the 18867# following values. 18868 18869_ACEOF 18870 18871# The following way of writing the cache mishandles newlines in values, 18872# but we know of no workaround that is simple, portable, and efficient. 18873# So, we kill variables containing newlines. 18874# Ultrix sh set writes to stderr and can't be redirected directly, 18875# and sets the high bit in the cache file unless we assign to the vars. 18876( 18877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18878 eval ac_val=\$$ac_var 18879 case $ac_val in #( 18880 *${as_nl}*) 18881 case $ac_var in #( 18882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18883$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18884 esac 18885 case $ac_var in #( 18886 _ | IFS | as_nl) ;; #( 18887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18888 *) { eval $ac_var=; unset $ac_var;} ;; 18889 esac ;; 18890 esac 18891 done 18892 18893 (set) 2>&1 | 18894 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18895 *${as_nl}ac_space=\ *) 18896 # `set' does not quote correctly, so add quotes: double-quote 18897 # substitution turns \\\\ into \\, and sed turns \\ into \. 18898 sed -n \ 18899 "s/'/'\\\\''/g; 18900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18901 ;; #( 18902 *) 18903 # `set' quotes correctly as required by POSIX, so do not add quotes. 18904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18905 ;; 18906 esac | 18907 sort 18908) | 18909 sed ' 18910 /^ac_cv_env_/b end 18911 t clear 18912 :clear 18913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18914 t end 18915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18916 :end' >>confcache 18917if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18918 if test -w "$cache_file"; then 18919 if test "x$cache_file" != "x/dev/null"; then 18920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18921$as_echo "$as_me: updating cache $cache_file" >&6;} 18922 if test ! -f "$cache_file" || test -h "$cache_file"; then 18923 cat confcache >"$cache_file" 18924 else 18925 case $cache_file in #( 18926 */* | ?:*) 18927 mv -f confcache "$cache_file"$$ && 18928 mv -f "$cache_file"$$ "$cache_file" ;; #( 18929 *) 18930 mv -f confcache "$cache_file" ;; 18931 esac 18932 fi 18933 fi 18934 else 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18936$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18937 fi 18938fi 18939rm -f confcache 18940 18941test "x$prefix" = xNONE && prefix=$ac_default_prefix 18942# Let make expand exec_prefix. 18943test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18944 18945DEFS=-DHAVE_CONFIG_H 18946 18947ac_libobjs= 18948ac_ltlibobjs= 18949for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18950 # 1. Remove the extension, and $U if already installed. 18951 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18952 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18953 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18954 # will be set to the directory where LIBOBJS objects are built. 18955 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18956 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18957done 18958LIBOBJS=$ac_libobjs 18959 18960LTLIBOBJS=$ac_ltlibobjs 18961 18962 18963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18964$as_echo_n "checking that generated files are newer than configure... " >&6; } 18965 if test -n "$am_sleep_pid"; then 18966 # Hide warnings about reused PIDs. 18967 wait $am_sleep_pid 2>/dev/null 18968 fi 18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18970$as_echo "done" >&6; } 18971 if test -n "$EXEEXT"; then 18972 am__EXEEXT_TRUE= 18973 am__EXEEXT_FALSE='#' 18974else 18975 am__EXEEXT_TRUE='#' 18976 am__EXEEXT_FALSE= 18977fi 18978 18979if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18980 as_fn_error $? "conditional \"AMDEP\" was never defined. 18981Usually this means the macro was only invoked conditionally." "$LINENO" 5 18982fi 18983if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18984 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18985Usually this means the macro was only invoked conditionally." "$LINENO" 5 18986fi 18987if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18988 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18989Usually this means the macro was only invoked conditionally." "$LINENO" 5 18990fi 18991if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 18992 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 18993Usually this means the macro was only invoked conditionally." "$LINENO" 5 18994fi 18995 18996 gl_libobjs= 18997 gl_ltlibobjs= 18998 if test -n "$gl_LIBOBJS"; then 18999 # Remove the extension. 19000 sed_drop_objext='s/\.o$//;s/\.obj$//' 19001 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 19002 gl_libobjs="$gl_libobjs $i.$ac_objext" 19003 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 19004 done 19005 fi 19006 gl_LIBOBJS=$gl_libobjs 19007 19008 gl_LTLIBOBJS=$gl_ltlibobjs 19009 19010 19011 19012 gltests_libobjs= 19013 gltests_ltlibobjs= 19014 if test -n "$gltests_LIBOBJS"; then 19015 # Remove the extension. 19016 sed_drop_objext='s/\.o$//;s/\.obj$//' 19017 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 19018 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 19019 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 19020 done 19021 fi 19022 gltests_LIBOBJS=$gltests_libobjs 19023 19024 gltests_LTLIBOBJS=$gltests_ltlibobjs 19025 19026 19027if test -z "${NO_CROSSCOMPILING_TRUE}" && test -z "${NO_CROSSCOMPILING_FALSE}"; then 19028 as_fn_error $? "conditional \"NO_CROSSCOMPILING\" was never defined. 19029Usually this means the macro was only invoked conditionally." "$LINENO" 5 19030fi 19031 19032: "${CONFIG_STATUS=./config.status}" 19033ac_write_fail=0 19034ac_clean_files_save=$ac_clean_files 19035ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19036{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19037$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19038as_write_fail=0 19039cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19040#! $SHELL 19041# Generated by $as_me. 19042# Run this file to recreate the current configuration. 19043# Compiler output produced by configure, useful for debugging 19044# configure, is in config.log if it exists. 19045 19046debug=false 19047ac_cs_recheck=false 19048ac_cs_silent=false 19049 19050SHELL=\${CONFIG_SHELL-$SHELL} 19051export SHELL 19052_ASEOF 19053cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19054## -------------------- ## 19055## M4sh Initialization. ## 19056## -------------------- ## 19057 19058# Be more Bourne compatible 19059DUALCASE=1; export DUALCASE # for MKS sh 19060if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19061 emulate sh 19062 NULLCMD=: 19063 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19064 # is contrary to our usage. Disable this feature. 19065 alias -g '${1+"$@"}'='"$@"' 19066 setopt NO_GLOB_SUBST 19067else 19068 case `(set -o) 2>/dev/null` in #( 19069 *posix*) : 19070 set -o posix ;; #( 19071 *) : 19072 ;; 19073esac 19074fi 19075 19076 19077as_nl=' 19078' 19079export as_nl 19080# Printing a long string crashes Solaris 7 /usr/bin/printf. 19081as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19082as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19083as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19084# Prefer a ksh shell builtin over an external printf program on Solaris, 19085# but without wasting forks for bash or zsh. 19086if test -z "$BASH_VERSION$ZSH_VERSION" \ 19087 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19088 as_echo='print -r --' 19089 as_echo_n='print -rn --' 19090elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19091 as_echo='printf %s\n' 19092 as_echo_n='printf %s' 19093else 19094 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19095 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19096 as_echo_n='/usr/ucb/echo -n' 19097 else 19098 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19099 as_echo_n_body='eval 19100 arg=$1; 19101 case $arg in #( 19102 *"$as_nl"*) 19103 expr "X$arg" : "X\\(.*\\)$as_nl"; 19104 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19105 esac; 19106 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19107 ' 19108 export as_echo_n_body 19109 as_echo_n='sh -c $as_echo_n_body as_echo' 19110 fi 19111 export as_echo_body 19112 as_echo='sh -c $as_echo_body as_echo' 19113fi 19114 19115# The user is always right. 19116if test "${PATH_SEPARATOR+set}" != set; then 19117 PATH_SEPARATOR=: 19118 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19119 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19120 PATH_SEPARATOR=';' 19121 } 19122fi 19123 19124 19125# IFS 19126# We need space, tab and new line, in precisely that order. Quoting is 19127# there to prevent editors from complaining about space-tab. 19128# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19129# splitting by setting IFS to empty value.) 19130IFS=" "" $as_nl" 19131 19132# Find who we are. Look in the path if we contain no directory separator. 19133as_myself= 19134case $0 in #(( 19135 *[\\/]* ) as_myself=$0 ;; 19136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19137for as_dir in $PATH 19138do 19139 IFS=$as_save_IFS 19140 test -z "$as_dir" && as_dir=. 19141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19142 done 19143IFS=$as_save_IFS 19144 19145 ;; 19146esac 19147# We did not find ourselves, most probably we were run as `sh COMMAND' 19148# in which case we are not to be found in the path. 19149if test "x$as_myself" = x; then 19150 as_myself=$0 19151fi 19152if test ! -f "$as_myself"; then 19153 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19154 exit 1 19155fi 19156 19157# Unset variables that we do not need and which cause bugs (e.g. in 19158# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19159# suppresses any "Segmentation fault" message there. '((' could 19160# trigger a bug in pdksh 5.2.14. 19161for as_var in BASH_ENV ENV MAIL MAILPATH 19162do eval test x\${$as_var+set} = xset \ 19163 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19164done 19165PS1='$ ' 19166PS2='> ' 19167PS4='+ ' 19168 19169# NLS nuisances. 19170LC_ALL=C 19171export LC_ALL 19172LANGUAGE=C 19173export LANGUAGE 19174 19175# CDPATH. 19176(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19177 19178 19179# as_fn_error STATUS ERROR [LINENO LOG_FD] 19180# ---------------------------------------- 19181# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19182# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19183# script with STATUS, using 1 if that was 0. 19184as_fn_error () 19185{ 19186 as_status=$1; test $as_status -eq 0 && as_status=1 19187 if test "$4"; then 19188 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19189 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19190 fi 19191 $as_echo "$as_me: error: $2" >&2 19192 as_fn_exit $as_status 19193} # as_fn_error 19194 19195 19196# as_fn_set_status STATUS 19197# ----------------------- 19198# Set $? to STATUS, without forking. 19199as_fn_set_status () 19200{ 19201 return $1 19202} # as_fn_set_status 19203 19204# as_fn_exit STATUS 19205# ----------------- 19206# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19207as_fn_exit () 19208{ 19209 set +e 19210 as_fn_set_status $1 19211 exit $1 19212} # as_fn_exit 19213 19214# as_fn_unset VAR 19215# --------------- 19216# Portably unset VAR. 19217as_fn_unset () 19218{ 19219 { eval $1=; unset $1;} 19220} 19221as_unset=as_fn_unset 19222# as_fn_append VAR VALUE 19223# ---------------------- 19224# Append the text in VALUE to the end of the definition contained in VAR. Take 19225# advantage of any shell optimizations that allow amortized linear growth over 19226# repeated appends, instead of the typical quadratic growth present in naive 19227# implementations. 19228if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19229 eval 'as_fn_append () 19230 { 19231 eval $1+=\$2 19232 }' 19233else 19234 as_fn_append () 19235 { 19236 eval $1=\$$1\$2 19237 } 19238fi # as_fn_append 19239 19240# as_fn_arith ARG... 19241# ------------------ 19242# Perform arithmetic evaluation on the ARGs, and store the result in the 19243# global $as_val. Take advantage of shells that can avoid forks. The arguments 19244# must be portable across $(()) and expr. 19245if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19246 eval 'as_fn_arith () 19247 { 19248 as_val=$(( $* )) 19249 }' 19250else 19251 as_fn_arith () 19252 { 19253 as_val=`expr "$@" || test $? -eq 1` 19254 } 19255fi # as_fn_arith 19256 19257 19258if expr a : '\(a\)' >/dev/null 2>&1 && 19259 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19260 as_expr=expr 19261else 19262 as_expr=false 19263fi 19264 19265if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19266 as_basename=basename 19267else 19268 as_basename=false 19269fi 19270 19271if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19272 as_dirname=dirname 19273else 19274 as_dirname=false 19275fi 19276 19277as_me=`$as_basename -- "$0" || 19278$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19279 X"$0" : 'X\(//\)$' \| \ 19280 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19281$as_echo X/"$0" | 19282 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19283 s//\1/ 19284 q 19285 } 19286 /^X\/\(\/\/\)$/{ 19287 s//\1/ 19288 q 19289 } 19290 /^X\/\(\/\).*/{ 19291 s//\1/ 19292 q 19293 } 19294 s/.*/./; q'` 19295 19296# Avoid depending upon Character Ranges. 19297as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19298as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19299as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19300as_cr_digits='0123456789' 19301as_cr_alnum=$as_cr_Letters$as_cr_digits 19302 19303ECHO_C= ECHO_N= ECHO_T= 19304case `echo -n x` in #((((( 19305-n*) 19306 case `echo 'xy\c'` in 19307 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19308 xy) ECHO_C='\c';; 19309 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19310 ECHO_T=' ';; 19311 esac;; 19312*) 19313 ECHO_N='-n';; 19314esac 19315 19316rm -f conf$$ conf$$.exe conf$$.file 19317if test -d conf$$.dir; then 19318 rm -f conf$$.dir/conf$$.file 19319else 19320 rm -f conf$$.dir 19321 mkdir conf$$.dir 2>/dev/null 19322fi 19323if (echo >conf$$.file) 2>/dev/null; then 19324 if ln -s conf$$.file conf$$ 2>/dev/null; then 19325 as_ln_s='ln -s' 19326 # ... but there are two gotchas: 19327 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19328 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19329 # In both cases, we have to default to `cp -pR'. 19330 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19331 as_ln_s='cp -pR' 19332 elif ln conf$$.file conf$$ 2>/dev/null; then 19333 as_ln_s=ln 19334 else 19335 as_ln_s='cp -pR' 19336 fi 19337else 19338 as_ln_s='cp -pR' 19339fi 19340rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19341rmdir conf$$.dir 2>/dev/null 19342 19343 19344# as_fn_mkdir_p 19345# ------------- 19346# Create "$as_dir" as a directory, including parents if necessary. 19347as_fn_mkdir_p () 19348{ 19349 19350 case $as_dir in #( 19351 -*) as_dir=./$as_dir;; 19352 esac 19353 test -d "$as_dir" || eval $as_mkdir_p || { 19354 as_dirs= 19355 while :; do 19356 case $as_dir in #( 19357 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19358 *) as_qdir=$as_dir;; 19359 esac 19360 as_dirs="'$as_qdir' $as_dirs" 19361 as_dir=`$as_dirname -- "$as_dir" || 19362$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19363 X"$as_dir" : 'X\(//\)[^/]' \| \ 19364 X"$as_dir" : 'X\(//\)$' \| \ 19365 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19366$as_echo X"$as_dir" | 19367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19368 s//\1/ 19369 q 19370 } 19371 /^X\(\/\/\)[^/].*/{ 19372 s//\1/ 19373 q 19374 } 19375 /^X\(\/\/\)$/{ 19376 s//\1/ 19377 q 19378 } 19379 /^X\(\/\).*/{ 19380 s//\1/ 19381 q 19382 } 19383 s/.*/./; q'` 19384 test -d "$as_dir" && break 19385 done 19386 test -z "$as_dirs" || eval "mkdir $as_dirs" 19387 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19388 19389 19390} # as_fn_mkdir_p 19391if mkdir -p . 2>/dev/null; then 19392 as_mkdir_p='mkdir -p "$as_dir"' 19393else 19394 test -d ./-p && rmdir ./-p 19395 as_mkdir_p=false 19396fi 19397 19398 19399# as_fn_executable_p FILE 19400# ----------------------- 19401# Test if FILE is an executable regular file. 19402as_fn_executable_p () 19403{ 19404 test -f "$1" && test -x "$1" 19405} # as_fn_executable_p 19406as_test_x='test -x' 19407as_executable_p=as_fn_executable_p 19408 19409# Sed expression to map a string onto a valid CPP name. 19410as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19411 19412# Sed expression to map a string onto a valid variable name. 19413as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19414 19415 19416exec 6>&1 19417## ----------------------------------- ## 19418## Main body of $CONFIG_STATUS script. ## 19419## ----------------------------------- ## 19420_ASEOF 19421test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19422 19423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19424# Save the log message, to keep $0 and so on meaningful, and to 19425# report actual input values of CONFIG_FILES etc. instead of their 19426# values after options handling. 19427ac_log=" 19428This file was extended by GNU gengetopt $as_me 2.23, which was 19429generated by GNU Autoconf 2.69. Invocation command line was 19430 19431 CONFIG_FILES = $CONFIG_FILES 19432 CONFIG_HEADERS = $CONFIG_HEADERS 19433 CONFIG_LINKS = $CONFIG_LINKS 19434 CONFIG_COMMANDS = $CONFIG_COMMANDS 19435 $ $0 $@ 19436 19437on `(hostname || uname -n) 2>/dev/null | sed 1q` 19438" 19439 19440_ACEOF 19441 19442case $ac_config_files in *" 19443"*) set x $ac_config_files; shift; ac_config_files=$*;; 19444esac 19445 19446case $ac_config_headers in *" 19447"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19448esac 19449 19450 19451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19452# Files that config.status was made for. 19453config_files="$ac_config_files" 19454config_headers="$ac_config_headers" 19455config_commands="$ac_config_commands" 19456 19457_ACEOF 19458 19459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19460ac_cs_usage="\ 19461\`$as_me' instantiates files and other configuration actions 19462from templates according to the current configuration. Unless the files 19463and actions are specified as TAGs, all are instantiated by default. 19464 19465Usage: $0 [OPTION]... [TAG]... 19466 19467 -h, --help print this help, then exit 19468 -V, --version print version number and configuration settings, then exit 19469 --config print configuration, then exit 19470 -q, --quiet, --silent 19471 do not print progress messages 19472 -d, --debug don't remove temporary files 19473 --recheck update $as_me by reconfiguring in the same conditions 19474 --file=FILE[:TEMPLATE] 19475 instantiate the configuration file FILE 19476 --header=FILE[:TEMPLATE] 19477 instantiate the configuration header FILE 19478 19479Configuration files: 19480$config_files 19481 19482Configuration headers: 19483$config_headers 19484 19485Configuration commands: 19486$config_commands 19487 19488Report bugs to the package provider. 19489GNU gengetopt home page: <http://www.gnu.org/software/gengetopt/>. 19490General help using GNU software: <http://www.gnu.org/gethelp/>." 19491 19492_ACEOF 19493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19494ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19495ac_cs_version="\\ 19496GNU gengetopt config.status 2.23 19497configured by $0, generated by GNU Autoconf 2.69, 19498 with options \\"\$ac_cs_config\\" 19499 19500Copyright (C) 2012 Free Software Foundation, Inc. 19501This config.status script is free software; the Free Software Foundation 19502gives unlimited permission to copy, distribute and modify it." 19503 19504ac_pwd='$ac_pwd' 19505srcdir='$srcdir' 19506INSTALL='$INSTALL' 19507MKDIR_P='$MKDIR_P' 19508AWK='$AWK' 19509test -n "\$AWK" || AWK=awk 19510_ACEOF 19511 19512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19513# The default lists apply if the user does not specify any file. 19514ac_need_defaults=: 19515while test $# != 0 19516do 19517 case $1 in 19518 --*=?*) 19519 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19520 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19521 ac_shift=: 19522 ;; 19523 --*=) 19524 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19525 ac_optarg= 19526 ac_shift=: 19527 ;; 19528 *) 19529 ac_option=$1 19530 ac_optarg=$2 19531 ac_shift=shift 19532 ;; 19533 esac 19534 19535 case $ac_option in 19536 # Handling of the options. 19537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19538 ac_cs_recheck=: ;; 19539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19540 $as_echo "$ac_cs_version"; exit ;; 19541 --config | --confi | --conf | --con | --co | --c ) 19542 $as_echo "$ac_cs_config"; exit ;; 19543 --debug | --debu | --deb | --de | --d | -d ) 19544 debug=: ;; 19545 --file | --fil | --fi | --f ) 19546 $ac_shift 19547 case $ac_optarg in 19548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19549 '') as_fn_error $? "missing file argument" ;; 19550 esac 19551 as_fn_append CONFIG_FILES " '$ac_optarg'" 19552 ac_need_defaults=false;; 19553 --header | --heade | --head | --hea ) 19554 $ac_shift 19555 case $ac_optarg in 19556 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19557 esac 19558 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19559 ac_need_defaults=false;; 19560 --he | --h) 19561 # Conflict between --help and --header 19562 as_fn_error $? "ambiguous option: \`$1' 19563Try \`$0 --help' for more information.";; 19564 --help | --hel | -h ) 19565 $as_echo "$ac_cs_usage"; exit ;; 19566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19567 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19568 ac_cs_silent=: ;; 19569 19570 # This is an error. 19571 -*) as_fn_error $? "unrecognized option: \`$1' 19572Try \`$0 --help' for more information." ;; 19573 19574 *) as_fn_append ac_config_targets " $1" 19575 ac_need_defaults=false ;; 19576 19577 esac 19578 shift 19579done 19580 19581ac_configure_extra_args= 19582 19583if $ac_cs_silent; then 19584 exec 6>/dev/null 19585 ac_configure_extra_args="$ac_configure_extra_args --silent" 19586fi 19587 19588_ACEOF 19589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19590if \$ac_cs_recheck; then 19591 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19592 shift 19593 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19594 CONFIG_SHELL='$SHELL' 19595 export CONFIG_SHELL 19596 exec "\$@" 19597fi 19598 19599_ACEOF 19600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19601exec 5>>config.log 19602{ 19603 echo 19604 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19605## Running $as_me. ## 19606_ASBOX 19607 $as_echo "$ac_log" 19608} >&5 19609 19610_ACEOF 19611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19612# 19613# INIT-COMMANDS 19614# 19615AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19616 19617 19618# The HP-UX ksh and POSIX shell print the target directory to stdout 19619# if CDPATH is set. 19620(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19621 19622sed_quote_subst='$sed_quote_subst' 19623double_quote_subst='$double_quote_subst' 19624delay_variable_subst='$delay_variable_subst' 19625macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19626macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19627enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19628enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19629pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19630enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19631shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19632SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19633ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19634PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19635host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19636host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19637host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19638build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19639build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19640build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19641SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19642Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19643GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19644EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19645FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19646LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19647NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19648LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19649max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19650ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19651exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19652lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19653lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19654lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19655lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19656lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19657reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19658reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19659OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19660deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19661file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19662file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19663want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19664DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19665sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19666AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19667lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 19668AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19669archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19670STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19671RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19672old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19673old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19674old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19675lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19676CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19677CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19678compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19679GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19680lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19681lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19682lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19683lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19684lt_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"`' 19685lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19686nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19687lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19688lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19689objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19690MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19691lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19692lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19693lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19694lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19695lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19696need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19697MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19698DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19699NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19700LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19701OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19702OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19703libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19704shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19705extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19706archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19707enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19708export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19709whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19710compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19711old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19712old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19713archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19714archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19715module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19716module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19717with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19718allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19719no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19720hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19721hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19722hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19723hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19724hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19725hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19726hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19727inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19728link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19729always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19730export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19731exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19732include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19733prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19734postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19735file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19736variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19737need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19738need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19739version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19740runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19741shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19742shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19743libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19744library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19745soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19746install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19747postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19748postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19749finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19750finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19751hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19752sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19753configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19754configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19755hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19756enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19757enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19758enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19759old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19760striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19761compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19762predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19763postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19764predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19765postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19766compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19767LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19768reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19769reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19770old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19771compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19772GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19773lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19774lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19775lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19776lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19777lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19778archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19779enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19780export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19781whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19782compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19783old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19784old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19785archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19786archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19787module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19788module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19789with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19790allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19791no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19792hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19793hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19794hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19795hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19796hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19797hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19798hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19799inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19800link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19801always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19802export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19803exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19804include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19805prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19806postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19807file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19808hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19809compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19810predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19811postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19812predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19813postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19814compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19815 19816LTCC='$LTCC' 19817LTCFLAGS='$LTCFLAGS' 19818compiler='$compiler_DEFAULT' 19819 19820# A function that is used when there is no print builtin or printf. 19821func_fallback_echo () 19822{ 19823 eval 'cat <<_LTECHO_EOF 19824\$1 19825_LTECHO_EOF' 19826} 19827 19828# Quote evaled strings. 19829for var in SHELL \ 19830ECHO \ 19831PATH_SEPARATOR \ 19832SED \ 19833GREP \ 19834EGREP \ 19835FGREP \ 19836LD \ 19837NM \ 19838LN_S \ 19839lt_SP2NL \ 19840lt_NL2SP \ 19841reload_flag \ 19842OBJDUMP \ 19843deplibs_check_method \ 19844file_magic_cmd \ 19845file_magic_glob \ 19846want_nocaseglob \ 19847DLLTOOL \ 19848sharedlib_from_linklib_cmd \ 19849AR \ 19850archiver_list_spec \ 19851STRIP \ 19852RANLIB \ 19853CC \ 19854CFLAGS \ 19855compiler \ 19856lt_cv_sys_global_symbol_pipe \ 19857lt_cv_sys_global_symbol_to_cdecl \ 19858lt_cv_sys_global_symbol_to_import \ 19859lt_cv_sys_global_symbol_to_c_name_address \ 19860lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19861lt_cv_nm_interface \ 19862nm_file_list_spec \ 19863lt_cv_truncate_bin \ 19864lt_prog_compiler_no_builtin_flag \ 19865lt_prog_compiler_pic \ 19866lt_prog_compiler_wl \ 19867lt_prog_compiler_static \ 19868lt_cv_prog_compiler_c_o \ 19869need_locks \ 19870MANIFEST_TOOL \ 19871DSYMUTIL \ 19872NMEDIT \ 19873LIPO \ 19874OTOOL \ 19875OTOOL64 \ 19876shrext_cmds \ 19877export_dynamic_flag_spec \ 19878whole_archive_flag_spec \ 19879compiler_needs_object \ 19880with_gnu_ld \ 19881allow_undefined_flag \ 19882no_undefined_flag \ 19883hardcode_libdir_flag_spec \ 19884hardcode_libdir_separator \ 19885exclude_expsyms \ 19886include_expsyms \ 19887file_list_spec \ 19888variables_saved_for_relink \ 19889libname_spec \ 19890library_names_spec \ 19891soname_spec \ 19892install_override_mode \ 19893finish_eval \ 19894old_striplib \ 19895striplib \ 19896compiler_lib_search_dirs \ 19897predep_objects \ 19898postdep_objects \ 19899predeps \ 19900postdeps \ 19901compiler_lib_search_path \ 19902LD_CXX \ 19903reload_flag_CXX \ 19904compiler_CXX \ 19905lt_prog_compiler_no_builtin_flag_CXX \ 19906lt_prog_compiler_pic_CXX \ 19907lt_prog_compiler_wl_CXX \ 19908lt_prog_compiler_static_CXX \ 19909lt_cv_prog_compiler_c_o_CXX \ 19910export_dynamic_flag_spec_CXX \ 19911whole_archive_flag_spec_CXX \ 19912compiler_needs_object_CXX \ 19913with_gnu_ld_CXX \ 19914allow_undefined_flag_CXX \ 19915no_undefined_flag_CXX \ 19916hardcode_libdir_flag_spec_CXX \ 19917hardcode_libdir_separator_CXX \ 19918exclude_expsyms_CXX \ 19919include_expsyms_CXX \ 19920file_list_spec_CXX \ 19921compiler_lib_search_dirs_CXX \ 19922predep_objects_CXX \ 19923postdep_objects_CXX \ 19924predeps_CXX \ 19925postdeps_CXX \ 19926compiler_lib_search_path_CXX; do 19927 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19928 *[\\\\\\\`\\"\\\$]*) 19929 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19930 ;; 19931 *) 19932 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19933 ;; 19934 esac 19935done 19936 19937# Double-quote double-evaled strings. 19938for var in reload_cmds \ 19939old_postinstall_cmds \ 19940old_postuninstall_cmds \ 19941old_archive_cmds \ 19942extract_expsyms_cmds \ 19943old_archive_from_new_cmds \ 19944old_archive_from_expsyms_cmds \ 19945archive_cmds \ 19946archive_expsym_cmds \ 19947module_cmds \ 19948module_expsym_cmds \ 19949export_symbols_cmds \ 19950prelink_cmds \ 19951postlink_cmds \ 19952postinstall_cmds \ 19953postuninstall_cmds \ 19954finish_cmds \ 19955sys_lib_search_path_spec \ 19956configure_time_dlsearch_path \ 19957configure_time_lt_sys_library_path \ 19958reload_cmds_CXX \ 19959old_archive_cmds_CXX \ 19960old_archive_from_new_cmds_CXX \ 19961old_archive_from_expsyms_cmds_CXX \ 19962archive_cmds_CXX \ 19963archive_expsym_cmds_CXX \ 19964module_cmds_CXX \ 19965module_expsym_cmds_CXX \ 19966export_symbols_cmds_CXX \ 19967prelink_cmds_CXX \ 19968postlink_cmds_CXX; do 19969 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19970 *[\\\\\\\`\\"\\\$]*) 19971 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19972 ;; 19973 *) 19974 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19975 ;; 19976 esac 19977done 19978 19979ac_aux_dir='$ac_aux_dir' 19980 19981# See if we are running on zsh, and set the options that allow our 19982# commands through without removal of \ escapes INIT. 19983if test -n "\${ZSH_VERSION+set}"; then 19984 setopt NO_GLOB_SUBST 19985fi 19986 19987 19988 PACKAGE='$PACKAGE' 19989 VERSION='$VERSION' 19990 RM='$RM' 19991 ofile='$ofile' 19992 19993 19994 19995 19996 19997 19998_ACEOF 19999 20000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20001 20002# Handling of arguments. 20003for ac_config_target in $ac_config_targets 20004do 20005 case $ac_config_target in 20006 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20007 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20008 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20009 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20010 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20011 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;; 20012 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20013 "src/skels/Makefile") CONFIG_FILES="$CONFIG_FILES src/skels/Makefile" ;; 20014 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; 20015 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20016 "tests/test_conf.conf") CONFIG_FILES="$CONFIG_FILES tests/test_conf.conf" ;; 20017 "tests/test_conf_inc.conf") CONFIG_FILES="$CONFIG_FILES tests/test_conf_inc.conf" ;; 20018 "tests/test_conf_parser_ov2.c") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_ov2.c" ;; 20019 "tests/test_conf_parser_ov3.c") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_ov3.c" ;; 20020 "tests/test_conf_parser_ov4.c") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_ov4.c" ;; 20021 "tests/more_than_once.sh") CONFIG_FILES="$CONFIG_FILES tests/more_than_once.sh" ;; 20022 "tests/no_optgiven.sh") CONFIG_FILES="$CONFIG_FILES tests/no_optgiven.sh" ;; 20023 "tests/test_all_opts.sh") CONFIG_FILES="$CONFIG_FILES tests/test_all_opts.sh" ;; 20024 "tests/test_all_opts_file_save.sh") CONFIG_FILES="$CONFIG_FILES tests/test_all_opts_file_save.sh" ;; 20025 "tests/test_conf_parser.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser.sh" ;; 20026 "tests/test_conf_parser_err.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_err.sh" ;; 20027 "tests/test_conf_parser_err_string.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_err_string.sh" ;; 20028 "tests/test_conf_parser_grp.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_grp.sh" ;; 20029 "tests/test_conf_parser_ov.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_ov.sh" ;; 20030 "tests/test_conf_parser_ov2.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_ov2.sh" ;; 20031 "tests/test_conf_parser_ov3.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_ov3.sh" ;; 20032 "tests/test_conf_parser_ov4.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_ov4.sh" ;; 20033 "tests/test_conf_parser_save.sh") CONFIG_FILES="$CONFIG_FILES tests/test_conf_parser_save.sh" ;; 20034 "tests/test_default_values.sh") CONFIG_FILES="$CONFIG_FILES tests/test_default_values.sh" ;; 20035 "tests/test_dep.sh") CONFIG_FILES="$CONFIG_FILES tests/test_dep.sh" ;; 20036 "tests/test_groups.sh") CONFIG_FILES="$CONFIG_FILES tests/test_groups.sh" ;; 20037 "tests/test_manual_help.sh") CONFIG_FILES="$CONFIG_FILES tests/test_manual_help.sh" ;; 20038 "tests/test_manual_help_args.sh") CONFIG_FILES="$CONFIG_FILES tests/test_manual_help_args.sh" ;; 20039 "tests/test_modes.sh") CONFIG_FILES="$CONFIG_FILES tests/test_modes.sh" ;; 20040 "tests/test_multiple.sh") CONFIG_FILES="$CONFIG_FILES tests/test_multiple.sh" ;; 20041 "tests/test_multiple_err.sh") CONFIG_FILES="$CONFIG_FILES tests/test_multiple_err.sh" ;; 20042 "tests/test_multiple_parsers.sh") CONFIG_FILES="$CONFIG_FILES tests/test_multiple_parsers.sh" ;; 20043 "tests/test_output_dir.sh") CONFIG_FILES="$CONFIG_FILES tests/test_output_dir.sh" ;; 20044 "tests/test_output_dirs.sh") CONFIG_FILES="$CONFIG_FILES tests/test_output_dirs.sh" ;; 20045 "tests/test_sections.sh") CONFIG_FILES="$CONFIG_FILES tests/test_sections.sh" ;; 20046 "tests/test_show_help.sh") CONFIG_FILES="$CONFIG_FILES tests/test_show_help.sh" ;; 20047 "tests/test_simple_multiple.sh") CONFIG_FILES="$CONFIG_FILES tests/test_simple_multiple.sh" ;; 20048 "tests/test_simple_multiple_default.sh") CONFIG_FILES="$CONFIG_FILES tests/test_simple_multiple_default.sh" ;; 20049 "tests/test_unamed.sh") CONFIG_FILES="$CONFIG_FILES tests/test_unamed.sh" ;; 20050 "tests/test_unnamed.sh") CONFIG_FILES="$CONFIG_FILES tests/test_unnamed.sh" ;; 20051 "tests/test_values.sh") CONFIG_FILES="$CONFIG_FILES tests/test_values.sh" ;; 20052 "tests/test_values_err.sh") CONFIG_FILES="$CONFIG_FILES tests/test_values_err.sh" ;; 20053 "tests/test_wrong_ggo.sh") CONFIG_FILES="$CONFIG_FILES tests/test_wrong_ggo.sh" ;; 20054 "tests/valgrind_tests.sh") CONFIG_FILES="$CONFIG_FILES tests/valgrind_tests.sh" ;; 20055 20056 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20057 esac 20058done 20059 20060 20061# If the user did not use the arguments to specify the items to instantiate, 20062# then the envvar interface is used. Set only those that are not. 20063# We use the long form for the default assignment because of an extremely 20064# bizarre bug on SunOS 4.1.3. 20065if $ac_need_defaults; then 20066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20067 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20068 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20069fi 20070 20071# Have a temporary directory for convenience. Make it in the build tree 20072# simply because there is no reason against having it here, and in addition, 20073# creating and moving files from /tmp can sometimes cause problems. 20074# Hook for its removal unless debugging. 20075# Note that there is a small window in which the directory will not be cleaned: 20076# after its creation but before its name has been assigned to `$tmp'. 20077$debug || 20078{ 20079 tmp= ac_tmp= 20080 trap 'exit_status=$? 20081 : "${ac_tmp:=$tmp}" 20082 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20083' 0 20084 trap 'as_fn_exit 1' 1 2 13 15 20085} 20086# Create a (secure) tmp directory for tmp files. 20087 20088{ 20089 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20090 test -d "$tmp" 20091} || 20092{ 20093 tmp=./conf$$-$RANDOM 20094 (umask 077 && mkdir "$tmp") 20095} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20096ac_tmp=$tmp 20097 20098# Set up the scripts for CONFIG_FILES section. 20099# No need to generate them if there are no CONFIG_FILES. 20100# This happens for instance with `./config.status config.h'. 20101if test -n "$CONFIG_FILES"; then 20102 20103 20104ac_cr=`echo X | tr X '\015'` 20105# On cygwin, bash can eat \r inside `` if the user requested igncr. 20106# But we know of no other shell where ac_cr would be empty at this 20107# point, so we can use a bashism as a fallback. 20108if test "x$ac_cr" = x; then 20109 eval ac_cr=\$\'\\r\' 20110fi 20111ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20112if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20113 ac_cs_awk_cr='\\r' 20114else 20115 ac_cs_awk_cr=$ac_cr 20116fi 20117 20118echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20119_ACEOF 20120 20121 20122{ 20123 echo "cat >conf$$subs.awk <<_ACEOF" && 20124 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20125 echo "_ACEOF" 20126} >conf$$subs.sh || 20127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20128ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20129ac_delim='%!_!# ' 20130for ac_last_try in false false false false false :; do 20131 . ./conf$$subs.sh || 20132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20133 20134 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20135 if test $ac_delim_n = $ac_delim_num; then 20136 break 20137 elif $ac_last_try; then 20138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20139 else 20140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20141 fi 20142done 20143rm -f conf$$subs.sh 20144 20145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20146cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20147_ACEOF 20148sed -n ' 20149h 20150s/^/S["/; s/!.*/"]=/ 20151p 20152g 20153s/^[^!]*!// 20154:repl 20155t repl 20156s/'"$ac_delim"'$// 20157t delim 20158:nl 20159h 20160s/\(.\{148\}\)..*/\1/ 20161t more1 20162s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20163p 20164n 20165b repl 20166:more1 20167s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20168p 20169g 20170s/.\{148\}// 20171t nl 20172:delim 20173h 20174s/\(.\{148\}\)..*/\1/ 20175t more2 20176s/["\\]/\\&/g; s/^/"/; s/$/"/ 20177p 20178b 20179:more2 20180s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20181p 20182g 20183s/.\{148\}// 20184t delim 20185' <conf$$subs.awk | sed ' 20186/^[^""]/{ 20187 N 20188 s/\n// 20189} 20190' >>$CONFIG_STATUS || ac_write_fail=1 20191rm -f conf$$subs.awk 20192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20193_ACAWK 20194cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20195 for (key in S) S_is_set[key] = 1 20196 FS = "" 20197 20198} 20199{ 20200 line = $ 0 20201 nfields = split(line, field, "@") 20202 substed = 0 20203 len = length(field[1]) 20204 for (i = 2; i < nfields; i++) { 20205 key = field[i] 20206 keylen = length(key) 20207 if (S_is_set[key]) { 20208 value = S[key] 20209 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20210 len += length(value) + length(field[++i]) 20211 substed = 1 20212 } else 20213 len += 1 + keylen 20214 } 20215 20216 print line 20217} 20218 20219_ACAWK 20220_ACEOF 20221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20222if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20223 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20224else 20225 cat 20226fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20227 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20228_ACEOF 20229 20230# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20231# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20232# trailing colons and then remove the whole line if VPATH becomes empty 20233# (actually we leave an empty line to preserve line numbers). 20234if test "x$srcdir" = x.; then 20235 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20236h 20237s/// 20238s/^/:/ 20239s/[ ]*$/:/ 20240s/:\$(srcdir):/:/g 20241s/:\${srcdir}:/:/g 20242s/:@srcdir@:/:/g 20243s/^:*// 20244s/:*$// 20245x 20246s/\(=[ ]*\).*/\1/ 20247G 20248s/\n// 20249s/^[^=]*=[ ]*$// 20250}' 20251fi 20252 20253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20254fi # test -n "$CONFIG_FILES" 20255 20256# Set up the scripts for CONFIG_HEADERS section. 20257# No need to generate them if there are no CONFIG_HEADERS. 20258# This happens for instance with `./config.status Makefile'. 20259if test -n "$CONFIG_HEADERS"; then 20260cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20261BEGIN { 20262_ACEOF 20263 20264# Transform confdefs.h into an awk script `defines.awk', embedded as 20265# here-document in config.status, that substitutes the proper values into 20266# config.h.in to produce config.h. 20267 20268# Create a delimiter string that does not exist in confdefs.h, to ease 20269# handling of long lines. 20270ac_delim='%!_!# ' 20271for ac_last_try in false false :; do 20272 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20273 if test -z "$ac_tt"; then 20274 break 20275 elif $ac_last_try; then 20276 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20277 else 20278 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20279 fi 20280done 20281 20282# For the awk script, D is an array of macro values keyed by name, 20283# likewise P contains macro parameters if any. Preserve backslash 20284# newline sequences. 20285 20286ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20287sed -n ' 20288s/.\{148\}/&'"$ac_delim"'/g 20289t rset 20290:rset 20291s/^[ ]*#[ ]*define[ ][ ]*/ / 20292t def 20293d 20294:def 20295s/\\$// 20296t bsnl 20297s/["\\]/\\&/g 20298s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20299D["\1"]=" \3"/p 20300s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20301d 20302:bsnl 20303s/["\\]/\\&/g 20304s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20305D["\1"]=" \3\\\\\\n"\\/p 20306t cont 20307s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20308t cont 20309d 20310:cont 20311n 20312s/.\{148\}/&'"$ac_delim"'/g 20313t clear 20314:clear 20315s/\\$// 20316t bsnlc 20317s/["\\]/\\&/g; s/^/"/; s/$/"/p 20318d 20319:bsnlc 20320s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20321b cont 20322' <confdefs.h | sed ' 20323s/'"$ac_delim"'/"\\\ 20324"/g' >>$CONFIG_STATUS || ac_write_fail=1 20325 20326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20327 for (key in D) D_is_set[key] = 1 20328 FS = "" 20329} 20330/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20331 line = \$ 0 20332 split(line, arg, " ") 20333 if (arg[1] == "#") { 20334 defundef = arg[2] 20335 mac1 = arg[3] 20336 } else { 20337 defundef = substr(arg[1], 2) 20338 mac1 = arg[2] 20339 } 20340 split(mac1, mac2, "(") #) 20341 macro = mac2[1] 20342 prefix = substr(line, 1, index(line, defundef) - 1) 20343 if (D_is_set[macro]) { 20344 # Preserve the white space surrounding the "#". 20345 print prefix "define", macro P[macro] D[macro] 20346 next 20347 } else { 20348 # Replace #undef with comments. This is necessary, for example, 20349 # in the case of _POSIX_SOURCE, which is predefined and required 20350 # on some systems where configure will not decide to define it. 20351 if (defundef == "undef") { 20352 print "/*", prefix defundef, macro, "*/" 20353 next 20354 } 20355 } 20356} 20357{ print } 20358_ACAWK 20359_ACEOF 20360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20361 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20362fi # test -n "$CONFIG_HEADERS" 20363 20364 20365eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20366shift 20367for ac_tag 20368do 20369 case $ac_tag in 20370 :[FHLC]) ac_mode=$ac_tag; continue;; 20371 esac 20372 case $ac_mode$ac_tag in 20373 :[FHL]*:*);; 20374 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20375 :[FH]-) ac_tag=-:-;; 20376 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20377 esac 20378 ac_save_IFS=$IFS 20379 IFS=: 20380 set x $ac_tag 20381 IFS=$ac_save_IFS 20382 shift 20383 ac_file=$1 20384 shift 20385 20386 case $ac_mode in 20387 :L) ac_source=$1;; 20388 :[FH]) 20389 ac_file_inputs= 20390 for ac_f 20391 do 20392 case $ac_f in 20393 -) ac_f="$ac_tmp/stdin";; 20394 *) # Look for the file first in the build tree, then in the source tree 20395 # (if the path is not absolute). The absolute path cannot be DOS-style, 20396 # because $ac_f cannot contain `:'. 20397 test -f "$ac_f" || 20398 case $ac_f in 20399 [\\/$]*) false;; 20400 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20401 esac || 20402 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20403 esac 20404 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20405 as_fn_append ac_file_inputs " '$ac_f'" 20406 done 20407 20408 # Let's still pretend it is `configure' which instantiates (i.e., don't 20409 # use $as_me), people would be surprised to read: 20410 # /* config.h. Generated by config.status. */ 20411 configure_input='Generated from '` 20412 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20413 `' by configure.' 20414 if test x"$ac_file" != x-; then 20415 configure_input="$ac_file. $configure_input" 20416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20417$as_echo "$as_me: creating $ac_file" >&6;} 20418 fi 20419 # Neutralize special characters interpreted by sed in replacement strings. 20420 case $configure_input in #( 20421 *\&* | *\|* | *\\* ) 20422 ac_sed_conf_input=`$as_echo "$configure_input" | 20423 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20424 *) ac_sed_conf_input=$configure_input;; 20425 esac 20426 20427 case $ac_tag in 20428 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20430 esac 20431 ;; 20432 esac 20433 20434 ac_dir=`$as_dirname -- "$ac_file" || 20435$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20436 X"$ac_file" : 'X\(//\)[^/]' \| \ 20437 X"$ac_file" : 'X\(//\)$' \| \ 20438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20439$as_echo X"$ac_file" | 20440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20441 s//\1/ 20442 q 20443 } 20444 /^X\(\/\/\)[^/].*/{ 20445 s//\1/ 20446 q 20447 } 20448 /^X\(\/\/\)$/{ 20449 s//\1/ 20450 q 20451 } 20452 /^X\(\/\).*/{ 20453 s//\1/ 20454 q 20455 } 20456 s/.*/./; q'` 20457 as_dir="$ac_dir"; as_fn_mkdir_p 20458 ac_builddir=. 20459 20460case "$ac_dir" in 20461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20462*) 20463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20464 # A ".." for each directory in $ac_dir_suffix. 20465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20466 case $ac_top_builddir_sub in 20467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20469 esac ;; 20470esac 20471ac_abs_top_builddir=$ac_pwd 20472ac_abs_builddir=$ac_pwd$ac_dir_suffix 20473# for backward compatibility: 20474ac_top_builddir=$ac_top_build_prefix 20475 20476case $srcdir in 20477 .) # We are building in place. 20478 ac_srcdir=. 20479 ac_top_srcdir=$ac_top_builddir_sub 20480 ac_abs_top_srcdir=$ac_pwd ;; 20481 [\\/]* | ?:[\\/]* ) # Absolute name. 20482 ac_srcdir=$srcdir$ac_dir_suffix; 20483 ac_top_srcdir=$srcdir 20484 ac_abs_top_srcdir=$srcdir ;; 20485 *) # Relative name. 20486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20487 ac_top_srcdir=$ac_top_build_prefix$srcdir 20488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20489esac 20490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20491 20492 20493 case $ac_mode in 20494 :F) 20495 # 20496 # CONFIG_FILE 20497 # 20498 20499 case $INSTALL in 20500 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20501 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20502 esac 20503 ac_MKDIR_P=$MKDIR_P 20504 case $MKDIR_P in 20505 [\\/$]* | ?:[\\/]* ) ;; 20506 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20507 esac 20508_ACEOF 20509 20510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20511# If the template does not know about datarootdir, expand it. 20512# FIXME: This hack should be removed a few years after 2.60. 20513ac_datarootdir_hack=; ac_datarootdir_seen= 20514ac_sed_dataroot=' 20515/datarootdir/ { 20516 p 20517 q 20518} 20519/@datadir@/p 20520/@docdir@/p 20521/@infodir@/p 20522/@localedir@/p 20523/@mandir@/p' 20524case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20525*datarootdir*) ac_datarootdir_seen=yes;; 20526*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20528$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20529_ACEOF 20530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20531 ac_datarootdir_hack=' 20532 s&@datadir@&$datadir&g 20533 s&@docdir@&$docdir&g 20534 s&@infodir@&$infodir&g 20535 s&@localedir@&$localedir&g 20536 s&@mandir@&$mandir&g 20537 s&\\\${datarootdir}&$datarootdir&g' ;; 20538esac 20539_ACEOF 20540 20541# Neutralize VPATH when `$srcdir' = `.'. 20542# Shell code in configure.ac might set extrasub. 20543# FIXME: do we really want to maintain this feature? 20544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20545ac_sed_extra="$ac_vpsub 20546$extrasub 20547_ACEOF 20548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20549:t 20550/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20551s|@configure_input@|$ac_sed_conf_input|;t t 20552s&@top_builddir@&$ac_top_builddir_sub&;t t 20553s&@top_build_prefix@&$ac_top_build_prefix&;t t 20554s&@srcdir@&$ac_srcdir&;t t 20555s&@abs_srcdir@&$ac_abs_srcdir&;t t 20556s&@top_srcdir@&$ac_top_srcdir&;t t 20557s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20558s&@builddir@&$ac_builddir&;t t 20559s&@abs_builddir@&$ac_abs_builddir&;t t 20560s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20561s&@INSTALL@&$ac_INSTALL&;t t 20562s&@MKDIR_P@&$ac_MKDIR_P&;t t 20563$ac_datarootdir_hack 20564" 20565eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20566 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20567 20568test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20569 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20570 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20571 "$ac_tmp/out"`; test -z "$ac_out"; } && 20572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20573which seems to be undefined. Please make sure it is defined" >&5 20574$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20575which seems to be undefined. Please make sure it is defined" >&2;} 20576 20577 rm -f "$ac_tmp/stdin" 20578 case $ac_file in 20579 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20580 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20581 esac \ 20582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20583 ;; 20584 :H) 20585 # 20586 # CONFIG_HEADER 20587 # 20588 if test x"$ac_file" != x-; then 20589 { 20590 $as_echo "/* $configure_input */" \ 20591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20592 } >"$ac_tmp/config.h" \ 20593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20594 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20595 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20596$as_echo "$as_me: $ac_file is unchanged" >&6;} 20597 else 20598 rm -f "$ac_file" 20599 mv "$ac_tmp/config.h" "$ac_file" \ 20600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20601 fi 20602 else 20603 $as_echo "/* $configure_input */" \ 20604 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20605 || as_fn_error $? "could not create -" "$LINENO" 5 20606 fi 20607# Compute "$ac_file"'s index in $config_headers. 20608_am_arg="$ac_file" 20609_am_stamp_count=1 20610for _am_header in $config_headers :; do 20611 case $_am_header in 20612 $_am_arg | $_am_arg:* ) 20613 break ;; 20614 * ) 20615 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20616 esac 20617done 20618echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20619$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20620 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20621 X"$_am_arg" : 'X\(//\)$' \| \ 20622 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20623$as_echo X"$_am_arg" | 20624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20625 s//\1/ 20626 q 20627 } 20628 /^X\(\/\/\)[^/].*/{ 20629 s//\1/ 20630 q 20631 } 20632 /^X\(\/\/\)$/{ 20633 s//\1/ 20634 q 20635 } 20636 /^X\(\/\).*/{ 20637 s//\1/ 20638 q 20639 } 20640 s/.*/./; q'`/stamp-h$_am_stamp_count 20641 ;; 20642 20643 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20644$as_echo "$as_me: executing $ac_file commands" >&6;} 20645 ;; 20646 esac 20647 20648 20649 case $ac_file$ac_mode in 20650 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20651 # Older Autoconf quotes --file arguments for eval, but not when files 20652 # are listed without --file. Let's play safe and only enable the eval 20653 # if we detect the quoting. 20654 # TODO: see whether this extra hack can be removed once we start 20655 # requiring Autoconf 2.70 or later. 20656 case $CONFIG_FILES in #( 20657 *\'*) : 20658 eval set x "$CONFIG_FILES" ;; #( 20659 *) : 20660 set x $CONFIG_FILES ;; #( 20661 *) : 20662 ;; 20663esac 20664 shift 20665 # Used to flag and report bootstrapping failures. 20666 am_rc=0 20667 for am_mf 20668 do 20669 # Strip MF so we end up with the name of the file. 20670 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20671 # Check whether this is an Automake generated Makefile which includes 20672 # dependency-tracking related rules and includes. 20673 # Grep'ing the whole file directly is not great: AIX grep has a line 20674 # limit of 2048, but all sed's we know have understand at least 4000. 20675 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20676 || continue 20677 am_dirpart=`$as_dirname -- "$am_mf" || 20678$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20679 X"$am_mf" : 'X\(//\)[^/]' \| \ 20680 X"$am_mf" : 'X\(//\)$' \| \ 20681 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20682$as_echo X"$am_mf" | 20683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20684 s//\1/ 20685 q 20686 } 20687 /^X\(\/\/\)[^/].*/{ 20688 s//\1/ 20689 q 20690 } 20691 /^X\(\/\/\)$/{ 20692 s//\1/ 20693 q 20694 } 20695 /^X\(\/\).*/{ 20696 s//\1/ 20697 q 20698 } 20699 s/.*/./; q'` 20700 am_filepart=`$as_basename -- "$am_mf" || 20701$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20702 X"$am_mf" : 'X\(//\)$' \| \ 20703 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20704$as_echo X/"$am_mf" | 20705 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20706 s//\1/ 20707 q 20708 } 20709 /^X\/\(\/\/\)$/{ 20710 s//\1/ 20711 q 20712 } 20713 /^X\/\(\/\).*/{ 20714 s//\1/ 20715 q 20716 } 20717 s/.*/./; q'` 20718 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20719 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20720 | $MAKE -f - am--depfiles" >&5 20721 (cd "$am_dirpart" \ 20722 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20723 | $MAKE -f - am--depfiles) >&5 2>&5 20724 ac_status=$? 20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20726 (exit $ac_status); } || am_rc=$? 20727 done 20728 if test $am_rc -ne 0; then 20729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20731as_fn_error $? "Something went wrong bootstrapping makefile fragments 20732 for automatic dependency tracking. Try re-running configure with the 20733 '--disable-dependency-tracking' option to at least be able to build 20734 the package (albeit without support for automatic dependency tracking). 20735See \`config.log' for more details" "$LINENO" 5; } 20736 fi 20737 { am_dirpart=; unset am_dirpart;} 20738 { am_filepart=; unset am_filepart;} 20739 { am_mf=; unset am_mf;} 20740 { am_rc=; unset am_rc;} 20741 rm -f conftest-deps.mk 20742} 20743 ;; 20744 "libtool":C) 20745 20746 # See if we are running on zsh, and set the options that allow our 20747 # commands through without removal of \ escapes. 20748 if test -n "${ZSH_VERSION+set}"; then 20749 setopt NO_GLOB_SUBST 20750 fi 20751 20752 cfgfile=${ofile}T 20753 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20754 $RM "$cfgfile" 20755 20756 cat <<_LT_EOF >> "$cfgfile" 20757#! $SHELL 20758# Generated automatically by $as_me ($PACKAGE) $VERSION 20759# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20760# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20761 20762# Provide generalized library-building support services. 20763# Written by Gordon Matzigkeit, 1996 20764 20765# Copyright (C) 2014 Free Software Foundation, Inc. 20766# This is free software; see the source for copying conditions. There is NO 20767# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20768 20769# GNU Libtool is free software; you can redistribute it and/or modify 20770# it under the terms of the GNU General Public License as published by 20771# the Free Software Foundation; either version 2 of of the License, or 20772# (at your option) any later version. 20773# 20774# As a special exception to the GNU General Public License, if you 20775# distribute this file as part of a program or library that is built 20776# using GNU Libtool, you may include this file under the same 20777# distribution terms that you use for the rest of that program. 20778# 20779# GNU Libtool is distributed in the hope that it will be useful, but 20780# WITHOUT ANY WARRANTY; without even the implied warranty of 20781# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20782# GNU General Public License for more details. 20783# 20784# You should have received a copy of the GNU General Public License 20785# along with this program. If not, see <http://www.gnu.org/licenses/>. 20786 20787 20788# The names of the tagged configurations supported by this script. 20789available_tags='CXX ' 20790 20791# Configured defaults for sys_lib_dlsearch_path munging. 20792: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20793 20794# ### BEGIN LIBTOOL CONFIG 20795 20796# Which release of libtool.m4 was used? 20797macro_version=$macro_version 20798macro_revision=$macro_revision 20799 20800# Whether or not to build shared libraries. 20801build_libtool_libs=$enable_shared 20802 20803# Whether or not to build static libraries. 20804build_old_libs=$enable_static 20805 20806# What type of objects to build. 20807pic_mode=$pic_mode 20808 20809# Whether or not to optimize for fast installation. 20810fast_install=$enable_fast_install 20811 20812# Shared archive member basename,for filename based shared library versioning on AIX. 20813shared_archive_member_spec=$shared_archive_member_spec 20814 20815# Shell to use when invoking shell scripts. 20816SHELL=$lt_SHELL 20817 20818# An echo program that protects backslashes. 20819ECHO=$lt_ECHO 20820 20821# The PATH separator for the build system. 20822PATH_SEPARATOR=$lt_PATH_SEPARATOR 20823 20824# The host system. 20825host_alias=$host_alias 20826host=$host 20827host_os=$host_os 20828 20829# The build system. 20830build_alias=$build_alias 20831build=$build 20832build_os=$build_os 20833 20834# A sed program that does not truncate output. 20835SED=$lt_SED 20836 20837# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20838Xsed="\$SED -e 1s/^X//" 20839 20840# A grep program that handles long lines. 20841GREP=$lt_GREP 20842 20843# An ERE matcher. 20844EGREP=$lt_EGREP 20845 20846# A literal string matcher. 20847FGREP=$lt_FGREP 20848 20849# A BSD- or MS-compatible name lister. 20850NM=$lt_NM 20851 20852# Whether we need soft or hard links. 20853LN_S=$lt_LN_S 20854 20855# What is the maximum length of a command? 20856max_cmd_len=$max_cmd_len 20857 20858# Object file suffix (normally "o"). 20859objext=$ac_objext 20860 20861# Executable file suffix (normally ""). 20862exeext=$exeext 20863 20864# whether the shell understands "unset". 20865lt_unset=$lt_unset 20866 20867# turn spaces into newlines. 20868SP2NL=$lt_lt_SP2NL 20869 20870# turn newlines into spaces. 20871NL2SP=$lt_lt_NL2SP 20872 20873# convert \$build file names to \$host format. 20874to_host_file_cmd=$lt_cv_to_host_file_cmd 20875 20876# convert \$build files to toolchain format. 20877to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20878 20879# An object symbol dumper. 20880OBJDUMP=$lt_OBJDUMP 20881 20882# Method to check whether dependent libraries are shared objects. 20883deplibs_check_method=$lt_deplibs_check_method 20884 20885# Command to use when deplibs_check_method = "file_magic". 20886file_magic_cmd=$lt_file_magic_cmd 20887 20888# How to find potential files when deplibs_check_method = "file_magic". 20889file_magic_glob=$lt_file_magic_glob 20890 20891# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20892want_nocaseglob=$lt_want_nocaseglob 20893 20894# DLL creation program. 20895DLLTOOL=$lt_DLLTOOL 20896 20897# Command to associate shared and link libraries. 20898sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20899 20900# The archiver. 20901AR=$lt_AR 20902 20903# Flags to create an archive (by configure). 20904lt_ar_flags=$lt_ar_flags 20905 20906# Flags to create an archive. 20907AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 20908 20909# How to feed a file listing to the archiver. 20910archiver_list_spec=$lt_archiver_list_spec 20911 20912# A symbol stripping program. 20913STRIP=$lt_STRIP 20914 20915# Commands used to install an old-style archive. 20916RANLIB=$lt_RANLIB 20917old_postinstall_cmds=$lt_old_postinstall_cmds 20918old_postuninstall_cmds=$lt_old_postuninstall_cmds 20919 20920# Whether to use a lock for old archive extraction. 20921lock_old_archive_extraction=$lock_old_archive_extraction 20922 20923# A C compiler. 20924LTCC=$lt_CC 20925 20926# LTCC compiler flags. 20927LTCFLAGS=$lt_CFLAGS 20928 20929# Take the output of nm and produce a listing of raw symbols and C names. 20930global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20931 20932# Transform the output of nm in a proper C declaration. 20933global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20934 20935# Transform the output of nm into a list of symbols to manually relocate. 20936global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20937 20938# Transform the output of nm in a C name address pair. 20939global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20940 20941# Transform the output of nm in a C name address pair when lib prefix is needed. 20942global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20943 20944# The name lister interface. 20945nm_interface=$lt_lt_cv_nm_interface 20946 20947# Specify filename containing input files for \$NM. 20948nm_file_list_spec=$lt_nm_file_list_spec 20949 20950# The root where to search for dependent libraries,and where our libraries should be installed. 20951lt_sysroot=$lt_sysroot 20952 20953# Command to truncate a binary pipe. 20954lt_truncate_bin=$lt_lt_cv_truncate_bin 20955 20956# The name of the directory that contains temporary libtool files. 20957objdir=$objdir 20958 20959# Used to examine libraries when file_magic_cmd begins with "file". 20960MAGIC_CMD=$MAGIC_CMD 20961 20962# Must we lock files when doing compilation? 20963need_locks=$lt_need_locks 20964 20965# Manifest tool. 20966MANIFEST_TOOL=$lt_MANIFEST_TOOL 20967 20968# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20969DSYMUTIL=$lt_DSYMUTIL 20970 20971# Tool to change global to local symbols on Mac OS X. 20972NMEDIT=$lt_NMEDIT 20973 20974# Tool to manipulate fat objects and archives on Mac OS X. 20975LIPO=$lt_LIPO 20976 20977# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20978OTOOL=$lt_OTOOL 20979 20980# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20981OTOOL64=$lt_OTOOL64 20982 20983# Old archive suffix (normally "a"). 20984libext=$libext 20985 20986# Shared library suffix (normally ".so"). 20987shrext_cmds=$lt_shrext_cmds 20988 20989# The commands to extract the exported symbol list from a shared archive. 20990extract_expsyms_cmds=$lt_extract_expsyms_cmds 20991 20992# Variables whose values should be saved in libtool wrapper scripts and 20993# restored at link time. 20994variables_saved_for_relink=$lt_variables_saved_for_relink 20995 20996# Do we need the "lib" prefix for modules? 20997need_lib_prefix=$need_lib_prefix 20998 20999# Do we need a version for libraries? 21000need_version=$need_version 21001 21002# Library versioning type. 21003version_type=$version_type 21004 21005# Shared library runtime path variable. 21006runpath_var=$runpath_var 21007 21008# Shared library path variable. 21009shlibpath_var=$shlibpath_var 21010 21011# Is shlibpath searched before the hard-coded library search path? 21012shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21013 21014# Format of library name prefix. 21015libname_spec=$lt_libname_spec 21016 21017# List of archive names. First name is the real one, the rest are links. 21018# The last name is the one that the linker finds with -lNAME 21019library_names_spec=$lt_library_names_spec 21020 21021# The coded name of the library, if different from the real name. 21022soname_spec=$lt_soname_spec 21023 21024# Permission mode override for installation of shared libraries. 21025install_override_mode=$lt_install_override_mode 21026 21027# Command to use after installation of a shared archive. 21028postinstall_cmds=$lt_postinstall_cmds 21029 21030# Command to use after uninstallation of a shared archive. 21031postuninstall_cmds=$lt_postuninstall_cmds 21032 21033# Commands used to finish a libtool library installation in a directory. 21034finish_cmds=$lt_finish_cmds 21035 21036# As "finish_cmds", except a single script fragment to be evaled but 21037# not shown. 21038finish_eval=$lt_finish_eval 21039 21040# Whether we should hardcode library paths into libraries. 21041hardcode_into_libs=$hardcode_into_libs 21042 21043# Compile-time system search path for libraries. 21044sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21045 21046# Detected run-time system search path for libraries. 21047sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21048 21049# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21050configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21051 21052# Whether dlopen is supported. 21053dlopen_support=$enable_dlopen 21054 21055# Whether dlopen of programs is supported. 21056dlopen_self=$enable_dlopen_self 21057 21058# Whether dlopen of statically linked programs is supported. 21059dlopen_self_static=$enable_dlopen_self_static 21060 21061# Commands to strip libraries. 21062old_striplib=$lt_old_striplib 21063striplib=$lt_striplib 21064 21065 21066# The linker used to build libraries. 21067LD=$lt_LD 21068 21069# How to create reloadable object files. 21070reload_flag=$lt_reload_flag 21071reload_cmds=$lt_reload_cmds 21072 21073# Commands used to build an old-style archive. 21074old_archive_cmds=$lt_old_archive_cmds 21075 21076# A language specific compiler. 21077CC=$lt_compiler 21078 21079# Is the compiler the GNU compiler? 21080with_gcc=$GCC 21081 21082# Compiler flag to turn off builtin functions. 21083no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21084 21085# Additional compiler flags for building library objects. 21086pic_flag=$lt_lt_prog_compiler_pic 21087 21088# How to pass a linker flag through the compiler. 21089wl=$lt_lt_prog_compiler_wl 21090 21091# Compiler flag to prevent dynamic linking. 21092link_static_flag=$lt_lt_prog_compiler_static 21093 21094# Does compiler simultaneously support -c and -o options? 21095compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21096 21097# Whether or not to add -lc for building shared libraries. 21098build_libtool_need_lc=$archive_cmds_need_lc 21099 21100# Whether or not to disallow shared libs when runtime libs are static. 21101allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21102 21103# Compiler flag to allow reflexive dlopens. 21104export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21105 21106# Compiler flag to generate shared objects directly from archives. 21107whole_archive_flag_spec=$lt_whole_archive_flag_spec 21108 21109# Whether the compiler copes with passing no objects directly. 21110compiler_needs_object=$lt_compiler_needs_object 21111 21112# Create an old-style archive from a shared archive. 21113old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21114 21115# Create a temporary old-style archive to link instead of a shared archive. 21116old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21117 21118# Commands used to build a shared archive. 21119archive_cmds=$lt_archive_cmds 21120archive_expsym_cmds=$lt_archive_expsym_cmds 21121 21122# Commands used to build a loadable module if different from building 21123# a shared archive. 21124module_cmds=$lt_module_cmds 21125module_expsym_cmds=$lt_module_expsym_cmds 21126 21127# Whether we are building with GNU ld or not. 21128with_gnu_ld=$lt_with_gnu_ld 21129 21130# Flag that allows shared libraries with undefined symbols to be built. 21131allow_undefined_flag=$lt_allow_undefined_flag 21132 21133# Flag that enforces no undefined symbols. 21134no_undefined_flag=$lt_no_undefined_flag 21135 21136# Flag to hardcode \$libdir into a binary during linking. 21137# This must work even if \$libdir does not exist 21138hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21139 21140# Whether we need a single "-rpath" flag with a separated argument. 21141hardcode_libdir_separator=$lt_hardcode_libdir_separator 21142 21143# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21144# DIR into the resulting binary. 21145hardcode_direct=$hardcode_direct 21146 21147# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21148# DIR into the resulting binary and the resulting library dependency is 21149# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21150# library is relocated. 21151hardcode_direct_absolute=$hardcode_direct_absolute 21152 21153# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21154# into the resulting binary. 21155hardcode_minus_L=$hardcode_minus_L 21156 21157# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21158# into the resulting binary. 21159hardcode_shlibpath_var=$hardcode_shlibpath_var 21160 21161# Set to "yes" if building a shared library automatically hardcodes DIR 21162# into the library and all subsequent libraries and executables linked 21163# against it. 21164hardcode_automatic=$hardcode_automatic 21165 21166# Set to yes if linker adds runtime paths of dependent libraries 21167# to runtime path list. 21168inherit_rpath=$inherit_rpath 21169 21170# Whether libtool must link a program against all its dependency libraries. 21171link_all_deplibs=$link_all_deplibs 21172 21173# Set to "yes" if exported symbols are required. 21174always_export_symbols=$always_export_symbols 21175 21176# The commands to list exported symbols. 21177export_symbols_cmds=$lt_export_symbols_cmds 21178 21179# Symbols that should not be listed in the preloaded symbols. 21180exclude_expsyms=$lt_exclude_expsyms 21181 21182# Symbols that must always be exported. 21183include_expsyms=$lt_include_expsyms 21184 21185# Commands necessary for linking programs (against libraries) with templates. 21186prelink_cmds=$lt_prelink_cmds 21187 21188# Commands necessary for finishing linking programs. 21189postlink_cmds=$lt_postlink_cmds 21190 21191# Specify filename containing input files. 21192file_list_spec=$lt_file_list_spec 21193 21194# How to hardcode a shared library path into an executable. 21195hardcode_action=$hardcode_action 21196 21197# The directories searched by this compiler when creating a shared library. 21198compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21199 21200# Dependencies to place before and after the objects being linked to 21201# create a shared library. 21202predep_objects=$lt_predep_objects 21203postdep_objects=$lt_postdep_objects 21204predeps=$lt_predeps 21205postdeps=$lt_postdeps 21206 21207# The library search path used internally by the compiler when linking 21208# a shared library. 21209compiler_lib_search_path=$lt_compiler_lib_search_path 21210 21211# ### END LIBTOOL CONFIG 21212 21213_LT_EOF 21214 21215 cat <<'_LT_EOF' >> "$cfgfile" 21216 21217# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21218 21219# func_munge_path_list VARIABLE PATH 21220# ----------------------------------- 21221# VARIABLE is name of variable containing _space_ separated list of 21222# directories to be munged by the contents of PATH, which is string 21223# having a format: 21224# "DIR[:DIR]:" 21225# string "DIR[ DIR]" will be prepended to VARIABLE 21226# ":DIR[:DIR]" 21227# string "DIR[ DIR]" will be appended to VARIABLE 21228# "DIRP[:DIRP]::[DIRA:]DIRA" 21229# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21230# "DIRA[ DIRA]" will be appended to VARIABLE 21231# "DIR[:DIR]" 21232# VARIABLE will be replaced by "DIR[ DIR]" 21233func_munge_path_list () 21234{ 21235 case x$2 in 21236 x) 21237 ;; 21238 *:) 21239 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21240 ;; 21241 x:*) 21242 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21243 ;; 21244 *::*) 21245 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21246 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21247 ;; 21248 *) 21249 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21250 ;; 21251 esac 21252} 21253 21254 21255# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21256func_cc_basename () 21257{ 21258 for cc_temp in $*""; do 21259 case $cc_temp in 21260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21262 \-*) ;; 21263 *) break;; 21264 esac 21265 done 21266 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21267} 21268 21269 21270# ### END FUNCTIONS SHARED WITH CONFIGURE 21271 21272_LT_EOF 21273 21274 case $host_os in 21275 aix3*) 21276 cat <<\_LT_EOF >> "$cfgfile" 21277# AIX sometimes has problems with the GCC collect2 program. For some 21278# reason, if we set the COLLECT_NAMES environment variable, the problems 21279# vanish in a puff of smoke. 21280if test set != "${COLLECT_NAMES+set}"; then 21281 COLLECT_NAMES= 21282 export COLLECT_NAMES 21283fi 21284_LT_EOF 21285 ;; 21286 esac 21287 21288 21289ltmain=$ac_aux_dir/ltmain.sh 21290 21291 21292 # We use sed instead of cat because bash on DJGPP gets confused if 21293 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21294 # text mode, it properly converts lines to CR/LF. This bash problem 21295 # is reportedly fixed, but why not run on old versions too? 21296 sed '$q' "$ltmain" >> "$cfgfile" \ 21297 || (rm -f "$cfgfile"; exit 1) 21298 21299 mv -f "$cfgfile" "$ofile" || 21300 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21301 chmod +x "$ofile" 21302 21303 21304 cat <<_LT_EOF >> "$ofile" 21305 21306# ### BEGIN LIBTOOL TAG CONFIG: CXX 21307 21308# The linker used to build libraries. 21309LD=$lt_LD_CXX 21310 21311# How to create reloadable object files. 21312reload_flag=$lt_reload_flag_CXX 21313reload_cmds=$lt_reload_cmds_CXX 21314 21315# Commands used to build an old-style archive. 21316old_archive_cmds=$lt_old_archive_cmds_CXX 21317 21318# A language specific compiler. 21319CC=$lt_compiler_CXX 21320 21321# Is the compiler the GNU compiler? 21322with_gcc=$GCC_CXX 21323 21324# Compiler flag to turn off builtin functions. 21325no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 21326 21327# Additional compiler flags for building library objects. 21328pic_flag=$lt_lt_prog_compiler_pic_CXX 21329 21330# How to pass a linker flag through the compiler. 21331wl=$lt_lt_prog_compiler_wl_CXX 21332 21333# Compiler flag to prevent dynamic linking. 21334link_static_flag=$lt_lt_prog_compiler_static_CXX 21335 21336# Does compiler simultaneously support -c and -o options? 21337compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 21338 21339# Whether or not to add -lc for building shared libraries. 21340build_libtool_need_lc=$archive_cmds_need_lc_CXX 21341 21342# Whether or not to disallow shared libs when runtime libs are static. 21343allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 21344 21345# Compiler flag to allow reflexive dlopens. 21346export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 21347 21348# Compiler flag to generate shared objects directly from archives. 21349whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 21350 21351# Whether the compiler copes with passing no objects directly. 21352compiler_needs_object=$lt_compiler_needs_object_CXX 21353 21354# Create an old-style archive from a shared archive. 21355old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 21356 21357# Create a temporary old-style archive to link instead of a shared archive. 21358old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 21359 21360# Commands used to build a shared archive. 21361archive_cmds=$lt_archive_cmds_CXX 21362archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 21363 21364# Commands used to build a loadable module if different from building 21365# a shared archive. 21366module_cmds=$lt_module_cmds_CXX 21367module_expsym_cmds=$lt_module_expsym_cmds_CXX 21368 21369# Whether we are building with GNU ld or not. 21370with_gnu_ld=$lt_with_gnu_ld_CXX 21371 21372# Flag that allows shared libraries with undefined symbols to be built. 21373allow_undefined_flag=$lt_allow_undefined_flag_CXX 21374 21375# Flag that enforces no undefined symbols. 21376no_undefined_flag=$lt_no_undefined_flag_CXX 21377 21378# Flag to hardcode \$libdir into a binary during linking. 21379# This must work even if \$libdir does not exist 21380hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 21381 21382# Whether we need a single "-rpath" flag with a separated argument. 21383hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 21384 21385# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21386# DIR into the resulting binary. 21387hardcode_direct=$hardcode_direct_CXX 21388 21389# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21390# DIR into the resulting binary and the resulting library dependency is 21391# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21392# library is relocated. 21393hardcode_direct_absolute=$hardcode_direct_absolute_CXX 21394 21395# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21396# into the resulting binary. 21397hardcode_minus_L=$hardcode_minus_L_CXX 21398 21399# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21400# into the resulting binary. 21401hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 21402 21403# Set to "yes" if building a shared library automatically hardcodes DIR 21404# into the library and all subsequent libraries and executables linked 21405# against it. 21406hardcode_automatic=$hardcode_automatic_CXX 21407 21408# Set to yes if linker adds runtime paths of dependent libraries 21409# to runtime path list. 21410inherit_rpath=$inherit_rpath_CXX 21411 21412# Whether libtool must link a program against all its dependency libraries. 21413link_all_deplibs=$link_all_deplibs_CXX 21414 21415# Set to "yes" if exported symbols are required. 21416always_export_symbols=$always_export_symbols_CXX 21417 21418# The commands to list exported symbols. 21419export_symbols_cmds=$lt_export_symbols_cmds_CXX 21420 21421# Symbols that should not be listed in the preloaded symbols. 21422exclude_expsyms=$lt_exclude_expsyms_CXX 21423 21424# Symbols that must always be exported. 21425include_expsyms=$lt_include_expsyms_CXX 21426 21427# Commands necessary for linking programs (against libraries) with templates. 21428prelink_cmds=$lt_prelink_cmds_CXX 21429 21430# Commands necessary for finishing linking programs. 21431postlink_cmds=$lt_postlink_cmds_CXX 21432 21433# Specify filename containing input files. 21434file_list_spec=$lt_file_list_spec_CXX 21435 21436# How to hardcode a shared library path into an executable. 21437hardcode_action=$hardcode_action_CXX 21438 21439# The directories searched by this compiler when creating a shared library. 21440compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 21441 21442# Dependencies to place before and after the objects being linked to 21443# create a shared library. 21444predep_objects=$lt_predep_objects_CXX 21445postdep_objects=$lt_postdep_objects_CXX 21446predeps=$lt_predeps_CXX 21447postdeps=$lt_postdeps_CXX 21448 21449# The library search path used internally by the compiler when linking 21450# a shared library. 21451compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 21452 21453# ### END LIBTOOL TAG CONFIG: CXX 21454_LT_EOF 21455 21456 ;; 21457 "tests/more_than_once.sh":F) chmod -- +x tests/more_than_once.sh ;; 21458 "tests/no_optgiven.sh":F) chmod -- +x tests/no_optgiven.sh ;; 21459 "tests/test_all_opts.sh":F) chmod -- +x tests/test_all_opts.sh ;; 21460 "tests/test_all_opts_file_save.sh":F) chmod -- +x tests/test_all_opts_file_save.sh ;; 21461 "tests/test_conf_parser.sh":F) chmod -- +x tests/test_conf_parser.sh ;; 21462 "tests/test_conf_parser_err.sh":F) chmod -- +x tests/test_conf_parser_err.sh ;; 21463 "tests/test_conf_parser_err_string.sh":F) chmod -- +x tests/test_conf_parser_err_string.sh ;; 21464 "tests/test_conf_parser_grp.sh":F) chmod -- +x tests/test_conf_parser_grp.sh ;; 21465 "tests/test_conf_parser_ov.sh":F) chmod -- +x tests/test_conf_parser_ov.sh ;; 21466 "tests/test_conf_parser_ov2.sh":F) chmod -- +x tests/test_conf_parser_ov2.sh ;; 21467 "tests/test_conf_parser_ov3.sh":F) chmod -- +x tests/test_conf_parser_ov3.sh ;; 21468 "tests/test_conf_parser_ov4.sh":F) chmod -- +x tests/test_conf_parser_ov4.sh ;; 21469 "tests/test_conf_parser_save.sh":F) chmod -- +x tests/test_conf_parser_save.sh ;; 21470 "tests/test_default_values.sh":F) chmod -- +x tests/test_default_values.sh ;; 21471 "tests/test_dep.sh":F) chmod -- +x tests/test_dep.sh ;; 21472 "tests/test_groups.sh":F) chmod -- +x tests/test_groups.sh ;; 21473 "tests/test_manual_help.sh":F) chmod -- +x tests/test_manual_help.sh ;; 21474 "tests/test_manual_help_args.sh":F) chmod -- +x tests/test_manual_help_args.sh ;; 21475 "tests/test_modes.sh":F) chmod -- +x tests/test_modes.sh ;; 21476 "tests/test_multiple.sh":F) chmod -- +x tests/test_multiple.sh ;; 21477 "tests/test_multiple_err.sh":F) chmod -- +x tests/test_multiple_err.sh ;; 21478 "tests/test_multiple_parsers.sh":F) chmod -- +x tests/test_multiple_parsers.sh ;; 21479 "tests/test_output_dir.sh":F) chmod -- +x tests/test_output_dir.sh ;; 21480 "tests/test_output_dirs.sh":F) chmod -- +x tests/test_output_dirs.sh ;; 21481 "tests/test_sections.sh":F) chmod -- +x tests/test_sections.sh ;; 21482 "tests/test_show_help.sh":F) chmod -- +x tests/test_show_help.sh ;; 21483 "tests/test_simple_multiple.sh":F) chmod -- +x tests/test_simple_multiple.sh ;; 21484 "tests/test_simple_multiple_default.sh":F) chmod -- +x tests/test_simple_multiple_default.sh ;; 21485 "tests/test_unamed.sh":F) chmod -- +x tests/test_unamed.sh ;; 21486 "tests/test_unnamed.sh":F) chmod -- +x tests/test_unnamed.sh ;; 21487 "tests/test_values.sh":F) chmod -- +x tests/test_values.sh ;; 21488 "tests/test_values_err.sh":F) chmod -- +x tests/test_values_err.sh ;; 21489 "tests/test_wrong_ggo.sh":F) chmod -- +x tests/test_wrong_ggo.sh ;; 21490 "tests/valgrind_tests.sh":F) chmod -- +x tests/valgrind_tests.sh ;; 21491 21492 esac 21493done # for ac_tag 21494 21495 21496as_fn_exit 0 21497_ACEOF 21498ac_clean_files=$ac_clean_files_save 21499 21500test $ac_write_fail = 0 || 21501 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21502 21503 21504# configure is writing to config.log, and then calls config.status. 21505# config.status does its own redirection, appending to config.log. 21506# Unfortunately, on DOS this fails, as config.log is still kept open 21507# by configure, so config.status won't be able to write to it; its 21508# output is simply discarded. So we exec the FD to /dev/null, 21509# effectively closing config.log, so it can be properly (re)opened and 21510# appended to by config.status. When coming back to configure, we 21511# need to make the FD available again. 21512if test "$no_create" != yes; then 21513 ac_cs_success=: 21514 ac_config_status_args= 21515 test "$silent" = yes && 21516 ac_config_status_args="$ac_config_status_args --quiet" 21517 exec 5>/dev/null 21518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21519 exec 5>>config.log 21520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21521 # would make configure fail if this is the last instruction. 21522 $ac_cs_success || as_fn_exit 1 21523fi 21524if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21526$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21527fi 21528 21529