1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libctf 1.2.0. 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='libctf' 589PACKAGE_TARNAME='libctf' 590PACKAGE_VERSION='1.2.0' 591PACKAGE_STRING='libctf 1.2.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="ctf-impl.h" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632gt_needs= 633ac_header_list= 634ac_func_list= 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639VERSION_FLAGS_NOBFD 640VERSION_FLAGS 641HAVE_TCL_TRY 642EXPECT 643CTF_LIBADD 644SHARED_LDFLAGS 645BUILD_INFO_FALSE 646BUILD_INFO_TRUE 647NEED_CTF_QSORT_R_FALSE 648NEED_CTF_QSORT_R_TRUE 649ENABLE_LIBCTF_HASH_DEBUGGING_FALSE 650ENABLE_LIBCTF_HASH_DEBUGGING_TRUE 651zlibinc 652zlibdir 653ac_libctf_warn_cflags 654bfdincludedir 655bfdlibdir 656target_noncanonical 657host_noncanonical 658INSTALL_LIBBFD_FALSE 659INSTALL_LIBBFD_TRUE 660MAINT 661MAINTAINER_MODE_FALSE 662MAINTAINER_MODE_TRUE 663WERROR 664WARN_PEDANTIC 665c_warn 666warn 667OTOOL64 668OTOOL 669LIPO 670NMEDIT 671DSYMUTIL 672OBJDUMP 673LN_S 674NM 675ac_ct_DUMPBIN 676DUMPBIN 677LD 678FGREP 679SED 680LIBTOOL 681CATOBJEXT 682GENCAT 683INSTOBJEXT 684DATADIRNAME 685CATALOGS 686INCINTL 687LIBINTL_DEP 688POSUB 689LTLIBINTL 690LIBINTL 691INTLLIBS 692LTLIBICONV 693LIBICONV 694INTL_MACOSX_LIBS 695MSGMERGE 696XGETTEXT 697GMSGFMT 698MSGFMT 699USE_NLS 700MKINSTALLDIRS 701ac_ct_AR 702AR 703RANLIB 704AM_BACKSLASH 705AM_DEFAULT_VERBOSITY 706AM_DEFAULT_V 707AM_V 708am__fastdepCC_FALSE 709am__fastdepCC_TRUE 710CCDEPMODE 711am__nodep 712AMDEPBACKSLASH 713AMDEP_FALSE 714AMDEP_TRUE 715am__quote 716am__include 717DEPDIR 718am__untar 719am__tar 720AMTAR 721am__leading_dot 722SET_MAKE 723AWK 724mkdir_p 725MKDIR_P 726INSTALL_STRIP_PROGRAM 727STRIP 728install_sh 729MAKEINFO 730AUTOHEADER 731AUTOMAKE 732AUTOCONF 733ACLOCAL 734VERSION 735PACKAGE 736CYGPATH_W 737am__isrc 738INSTALL_DATA 739INSTALL_SCRIPT 740INSTALL_PROGRAM 741EGREP 742GREP 743CPP 744OBJEXT 745EXEEXT 746ac_ct_CC 747CPPFLAGS 748LDFLAGS 749CFLAGS 750CC 751target_os 752target_vendor 753target_cpu 754target 755host_os 756host_vendor 757host_cpu 758host 759build_os 760build_vendor 761build_cpu 762build 763target_alias 764host_alias 765build_alias 766LIBS 767ECHO_T 768ECHO_N 769ECHO_C 770DEFS 771mandir 772localedir 773libdir 774psdir 775pdfdir 776dvidir 777htmldir 778infodir 779docdir 780oldincludedir 781includedir 782localstatedir 783sharedstatedir 784sysconfdir 785datadir 786datarootdir 787libexecdir 788sbindir 789bindir 790program_transform_name 791prefix 792exec_prefix 793PACKAGE_URL 794PACKAGE_BUGREPORT 795PACKAGE_STRING 796PACKAGE_VERSION 797PACKAGE_TARNAME 798PACKAGE_NAME 799PATH_SEPARATOR 800SHELL' 801ac_subst_files='' 802ac_user_opts=' 803enable_option_checking 804enable_dependency_tracking 805enable_silent_rules 806enable_nls 807with_gnu_ld 808enable_rpath 809with_libiconv_prefix 810with_libiconv_type 811with_libintl_prefix 812with_libintl_type 813enable_shared 814enable_static 815with_pic 816enable_fast_install 817enable_libtool_lock 818enable_largefile 819enable_werror_always 820enable_maintainer_mode 821enable_install_libbfd 822with_system_zlib 823enable_libctf_hash_debugging 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833CPP' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292fi 1293 1294ac_tool_prefix= 1295test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297test "$silent" = yes && exec 6>/dev/null 1298 1299 1300ac_pwd=`pwd` && test -n "$ac_pwd" && 1301ac_ls_di=`ls -di .` && 1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308# Find the source files, if location was not specified. 1309if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317$as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339else 1340 ac_srcdir_defaulted=no 1341fi 1342if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345fi 1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350# When building in place, set srcdir=. 1351if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353fi 1354# Remove unnecessary trailing slashes from srcdir. 1355# Double slashes in file names in object file debugging info 1356# mess up M-x gdb in Emacs. 1357case $srcdir in 1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359esac 1360for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365done 1366 1367# 1368# Report the --help message. 1369# 1370if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374\`configure' configures libctf 1.2.0 to adapt to many kinds of systems. 1375 1376Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381Defaults for the options are specified in brackets. 1382 1383Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400By default, \`make install' will install all the files in 1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403for instance \`--prefix=\$HOME'. 1404 1405For better control, use the options below. 1406 1407Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf] 1423 --htmldir=DIR html documentation [DOCDIR] 1424 --dvidir=DIR dvi documentation [DOCDIR] 1425 --pdfdir=DIR pdf documentation [DOCDIR] 1426 --psdir=DIR ps documentation [DOCDIR] 1427_ACEOF 1428 1429 cat <<\_ACEOF 1430 1431Program names: 1432 --program-prefix=PREFIX prepend PREFIX to installed program names 1433 --program-suffix=SUFFIX append SUFFIX to installed program names 1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1435 1436System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439 --target=TARGET configure for building compilers for TARGET [HOST] 1440_ACEOF 1441fi 1442 1443if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of libctf 1.2.0:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-dependency-tracking 1454 do not reject slow dependency extractors 1455 --disable-dependency-tracking 1456 speeds up one-time build 1457 --enable-silent-rules less verbose build output (undo: "make V=1") 1458 --disable-silent-rules verbose build output (undo: "make V=0") 1459 --disable-nls do not use Native Language Support 1460 --disable-rpath do not hardcode runtime library paths 1461 --enable-shared[=PKGS] build shared libraries [default=no] 1462 --enable-static[=PKGS] build static libraries [default=yes] 1463 --enable-fast-install[=PKGS] 1464 optimize for fast installation [default=yes] 1465 --disable-libtool-lock avoid locking (might break parallel builds) 1466 --disable-largefile omit support for large files 1467 --enable-werror-always enable -Werror despite compiler version 1468 --enable-maintainer-mode 1469 enable make rules and dependencies not useful (and 1470 sometimes confusing) to the casual installer 1471 --enable-install-libbfd controls installation of libbfd and related headers 1472 --enable-libctf-hash-debugging 1473 Enable expensive debugging of CTF deduplication type 1474 hashing [default=no] 1475 1476Optional Packages: 1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1479 --with-gnu-ld assume the C compiler uses GNU ld default=no 1480 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1481 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1482 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1483 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1484 --without-libintl-prefix don't search for libintl in includedir and libdir 1485 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1486 --with-pic try to use only PIC/non-PIC objects [default=use 1487 both] 1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1489 --with-system-zlib use installed libz 1490 1491Some influential environment variables: 1492 CC C compiler command 1493 CFLAGS C compiler flags 1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1495 nonstandard directory <lib dir> 1496 LIBS libraries to pass to the linker, e.g. -l<library> 1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1498 you have headers in a nonstandard directory <include dir> 1499 CPP C preprocessor 1500 1501Use these variables to override the choices made by `configure' or to help 1502it to find libraries and programs with nonstandard names/locations. 1503 1504Report bugs to the package provider. 1505_ACEOF 1506ac_status=$? 1507fi 1508 1509if test "$ac_init_help" = "recursive"; then 1510 # If there are subdirs, report their specific --help. 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1512 test -d "$ac_dir" || 1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1514 continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567libctf configure 1.2.0 1568generated by GNU Autoconf 2.69 1569 1570Copyright (C) 2012 Free Software Foundation, Inc. 1571This configure script is free software; the Free Software Foundation 1572gives unlimited permission to copy, distribute and modify it. 1573_ACEOF 1574 exit 1575fi 1576 1577## ------------------------ ## 1578## Autoconf initialization. ## 1579## ------------------------ ## 1580 1581# ac_fn_c_try_compile LINENO 1582# -------------------------- 1583# Try to compile conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_compile () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext 1588 if { { ac_try="$ac_compile" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_compile") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest.$ac_objext; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_compile 1618 1619# ac_fn_c_try_cpp LINENO 1620# ---------------------- 1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1622ac_fn_c_try_cpp () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_cpp conftest.$ac_ext" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } > conftest.i && { 1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 }; then : 1644 ac_retval=0 1645else 1646 $as_echo "$as_me: failed program was:" >&5 1647sed 's/^/| /' conftest.$ac_ext >&5 1648 1649 ac_retval=1 1650fi 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 as_fn_set_status $ac_retval 1653 1654} # ac_fn_c_try_cpp 1655 1656# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1657# ------------------------------------------------------- 1658# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1659# the include files in INCLUDES and setting the cache variable VAR 1660# accordingly. 1661ac_fn_c_check_header_mongrel () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 if eval \${$3+:} false; then : 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666$as_echo_n "checking for $2... " >&6; } 1667if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669fi 1670eval ac_res=\$$3 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1672$as_echo "$ac_res" >&6; } 1673else 1674 # Is the header compilable? 1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1676$as_echo_n "checking $2 usability... " >&6; } 1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678/* end confdefs.h. */ 1679$4 1680#include <$2> 1681_ACEOF 1682if ac_fn_c_try_compile "$LINENO"; then : 1683 ac_header_compiler=yes 1684else 1685 ac_header_compiler=no 1686fi 1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1689$as_echo "$ac_header_compiler" >&6; } 1690 1691# Is the header present? 1692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1693$as_echo_n "checking $2 presence... " >&6; } 1694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1695/* end confdefs.h. */ 1696#include <$2> 1697_ACEOF 1698if ac_fn_c_try_cpp "$LINENO"; then : 1699 ac_header_preproc=yes 1700else 1701 ac_header_preproc=no 1702fi 1703rm -f conftest.err conftest.i conftest.$ac_ext 1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1705$as_echo "$ac_header_preproc" >&6; } 1706 1707# So? What about this header? 1708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1709 yes:no: ) 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1711$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1714 ;; 1715 no:yes:* ) 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1717$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1719$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1721$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1723$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1726 ;; 1727esac 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729$as_echo_n "checking for $2... " >&6; } 1730if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732else 1733 eval "$3=\$ac_header_compiler" 1734fi 1735eval ac_res=\$$3 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1737$as_echo "$ac_res" >&6; } 1738fi 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741} # ac_fn_c_check_header_mongrel 1742 1743# ac_fn_c_try_run LINENO 1744# ---------------------- 1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1746# that executables *can* be run. 1747ac_fn_c_try_run () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { { ac_try="$ac_link" 1751case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754esac 1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756$as_echo "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>&5 1758 ac_status=$? 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1761 { { case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_try") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; }; }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: program exited with status $ac_status" >&5 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=$ac_status 1778fi 1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_run 1784 1785# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1786# ------------------------------------------------------- 1787# Tests whether HEADER exists and can be compiled using the include files in 1788# INCLUDES, setting the cache variable VAR accordingly. 1789ac_fn_c_check_header_compile () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if eval \${$3+:} false; then : 1795 $as_echo_n "(cached) " >&6 1796else 1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798/* end confdefs.h. */ 1799$4 1800#include <$2> 1801_ACEOF 1802if ac_fn_c_try_compile "$LINENO"; then : 1803 eval "$3=yes" 1804else 1805 eval "$3=no" 1806fi 1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1808fi 1809eval ac_res=\$$3 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1811$as_echo "$ac_res" >&6; } 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 1814} # ac_fn_c_check_header_compile 1815 1816# ac_fn_c_try_link LINENO 1817# ----------------------- 1818# Try to link conftest.$ac_ext, and return whether this succeeded. 1819ac_fn_c_try_link () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 rm -f conftest.$ac_objext conftest$ac_exeext 1823 if { { ac_try="$ac_link" 1824case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827esac 1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829$as_echo "$ac_try_echo"; } >&5 1830 (eval "$ac_link") 2>conftest.err 1831 ac_status=$? 1832 if test -s conftest.err; then 1833 grep -v '^ *+' conftest.err >conftest.er1 1834 cat conftest.er1 >&5 1835 mv -f conftest.er1 conftest.err 1836 fi 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } && { 1839 test -z "$ac_c_werror_flag" || 1840 test ! -s conftest.err 1841 } && test -s conftest$ac_exeext && { 1842 test "$cross_compiling" = yes || 1843 test -x conftest$ac_exeext 1844 }; then : 1845 ac_retval=0 1846else 1847 $as_echo "$as_me: failed program was:" >&5 1848sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=1 1851fi 1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1854 # interfere with the next link command; also delete a directory that is 1855 # left behind by Apple's compiler. We do this before executing the actions. 1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 as_fn_set_status $ac_retval 1859 1860} # ac_fn_c_try_link 1861 1862# ac_fn_c_check_func LINENO FUNC VAR 1863# ---------------------------------- 1864# Tests whether FUNC exists, setting the cache variable VAR accordingly 1865ac_fn_c_check_func () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1869$as_echo_n "checking for $2... " >&6; } 1870if eval \${$3+:} false; then : 1871 $as_echo_n "(cached) " >&6 1872else 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1877#define $2 innocuous_$2 1878 1879/* System header to define __stub macros and hopefully few prototypes, 1880 which can conflict with char $2 (); below. 1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1882 <limits.h> exists even on freestanding compilers. */ 1883 1884#ifdef __STDC__ 1885# include <limits.h> 1886#else 1887# include <assert.h> 1888#endif 1889 1890#undef $2 1891 1892/* Override any GCC internal prototype to avoid an error. 1893 Use char because int might match the return type of a GCC 1894 builtin and then its argument prototype would still apply. */ 1895#ifdef __cplusplus 1896extern "C" 1897#endif 1898char $2 (); 1899/* The GNU C library defines this for functions which it implements 1900 to always fail with ENOSYS. Some functions are actually named 1901 something starting with __ and the normal name is an alias. */ 1902#if defined __stub_$2 || defined __stub___$2 1903choke me 1904#endif 1905 1906int 1907main () 1908{ 1909return $2 (); 1910 ; 1911 return 0; 1912} 1913_ACEOF 1914if ac_fn_c_try_link "$LINENO"; then : 1915 eval "$3=yes" 1916else 1917 eval "$3=no" 1918fi 1919rm -f core conftest.err conftest.$ac_objext \ 1920 conftest$ac_exeext conftest.$ac_ext 1921fi 1922eval ac_res=\$$3 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924$as_echo "$ac_res" >&6; } 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 1927} # ac_fn_c_check_func 1928 1929# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1930# --------------------------------------------- 1931# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1932# accordingly. 1933ac_fn_c_check_decl () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 as_decl_name=`echo $2|sed 's/ *(.*//'` 1937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1939$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1940if eval \${$3+:} false; then : 1941 $as_echo_n "(cached) " >&6 1942else 1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1944/* end confdefs.h. */ 1945$4 1946int 1947main () 1948{ 1949#ifndef $as_decl_name 1950#ifdef __cplusplus 1951 (void) $as_decl_use; 1952#else 1953 (void) $as_decl_name; 1954#endif 1955#endif 1956 1957 ; 1958 return 0; 1959} 1960_ACEOF 1961if ac_fn_c_try_compile "$LINENO"; then : 1962 eval "$3=yes" 1963else 1964 eval "$3=no" 1965fi 1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1967fi 1968eval ac_res=\$$3 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970$as_echo "$ac_res" >&6; } 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 1973} # ac_fn_c_check_decl 1974cat >config.log <<_ACEOF 1975This file contains any messages produced by compilers while 1976running configure, to aid debugging if configure makes a mistake. 1977 1978It was created by libctf $as_me 1.2.0, which was 1979generated by GNU Autoconf 2.69. Invocation command line was 1980 1981 $ $0 $@ 1982 1983_ACEOF 1984exec 5>>config.log 1985{ 1986cat <<_ASUNAME 1987## --------- ## 1988## Platform. ## 1989## --------- ## 1990 1991hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1992uname -m = `(uname -m) 2>/dev/null || echo unknown` 1993uname -r = `(uname -r) 2>/dev/null || echo unknown` 1994uname -s = `(uname -s) 2>/dev/null || echo unknown` 1995uname -v = `(uname -v) 2>/dev/null || echo unknown` 1996 1997/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1998/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1999 2000/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2001/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2002/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2003/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2004/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2005/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2006/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2007 2008_ASUNAME 2009 2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2011for as_dir in $PATH 2012do 2013 IFS=$as_save_IFS 2014 test -z "$as_dir" && as_dir=. 2015 $as_echo "PATH: $as_dir" 2016 done 2017IFS=$as_save_IFS 2018 2019} >&5 2020 2021cat >&5 <<_ACEOF 2022 2023 2024## ----------- ## 2025## Core tests. ## 2026## ----------- ## 2027 2028_ACEOF 2029 2030 2031# Keep a trace of the command line. 2032# Strip out --no-create and --no-recursion so they do not pile up. 2033# Strip out --silent because we don't want to record it for future runs. 2034# Also quote any args containing shell meta-characters. 2035# Make two passes to allow for proper duplicate-argument suppression. 2036ac_configure_args= 2037ac_configure_args0= 2038ac_configure_args1= 2039ac_must_keep_next=false 2040for ac_pass in 1 2 2041do 2042 for ac_arg 2043 do 2044 case $ac_arg in 2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2047 | -silent | --silent | --silen | --sile | --sil) 2048 continue ;; 2049 *\'*) 2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2051 esac 2052 case $ac_pass in 2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2054 2) 2055 as_fn_append ac_configure_args1 " '$ac_arg'" 2056 if test $ac_must_keep_next = true; then 2057 ac_must_keep_next=false # Got value, back to normal. 2058 else 2059 case $ac_arg in 2060 *=* | --config-cache | -C | -disable-* | --disable-* \ 2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2063 | -with-* | --with-* | -without-* | --without-* | --x) 2064 case "$ac_configure_args0 " in 2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2066 esac 2067 ;; 2068 -* ) ac_must_keep_next=true ;; 2069 esac 2070 fi 2071 as_fn_append ac_configure_args " '$ac_arg'" 2072 ;; 2073 esac 2074 done 2075done 2076{ ac_configure_args0=; unset ac_configure_args0;} 2077{ ac_configure_args1=; unset ac_configure_args1;} 2078 2079# When interrupted or exit'd, cleanup temporary files, and complete 2080# config.log. We remove comments because anyway the quotes in there 2081# would cause problems or look ugly. 2082# WARNING: Use '\'' to represent an apostrophe within the trap. 2083# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2084trap 'exit_status=$? 2085 # Save into config.log some information that might help in debugging. 2086 { 2087 echo 2088 2089 $as_echo "## ---------------- ## 2090## Cache variables. ## 2091## ---------------- ##" 2092 echo 2093 # The following way of writing the cache mishandles newlines in values, 2094( 2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in #( 2098 *${as_nl}*) 2099 case $ac_var in #( 2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2102 esac 2103 case $ac_var in #( 2104 _ | IFS | as_nl) ;; #( 2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2106 *) { eval $ac_var=; unset $ac_var;} ;; 2107 esac ;; 2108 esac 2109 done 2110 (set) 2>&1 | 2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2112 *${as_nl}ac_space=\ *) 2113 sed -n \ 2114 "s/'\''/'\''\\\\'\'''\''/g; 2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2116 ;; #( 2117 *) 2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2119 ;; 2120 esac | 2121 sort 2122) 2123 echo 2124 2125 $as_echo "## ----------------- ## 2126## Output variables. ## 2127## ----------------- ##" 2128 echo 2129 for ac_var in $ac_subst_vars 2130 do 2131 eval ac_val=\$$ac_var 2132 case $ac_val in 2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2134 esac 2135 $as_echo "$ac_var='\''$ac_val'\''" 2136 done | sort 2137 echo 2138 2139 if test -n "$ac_subst_files"; then 2140 $as_echo "## ------------------- ## 2141## File substitutions. ## 2142## ------------------- ##" 2143 echo 2144 for ac_var in $ac_subst_files 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 $as_echo "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 fi 2154 2155 if test -s confdefs.h; then 2156 $as_echo "## ----------- ## 2157## confdefs.h. ## 2158## ----------- ##" 2159 echo 2160 cat confdefs.h 2161 echo 2162 fi 2163 test "$ac_signal" != 0 && 2164 $as_echo "$as_me: caught signal $ac_signal" 2165 $as_echo "$as_me: exit $exit_status" 2166 } >&5 2167 rm -f core *.core core.conftest.* && 2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2169 exit $exit_status 2170' 0 2171for ac_signal in 1 2 13 15; do 2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2173done 2174ac_signal=0 2175 2176# confdefs.h avoids OS command line length limits that DEFS can exceed. 2177rm -f -r conftest* confdefs.h 2178 2179$as_echo "/* confdefs.h */" > confdefs.h 2180 2181# Predefined preprocessor variables. 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_NAME "$PACKAGE_NAME" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_VERSION "$PACKAGE_VERSION" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_STRING "$PACKAGE_STRING" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_URL "$PACKAGE_URL" 2205_ACEOF 2206 2207 2208# Let the site file select an alternate cache file if it wants to. 2209# Prefer an explicitly selected file to automatically selected ones. 2210ac_site_file1=NONE 2211ac_site_file2=NONE 2212if test -n "$CONFIG_SITE"; then 2213 # We do not want a PATH search for config.site. 2214 case $CONFIG_SITE in #(( 2215 -*) ac_site_file1=./$CONFIG_SITE;; 2216 */*) ac_site_file1=$CONFIG_SITE;; 2217 *) ac_site_file1=./$CONFIG_SITE;; 2218 esac 2219elif test "x$prefix" != xNONE; then 2220 ac_site_file1=$prefix/share/config.site 2221 ac_site_file2=$prefix/etc/config.site 2222else 2223 ac_site_file1=$ac_default_prefix/share/config.site 2224 ac_site_file2=$ac_default_prefix/etc/config.site 2225fi 2226for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2227do 2228 test "x$ac_site_file" = xNONE && continue 2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2231$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2232 sed 's/^/| /' "$ac_site_file" >&5 2233 . "$ac_site_file" \ 2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2236as_fn_error $? "failed to load site script $ac_site_file 2237See \`config.log' for more details" "$LINENO" 5; } 2238 fi 2239done 2240 2241if test -r "$cache_file"; then 2242 # Some versions of bash will fail to source /dev/null (special files 2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2246$as_echo "$as_me: loading cache $cache_file" >&6;} 2247 case $cache_file in 2248 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2249 *) . "./$cache_file";; 2250 esac 2251 fi 2252else 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2254$as_echo "$as_me: creating cache $cache_file" >&6;} 2255 >$cache_file 2256fi 2257 2258gt_needs="$gt_needs " 2259as_fn_append ac_header_list " stdlib.h" 2260as_fn_append ac_header_list " unistd.h" 2261as_fn_append ac_header_list " sys/param.h" 2262as_fn_append ac_func_list " qsort_r" 2263# Check that the precious variables saved in the cache have kept the same 2264# value. 2265ac_cache_corrupted=false 2266for ac_var in $ac_precious_vars; do 2267 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2268 eval ac_new_set=\$ac_env_${ac_var}_set 2269 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2270 eval ac_new_val=\$ac_env_${ac_var}_value 2271 case $ac_old_set,$ac_new_set in 2272 set,) 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2274$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2275 ac_cache_corrupted=: ;; 2276 ,set) 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2278$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2279 ac_cache_corrupted=: ;; 2280 ,);; 2281 *) 2282 if test "x$ac_old_val" != "x$ac_new_val"; then 2283 # differences in whitespace do not lead to failure. 2284 ac_old_val_w=`echo x $ac_old_val` 2285 ac_new_val_w=`echo x $ac_new_val` 2286 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2288$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2289 ac_cache_corrupted=: 2290 else 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2292$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2293 eval $ac_var=\$ac_old_val 2294 fi 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2296$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2298$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2299 fi;; 2300 esac 2301 # Pass precious variables to config.status. 2302 if test "$ac_new_set" = set; then 2303 case $ac_new_val in 2304 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2305 *) ac_arg=$ac_var=$ac_new_val ;; 2306 esac 2307 case " $ac_configure_args " in 2308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2309 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2310 esac 2311 fi 2312done 2313if $ac_cache_corrupted; then 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2317$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2318 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2319fi 2320## -------------------- ## 2321## Main body of script. ## 2322## -------------------- ## 2323 2324ac_ext=c 2325ac_cpp='$CPP $CPPFLAGS' 2326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2328ac_compiler_gnu=$ac_cv_c_compiler_gnu 2329 2330 2331 2332 2333 2334 2335ac_aux_dir= 2336for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2337 if test -f "$ac_dir/install-sh"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$ac_aux_dir/install-sh -c" 2340 break 2341 elif test -f "$ac_dir/install.sh"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/install.sh -c" 2344 break 2345 elif test -f "$ac_dir/shtool"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/shtool install -c" 2348 break 2349 fi 2350done 2351if test -z "$ac_aux_dir"; then 2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2353fi 2354 2355# These three variables are undocumented and unsupported, 2356# and are intended to be withdrawn in a future Autoconf release. 2357# They can cause serious problems if a builder's source tree is in a directory 2358# whose full name contains unusual characters. 2359ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2360ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2361ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2362 2363 2364# Make sure we can run config.sub. 2365$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2366 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2367 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2369$as_echo_n "checking build system type... " >&6; } 2370if ${ac_cv_build+:} false; then : 2371 $as_echo_n "(cached) " >&6 2372else 2373 ac_build_alias=$build_alias 2374test "x$ac_build_alias" = x && 2375 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2376test "x$ac_build_alias" = x && 2377 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2378ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2380 2381fi 2382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2383$as_echo "$ac_cv_build" >&6; } 2384case $ac_cv_build in 2385*-*-*) ;; 2386*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2387esac 2388build=$ac_cv_build 2389ac_save_IFS=$IFS; IFS='-' 2390set x $ac_cv_build 2391shift 2392build_cpu=$1 2393build_vendor=$2 2394shift; shift 2395# Remember, the first character of IFS is used to create $*, 2396# except with old shells: 2397build_os=$* 2398IFS=$ac_save_IFS 2399case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2400 2401 2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2403$as_echo_n "checking host system type... " >&6; } 2404if ${ac_cv_host+:} false; then : 2405 $as_echo_n "(cached) " >&6 2406else 2407 if test "x$host_alias" = x; then 2408 ac_cv_host=$ac_cv_build 2409else 2410 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2412fi 2413 2414fi 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2416$as_echo "$ac_cv_host" >&6; } 2417case $ac_cv_host in 2418*-*-*) ;; 2419*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2420esac 2421host=$ac_cv_host 2422ac_save_IFS=$IFS; IFS='-' 2423set x $ac_cv_host 2424shift 2425host_cpu=$1 2426host_vendor=$2 2427shift; shift 2428# Remember, the first character of IFS is used to create $*, 2429# except with old shells: 2430host_os=$* 2431IFS=$ac_save_IFS 2432case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2433 2434 2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2436$as_echo_n "checking target system type... " >&6; } 2437if ${ac_cv_target+:} false; then : 2438 $as_echo_n "(cached) " >&6 2439else 2440 if test "x$target_alias" = x; then 2441 ac_cv_target=$ac_cv_host 2442else 2443 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2445fi 2446 2447fi 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2449$as_echo "$ac_cv_target" >&6; } 2450case $ac_cv_target in 2451*-*-*) ;; 2452*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2453esac 2454target=$ac_cv_target 2455ac_save_IFS=$IFS; IFS='-' 2456set x $ac_cv_target 2457shift 2458target_cpu=$1 2459target_vendor=$2 2460shift; shift 2461# Remember, the first character of IFS is used to create $*, 2462# except with old shells: 2463target_os=$* 2464IFS=$ac_save_IFS 2465case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2466 2467 2468# The aliases save the names the user supplied, while $host etc. 2469# will get canonicalized. 2470test -n "$target_alias" && 2471 test "$program_prefix$program_suffix$program_transform_name" = \ 2472 NONENONEs,x,x, && 2473 program_prefix=${target_alias}- 2474# Expand $ac_aux_dir to an absolute path. 2475am_aux_dir=`cd "$ac_aux_dir" && pwd` 2476 2477ac_ext=c 2478ac_cpp='$CPP $CPPFLAGS' 2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2481ac_compiler_gnu=$ac_cv_c_compiler_gnu 2482if test -n "$ac_tool_prefix"; then 2483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2484set dummy ${ac_tool_prefix}gcc; ac_word=$2 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2486$as_echo_n "checking for $ac_word... " >&6; } 2487if ${ac_cv_prog_CC+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test -n "$CC"; then 2491 ac_cv_prog_CC="$CC" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2500 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505 done 2506IFS=$as_save_IFS 2507 2508fi 2509fi 2510CC=$ac_cv_prog_CC 2511if test -n "$CC"; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2513$as_echo "$CC" >&6; } 2514else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2516$as_echo "no" >&6; } 2517fi 2518 2519 2520fi 2521if test -z "$ac_cv_prog_CC"; then 2522 ac_ct_CC=$CC 2523 # Extract the first word of "gcc", so it can be a program name with args. 2524set dummy gcc; ac_word=$2 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2526$as_echo_n "checking for $ac_word... " >&6; } 2527if ${ac_cv_prog_ac_ct_CC+:} false; then : 2528 $as_echo_n "(cached) " >&6 2529else 2530 if test -n "$ac_ct_CC"; then 2531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2532else 2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534for as_dir in $PATH 2535do 2536 IFS=$as_save_IFS 2537 test -z "$as_dir" && as_dir=. 2538 for ac_exec_ext in '' $ac_executable_extensions; do 2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2540 ac_cv_prog_ac_ct_CC="gcc" 2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2542 break 2 2543 fi 2544done 2545 done 2546IFS=$as_save_IFS 2547 2548fi 2549fi 2550ac_ct_CC=$ac_cv_prog_ac_ct_CC 2551if test -n "$ac_ct_CC"; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2553$as_echo "$ac_ct_CC" >&6; } 2554else 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2556$as_echo "no" >&6; } 2557fi 2558 2559 if test "x$ac_ct_CC" = x; then 2560 CC="" 2561 else 2562 case $cross_compiling:$ac_tool_warned in 2563yes:) 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2566ac_tool_warned=yes ;; 2567esac 2568 CC=$ac_ct_CC 2569 fi 2570else 2571 CC="$ac_cv_prog_CC" 2572fi 2573 2574if test -z "$CC"; then 2575 if test -n "$ac_tool_prefix"; then 2576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2577set dummy ${ac_tool_prefix}cc; ac_word=$2 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2579$as_echo_n "checking for $ac_word... " >&6; } 2580if ${ac_cv_prog_CC+:} false; then : 2581 $as_echo_n "(cached) " >&6 2582else 2583 if test -n "$CC"; then 2584 ac_cv_prog_CC="$CC" # Let the user override the test. 2585else 2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587for as_dir in $PATH 2588do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 for ac_exec_ext in '' $ac_executable_extensions; do 2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2593 ac_cv_prog_CC="${ac_tool_prefix}cc" 2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2595 break 2 2596 fi 2597done 2598 done 2599IFS=$as_save_IFS 2600 2601fi 2602fi 2603CC=$ac_cv_prog_CC 2604if test -n "$CC"; then 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2606$as_echo "$CC" >&6; } 2607else 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2609$as_echo "no" >&6; } 2610fi 2611 2612 2613 fi 2614fi 2615if test -z "$CC"; then 2616 # Extract the first word of "cc", so it can be a program name with args. 2617set dummy cc; ac_word=$2 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2619$as_echo_n "checking for $ac_word... " >&6; } 2620if ${ac_cv_prog_CC+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 if test -n "$CC"; then 2624 ac_cv_prog_CC="$CC" # Let the user override the test. 2625else 2626 ac_prog_rejected=no 2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628for as_dir in $PATH 2629do 2630 IFS=$as_save_IFS 2631 test -z "$as_dir" && as_dir=. 2632 for ac_exec_ext in '' $ac_executable_extensions; do 2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2635 ac_prog_rejected=yes 2636 continue 2637 fi 2638 ac_cv_prog_CC="cc" 2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2640 break 2 2641 fi 2642done 2643 done 2644IFS=$as_save_IFS 2645 2646if test $ac_prog_rejected = yes; then 2647 # We found a bogon in the path, so make sure we never use it. 2648 set dummy $ac_cv_prog_CC 2649 shift 2650 if test $# != 0; then 2651 # We chose a different compiler from the bogus one. 2652 # However, it has the same basename, so the bogon will be chosen 2653 # first if we set CC to just the basename; use the full file name. 2654 shift 2655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2656 fi 2657fi 2658fi 2659fi 2660CC=$ac_cv_prog_CC 2661if test -n "$CC"; then 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2663$as_echo "$CC" >&6; } 2664else 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2666$as_echo "no" >&6; } 2667fi 2668 2669 2670fi 2671if test -z "$CC"; then 2672 if test -n "$ac_tool_prefix"; then 2673 for ac_prog in cl.exe 2674 do 2675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2676set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678$as_echo_n "checking for $ac_word... " >&6; } 2679if ${ac_cv_prog_CC+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681else 2682 if test -n "$CC"; then 2683 ac_cv_prog_CC="$CC" # Let the user override the test. 2684else 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696done 2697 done 2698IFS=$as_save_IFS 2699 2700fi 2701fi 2702CC=$ac_cv_prog_CC 2703if test -n "$CC"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2705$as_echo "$CC" >&6; } 2706else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708$as_echo "no" >&6; } 2709fi 2710 2711 2712 test -n "$CC" && break 2713 done 2714fi 2715if test -z "$CC"; then 2716 ac_ct_CC=$CC 2717 for ac_prog in cl.exe 2718do 2719 # Extract the first word of "$ac_prog", so it can be a program name with args. 2720set dummy $ac_prog; ac_word=$2 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2722$as_echo_n "checking for $ac_word... " >&6; } 2723if ${ac_cv_prog_ac_ct_CC+:} false; then : 2724 $as_echo_n "(cached) " >&6 2725else 2726 if test -n "$ac_ct_CC"; then 2727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2728else 2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730for as_dir in $PATH 2731do 2732 IFS=$as_save_IFS 2733 test -z "$as_dir" && as_dir=. 2734 for ac_exec_ext in '' $ac_executable_extensions; do 2735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2736 ac_cv_prog_ac_ct_CC="$ac_prog" 2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2738 break 2 2739 fi 2740done 2741 done 2742IFS=$as_save_IFS 2743 2744fi 2745fi 2746ac_ct_CC=$ac_cv_prog_ac_ct_CC 2747if test -n "$ac_ct_CC"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2749$as_echo "$ac_ct_CC" >&6; } 2750else 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2752$as_echo "no" >&6; } 2753fi 2754 2755 2756 test -n "$ac_ct_CC" && break 2757done 2758 2759 if test "x$ac_ct_CC" = x; then 2760 CC="" 2761 else 2762 case $cross_compiling:$ac_tool_warned in 2763yes:) 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2766ac_tool_warned=yes ;; 2767esac 2768 CC=$ac_ct_CC 2769 fi 2770fi 2771 2772fi 2773 2774 2775test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2777as_fn_error $? "no acceptable C compiler found in \$PATH 2778See \`config.log' for more details" "$LINENO" 5; } 2779 2780# Provide some information about the compiler. 2781$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2782set X $ac_compile 2783ac_compiler=$2 2784for ac_option in --version -v -V -qversion; do 2785 { { ac_try="$ac_compiler $ac_option >&5" 2786case "(($ac_try" in 2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2788 *) ac_try_echo=$ac_try;; 2789esac 2790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2791$as_echo "$ac_try_echo"; } >&5 2792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2793 ac_status=$? 2794 if test -s conftest.err; then 2795 sed '10a\ 2796... rest of stderr output deleted ... 2797 10q' conftest.err >conftest.er1 2798 cat conftest.er1 >&5 2799 fi 2800 rm -f conftest.er1 conftest.err 2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2802 test $ac_status = 0; } 2803done 2804 2805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2806/* end confdefs.h. */ 2807 2808int 2809main () 2810{ 2811 2812 ; 2813 return 0; 2814} 2815_ACEOF 2816ac_clean_files_save=$ac_clean_files 2817ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2818# Try to create an executable without -o first, disregard a.out. 2819# It will help us diagnose broken compilers, and finding out an intuition 2820# of exeext. 2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2822$as_echo_n "checking whether the C compiler works... " >&6; } 2823ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2824 2825# The possible output files: 2826ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2827 2828ac_rmfiles= 2829for ac_file in $ac_files 2830do 2831 case $ac_file in 2832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2833 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2834 esac 2835done 2836rm -f $ac_rmfiles 2837 2838if { { ac_try="$ac_link_default" 2839case "(($ac_try" in 2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2841 *) ac_try_echo=$ac_try;; 2842esac 2843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2844$as_echo "$ac_try_echo"; } >&5 2845 (eval "$ac_link_default") 2>&5 2846 ac_status=$? 2847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2848 test $ac_status = 0; }; then : 2849 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2850# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2851# in a Makefile. We should not override ac_cv_exeext if it was cached, 2852# so that the user can short-circuit this test for compilers unknown to 2853# Autoconf. 2854for ac_file in $ac_files '' 2855do 2856 test -f "$ac_file" || continue 2857 case $ac_file in 2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2859 ;; 2860 [ab].out ) 2861 # We found the default executable, but exeext='' is most 2862 # certainly right. 2863 break;; 2864 *.* ) 2865 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2866 then :; else 2867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2868 fi 2869 # We set ac_cv_exeext here because the later test for it is not 2870 # safe: cross compilers may not add the suffix if given an `-o' 2871 # argument, so we may need to know it at that point already. 2872 # Even if this section looks crufty: it has the advantage of 2873 # actually working. 2874 break;; 2875 * ) 2876 break;; 2877 esac 2878done 2879test "$ac_cv_exeext" = no && ac_cv_exeext= 2880 2881else 2882 ac_file='' 2883fi 2884if test -z "$ac_file"; then : 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2886$as_echo "no" >&6; } 2887$as_echo "$as_me: failed program was:" >&5 2888sed 's/^/| /' conftest.$ac_ext >&5 2889 2890{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2892as_fn_error 77 "C compiler cannot create executables 2893See \`config.log' for more details" "$LINENO" 5; } 2894else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2896$as_echo "yes" >&6; } 2897fi 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2899$as_echo_n "checking for C compiler default output file name... " >&6; } 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2901$as_echo "$ac_file" >&6; } 2902ac_exeext=$ac_cv_exeext 2903 2904rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2905ac_clean_files=$ac_clean_files_save 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2907$as_echo_n "checking for suffix of executables... " >&6; } 2908if { { ac_try="$ac_link" 2909case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912esac 2913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2914$as_echo "$ac_try_echo"; } >&5 2915 (eval "$ac_link") 2>&5 2916 ac_status=$? 2917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2918 test $ac_status = 0; }; then : 2919 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2920# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2921# work properly (i.e., refer to `conftest.exe'), while it won't with 2922# `rm'. 2923for ac_file in conftest.exe conftest conftest.*; do 2924 test -f "$ac_file" || continue 2925 case $ac_file in 2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2927 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2928 break;; 2929 * ) break;; 2930 esac 2931done 2932else 2933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2935as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2936See \`config.log' for more details" "$LINENO" 5; } 2937fi 2938rm -f conftest conftest$ac_cv_exeext 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2940$as_echo "$ac_cv_exeext" >&6; } 2941 2942rm -f conftest.$ac_ext 2943EXEEXT=$ac_cv_exeext 2944ac_exeext=$EXEEXT 2945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2946/* end confdefs.h. */ 2947#include <stdio.h> 2948int 2949main () 2950{ 2951FILE *f = fopen ("conftest.out", "w"); 2952 return ferror (f) || fclose (f) != 0; 2953 2954 ; 2955 return 0; 2956} 2957_ACEOF 2958ac_clean_files="$ac_clean_files conftest.out" 2959# Check that the compiler produces executables we can run. If not, either 2960# the compiler is broken, or we cross compile. 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2962$as_echo_n "checking whether we are cross compiling... " >&6; } 2963if test "$cross_compiling" != yes; then 2964 { { ac_try="$ac_link" 2965case "(($ac_try" in 2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2967 *) ac_try_echo=$ac_try;; 2968esac 2969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2970$as_echo "$ac_try_echo"; } >&5 2971 (eval "$ac_link") 2>&5 2972 ac_status=$? 2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2974 test $ac_status = 0; } 2975 if { ac_try='./conftest$ac_cv_exeext' 2976 { { case "(($ac_try" in 2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2978 *) ac_try_echo=$ac_try;; 2979esac 2980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2981$as_echo "$ac_try_echo"; } >&5 2982 (eval "$ac_try") 2>&5 2983 ac_status=$? 2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2985 test $ac_status = 0; }; }; then 2986 cross_compiling=no 2987 else 2988 if test "$cross_compiling" = maybe; then 2989 cross_compiling=yes 2990 else 2991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2993as_fn_error $? "cannot run C compiled programs. 2994If you meant to cross compile, use \`--host'. 2995See \`config.log' for more details" "$LINENO" 5; } 2996 fi 2997 fi 2998fi 2999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3000$as_echo "$cross_compiling" >&6; } 3001 3002rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3003ac_clean_files=$ac_clean_files_save 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3005$as_echo_n "checking for suffix of object files... " >&6; } 3006if ${ac_cv_objext+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010/* end confdefs.h. */ 3011 3012int 3013main () 3014{ 3015 3016 ; 3017 return 0; 3018} 3019_ACEOF 3020rm -f conftest.o conftest.obj 3021if { { ac_try="$ac_compile" 3022case "(($ac_try" in 3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3024 *) ac_try_echo=$ac_try;; 3025esac 3026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3027$as_echo "$ac_try_echo"; } >&5 3028 (eval "$ac_compile") 2>&5 3029 ac_status=$? 3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3031 test $ac_status = 0; }; then : 3032 for ac_file in conftest.o conftest.obj conftest.*; do 3033 test -f "$ac_file" || continue; 3034 case $ac_file in 3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3037 break;; 3038 esac 3039done 3040else 3041 $as_echo "$as_me: failed program was:" >&5 3042sed 's/^/| /' conftest.$ac_ext >&5 3043 3044{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3046as_fn_error $? "cannot compute suffix of object files: cannot compile 3047See \`config.log' for more details" "$LINENO" 5; } 3048fi 3049rm -f conftest.$ac_cv_objext conftest.$ac_ext 3050fi 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3052$as_echo "$ac_cv_objext" >&6; } 3053OBJEXT=$ac_cv_objext 3054ac_objext=$OBJEXT 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3056$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3057if ${ac_cv_c_compiler_gnu+:} false; then : 3058 $as_echo_n "(cached) " >&6 3059else 3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3061/* end confdefs.h. */ 3062 3063int 3064main () 3065{ 3066#ifndef __GNUC__ 3067 choke me 3068#endif 3069 3070 ; 3071 return 0; 3072} 3073_ACEOF 3074if ac_fn_c_try_compile "$LINENO"; then : 3075 ac_compiler_gnu=yes 3076else 3077 ac_compiler_gnu=no 3078fi 3079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3080ac_cv_c_compiler_gnu=$ac_compiler_gnu 3081 3082fi 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3084$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3085if test $ac_compiler_gnu = yes; then 3086 GCC=yes 3087else 3088 GCC= 3089fi 3090ac_test_CFLAGS=${CFLAGS+set} 3091ac_save_CFLAGS=$CFLAGS 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3093$as_echo_n "checking whether $CC accepts -g... " >&6; } 3094if ${ac_cv_prog_cc_g+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 ac_save_c_werror_flag=$ac_c_werror_flag 3098 ac_c_werror_flag=yes 3099 ac_cv_prog_cc_g=no 3100 CFLAGS="-g" 3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3102/* end confdefs.h. */ 3103 3104int 3105main () 3106{ 3107 3108 ; 3109 return 0; 3110} 3111_ACEOF 3112if ac_fn_c_try_compile "$LINENO"; then : 3113 ac_cv_prog_cc_g=yes 3114else 3115 CFLAGS="" 3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3117/* end confdefs.h. */ 3118 3119int 3120main () 3121{ 3122 3123 ; 3124 return 0; 3125} 3126_ACEOF 3127if ac_fn_c_try_compile "$LINENO"; then : 3128 3129else 3130 ac_c_werror_flag=$ac_save_c_werror_flag 3131 CFLAGS="-g" 3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3133/* end confdefs.h. */ 3134 3135int 3136main () 3137{ 3138 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143if ac_fn_c_try_compile "$LINENO"; then : 3144 ac_cv_prog_cc_g=yes 3145fi 3146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3147fi 3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3149fi 3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3151 ac_c_werror_flag=$ac_save_c_werror_flag 3152fi 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3154$as_echo "$ac_cv_prog_cc_g" >&6; } 3155if test "$ac_test_CFLAGS" = set; then 3156 CFLAGS=$ac_save_CFLAGS 3157elif test $ac_cv_prog_cc_g = yes; then 3158 if test "$GCC" = yes; then 3159 CFLAGS="-g -O2" 3160 else 3161 CFLAGS="-g" 3162 fi 3163else 3164 if test "$GCC" = yes; then 3165 CFLAGS="-O2" 3166 else 3167 CFLAGS= 3168 fi 3169fi 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3171$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3172if ${ac_cv_prog_cc_c89+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 ac_cv_prog_cc_c89=no 3176ac_save_CC=$CC 3177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3178/* end confdefs.h. */ 3179#include <stdarg.h> 3180#include <stdio.h> 3181struct stat; 3182/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3183struct buf { int x; }; 3184FILE * (*rcsopen) (struct buf *, struct stat *, int); 3185static char *e (p, i) 3186 char **p; 3187 int i; 3188{ 3189 return p[i]; 3190} 3191static char *f (char * (*g) (char **, int), char **p, ...) 3192{ 3193 char *s; 3194 va_list v; 3195 va_start (v,p); 3196 s = g (p, va_arg (v,int)); 3197 va_end (v); 3198 return s; 3199} 3200 3201/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3202 function prototypes and stuff, but not '\xHH' hex character constants. 3203 These don't provoke an error unfortunately, instead are silently treated 3204 as 'x'. The following induces an error, until -std is added to get 3205 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3206 array size at least. It's necessary to write '\x00'==0 to get something 3207 that's true only with -std. */ 3208int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3209 3210/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3211 inside strings and character constants. */ 3212#define FOO(x) 'x' 3213int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3214 3215int test (int i, double x); 3216struct s1 {int (*f) (int a);}; 3217struct s2 {int (*f) (double a);}; 3218int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3219int argc; 3220char **argv; 3221int 3222main () 3223{ 3224return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3225 ; 3226 return 0; 3227} 3228_ACEOF 3229for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3230 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3231do 3232 CC="$ac_save_CC $ac_arg" 3233 if ac_fn_c_try_compile "$LINENO"; then : 3234 ac_cv_prog_cc_c89=$ac_arg 3235fi 3236rm -f core conftest.err conftest.$ac_objext 3237 test "x$ac_cv_prog_cc_c89" != "xno" && break 3238done 3239rm -f conftest.$ac_ext 3240CC=$ac_save_CC 3241 3242fi 3243# AC_CACHE_VAL 3244case "x$ac_cv_prog_cc_c89" in 3245 x) 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3247$as_echo "none needed" >&6; } ;; 3248 xno) 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3250$as_echo "unsupported" >&6; } ;; 3251 *) 3252 CC="$CC $ac_cv_prog_cc_c89" 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3254$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3255esac 3256if test "x$ac_cv_prog_cc_c89" != xno; then : 3257 3258fi 3259 3260ac_ext=c 3261ac_cpp='$CPP $CPPFLAGS' 3262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3264ac_compiler_gnu=$ac_cv_c_compiler_gnu 3265 3266ac_ext=c 3267ac_cpp='$CPP $CPPFLAGS' 3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3270ac_compiler_gnu=$ac_cv_c_compiler_gnu 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3272$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3273if ${am_cv_prog_cc_c_o+:} false; then : 3274 $as_echo_n "(cached) " >&6 3275else 3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3277/* end confdefs.h. */ 3278 3279int 3280main () 3281{ 3282 3283 ; 3284 return 0; 3285} 3286_ACEOF 3287 # Make sure it works both with $CC and with simple cc. 3288 # Following AC_PROG_CC_C_O, we do the test twice because some 3289 # compilers refuse to overwrite an existing .o file with -o, 3290 # though they will create one. 3291 am_cv_prog_cc_c_o=yes 3292 for am_i in 1 2; do 3293 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3294 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3295 ac_status=$? 3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 (exit $ac_status); } \ 3298 && test -f conftest2.$ac_objext; then 3299 : OK 3300 else 3301 am_cv_prog_cc_c_o=no 3302 break 3303 fi 3304 done 3305 rm -f core conftest* 3306 unset am_i 3307fi 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3309$as_echo "$am_cv_prog_cc_c_o" >&6; } 3310if test "$am_cv_prog_cc_c_o" != yes; then 3311 # Losing compiler, so override with the script. 3312 # FIXME: It is wrong to rewrite CC. 3313 # But if we don't then we get into trouble of one sort or another. 3314 # A longer-term fix would be to have automake use am__CC in this case, 3315 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3316 CC="$am_aux_dir/compile $CC" 3317fi 3318ac_ext=c 3319ac_cpp='$CPP $CPPFLAGS' 3320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3322ac_compiler_gnu=$ac_cv_c_compiler_gnu 3323 3324 3325 3326ac_ext=c 3327ac_cpp='$CPP $CPPFLAGS' 3328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3330ac_compiler_gnu=$ac_cv_c_compiler_gnu 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3332$as_echo_n "checking how to run the C preprocessor... " >&6; } 3333# On Suns, sometimes $CPP names a directory. 3334if test -n "$CPP" && test -d "$CPP"; then 3335 CPP= 3336fi 3337if test -z "$CPP"; then 3338 if ${ac_cv_prog_CPP+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340else 3341 # Double quotes because CPP needs to be expanded 3342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3343 do 3344 ac_preproc_ok=false 3345for ac_c_preproc_warn_flag in '' yes 3346do 3347 # Use a header file that comes with gcc, so configuring glibc 3348 # with a fresh cross-compiler works. 3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3350 # <limits.h> exists even on freestanding compilers. 3351 # On the NeXT, cc -E runs the code through the compiler's parser, 3352 # not just through cpp. "Syntax error" is here to catch this case. 3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354/* end confdefs.h. */ 3355#ifdef __STDC__ 3356# include <limits.h> 3357#else 3358# include <assert.h> 3359#endif 3360 Syntax error 3361_ACEOF 3362if ac_fn_c_try_cpp "$LINENO"; then : 3363 3364else 3365 # Broken: fails on valid input. 3366continue 3367fi 3368rm -f conftest.err conftest.i conftest.$ac_ext 3369 3370 # OK, works on sane cases. Now check whether nonexistent headers 3371 # can be detected and how. 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373/* end confdefs.h. */ 3374#include <ac_nonexistent.h> 3375_ACEOF 3376if ac_fn_c_try_cpp "$LINENO"; then : 3377 # Broken: success on invalid input. 3378continue 3379else 3380 # Passes both tests. 3381ac_preproc_ok=: 3382break 3383fi 3384rm -f conftest.err conftest.i conftest.$ac_ext 3385 3386done 3387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3388rm -f conftest.i conftest.err conftest.$ac_ext 3389if $ac_preproc_ok; then : 3390 break 3391fi 3392 3393 done 3394 ac_cv_prog_CPP=$CPP 3395 3396fi 3397 CPP=$ac_cv_prog_CPP 3398else 3399 ac_cv_prog_CPP=$CPP 3400fi 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3402$as_echo "$CPP" >&6; } 3403ac_preproc_ok=false 3404for ac_c_preproc_warn_flag in '' yes 3405do 3406 # Use a header file that comes with gcc, so configuring glibc 3407 # with a fresh cross-compiler works. 3408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3409 # <limits.h> exists even on freestanding compilers. 3410 # On the NeXT, cc -E runs the code through the compiler's parser, 3411 # not just through cpp. "Syntax error" is here to catch this case. 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413/* end confdefs.h. */ 3414#ifdef __STDC__ 3415# include <limits.h> 3416#else 3417# include <assert.h> 3418#endif 3419 Syntax error 3420_ACEOF 3421if ac_fn_c_try_cpp "$LINENO"; then : 3422 3423else 3424 # Broken: fails on valid input. 3425continue 3426fi 3427rm -f conftest.err conftest.i conftest.$ac_ext 3428 3429 # OK, works on sane cases. Now check whether nonexistent headers 3430 # can be detected and how. 3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3432/* end confdefs.h. */ 3433#include <ac_nonexistent.h> 3434_ACEOF 3435if ac_fn_c_try_cpp "$LINENO"; then : 3436 # Broken: success on invalid input. 3437continue 3438else 3439 # Passes both tests. 3440ac_preproc_ok=: 3441break 3442fi 3443rm -f conftest.err conftest.i conftest.$ac_ext 3444 3445done 3446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3447rm -f conftest.i conftest.err conftest.$ac_ext 3448if $ac_preproc_ok; then : 3449 3450else 3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3453as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3454See \`config.log' for more details" "$LINENO" 5; } 3455fi 3456 3457ac_ext=c 3458ac_cpp='$CPP $CPPFLAGS' 3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3461ac_compiler_gnu=$ac_cv_c_compiler_gnu 3462 3463 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3465$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3466if ${ac_cv_path_GREP+:} false; then : 3467 $as_echo_n "(cached) " >&6 3468else 3469 if test -z "$GREP"; then 3470 ac_path_GREP_found=false 3471 # Loop through the user's path and test for each of PROGNAME-LIST 3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3474do 3475 IFS=$as_save_IFS 3476 test -z "$as_dir" && as_dir=. 3477 for ac_prog in grep ggrep; do 3478 for ac_exec_ext in '' $ac_executable_extensions; do 3479 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3480 as_fn_executable_p "$ac_path_GREP" || continue 3481# Check for GNU ac_path_GREP and select it if it is found. 3482 # Check for GNU $ac_path_GREP 3483case `"$ac_path_GREP" --version 2>&1` in 3484*GNU*) 3485 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3486*) 3487 ac_count=0 3488 $as_echo_n 0123456789 >"conftest.in" 3489 while : 3490 do 3491 cat "conftest.in" "conftest.in" >"conftest.tmp" 3492 mv "conftest.tmp" "conftest.in" 3493 cp "conftest.in" "conftest.nl" 3494 $as_echo 'GREP' >> "conftest.nl" 3495 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3497 as_fn_arith $ac_count + 1 && ac_count=$as_val 3498 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3499 # Best one so far, save it but keep looking for a better one 3500 ac_cv_path_GREP="$ac_path_GREP" 3501 ac_path_GREP_max=$ac_count 3502 fi 3503 # 10*(2^10) chars as input seems more than enough 3504 test $ac_count -gt 10 && break 3505 done 3506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3507esac 3508 3509 $ac_path_GREP_found && break 3 3510 done 3511 done 3512 done 3513IFS=$as_save_IFS 3514 if test -z "$ac_cv_path_GREP"; then 3515 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3516 fi 3517else 3518 ac_cv_path_GREP=$GREP 3519fi 3520 3521fi 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3523$as_echo "$ac_cv_path_GREP" >&6; } 3524 GREP="$ac_cv_path_GREP" 3525 3526 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3528$as_echo_n "checking for egrep... " >&6; } 3529if ${ac_cv_path_EGREP+:} false; then : 3530 $as_echo_n "(cached) " >&6 3531else 3532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3533 then ac_cv_path_EGREP="$GREP -E" 3534 else 3535 if test -z "$EGREP"; then 3536 ac_path_EGREP_found=false 3537 # Loop through the user's path and test for each of PROGNAME-LIST 3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3539for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3540do 3541 IFS=$as_save_IFS 3542 test -z "$as_dir" && as_dir=. 3543 for ac_prog in egrep; do 3544 for ac_exec_ext in '' $ac_executable_extensions; do 3545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3546 as_fn_executable_p "$ac_path_EGREP" || continue 3547# Check for GNU ac_path_EGREP and select it if it is found. 3548 # Check for GNU $ac_path_EGREP 3549case `"$ac_path_EGREP" --version 2>&1` in 3550*GNU*) 3551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3552*) 3553 ac_count=0 3554 $as_echo_n 0123456789 >"conftest.in" 3555 while : 3556 do 3557 cat "conftest.in" "conftest.in" >"conftest.tmp" 3558 mv "conftest.tmp" "conftest.in" 3559 cp "conftest.in" "conftest.nl" 3560 $as_echo 'EGREP' >> "conftest.nl" 3561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3563 as_fn_arith $ac_count + 1 && ac_count=$as_val 3564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3565 # Best one so far, save it but keep looking for a better one 3566 ac_cv_path_EGREP="$ac_path_EGREP" 3567 ac_path_EGREP_max=$ac_count 3568 fi 3569 # 10*(2^10) chars as input seems more than enough 3570 test $ac_count -gt 10 && break 3571 done 3572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3573esac 3574 3575 $ac_path_EGREP_found && break 3 3576 done 3577 done 3578 done 3579IFS=$as_save_IFS 3580 if test -z "$ac_cv_path_EGREP"; then 3581 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3582 fi 3583else 3584 ac_cv_path_EGREP=$EGREP 3585fi 3586 3587 fi 3588fi 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3590$as_echo "$ac_cv_path_EGREP" >&6; } 3591 EGREP="$ac_cv_path_EGREP" 3592 3593 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3595$as_echo_n "checking for ANSI C header files... " >&6; } 3596if ${ac_cv_header_stdc+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601#include <stdlib.h> 3602#include <stdarg.h> 3603#include <string.h> 3604#include <float.h> 3605 3606int 3607main () 3608{ 3609 3610 ; 3611 return 0; 3612} 3613_ACEOF 3614if ac_fn_c_try_compile "$LINENO"; then : 3615 ac_cv_header_stdc=yes 3616else 3617 ac_cv_header_stdc=no 3618fi 3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3620 3621if test $ac_cv_header_stdc = yes; then 3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624/* end confdefs.h. */ 3625#include <string.h> 3626 3627_ACEOF 3628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3629 $EGREP "memchr" >/dev/null 2>&1; then : 3630 3631else 3632 ac_cv_header_stdc=no 3633fi 3634rm -f conftest* 3635 3636fi 3637 3638if test $ac_cv_header_stdc = yes; then 3639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641/* end confdefs.h. */ 3642#include <stdlib.h> 3643 3644_ACEOF 3645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3646 $EGREP "free" >/dev/null 2>&1; then : 3647 3648else 3649 ac_cv_header_stdc=no 3650fi 3651rm -f conftest* 3652 3653fi 3654 3655if test $ac_cv_header_stdc = yes; then 3656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3657 if test "$cross_compiling" = yes; then : 3658 : 3659else 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662#include <ctype.h> 3663#include <stdlib.h> 3664#if ((' ' & 0x0FF) == 0x020) 3665# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3666# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3667#else 3668# define ISLOWER(c) \ 3669 (('a' <= (c) && (c) <= 'i') \ 3670 || ('j' <= (c) && (c) <= 'r') \ 3671 || ('s' <= (c) && (c) <= 'z')) 3672# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3673#endif 3674 3675#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3676int 3677main () 3678{ 3679 int i; 3680 for (i = 0; i < 256; i++) 3681 if (XOR (islower (i), ISLOWER (i)) 3682 || toupper (i) != TOUPPER (i)) 3683 return 2; 3684 return 0; 3685} 3686_ACEOF 3687if ac_fn_c_try_run "$LINENO"; then : 3688 3689else 3690 ac_cv_header_stdc=no 3691fi 3692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3693 conftest.$ac_objext conftest.beam conftest.$ac_ext 3694fi 3695 3696fi 3697fi 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3699$as_echo "$ac_cv_header_stdc" >&6; } 3700if test $ac_cv_header_stdc = yes; then 3701 3702$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3703 3704fi 3705 3706# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3707for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3708 inttypes.h stdint.h unistd.h 3709do : 3710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3711ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3712" 3713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3714 cat >>confdefs.h <<_ACEOF 3715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3716_ACEOF 3717 3718fi 3719 3720done 3721 3722 3723 3724 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3725if test "x$ac_cv_header_minix_config_h" = xyes; then : 3726 MINIX=yes 3727else 3728 MINIX= 3729fi 3730 3731 3732 if test "$MINIX" = yes; then 3733 3734$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3735 3736 3737$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3738 3739 3740$as_echo "#define _MINIX 1" >>confdefs.h 3741 3742 fi 3743 3744 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3746$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3747if ${ac_cv_safe_to_define___extensions__+:} false; then : 3748 $as_echo_n "(cached) " >&6 3749else 3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751/* end confdefs.h. */ 3752 3753# define __EXTENSIONS__ 1 3754 $ac_includes_default 3755int 3756main () 3757{ 3758 3759 ; 3760 return 0; 3761} 3762_ACEOF 3763if ac_fn_c_try_compile "$LINENO"; then : 3764 ac_cv_safe_to_define___extensions__=yes 3765else 3766 ac_cv_safe_to_define___extensions__=no 3767fi 3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3771$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3772 test $ac_cv_safe_to_define___extensions__ = yes && 3773 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3774 3775 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3776 3777 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3778 3779 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3780 3781 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3782 3783 3784am__api_version='1.15' 3785 3786# Find a good install program. We prefer a C program (faster), 3787# so one script is as good as another. But avoid the broken or 3788# incompatible versions: 3789# SysV /etc/install, /usr/sbin/install 3790# SunOS /usr/etc/install 3791# IRIX /sbin/install 3792# AIX /bin/install 3793# AmigaOS /C/install, which installs bootblocks on floppy discs 3794# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3795# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3796# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3797# OS/2's system install, which has a completely different semantic 3798# ./install, which can be erroneously created by make from ./install.sh. 3799# Reject install programs that cannot install multiple files. 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3801$as_echo_n "checking for a BSD-compatible install... " >&6; } 3802if test -z "$INSTALL"; then 3803if ${ac_cv_path_install+:} false; then : 3804 $as_echo_n "(cached) " >&6 3805else 3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3807for as_dir in $PATH 3808do 3809 IFS=$as_save_IFS 3810 test -z "$as_dir" && as_dir=. 3811 # Account for people who put trailing slashes in PATH elements. 3812case $as_dir/ in #(( 3813 ./ | .// | /[cC]/* | \ 3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3816 /usr/ucb/* ) ;; 3817 *) 3818 # OSF1 and SCO ODT 3.0 have their own names for install. 3819 # Don't use installbsd from OSF since it installs stuff as root 3820 # by default. 3821 for ac_prog in ginstall scoinst install; do 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3824 if test $ac_prog = install && 3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3826 # AIX install. It has an incompatible calling convention. 3827 : 3828 elif test $ac_prog = install && 3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3830 # program-specific install script used by HP pwplus--don't use. 3831 : 3832 else 3833 rm -rf conftest.one conftest.two conftest.dir 3834 echo one > conftest.one 3835 echo two > conftest.two 3836 mkdir conftest.dir 3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3838 test -s conftest.one && test -s conftest.two && 3839 test -s conftest.dir/conftest.one && 3840 test -s conftest.dir/conftest.two 3841 then 3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3843 break 3 3844 fi 3845 fi 3846 fi 3847 done 3848 done 3849 ;; 3850esac 3851 3852 done 3853IFS=$as_save_IFS 3854 3855rm -rf conftest.one conftest.two conftest.dir 3856 3857fi 3858 if test "${ac_cv_path_install+set}" = set; then 3859 INSTALL=$ac_cv_path_install 3860 else 3861 # As a last resort, use the slow shell script. Don't cache a 3862 # value for INSTALL within a source directory, because that will 3863 # break other packages using the cache if that directory is 3864 # removed, or if the value is a relative name. 3865 INSTALL=$ac_install_sh 3866 fi 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3869$as_echo "$INSTALL" >&6; } 3870 3871# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3872# It thinks the first close brace ends the variable substitution. 3873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3874 3875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3876 3877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3878 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3880$as_echo_n "checking whether build environment is sane... " >&6; } 3881# Reject unsafe characters in $srcdir or the absolute working directory 3882# name. Accept space and tab only in the latter. 3883am_lf=' 3884' 3885case `pwd` in 3886 *[\\\"\#\$\&\'\`$am_lf]*) 3887 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3888esac 3889case $srcdir in 3890 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3891 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3892esac 3893 3894# Do 'set' in a subshell so we don't clobber the current shell's 3895# arguments. Must try -L first in case configure is actually a 3896# symlink; some systems play weird games with the mod time of symlinks 3897# (eg FreeBSD returns the mod time of the symlink's containing 3898# directory). 3899if ( 3900 am_has_slept=no 3901 for am_try in 1 2; do 3902 echo "timestamp, slept: $am_has_slept" > conftest.file 3903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3904 if test "$*" = "X"; then 3905 # -L didn't work. 3906 set X `ls -t "$srcdir/configure" conftest.file` 3907 fi 3908 if test "$*" != "X $srcdir/configure conftest.file" \ 3909 && test "$*" != "X conftest.file $srcdir/configure"; then 3910 3911 # If neither matched, then we have a broken ls. This can happen 3912 # if, for instance, CONFIG_SHELL is bash and it inherits a 3913 # broken ls alias from the environment. This has actually 3914 # happened. Such a system could not be considered "sane". 3915 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3916 alias in your environment" "$LINENO" 5 3917 fi 3918 if test "$2" = conftest.file || test $am_try -eq 2; then 3919 break 3920 fi 3921 # Just in case. 3922 sleep 1 3923 am_has_slept=yes 3924 done 3925 test "$2" = conftest.file 3926 ) 3927then 3928 # Ok. 3929 : 3930else 3931 as_fn_error $? "newly created file is older than distributed files! 3932Check your system clock" "$LINENO" 5 3933fi 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3935$as_echo "yes" >&6; } 3936# If we didn't sleep, we still need to ensure time stamps of config.status and 3937# generated files are strictly newer. 3938am_sleep_pid= 3939if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3940 ( sleep 1 ) & 3941 am_sleep_pid=$! 3942fi 3943 3944rm -f conftest.file 3945 3946test "$program_prefix" != NONE && 3947 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3948# Use a double $ so make ignores it. 3949test "$program_suffix" != NONE && 3950 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3951# Double any \ or $. 3952# By default was `s,x,x', remove it if useless. 3953ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3954program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3955 3956if test x"${MISSING+set}" != xset; then 3957 case $am_aux_dir in 3958 *\ * | *\ *) 3959 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3960 *) 3961 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3962 esac 3963fi 3964# Use eval to expand $SHELL 3965if eval "$MISSING --is-lightweight"; then 3966 am_missing_run="$MISSING " 3967else 3968 am_missing_run= 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3970$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3971fi 3972 3973if test x"${install_sh+set}" != xset; then 3974 case $am_aux_dir in 3975 *\ * | *\ *) 3976 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3977 *) 3978 install_sh="\${SHELL} $am_aux_dir/install-sh" 3979 esac 3980fi 3981 3982# Installed binaries are usually stripped using 'strip' when the user 3983# run "make install-strip". However 'strip' might not be the right 3984# tool to use in cross-compilation environments, therefore Automake 3985# will honor the 'STRIP' environment variable to overrule this program. 3986if test "$cross_compiling" != no; then 3987 if test -n "$ac_tool_prefix"; then 3988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3989set dummy ${ac_tool_prefix}strip; ac_word=$2 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3991$as_echo_n "checking for $ac_word... " >&6; } 3992if ${ac_cv_prog_STRIP+:} false; then : 3993 $as_echo_n "(cached) " >&6 3994else 3995 if test -n "$STRIP"; then 3996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3997else 3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3999for as_dir in $PATH 4000do 4001 IFS=$as_save_IFS 4002 test -z "$as_dir" && as_dir=. 4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4005 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4007 break 2 4008 fi 4009done 4010 done 4011IFS=$as_save_IFS 4012 4013fi 4014fi 4015STRIP=$ac_cv_prog_STRIP 4016if test -n "$STRIP"; then 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4018$as_echo "$STRIP" >&6; } 4019else 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4021$as_echo "no" >&6; } 4022fi 4023 4024 4025fi 4026if test -z "$ac_cv_prog_STRIP"; then 4027 ac_ct_STRIP=$STRIP 4028 # Extract the first word of "strip", so it can be a program name with args. 4029set dummy strip; ac_word=$2 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4031$as_echo_n "checking for $ac_word... " >&6; } 4032if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 if test -n "$ac_ct_STRIP"; then 4036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4037else 4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4039for as_dir in $PATH 4040do 4041 IFS=$as_save_IFS 4042 test -z "$as_dir" && as_dir=. 4043 for ac_exec_ext in '' $ac_executable_extensions; do 4044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4045 ac_cv_prog_ac_ct_STRIP="strip" 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4047 break 2 4048 fi 4049done 4050 done 4051IFS=$as_save_IFS 4052 4053fi 4054fi 4055ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4056if test -n "$ac_ct_STRIP"; then 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4058$as_echo "$ac_ct_STRIP" >&6; } 4059else 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4061$as_echo "no" >&6; } 4062fi 4063 4064 if test "x$ac_ct_STRIP" = x; then 4065 STRIP=":" 4066 else 4067 case $cross_compiling:$ac_tool_warned in 4068yes:) 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4071ac_tool_warned=yes ;; 4072esac 4073 STRIP=$ac_ct_STRIP 4074 fi 4075else 4076 STRIP="$ac_cv_prog_STRIP" 4077fi 4078 4079fi 4080INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4081 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4083$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4084if test -z "$MKDIR_P"; then 4085 if ${ac_cv_path_mkdir+:} false; then : 4086 $as_echo_n "(cached) " >&6 4087else 4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4089for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4090do 4091 IFS=$as_save_IFS 4092 test -z "$as_dir" && as_dir=. 4093 for ac_prog in mkdir gmkdir; do 4094 for ac_exec_ext in '' $ac_executable_extensions; do 4095 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4096 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4097 'mkdir (GNU coreutils) '* | \ 4098 'mkdir (coreutils) '* | \ 4099 'mkdir (fileutils) '4.1*) 4100 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4101 break 3;; 4102 esac 4103 done 4104 done 4105 done 4106IFS=$as_save_IFS 4107 4108fi 4109 4110 test -d ./--version && rmdir ./--version 4111 if test "${ac_cv_path_mkdir+set}" = set; then 4112 MKDIR_P="$ac_cv_path_mkdir -p" 4113 else 4114 # As a last resort, use the slow shell script. Don't cache a 4115 # value for MKDIR_P within a source directory, because that will 4116 # break other packages using the cache if that directory is 4117 # removed, or if the value is a relative name. 4118 MKDIR_P="$ac_install_sh -d" 4119 fi 4120fi 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4122$as_echo "$MKDIR_P" >&6; } 4123 4124for ac_prog in gawk mawk nawk awk 4125do 4126 # Extract the first word of "$ac_prog", so it can be a program name with args. 4127set dummy $ac_prog; ac_word=$2 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4129$as_echo_n "checking for $ac_word... " >&6; } 4130if ${ac_cv_prog_AWK+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132else 4133 if test -n "$AWK"; then 4134 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4135else 4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137for as_dir in $PATH 4138do 4139 IFS=$as_save_IFS 4140 test -z "$as_dir" && as_dir=. 4141 for ac_exec_ext in '' $ac_executable_extensions; do 4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4143 ac_cv_prog_AWK="$ac_prog" 4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4145 break 2 4146 fi 4147done 4148 done 4149IFS=$as_save_IFS 4150 4151fi 4152fi 4153AWK=$ac_cv_prog_AWK 4154if test -n "$AWK"; then 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4156$as_echo "$AWK" >&6; } 4157else 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4159$as_echo "no" >&6; } 4160fi 4161 4162 4163 test -n "$AWK" && break 4164done 4165 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4167$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4168set x ${MAKE-make} 4169ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4170if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4171 $as_echo_n "(cached) " >&6 4172else 4173 cat >conftest.make <<\_ACEOF 4174SHELL = /bin/sh 4175all: 4176 @echo '@@@%%%=$(MAKE)=@@@%%%' 4177_ACEOF 4178# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4179case `${MAKE-make} -f conftest.make 2>/dev/null` in 4180 *@@@%%%=?*=@@@%%%*) 4181 eval ac_cv_prog_make_${ac_make}_set=yes;; 4182 *) 4183 eval ac_cv_prog_make_${ac_make}_set=no;; 4184esac 4185rm -f conftest.make 4186fi 4187if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4189$as_echo "yes" >&6; } 4190 SET_MAKE= 4191else 4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4193$as_echo "no" >&6; } 4194 SET_MAKE="MAKE=${MAKE-make}" 4195fi 4196 4197rm -rf .tst 2>/dev/null 4198mkdir .tst 2>/dev/null 4199if test -d .tst; then 4200 am__leading_dot=. 4201else 4202 am__leading_dot=_ 4203fi 4204rmdir .tst 2>/dev/null 4205 4206DEPDIR="${am__leading_dot}deps" 4207 4208ac_config_commands="$ac_config_commands depfiles" 4209 4210 4211am_make=${MAKE-make} 4212cat > confinc << 'END' 4213am__doit: 4214 @echo this is the am__doit target 4215.PHONY: am__doit 4216END 4217# If we don't find an include directive, just comment out the code. 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4219$as_echo_n "checking for style of include used by $am_make... " >&6; } 4220am__include="#" 4221am__quote= 4222_am_result=none 4223# First try GNU make style include. 4224echo "include confinc" > confmf 4225# Ignore all kinds of additional output from 'make'. 4226case `$am_make -s -f confmf 2> /dev/null` in #( 4227*the\ am__doit\ target*) 4228 am__include=include 4229 am__quote= 4230 _am_result=GNU 4231 ;; 4232esac 4233# Now try BSD make style include. 4234if test "$am__include" = "#"; then 4235 echo '.include "confinc"' > confmf 4236 case `$am_make -s -f confmf 2> /dev/null` in #( 4237 *the\ am__doit\ target*) 4238 am__include=.include 4239 am__quote="\"" 4240 _am_result=BSD 4241 ;; 4242 esac 4243fi 4244 4245 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4247$as_echo "$_am_result" >&6; } 4248rm -f confinc confmf 4249 4250# Check whether --enable-dependency-tracking was given. 4251if test "${enable_dependency_tracking+set}" = set; then : 4252 enableval=$enable_dependency_tracking; 4253fi 4254 4255if test "x$enable_dependency_tracking" != xno; then 4256 am_depcomp="$ac_aux_dir/depcomp" 4257 AMDEPBACKSLASH='\' 4258 am__nodep='_no' 4259fi 4260 if test "x$enable_dependency_tracking" != xno; then 4261 AMDEP_TRUE= 4262 AMDEP_FALSE='#' 4263else 4264 AMDEP_TRUE='#' 4265 AMDEP_FALSE= 4266fi 4267 4268 4269# Check whether --enable-silent-rules was given. 4270if test "${enable_silent_rules+set}" = set; then : 4271 enableval=$enable_silent_rules; 4272fi 4273 4274case $enable_silent_rules in # ((( 4275 yes) AM_DEFAULT_VERBOSITY=0;; 4276 no) AM_DEFAULT_VERBOSITY=1;; 4277 *) AM_DEFAULT_VERBOSITY=1;; 4278esac 4279am_make=${MAKE-make} 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4281$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4282if ${am_cv_make_support_nested_variables+:} false; then : 4283 $as_echo_n "(cached) " >&6 4284else 4285 if $as_echo 'TRUE=$(BAR$(V)) 4286BAR0=false 4287BAR1=true 4288V=1 4289am__doit: 4290 @$(TRUE) 4291.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4292 am_cv_make_support_nested_variables=yes 4293else 4294 am_cv_make_support_nested_variables=no 4295fi 4296fi 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4298$as_echo "$am_cv_make_support_nested_variables" >&6; } 4299if test $am_cv_make_support_nested_variables = yes; then 4300 AM_V='$(V)' 4301 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4302else 4303 AM_V=$AM_DEFAULT_VERBOSITY 4304 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4305fi 4306AM_BACKSLASH='\' 4307 4308if test "`cd $srcdir && pwd`" != "`pwd`"; then 4309 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4310 # is not polluted with repeated "-I." 4311 am__isrc=' -I$(srcdir)' 4312 # test to see if srcdir already configured 4313 if test -f $srcdir/config.status; then 4314 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4315 fi 4316fi 4317 4318# test whether we have cygpath 4319if test -z "$CYGPATH_W"; then 4320 if (cygpath --version) >/dev/null 2>/dev/null; then 4321 CYGPATH_W='cygpath -w' 4322 else 4323 CYGPATH_W=echo 4324 fi 4325fi 4326 4327 4328# Define the identity of the package. 4329 PACKAGE='libctf' 4330 VERSION='1.2.0' 4331 4332 4333cat >>confdefs.h <<_ACEOF 4334#define PACKAGE "$PACKAGE" 4335_ACEOF 4336 4337 4338cat >>confdefs.h <<_ACEOF 4339#define VERSION "$VERSION" 4340_ACEOF 4341 4342# Some tools Automake needs. 4343 4344ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4345 4346 4347AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4348 4349 4350AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4351 4352 4353AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4354 4355 4356MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4357 4358# For better backward compatibility. To be removed once Automake 1.9.x 4359# dies out for good. For more background, see: 4360# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4361# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4362mkdir_p='$(MKDIR_P)' 4363 4364# We need awk for the "check" target (and possibly the TAP driver). The 4365# system "awk" is bad on some platforms. 4366# Always define AMTAR for backward compatibility. Yes, it's still used 4367# in the wild :-( We should find a proper way to deprecate it ... 4368AMTAR='$${TAR-tar}' 4369 4370 4371# We'll loop over all known methods to create a tar archive until one works. 4372_am_tools='gnutar pax cpio none' 4373 4374am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4375 4376 4377 4378 4379 4380depcc="$CC" am_compiler_list= 4381 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4383$as_echo_n "checking dependency style of $depcc... " >&6; } 4384if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4388 # We make a subdir and do the tests there. Otherwise we can end up 4389 # making bogus files that we don't know about and never remove. For 4390 # instance it was reported that on HP-UX the gcc test will end up 4391 # making a dummy file named 'D' -- because '-MD' means "put the output 4392 # in D". 4393 rm -rf conftest.dir 4394 mkdir conftest.dir 4395 # Copy depcomp to subdir because otherwise we won't find it if we're 4396 # using a relative directory. 4397 cp "$am_depcomp" conftest.dir 4398 cd conftest.dir 4399 # We will build objects and dependencies in a subdirectory because 4400 # it helps to detect inapplicable dependency modes. For instance 4401 # both Tru64's cc and ICC support -MD to output dependencies as a 4402 # side effect of compilation, but ICC will put the dependencies in 4403 # the current directory while Tru64 will put them in the object 4404 # directory. 4405 mkdir sub 4406 4407 am_cv_CC_dependencies_compiler_type=none 4408 if test "$am_compiler_list" = ""; then 4409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4410 fi 4411 am__universal=false 4412 case " $depcc " in #( 4413 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4414 esac 4415 4416 for depmode in $am_compiler_list; do 4417 # Setup a source with many dependencies, because some compilers 4418 # like to wrap large dependency lists on column 80 (with \), and 4419 # we should not choose a depcomp mode which is confused by this. 4420 # 4421 # We need to recreate these files for each test, as the compiler may 4422 # overwrite some of them when testing with obscure command lines. 4423 # This happens at least with the AIX C compiler. 4424 : > sub/conftest.c 4425 for i in 1 2 3 4 5 6; do 4426 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4427 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4428 # Solaris 10 /bin/sh. 4429 echo '/* dummy */' > sub/conftst$i.h 4430 done 4431 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4432 4433 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4434 # mode. It turns out that the SunPro C++ compiler does not properly 4435 # handle '-M -o', and we need to detect this. Also, some Intel 4436 # versions had trouble with output in subdirs. 4437 am__obj=sub/conftest.${OBJEXT-o} 4438 am__minus_obj="-o $am__obj" 4439 case $depmode in 4440 gcc) 4441 # This depmode causes a compiler race in universal mode. 4442 test "$am__universal" = false || continue 4443 ;; 4444 nosideeffect) 4445 # After this tag, mechanisms are not by side-effect, so they'll 4446 # only be used when explicitly requested. 4447 if test "x$enable_dependency_tracking" = xyes; then 4448 continue 4449 else 4450 break 4451 fi 4452 ;; 4453 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4454 # This compiler won't grok '-c -o', but also, the minuso test has 4455 # not run yet. These depmodes are late enough in the game, and 4456 # so weak that their functioning should not be impacted. 4457 am__obj=conftest.${OBJEXT-o} 4458 am__minus_obj= 4459 ;; 4460 none) break ;; 4461 esac 4462 if depmode=$depmode \ 4463 source=sub/conftest.c object=$am__obj \ 4464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4465 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4466 >/dev/null 2>conftest.err && 4467 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4469 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4471 # icc doesn't choke on unknown options, it will just issue warnings 4472 # or remarks (even with -Werror). So we grep stderr for any message 4473 # that says an option was ignored or not supported. 4474 # When given -MP, icc 7.0 and 7.1 complain thusly: 4475 # icc: Command line warning: ignoring option '-M'; no argument required 4476 # The diagnosis changed in icc 8.0: 4477 # icc: Command line remark: option '-MP' not supported 4478 if (grep 'ignoring option' conftest.err || 4479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4480 am_cv_CC_dependencies_compiler_type=$depmode 4481 break 4482 fi 4483 fi 4484 done 4485 4486 cd .. 4487 rm -rf conftest.dir 4488else 4489 am_cv_CC_dependencies_compiler_type=none 4490fi 4491 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4494$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4495CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4496 4497 if 4498 test "x$enable_dependency_tracking" != xno \ 4499 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4500 am__fastdepCC_TRUE= 4501 am__fastdepCC_FALSE='#' 4502else 4503 am__fastdepCC_TRUE='#' 4504 am__fastdepCC_FALSE= 4505fi 4506 4507 4508 4509# POSIX will say in a future version that running "rm -f" with no argument 4510# is OK; and we want to be able to make that assumption in our Makefile 4511# recipes. So use an aggressive probe to check that the usage we want is 4512# actually supported "in the wild" to an acceptable degree. 4513# See automake bug#10828. 4514# To make any issue more visible, cause the running configure to be aborted 4515# by default if the 'rm' program in use doesn't match our expectations; the 4516# user can still override this though. 4517if rm -f && rm -fr && rm -rf; then : OK; else 4518 cat >&2 <<'END' 4519Oops! 4520 4521Your 'rm' program seems unable to run without file operands specified 4522on the command line, even when the '-f' option is present. This is contrary 4523to the behaviour of most rm programs out there, and not conforming with 4524the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4525 4526Please tell bug-automake@gnu.org about your system, including the value 4527of your $PATH and any error possibly output before this message. This 4528can help us improve future automake versions. 4529 4530END 4531 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4532 echo 'Configuration will proceed anyway, since you have set the' >&2 4533 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4534 echo >&2 4535 else 4536 cat >&2 <<'END' 4537Aborting the configuration process, to ensure you take notice of the issue. 4538 4539You can download and install GNU coreutils to get an 'rm' implementation 4540that behaves properly: <http://www.gnu.org/software/coreutils/>. 4541 4542If you want to complete the configuration process using your problematic 4543'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4544to "yes", and re-run configure. 4545 4546END 4547 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4548 fi 4549fi 4550 4551# Check whether --enable-silent-rules was given. 4552if test "${enable_silent_rules+set}" = set; then : 4553 enableval=$enable_silent_rules; 4554fi 4555 4556case $enable_silent_rules in # ((( 4557 yes) AM_DEFAULT_VERBOSITY=0;; 4558 no) AM_DEFAULT_VERBOSITY=1;; 4559 *) AM_DEFAULT_VERBOSITY=0;; 4560esac 4561am_make=${MAKE-make} 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4563$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4564if ${am_cv_make_support_nested_variables+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 if $as_echo 'TRUE=$(BAR$(V)) 4568BAR0=false 4569BAR1=true 4570V=1 4571am__doit: 4572 @$(TRUE) 4573.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4574 am_cv_make_support_nested_variables=yes 4575else 4576 am_cv_make_support_nested_variables=no 4577fi 4578fi 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4580$as_echo "$am_cv_make_support_nested_variables" >&6; } 4581if test $am_cv_make_support_nested_variables = yes; then 4582 AM_V='$(V)' 4583 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4584else 4585 AM_V=$AM_DEFAULT_VERBOSITY 4586 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4587fi 4588AM_BACKSLASH='\' 4589 4590 4591# Checks for programs. 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4593$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4594set x ${MAKE-make} 4595ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4596if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598else 4599 cat >conftest.make <<\_ACEOF 4600SHELL = /bin/sh 4601all: 4602 @echo '@@@%%%=$(MAKE)=@@@%%%' 4603_ACEOF 4604# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4605case `${MAKE-make} -f conftest.make 2>/dev/null` in 4606 *@@@%%%=?*=@@@%%%*) 4607 eval ac_cv_prog_make_${ac_make}_set=yes;; 4608 *) 4609 eval ac_cv_prog_make_${ac_make}_set=no;; 4610esac 4611rm -f conftest.make 4612fi 4613if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4615$as_echo "yes" >&6; } 4616 SET_MAKE= 4617else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619$as_echo "no" >&6; } 4620 SET_MAKE="MAKE=${MAKE-make}" 4621fi 4622 4623ac_ext=c 4624ac_cpp='$CPP $CPPFLAGS' 4625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4627ac_compiler_gnu=$ac_cv_c_compiler_gnu 4628if test -n "$ac_tool_prefix"; then 4629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4630set dummy ${ac_tool_prefix}gcc; ac_word=$2 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4632$as_echo_n "checking for $ac_word... " >&6; } 4633if ${ac_cv_prog_CC+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 if test -n "$CC"; then 4637 ac_cv_prog_CC="$CC" # Let the user override the test. 4638else 4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4640for as_dir in $PATH 4641do 4642 IFS=$as_save_IFS 4643 test -z "$as_dir" && as_dir=. 4644 for ac_exec_ext in '' $ac_executable_extensions; do 4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4646 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4648 break 2 4649 fi 4650done 4651 done 4652IFS=$as_save_IFS 4653 4654fi 4655fi 4656CC=$ac_cv_prog_CC 4657if test -n "$CC"; then 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4659$as_echo "$CC" >&6; } 4660else 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4662$as_echo "no" >&6; } 4663fi 4664 4665 4666fi 4667if test -z "$ac_cv_prog_CC"; then 4668 ac_ct_CC=$CC 4669 # Extract the first word of "gcc", so it can be a program name with args. 4670set dummy gcc; ac_word=$2 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4672$as_echo_n "checking for $ac_word... " >&6; } 4673if ${ac_cv_prog_ac_ct_CC+:} false; then : 4674 $as_echo_n "(cached) " >&6 4675else 4676 if test -n "$ac_ct_CC"; then 4677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4678else 4679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4680for as_dir in $PATH 4681do 4682 IFS=$as_save_IFS 4683 test -z "$as_dir" && as_dir=. 4684 for ac_exec_ext in '' $ac_executable_extensions; do 4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4686 ac_cv_prog_ac_ct_CC="gcc" 4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4688 break 2 4689 fi 4690done 4691 done 4692IFS=$as_save_IFS 4693 4694fi 4695fi 4696ac_ct_CC=$ac_cv_prog_ac_ct_CC 4697if test -n "$ac_ct_CC"; then 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4699$as_echo "$ac_ct_CC" >&6; } 4700else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702$as_echo "no" >&6; } 4703fi 4704 4705 if test "x$ac_ct_CC" = x; then 4706 CC="" 4707 else 4708 case $cross_compiling:$ac_tool_warned in 4709yes:) 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4712ac_tool_warned=yes ;; 4713esac 4714 CC=$ac_ct_CC 4715 fi 4716else 4717 CC="$ac_cv_prog_CC" 4718fi 4719 4720if test -z "$CC"; then 4721 if test -n "$ac_tool_prefix"; then 4722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4723set dummy ${ac_tool_prefix}cc; ac_word=$2 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4725$as_echo_n "checking for $ac_word... " >&6; } 4726if ${ac_cv_prog_CC+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 if test -n "$CC"; then 4730 ac_cv_prog_CC="$CC" # Let the user override the test. 4731else 4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4733for as_dir in $PATH 4734do 4735 IFS=$as_save_IFS 4736 test -z "$as_dir" && as_dir=. 4737 for ac_exec_ext in '' $ac_executable_extensions; do 4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4739 ac_cv_prog_CC="${ac_tool_prefix}cc" 4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4741 break 2 4742 fi 4743done 4744 done 4745IFS=$as_save_IFS 4746 4747fi 4748fi 4749CC=$ac_cv_prog_CC 4750if test -n "$CC"; then 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4752$as_echo "$CC" >&6; } 4753else 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4755$as_echo "no" >&6; } 4756fi 4757 4758 4759 fi 4760fi 4761if test -z "$CC"; then 4762 # Extract the first word of "cc", so it can be a program name with args. 4763set dummy cc; ac_word=$2 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4765$as_echo_n "checking for $ac_word... " >&6; } 4766if ${ac_cv_prog_CC+:} false; then : 4767 $as_echo_n "(cached) " >&6 4768else 4769 if test -n "$CC"; then 4770 ac_cv_prog_CC="$CC" # Let the user override the test. 4771else 4772 ac_prog_rejected=no 4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH 4775do 4776 IFS=$as_save_IFS 4777 test -z "$as_dir" && as_dir=. 4778 for ac_exec_ext in '' $ac_executable_extensions; do 4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4781 ac_prog_rejected=yes 4782 continue 4783 fi 4784 ac_cv_prog_CC="cc" 4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4786 break 2 4787 fi 4788done 4789 done 4790IFS=$as_save_IFS 4791 4792if test $ac_prog_rejected = yes; then 4793 # We found a bogon in the path, so make sure we never use it. 4794 set dummy $ac_cv_prog_CC 4795 shift 4796 if test $# != 0; then 4797 # We chose a different compiler from the bogus one. 4798 # However, it has the same basename, so the bogon will be chosen 4799 # first if we set CC to just the basename; use the full file name. 4800 shift 4801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4802 fi 4803fi 4804fi 4805fi 4806CC=$ac_cv_prog_CC 4807if test -n "$CC"; then 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4809$as_echo "$CC" >&6; } 4810else 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4812$as_echo "no" >&6; } 4813fi 4814 4815 4816fi 4817if test -z "$CC"; then 4818 if test -n "$ac_tool_prefix"; then 4819 for ac_prog in cl.exe 4820 do 4821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4822set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4824$as_echo_n "checking for $ac_word... " >&6; } 4825if ${ac_cv_prog_CC+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 if test -n "$CC"; then 4829 ac_cv_prog_CC="$CC" # Let the user override the test. 4830else 4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832for as_dir in $PATH 4833do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842done 4843 done 4844IFS=$as_save_IFS 4845 4846fi 4847fi 4848CC=$ac_cv_prog_CC 4849if test -n "$CC"; then 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4851$as_echo "$CC" >&6; } 4852else 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854$as_echo "no" >&6; } 4855fi 4856 4857 4858 test -n "$CC" && break 4859 done 4860fi 4861if test -z "$CC"; then 4862 ac_ct_CC=$CC 4863 for ac_prog in cl.exe 4864do 4865 # Extract the first word of "$ac_prog", so it can be a program name with args. 4866set dummy $ac_prog; ac_word=$2 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4868$as_echo_n "checking for $ac_word... " >&6; } 4869if ${ac_cv_prog_ac_ct_CC+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 if test -n "$ac_ct_CC"; then 4873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4874else 4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in $PATH 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4882 ac_cv_prog_ac_ct_CC="$ac_prog" 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886done 4887 done 4888IFS=$as_save_IFS 4889 4890fi 4891fi 4892ac_ct_CC=$ac_cv_prog_ac_ct_CC 4893if test -n "$ac_ct_CC"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4895$as_echo "$ac_ct_CC" >&6; } 4896else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4898$as_echo "no" >&6; } 4899fi 4900 4901 4902 test -n "$ac_ct_CC" && break 4903done 4904 4905 if test "x$ac_ct_CC" = x; then 4906 CC="" 4907 else 4908 case $cross_compiling:$ac_tool_warned in 4909yes:) 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4912ac_tool_warned=yes ;; 4913esac 4914 CC=$ac_ct_CC 4915 fi 4916fi 4917 4918fi 4919 4920 4921test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4923as_fn_error $? "no acceptable C compiler found in \$PATH 4924See \`config.log' for more details" "$LINENO" 5; } 4925 4926# Provide some information about the compiler. 4927$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4928set X $ac_compile 4929ac_compiler=$2 4930for ac_option in --version -v -V -qversion; do 4931 { { ac_try="$ac_compiler $ac_option >&5" 4932case "(($ac_try" in 4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4934 *) ac_try_echo=$ac_try;; 4935esac 4936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4937$as_echo "$ac_try_echo"; } >&5 4938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4939 ac_status=$? 4940 if test -s conftest.err; then 4941 sed '10a\ 4942... rest of stderr output deleted ... 4943 10q' conftest.err >conftest.er1 4944 cat conftest.er1 >&5 4945 fi 4946 rm -f conftest.er1 conftest.err 4947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4948 test $ac_status = 0; } 4949done 4950 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4952$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4953if ${ac_cv_c_compiler_gnu+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958 4959int 4960main () 4961{ 4962#ifndef __GNUC__ 4963 choke me 4964#endif 4965 4966 ; 4967 return 0; 4968} 4969_ACEOF 4970if ac_fn_c_try_compile "$LINENO"; then : 4971 ac_compiler_gnu=yes 4972else 4973 ac_compiler_gnu=no 4974fi 4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4976ac_cv_c_compiler_gnu=$ac_compiler_gnu 4977 4978fi 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4980$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4981if test $ac_compiler_gnu = yes; then 4982 GCC=yes 4983else 4984 GCC= 4985fi 4986ac_test_CFLAGS=${CFLAGS+set} 4987ac_save_CFLAGS=$CFLAGS 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4989$as_echo_n "checking whether $CC accepts -g... " >&6; } 4990if ${ac_cv_prog_cc_g+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 ac_save_c_werror_flag=$ac_c_werror_flag 4994 ac_c_werror_flag=yes 4995 ac_cv_prog_cc_g=no 4996 CFLAGS="-g" 4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998/* end confdefs.h. */ 4999 5000int 5001main () 5002{ 5003 5004 ; 5005 return 0; 5006} 5007_ACEOF 5008if ac_fn_c_try_compile "$LINENO"; then : 5009 ac_cv_prog_cc_g=yes 5010else 5011 CFLAGS="" 5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013/* end confdefs.h. */ 5014 5015int 5016main () 5017{ 5018 5019 ; 5020 return 0; 5021} 5022_ACEOF 5023if ac_fn_c_try_compile "$LINENO"; then : 5024 5025else 5026 ac_c_werror_flag=$ac_save_c_werror_flag 5027 CFLAGS="-g" 5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5029/* end confdefs.h. */ 5030 5031int 5032main () 5033{ 5034 5035 ; 5036 return 0; 5037} 5038_ACEOF 5039if ac_fn_c_try_compile "$LINENO"; then : 5040 ac_cv_prog_cc_g=yes 5041fi 5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5043fi 5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5045fi 5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5047 ac_c_werror_flag=$ac_save_c_werror_flag 5048fi 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5050$as_echo "$ac_cv_prog_cc_g" >&6; } 5051if test "$ac_test_CFLAGS" = set; then 5052 CFLAGS=$ac_save_CFLAGS 5053elif test $ac_cv_prog_cc_g = yes; then 5054 if test "$GCC" = yes; then 5055 CFLAGS="-g -O2" 5056 else 5057 CFLAGS="-g" 5058 fi 5059else 5060 if test "$GCC" = yes; then 5061 CFLAGS="-O2" 5062 else 5063 CFLAGS= 5064 fi 5065fi 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5067$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5068if ${ac_cv_prog_cc_c89+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070else 5071 ac_cv_prog_cc_c89=no 5072ac_save_CC=$CC 5073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074/* end confdefs.h. */ 5075#include <stdarg.h> 5076#include <stdio.h> 5077struct stat; 5078/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5079struct buf { int x; }; 5080FILE * (*rcsopen) (struct buf *, struct stat *, int); 5081static char *e (p, i) 5082 char **p; 5083 int i; 5084{ 5085 return p[i]; 5086} 5087static char *f (char * (*g) (char **, int), char **p, ...) 5088{ 5089 char *s; 5090 va_list v; 5091 va_start (v,p); 5092 s = g (p, va_arg (v,int)); 5093 va_end (v); 5094 return s; 5095} 5096 5097/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5098 function prototypes and stuff, but not '\xHH' hex character constants. 5099 These don't provoke an error unfortunately, instead are silently treated 5100 as 'x'. The following induces an error, until -std is added to get 5101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5102 array size at least. It's necessary to write '\x00'==0 to get something 5103 that's true only with -std. */ 5104int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5105 5106/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5107 inside strings and character constants. */ 5108#define FOO(x) 'x' 5109int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5110 5111int test (int i, double x); 5112struct s1 {int (*f) (int a);}; 5113struct s2 {int (*f) (double a);}; 5114int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5115int argc; 5116char **argv; 5117int 5118main () 5119{ 5120return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5121 ; 5122 return 0; 5123} 5124_ACEOF 5125for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5127do 5128 CC="$ac_save_CC $ac_arg" 5129 if ac_fn_c_try_compile "$LINENO"; then : 5130 ac_cv_prog_cc_c89=$ac_arg 5131fi 5132rm -f core conftest.err conftest.$ac_objext 5133 test "x$ac_cv_prog_cc_c89" != "xno" && break 5134done 5135rm -f conftest.$ac_ext 5136CC=$ac_save_CC 5137 5138fi 5139# AC_CACHE_VAL 5140case "x$ac_cv_prog_cc_c89" in 5141 x) 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5143$as_echo "none needed" >&6; } ;; 5144 xno) 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5146$as_echo "unsupported" >&6; } ;; 5147 *) 5148 CC="$CC $ac_cv_prog_cc_c89" 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5150$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5151esac 5152if test "x$ac_cv_prog_cc_c89" != xno; then : 5153 5154fi 5155 5156ac_ext=c 5157ac_cpp='$CPP $CPPFLAGS' 5158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5160ac_compiler_gnu=$ac_cv_c_compiler_gnu 5161 5162ac_ext=c 5163ac_cpp='$CPP $CPPFLAGS' 5164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5166ac_compiler_gnu=$ac_cv_c_compiler_gnu 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5168$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5169if ${am_cv_prog_cc_c_o+:} false; then : 5170 $as_echo_n "(cached) " >&6 5171else 5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5173/* end confdefs.h. */ 5174 5175int 5176main () 5177{ 5178 5179 ; 5180 return 0; 5181} 5182_ACEOF 5183 # Make sure it works both with $CC and with simple cc. 5184 # Following AC_PROG_CC_C_O, we do the test twice because some 5185 # compilers refuse to overwrite an existing .o file with -o, 5186 # though they will create one. 5187 am_cv_prog_cc_c_o=yes 5188 for am_i in 1 2; do 5189 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5190 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5191 ac_status=$? 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5193 (exit $ac_status); } \ 5194 && test -f conftest2.$ac_objext; then 5195 : OK 5196 else 5197 am_cv_prog_cc_c_o=no 5198 break 5199 fi 5200 done 5201 rm -f core conftest* 5202 unset am_i 5203fi 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5205$as_echo "$am_cv_prog_cc_c_o" >&6; } 5206if test "$am_cv_prog_cc_c_o" != yes; then 5207 # Losing compiler, so override with the script. 5208 # FIXME: It is wrong to rewrite CC. 5209 # But if we don't then we get into trouble of one sort or another. 5210 # A longer-term fix would be to have automake use am__CC in this case, 5211 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5212 CC="$am_aux_dir/compile $CC" 5213fi 5214ac_ext=c 5215ac_cpp='$CPP $CPPFLAGS' 5216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5218ac_compiler_gnu=$ac_cv_c_compiler_gnu 5219 5220 5221if test -n "$ac_tool_prefix"; then 5222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5223set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5225$as_echo_n "checking for $ac_word... " >&6; } 5226if ${ac_cv_prog_RANLIB+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 if test -n "$RANLIB"; then 5230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5231else 5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233for as_dir in $PATH 5234do 5235 IFS=$as_save_IFS 5236 test -z "$as_dir" && as_dir=. 5237 for ac_exec_ext in '' $ac_executable_extensions; do 5238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5241 break 2 5242 fi 5243done 5244 done 5245IFS=$as_save_IFS 5246 5247fi 5248fi 5249RANLIB=$ac_cv_prog_RANLIB 5250if test -n "$RANLIB"; then 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5252$as_echo "$RANLIB" >&6; } 5253else 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5255$as_echo "no" >&6; } 5256fi 5257 5258 5259fi 5260if test -z "$ac_cv_prog_RANLIB"; then 5261 ac_ct_RANLIB=$RANLIB 5262 # Extract the first word of "ranlib", so it can be a program name with args. 5263set dummy ranlib; ac_word=$2 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5265$as_echo_n "checking for $ac_word... " >&6; } 5266if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 if test -n "$ac_ct_RANLIB"; then 5270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5271else 5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH 5274do 5275 IFS=$as_save_IFS 5276 test -z "$as_dir" && as_dir=. 5277 for ac_exec_ext in '' $ac_executable_extensions; do 5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5279 ac_cv_prog_ac_ct_RANLIB="ranlib" 5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5281 break 2 5282 fi 5283done 5284 done 5285IFS=$as_save_IFS 5286 5287fi 5288fi 5289ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5290if test -n "$ac_ct_RANLIB"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5292$as_echo "$ac_ct_RANLIB" >&6; } 5293else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295$as_echo "no" >&6; } 5296fi 5297 5298 if test "x$ac_ct_RANLIB" = x; then 5299 RANLIB=":" 5300 else 5301 case $cross_compiling:$ac_tool_warned in 5302yes:) 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5305ac_tool_warned=yes ;; 5306esac 5307 RANLIB=$ac_ct_RANLIB 5308 fi 5309else 5310 RANLIB="$ac_cv_prog_RANLIB" 5311fi 5312 5313if test -n "$ac_tool_prefix"; then 5314 for ac_prog in ar lib "link -lib" 5315 do 5316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5317set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5319$as_echo_n "checking for $ac_word... " >&6; } 5320if ${ac_cv_prog_AR+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 if test -n "$AR"; then 5324 ac_cv_prog_AR="$AR" # Let the user override the test. 5325else 5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327for as_dir in $PATH 5328do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5333 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337done 5338 done 5339IFS=$as_save_IFS 5340 5341fi 5342fi 5343AR=$ac_cv_prog_AR 5344if test -n "$AR"; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5346$as_echo "$AR" >&6; } 5347else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5349$as_echo "no" >&6; } 5350fi 5351 5352 5353 test -n "$AR" && break 5354 done 5355fi 5356if test -z "$AR"; then 5357 ac_ct_AR=$AR 5358 for ac_prog in ar lib "link -lib" 5359do 5360 # Extract the first word of "$ac_prog", so it can be a program name with args. 5361set dummy $ac_prog; ac_word=$2 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5363$as_echo_n "checking for $ac_word... " >&6; } 5364if ${ac_cv_prog_ac_ct_AR+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366else 5367 if test -n "$ac_ct_AR"; then 5368 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5369else 5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5371for as_dir in $PATH 5372do 5373 IFS=$as_save_IFS 5374 test -z "$as_dir" && as_dir=. 5375 for ac_exec_ext in '' $ac_executable_extensions; do 5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5377 ac_cv_prog_ac_ct_AR="$ac_prog" 5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5379 break 2 5380 fi 5381done 5382 done 5383IFS=$as_save_IFS 5384 5385fi 5386fi 5387ac_ct_AR=$ac_cv_prog_ac_ct_AR 5388if test -n "$ac_ct_AR"; then 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5390$as_echo "$ac_ct_AR" >&6; } 5391else 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393$as_echo "no" >&6; } 5394fi 5395 5396 5397 test -n "$ac_ct_AR" && break 5398done 5399 5400 if test "x$ac_ct_AR" = x; then 5401 AR="false" 5402 else 5403 case $cross_compiling:$ac_tool_warned in 5404yes:) 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5407ac_tool_warned=yes ;; 5408esac 5409 AR=$ac_ct_AR 5410 fi 5411fi 5412 5413: ${AR=ar} 5414 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5416$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5417if ${am_cv_ar_interface+:} false; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 ac_ext=c 5421ac_cpp='$CPP $CPPFLAGS' 5422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5424ac_compiler_gnu=$ac_cv_c_compiler_gnu 5425 5426 am_cv_ar_interface=ar 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428/* end confdefs.h. */ 5429int some_variable = 0; 5430_ACEOF 5431if ac_fn_c_try_compile "$LINENO"; then : 5432 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5434 (eval $am_ar_try) 2>&5 5435 ac_status=$? 5436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5437 test $ac_status = 0; } 5438 if test "$ac_status" -eq 0; then 5439 am_cv_ar_interface=ar 5440 else 5441 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5443 (eval $am_ar_try) 2>&5 5444 ac_status=$? 5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5446 test $ac_status = 0; } 5447 if test "$ac_status" -eq 0; then 5448 am_cv_ar_interface=lib 5449 else 5450 am_cv_ar_interface=unknown 5451 fi 5452 fi 5453 rm -f conftest.lib libconftest.a 5454 5455fi 5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5457 ac_ext=c 5458ac_cpp='$CPP $CPPFLAGS' 5459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5461ac_compiler_gnu=$ac_cv_c_compiler_gnu 5462 5463fi 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5465$as_echo "$am_cv_ar_interface" >&6; } 5466 5467case $am_cv_ar_interface in 5468ar) 5469 ;; 5470lib) 5471 # Microsoft lib, so override with the ar-lib wrapper script. 5472 # FIXME: It is wrong to rewrite AR. 5473 # But if we don't then we get into trouble of one sort or another. 5474 # A longer-term fix would be to have automake use am__AR in this case, 5475 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5476 # similar. 5477 AR="$am_aux_dir/ar-lib $AR" 5478 ;; 5479unknown) 5480 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5481 ;; 5482esac 5483 5484 5485 MKINSTALLDIRS= 5486 if test -n "$ac_aux_dir"; then 5487 case "$ac_aux_dir" in 5488 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 5489 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 5490 esac 5491 fi 5492 if test -z "$MKINSTALLDIRS"; then 5493 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5494 fi 5495 5496 5497 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5499$as_echo_n "checking whether NLS is requested... " >&6; } 5500 # Check whether --enable-nls was given. 5501if test "${enable_nls+set}" = set; then : 5502 enableval=$enable_nls; USE_NLS=$enableval 5503else 5504 USE_NLS=yes 5505fi 5506 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5508$as_echo "$USE_NLS" >&6; } 5509 5510 5511 5512 5513 5514 5515# Prepare PATH_SEPARATOR. 5516# The user is always right. 5517if test "${PATH_SEPARATOR+set}" != set; then 5518 echo "#! /bin/sh" >conf$$.sh 5519 echo "exit 0" >>conf$$.sh 5520 chmod +x conf$$.sh 5521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5522 PATH_SEPARATOR=';' 5523 else 5524 PATH_SEPARATOR=: 5525 fi 5526 rm -f conf$$.sh 5527fi 5528 5529# Find out how to test for executable files. Don't use a zero-byte file, 5530# as systems may use methods other than mode bits to determine executability. 5531cat >conf$$.file <<_ASEOF 5532#! /bin/sh 5533exit 0 5534_ASEOF 5535chmod +x conf$$.file 5536if test -x conf$$.file >/dev/null 2>&1; then 5537 ac_executable_p="test -x" 5538else 5539 ac_executable_p="test -f" 5540fi 5541rm -f conf$$.file 5542 5543# Extract the first word of "msgfmt", so it can be a program name with args. 5544set dummy msgfmt; ac_word=$2 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5546$as_echo_n "checking for $ac_word... " >&6; } 5547if ${ac_cv_path_MSGFMT+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 case "$MSGFMT" in 5551 [\\/]* | ?:[\\/]*) 5552 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5553 ;; 5554 *) 5555 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5556 for ac_dir in $PATH; do 5557 IFS="$ac_save_IFS" 5558 test -z "$ac_dir" && ac_dir=. 5559 for ac_exec_ext in '' $ac_executable_extensions; do 5560 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5561 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 5562 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5563 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 5564 break 2 5565 fi 5566 fi 5567 done 5568 done 5569 IFS="$ac_save_IFS" 5570 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 5571 ;; 5572esac 5573fi 5574MSGFMT="$ac_cv_path_MSGFMT" 5575if test "$MSGFMT" != ":"; then 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5577$as_echo "$MSGFMT" >&6; } 5578else 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5580$as_echo "no" >&6; } 5581fi 5582 5583 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5584set dummy gmsgfmt; ac_word=$2 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5586$as_echo_n "checking for $ac_word... " >&6; } 5587if ${ac_cv_path_GMSGFMT+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 case $GMSGFMT in 5591 [\\/]* | ?:[\\/]*) 5592 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5593 ;; 5594 *) 5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5596for as_dir in $PATH 5597do 5598 IFS=$as_save_IFS 5599 test -z "$as_dir" && as_dir=. 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5602 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5604 break 2 5605 fi 5606done 5607 done 5608IFS=$as_save_IFS 5609 5610 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5611 ;; 5612esac 5613fi 5614GMSGFMT=$ac_cv_path_GMSGFMT 5615if test -n "$GMSGFMT"; then 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5617$as_echo "$GMSGFMT" >&6; } 5618else 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5620$as_echo "no" >&6; } 5621fi 5622 5623 5624 5625 5626# Prepare PATH_SEPARATOR. 5627# The user is always right. 5628if test "${PATH_SEPARATOR+set}" != set; then 5629 echo "#! /bin/sh" >conf$$.sh 5630 echo "exit 0" >>conf$$.sh 5631 chmod +x conf$$.sh 5632 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5633 PATH_SEPARATOR=';' 5634 else 5635 PATH_SEPARATOR=: 5636 fi 5637 rm -f conf$$.sh 5638fi 5639 5640# Find out how to test for executable files. Don't use a zero-byte file, 5641# as systems may use methods other than mode bits to determine executability. 5642cat >conf$$.file <<_ASEOF 5643#! /bin/sh 5644exit 0 5645_ASEOF 5646chmod +x conf$$.file 5647if test -x conf$$.file >/dev/null 2>&1; then 5648 ac_executable_p="test -x" 5649else 5650 ac_executable_p="test -f" 5651fi 5652rm -f conf$$.file 5653 5654# Extract the first word of "xgettext", so it can be a program name with args. 5655set dummy xgettext; ac_word=$2 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657$as_echo_n "checking for $ac_word... " >&6; } 5658if ${ac_cv_path_XGETTEXT+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660else 5661 case "$XGETTEXT" in 5662 [\\/]* | ?:[\\/]*) 5663 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5664 ;; 5665 *) 5666 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5667 for ac_dir in $PATH; do 5668 IFS="$ac_save_IFS" 5669 test -z "$ac_dir" && ac_dir=. 5670 for ac_exec_ext in '' $ac_executable_extensions; do 5671 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5672 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5673 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5674 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 5675 break 2 5676 fi 5677 fi 5678 done 5679 done 5680 IFS="$ac_save_IFS" 5681 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5682 ;; 5683esac 5684fi 5685XGETTEXT="$ac_cv_path_XGETTEXT" 5686if test "$XGETTEXT" != ":"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5688$as_echo "$XGETTEXT" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 rm -f messages.po 5695 5696 5697# Prepare PATH_SEPARATOR. 5698# The user is always right. 5699if test "${PATH_SEPARATOR+set}" != set; then 5700 echo "#! /bin/sh" >conf$$.sh 5701 echo "exit 0" >>conf$$.sh 5702 chmod +x conf$$.sh 5703 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5704 PATH_SEPARATOR=';' 5705 else 5706 PATH_SEPARATOR=: 5707 fi 5708 rm -f conf$$.sh 5709fi 5710 5711# Find out how to test for executable files. Don't use a zero-byte file, 5712# as systems may use methods other than mode bits to determine executability. 5713cat >conf$$.file <<_ASEOF 5714#! /bin/sh 5715exit 0 5716_ASEOF 5717chmod +x conf$$.file 5718if test -x conf$$.file >/dev/null 2>&1; then 5719 ac_executable_p="test -x" 5720else 5721 ac_executable_p="test -f" 5722fi 5723rm -f conf$$.file 5724 5725# Extract the first word of "msgmerge", so it can be a program name with args. 5726set dummy msgmerge; ac_word=$2 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5728$as_echo_n "checking for $ac_word... " >&6; } 5729if ${ac_cv_path_MSGMERGE+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 case "$MSGMERGE" in 5733 [\\/]* | ?:[\\/]*) 5734 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 5735 ;; 5736 *) 5737 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5738 for ac_dir in $PATH; do 5739 IFS="$ac_save_IFS" 5740 test -z "$ac_dir" && ac_dir=. 5741 for ac_exec_ext in '' $ac_executable_extensions; do 5742 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5743 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 5744 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 5745 break 2 5746 fi 5747 fi 5748 done 5749 done 5750 IFS="$ac_save_IFS" 5751 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 5752 ;; 5753esac 5754fi 5755MSGMERGE="$ac_cv_path_MSGMERGE" 5756if test "$MSGMERGE" != ":"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 5758$as_echo "$MSGMERGE" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 5765 if test "$GMSGFMT" != ":"; then 5766 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 5767 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5768 : ; 5769 else 5770 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 5772$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 5773 GMSGFMT=":" 5774 fi 5775 fi 5776 5777 if test "$XGETTEXT" != ":"; then 5778 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5779 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5780 : ; 5781 else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 5783$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 5784 XGETTEXT=":" 5785 fi 5786 rm -f messages.po 5787 fi 5788 5789 ac_config_commands="$ac_config_commands default-1" 5790 5791 5792 5793 if test "X$prefix" = "XNONE"; then 5794 acl_final_prefix="$ac_default_prefix" 5795 else 5796 acl_final_prefix="$prefix" 5797 fi 5798 if test "X$exec_prefix" = "XNONE"; then 5799 acl_final_exec_prefix='${prefix}' 5800 else 5801 acl_final_exec_prefix="$exec_prefix" 5802 fi 5803 acl_save_prefix="$prefix" 5804 prefix="$acl_final_prefix" 5805 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 5806 prefix="$acl_save_prefix" 5807 5808 5809# Check whether --with-gnu-ld was given. 5810if test "${with_gnu_ld+set}" = set; then : 5811 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5812else 5813 with_gnu_ld=no 5814fi 5815 5816# Prepare PATH_SEPARATOR. 5817# The user is always right. 5818if test "${PATH_SEPARATOR+set}" != set; then 5819 echo "#! /bin/sh" >conf$$.sh 5820 echo "exit 0" >>conf$$.sh 5821 chmod +x conf$$.sh 5822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5823 PATH_SEPARATOR=';' 5824 else 5825 PATH_SEPARATOR=: 5826 fi 5827 rm -f conf$$.sh 5828fi 5829ac_prog=ld 5830if test "$GCC" = yes; then 5831 # Check if gcc -print-prog-name=ld gives a path. 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 5833$as_echo_n "checking for ld used by GCC... " >&6; } 5834 case $host in 5835 *-*-mingw*) 5836 # gcc leaves a trailing carriage return which upsets mingw 5837 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5838 *) 5839 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5840 esac 5841 case $ac_prog in 5842 # Accept absolute paths. 5843 [\\/]* | [A-Za-z]:[\\/]*) 5844 re_direlt='/[^/][^/]*/\.\./' 5845 # Canonicalize the path of ld 5846 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 5847 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5848 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 5849 done 5850 test -z "$LD" && LD="$ac_prog" 5851 ;; 5852 "") 5853 # If it fails, then pretend we aren't using GCC. 5854 ac_prog=ld 5855 ;; 5856 *) 5857 # If it is relative, then search for the first ld in PATH. 5858 with_gnu_ld=unknown 5859 ;; 5860 esac 5861elif test "$with_gnu_ld" = yes; then 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5863$as_echo_n "checking for GNU ld... " >&6; } 5864else 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5866$as_echo_n "checking for non-GNU ld... " >&6; } 5867fi 5868if ${acl_cv_path_LD+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870else 5871 if test -z "$LD"; then 5872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 5873 for ac_dir in $PATH; do 5874 test -z "$ac_dir" && ac_dir=. 5875 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5876 acl_cv_path_LD="$ac_dir/$ac_prog" 5877 # Check to see if the program is GNU ld. I'd rather use --version, 5878 # but apparently some GNU ld's only accept -v. 5879 # Break only if it was the GNU/non-GNU ld that we prefer. 5880 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 5881 test "$with_gnu_ld" != no && break 5882 else 5883 test "$with_gnu_ld" != yes && break 5884 fi 5885 fi 5886 done 5887 IFS="$ac_save_ifs" 5888else 5889 acl_cv_path_LD="$LD" # Let the user override the test with a path. 5890fi 5891fi 5892 5893LD="$acl_cv_path_LD" 5894if test -n "$LD"; then 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5896$as_echo "$LD" >&6; } 5897else 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5899$as_echo "no" >&6; } 5900fi 5901test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5903$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5904if ${acl_cv_prog_gnu_ld+:} false; then : 5905 $as_echo_n "(cached) " >&6 5906else 5907 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 5908if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 5909 acl_cv_prog_gnu_ld=yes 5910else 5911 acl_cv_prog_gnu_ld=no 5912fi 5913fi 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5915$as_echo "$acl_cv_prog_gnu_ld" >&6; } 5916with_gnu_ld=$acl_cv_prog_gnu_ld 5917 5918 5919 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5921$as_echo_n "checking for shared library run path origin... " >&6; } 5922if ${acl_cv_rpath+:} false; then : 5923 $as_echo_n "(cached) " >&6 5924else 5925 5926 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5927 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 5928 . ./conftest.sh 5929 rm -f ./conftest.sh 5930 acl_cv_rpath=done 5931 5932fi 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5934$as_echo "$acl_cv_rpath" >&6; } 5935 wl="$acl_cv_wl" 5936 libext="$acl_cv_libext" 5937 shlibext="$acl_cv_shlibext" 5938 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5939 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5940 hardcode_direct="$acl_cv_hardcode_direct" 5941 hardcode_minus_L="$acl_cv_hardcode_minus_L" 5942 # Check whether --enable-rpath was given. 5943if test "${enable_rpath+set}" = set; then : 5944 enableval=$enable_rpath; : 5945else 5946 enable_rpath=yes 5947fi 5948 5949 5950 5951 5952 5953 5954 5955 5956 use_additional=yes 5957 5958 acl_save_prefix="$prefix" 5959 prefix="$acl_final_prefix" 5960 acl_save_exec_prefix="$exec_prefix" 5961 exec_prefix="$acl_final_exec_prefix" 5962 5963 eval additional_includedir=\"$includedir\" 5964 eval additional_libdir=\"$libdir\" 5965 5966 exec_prefix="$acl_save_exec_prefix" 5967 prefix="$acl_save_prefix" 5968 5969 5970# Check whether --with-libiconv-prefix was given. 5971if test "${with_libiconv_prefix+set}" = set; then : 5972 withval=$with_libiconv_prefix; 5973 if test "X$withval" = "Xno"; then 5974 use_additional=no 5975 else 5976 if test "X$withval" = "X"; then 5977 5978 acl_save_prefix="$prefix" 5979 prefix="$acl_final_prefix" 5980 acl_save_exec_prefix="$exec_prefix" 5981 exec_prefix="$acl_final_exec_prefix" 5982 5983 eval additional_includedir=\"$includedir\" 5984 eval additional_libdir=\"$libdir\" 5985 5986 exec_prefix="$acl_save_exec_prefix" 5987 prefix="$acl_save_prefix" 5988 5989 else 5990 additional_includedir="$withval/include" 5991 additional_libdir="$withval/lib" 5992 fi 5993 fi 5994 5995fi 5996 5997 5998# Check whether --with-libiconv-type was given. 5999if test "${with_libiconv_type+set}" = set; then : 6000 withval=$with_libiconv_type; with_libiconv_type=$withval 6001else 6002 with_libiconv_type=auto 6003fi 6004 6005 lib_type=`eval echo \$with_libiconv_type` 6006 6007 LIBICONV= 6008 LTLIBICONV= 6009 INCICONV= 6010 rpathdirs= 6011 ltrpathdirs= 6012 names_already_handled= 6013 names_next_round='iconv ' 6014 while test -n "$names_next_round"; do 6015 names_this_round="$names_next_round" 6016 names_next_round= 6017 for name in $names_this_round; do 6018 already_handled= 6019 for n in $names_already_handled; do 6020 if test "$n" = "$name"; then 6021 already_handled=yes 6022 break 6023 fi 6024 done 6025 if test -z "$already_handled"; then 6026 names_already_handled="$names_already_handled $name" 6027 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6028 eval value=\"\$HAVE_LIB$uppername\" 6029 if test -n "$value"; then 6030 if test "$value" = yes; then 6031 eval value=\"\$LIB$uppername\" 6032 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 6033 eval value=\"\$LTLIB$uppername\" 6034 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 6035 else 6036 : 6037 fi 6038 else 6039 found_dir= 6040 found_la= 6041 found_so= 6042 found_a= 6043 if test $use_additional = yes; then 6044 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6045 found_dir="$additional_libdir" 6046 found_so="$additional_libdir/lib$name.$shlibext" 6047 if test -f "$additional_libdir/lib$name.la"; then 6048 found_la="$additional_libdir/lib$name.la" 6049 fi 6050 elif test x$lib_type != xshared; then 6051 if test -f "$additional_libdir/lib$name.$libext"; then 6052 found_dir="$additional_libdir" 6053 found_a="$additional_libdir/lib$name.$libext" 6054 if test -f "$additional_libdir/lib$name.la"; then 6055 found_la="$additional_libdir/lib$name.la" 6056 fi 6057 fi 6058 fi 6059 fi 6060 if test "X$found_dir" = "X"; then 6061 for x in $LDFLAGS $LTLIBICONV; do 6062 6063 acl_save_prefix="$prefix" 6064 prefix="$acl_final_prefix" 6065 acl_save_exec_prefix="$exec_prefix" 6066 exec_prefix="$acl_final_exec_prefix" 6067 eval x=\"$x\" 6068 exec_prefix="$acl_save_exec_prefix" 6069 prefix="$acl_save_prefix" 6070 6071 case "$x" in 6072 -L*) 6073 dir=`echo "X$x" | sed -e 's/^X-L//'` 6074 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6075 found_dir="$dir" 6076 found_so="$dir/lib$name.$shlibext" 6077 if test -f "$dir/lib$name.la"; then 6078 found_la="$dir/lib$name.la" 6079 fi 6080 elif test x$lib_type != xshared; then 6081 if test -f "$dir/lib$name.$libext"; then 6082 found_dir="$dir" 6083 found_a="$dir/lib$name.$libext" 6084 if test -f "$dir/lib$name.la"; then 6085 found_la="$dir/lib$name.la" 6086 fi 6087 fi 6088 fi 6089 ;; 6090 esac 6091 if test "X$found_dir" != "X"; then 6092 break 6093 fi 6094 done 6095 fi 6096 if test "X$found_dir" != "X"; then 6097 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 6098 if test "X$found_so" != "X"; then 6099 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6100 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6101 else 6102 haveit= 6103 for x in $ltrpathdirs; do 6104 if test "X$x" = "X$found_dir"; then 6105 haveit=yes 6106 break 6107 fi 6108 done 6109 if test -z "$haveit"; then 6110 ltrpathdirs="$ltrpathdirs $found_dir" 6111 fi 6112 if test "$hardcode_direct" = yes; then 6113 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6114 else 6115 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6116 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6117 haveit= 6118 for x in $rpathdirs; do 6119 if test "X$x" = "X$found_dir"; then 6120 haveit=yes 6121 break 6122 fi 6123 done 6124 if test -z "$haveit"; then 6125 rpathdirs="$rpathdirs $found_dir" 6126 fi 6127 else 6128 haveit= 6129 for x in $LDFLAGS $LIBICONV; do 6130 6131 acl_save_prefix="$prefix" 6132 prefix="$acl_final_prefix" 6133 acl_save_exec_prefix="$exec_prefix" 6134 exec_prefix="$acl_final_exec_prefix" 6135 eval x=\"$x\" 6136 exec_prefix="$acl_save_exec_prefix" 6137 prefix="$acl_save_prefix" 6138 6139 if test "X$x" = "X-L$found_dir"; then 6140 haveit=yes 6141 break 6142 fi 6143 done 6144 if test -z "$haveit"; then 6145 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 6146 fi 6147 if test "$hardcode_minus_L" != no; then 6148 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6149 else 6150 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6151 fi 6152 fi 6153 fi 6154 fi 6155 else 6156 if test "X$found_a" != "X"; then 6157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 6158 else 6159 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 6160 fi 6161 fi 6162 additional_includedir= 6163 case "$found_dir" in 6164 */lib | */lib/) 6165 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 6166 additional_includedir="$basedir/include" 6167 ;; 6168 esac 6169 if test "X$additional_includedir" != "X"; then 6170 if test "X$additional_includedir" != "X/usr/include"; then 6171 haveit= 6172 if test "X$additional_includedir" = "X/usr/local/include"; then 6173 if test -n "$GCC"; then 6174 case $host_os in 6175 linux*) haveit=yes;; 6176 esac 6177 fi 6178 fi 6179 if test -z "$haveit"; then 6180 for x in $CPPFLAGS $INCICONV; do 6181 6182 acl_save_prefix="$prefix" 6183 prefix="$acl_final_prefix" 6184 acl_save_exec_prefix="$exec_prefix" 6185 exec_prefix="$acl_final_exec_prefix" 6186 eval x=\"$x\" 6187 exec_prefix="$acl_save_exec_prefix" 6188 prefix="$acl_save_prefix" 6189 6190 if test "X$x" = "X-I$additional_includedir"; then 6191 haveit=yes 6192 break 6193 fi 6194 done 6195 if test -z "$haveit"; then 6196 if test -d "$additional_includedir"; then 6197 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 6198 fi 6199 fi 6200 fi 6201 fi 6202 fi 6203 if test -n "$found_la"; then 6204 save_libdir="$libdir" 6205 case "$found_la" in 6206 */* | *\\*) . "$found_la" ;; 6207 *) . "./$found_la" ;; 6208 esac 6209 libdir="$save_libdir" 6210 for dep in $dependency_libs; do 6211 case "$dep" in 6212 -L*) 6213 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6214 if test "X$additional_libdir" != "X/usr/lib"; then 6215 haveit= 6216 if test "X$additional_libdir" = "X/usr/local/lib"; then 6217 if test -n "$GCC"; then 6218 case $host_os in 6219 linux*) haveit=yes;; 6220 esac 6221 fi 6222 fi 6223 if test -z "$haveit"; then 6224 haveit= 6225 for x in $LDFLAGS $LIBICONV; do 6226 6227 acl_save_prefix="$prefix" 6228 prefix="$acl_final_prefix" 6229 acl_save_exec_prefix="$exec_prefix" 6230 exec_prefix="$acl_final_exec_prefix" 6231 eval x=\"$x\" 6232 exec_prefix="$acl_save_exec_prefix" 6233 prefix="$acl_save_prefix" 6234 6235 if test "X$x" = "X-L$additional_libdir"; then 6236 haveit=yes 6237 break 6238 fi 6239 done 6240 if test -z "$haveit"; then 6241 if test -d "$additional_libdir"; then 6242 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 6243 fi 6244 fi 6245 haveit= 6246 for x in $LDFLAGS $LTLIBICONV; do 6247 6248 acl_save_prefix="$prefix" 6249 prefix="$acl_final_prefix" 6250 acl_save_exec_prefix="$exec_prefix" 6251 exec_prefix="$acl_final_exec_prefix" 6252 eval x=\"$x\" 6253 exec_prefix="$acl_save_exec_prefix" 6254 prefix="$acl_save_prefix" 6255 6256 if test "X$x" = "X-L$additional_libdir"; then 6257 haveit=yes 6258 break 6259 fi 6260 done 6261 if test -z "$haveit"; then 6262 if test -d "$additional_libdir"; then 6263 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 6264 fi 6265 fi 6266 fi 6267 fi 6268 ;; 6269 -R*) 6270 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6271 if test "$enable_rpath" != no; then 6272 haveit= 6273 for x in $rpathdirs; do 6274 if test "X$x" = "X$dir"; then 6275 haveit=yes 6276 break 6277 fi 6278 done 6279 if test -z "$haveit"; then 6280 rpathdirs="$rpathdirs $dir" 6281 fi 6282 haveit= 6283 for x in $ltrpathdirs; do 6284 if test "X$x" = "X$dir"; then 6285 haveit=yes 6286 break 6287 fi 6288 done 6289 if test -z "$haveit"; then 6290 ltrpathdirs="$ltrpathdirs $dir" 6291 fi 6292 fi 6293 ;; 6294 -l*) 6295 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6296 ;; 6297 *.la) 6298 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6299 ;; 6300 *) 6301 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 6302 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 6303 ;; 6304 esac 6305 done 6306 fi 6307 else 6308 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 6309 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 6311 else 6312 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 6313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 6314 fi 6315 fi 6316 fi 6317 fi 6318 done 6319 done 6320 if test "X$rpathdirs" != "X"; then 6321 if test -n "$hardcode_libdir_separator"; then 6322 alldirs= 6323 for found_dir in $rpathdirs; do 6324 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 6325 done 6326 acl_save_libdir="$libdir" 6327 libdir="$alldirs" 6328 eval flag=\"$hardcode_libdir_flag_spec\" 6329 libdir="$acl_save_libdir" 6330 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6331 else 6332 for found_dir in $rpathdirs; do 6333 acl_save_libdir="$libdir" 6334 libdir="$found_dir" 6335 eval flag=\"$hardcode_libdir_flag_spec\" 6336 libdir="$acl_save_libdir" 6337 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6338 done 6339 fi 6340 fi 6341 if test "X$ltrpathdirs" != "X"; then 6342 for found_dir in $ltrpathdirs; do 6343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 6344 done 6345 fi 6346 6347 6348 6349 6350 6351if test -f ../gettext/uninstalled-config.sh; then 6352 relative_builddir='$(top_builddir)/../gettext' 6353 . ../gettext/uninstalled-config.sh 6354else 6355 # The sister gettext directory doesn't exist and won't collect information on 6356 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 6381$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 6382if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 gt_save_LIBS="$LIBS" 6386 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389#include <CoreFoundation/CFPreferences.h> 6390int 6391main () 6392{ 6393CFPreferencesCopyAppValue(NULL, NULL) 6394 ; 6395 return 0; 6396} 6397_ACEOF 6398if ac_fn_c_try_link "$LINENO"; then : 6399 gt_cv_func_CFPreferencesCopyAppValue=yes 6400else 6401 gt_cv_func_CFPreferencesCopyAppValue=no 6402fi 6403rm -f core conftest.err conftest.$ac_objext \ 6404 conftest$ac_exeext conftest.$ac_ext 6405 LIBS="$gt_save_LIBS" 6406fi 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 6408$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 6409 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 6410 6411$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 6412 6413 fi 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 6415$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 6416if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 6417 $as_echo_n "(cached) " >&6 6418else 6419 gt_save_LIBS="$LIBS" 6420 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422/* end confdefs.h. */ 6423#include <CoreFoundation/CFLocale.h> 6424int 6425main () 6426{ 6427CFLocaleCopyPreferredLanguages(); 6428 ; 6429 return 0; 6430} 6431_ACEOF 6432if ac_fn_c_try_link "$LINENO"; then : 6433 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 6434else 6435 gt_cv_func_CFLocaleCopyPreferredLanguages=no 6436fi 6437rm -f core conftest.err conftest.$ac_objext \ 6438 conftest$ac_exeext conftest.$ac_ext 6439 LIBS="$gt_save_LIBS" 6440fi 6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 6442$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 6443 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 6444 6445$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 6446 6447 fi 6448 INTL_MACOSX_LIBS= 6449 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 6450 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 6451 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 6452 fi 6453 6454 6455 6456 6457 6458 6459 LIBINTL= 6460 LTLIBINTL= 6461 POSUB= 6462 6463 case " $gt_needs " in 6464 *" need-formatstring-macros "*) gt_api_version=3 ;; 6465 *" need-ngettext "*) gt_api_version=2 ;; 6466 *) gt_api_version=1 ;; 6467 esac 6468 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 6469 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 6470 6471 if test "$USE_NLS" = "yes"; then 6472 gt_use_preinstalled_gnugettext=no 6473 6474 6475 if test $gt_api_version -ge 3; then 6476 gt_revision_test_code=' 6477#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 6478#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 6479#endif 6480typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 6481' 6482 else 6483 gt_revision_test_code= 6484 fi 6485 if test $gt_api_version -ge 2; then 6486 gt_expression_test_code=' + * ngettext ("", "", 0)' 6487 else 6488 gt_expression_test_code= 6489 fi 6490 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 6492$as_echo_n "checking for GNU gettext in libc... " >&6; } 6493if eval \${$gt_func_gnugettext_libc+:} false; then : 6494 $as_echo_n "(cached) " >&6 6495else 6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6497/* end confdefs.h. */ 6498 6499#include <libintl.h> 6500#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 6501extern int _nl_msg_cat_cntr; 6502extern int *_nl_domain_bindings; 6503#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 6504#else 6505#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 6506#endif 6507$gt_revision_test_code 6508 6509int 6510main () 6511{ 6512 6513bindtextdomain ("", ""); 6514return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 6515 6516 ; 6517 return 0; 6518} 6519_ACEOF 6520if ac_fn_c_try_link "$LINENO"; then : 6521 eval "$gt_func_gnugettext_libc=yes" 6522else 6523 eval "$gt_func_gnugettext_libc=no" 6524fi 6525rm -f core conftest.err conftest.$ac_objext \ 6526 conftest$ac_exeext conftest.$ac_ext 6527fi 6528eval ac_res=\$$gt_func_gnugettext_libc 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6530$as_echo "$ac_res" >&6; } 6531 6532 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 6533 6534 6535 6536 6537 6538 am_save_CPPFLAGS="$CPPFLAGS" 6539 6540 for element in $INCICONV; do 6541 haveit= 6542 for x in $CPPFLAGS; do 6543 6544 acl_save_prefix="$prefix" 6545 prefix="$acl_final_prefix" 6546 acl_save_exec_prefix="$exec_prefix" 6547 exec_prefix="$acl_final_exec_prefix" 6548 eval x=\"$x\" 6549 exec_prefix="$acl_save_exec_prefix" 6550 prefix="$acl_save_prefix" 6551 6552 if test "X$x" = "X$element"; then 6553 haveit=yes 6554 break 6555 fi 6556 done 6557 if test -z "$haveit"; then 6558 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6559 fi 6560 done 6561 6562 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 6564$as_echo_n "checking for iconv... " >&6; } 6565if ${am_cv_func_iconv+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 6569 am_cv_func_iconv="no, consider installing GNU libiconv" 6570 am_cv_lib_iconv=no 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572/* end confdefs.h. */ 6573 6574#include <stdlib.h> 6575#include <iconv.h> 6576 6577int 6578main () 6579{ 6580iconv_t cd = iconv_open("",""); 6581 iconv(cd,NULL,NULL,NULL,NULL); 6582 iconv_close(cd); 6583 ; 6584 return 0; 6585} 6586_ACEOF 6587if ac_fn_c_try_link "$LINENO"; then : 6588 am_cv_func_iconv=yes 6589fi 6590rm -f core conftest.err conftest.$ac_objext \ 6591 conftest$ac_exeext conftest.$ac_ext 6592 if test "$am_cv_func_iconv" != yes; then 6593 am_save_LIBS="$LIBS" 6594 LIBS="$LIBS $LIBICONV" 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6596/* end confdefs.h. */ 6597 6598#include <stdlib.h> 6599#include <iconv.h> 6600 6601int 6602main () 6603{ 6604iconv_t cd = iconv_open("",""); 6605 iconv(cd,NULL,NULL,NULL,NULL); 6606 iconv_close(cd); 6607 ; 6608 return 0; 6609} 6610_ACEOF 6611if ac_fn_c_try_link "$LINENO"; then : 6612 am_cv_lib_iconv=yes 6613 am_cv_func_iconv=yes 6614fi 6615rm -f core conftest.err conftest.$ac_objext \ 6616 conftest$ac_exeext conftest.$ac_ext 6617 LIBS="$am_save_LIBS" 6618 fi 6619 6620fi 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 6622$as_echo "$am_cv_func_iconv" >&6; } 6623 if test "$am_cv_func_iconv" = yes; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 6625$as_echo_n "checking for working iconv... " >&6; } 6626if ${am_cv_func_iconv_works+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 6630 am_save_LIBS="$LIBS" 6631 if test $am_cv_lib_iconv = yes; then 6632 LIBS="$LIBS $LIBICONV" 6633 fi 6634 am_cv_func_iconv_works=no 6635 for ac_iconv_const in '' 'const'; do 6636 if test "$cross_compiling" = yes; then : 6637 case "$host_os" in 6638 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 6639 *) am_cv_func_iconv_works="guessing yes" ;; 6640 esac 6641else 6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643/* end confdefs.h. */ 6644 6645#include <iconv.h> 6646#include <string.h> 6647 6648#ifndef ICONV_CONST 6649# define ICONV_CONST $ac_iconv_const 6650#endif 6651 6652int 6653main () 6654{ 6655int result = 0; 6656 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 6657 successful returns. This is even documented in 6658 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 6659 { 6660 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 6661 if (cd_utf8_to_88591 != (iconv_t)(-1)) 6662 { 6663 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 6664 char buf[10]; 6665 ICONV_CONST char *inptr = input; 6666 size_t inbytesleft = strlen (input); 6667 char *outptr = buf; 6668 size_t outbytesleft = sizeof (buf); 6669 size_t res = iconv (cd_utf8_to_88591, 6670 &inptr, &inbytesleft, 6671 &outptr, &outbytesleft); 6672 if (res == 0) 6673 result |= 1; 6674 iconv_close (cd_utf8_to_88591); 6675 } 6676 } 6677 /* Test against Solaris 10 bug: Failures are not distinguishable from 6678 successful returns. */ 6679 { 6680 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 6681 if (cd_ascii_to_88591 != (iconv_t)(-1)) 6682 { 6683 static ICONV_CONST char input[] = "\263"; 6684 char buf[10]; 6685 ICONV_CONST char *inptr = input; 6686 size_t inbytesleft = strlen (input); 6687 char *outptr = buf; 6688 size_t outbytesleft = sizeof (buf); 6689 size_t res = iconv (cd_ascii_to_88591, 6690 &inptr, &inbytesleft, 6691 &outptr, &outbytesleft); 6692 if (res == 0) 6693 result |= 2; 6694 iconv_close (cd_ascii_to_88591); 6695 } 6696 } 6697 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 6698 { 6699 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 6700 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6701 { 6702 static ICONV_CONST char input[] = "\304"; 6703 static char buf[2] = { (char)0xDE, (char)0xAD }; 6704 ICONV_CONST char *inptr = input; 6705 size_t inbytesleft = 1; 6706 char *outptr = buf; 6707 size_t outbytesleft = 1; 6708 size_t res = iconv (cd_88591_to_utf8, 6709 &inptr, &inbytesleft, 6710 &outptr, &outbytesleft); 6711 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 6712 result |= 4; 6713 iconv_close (cd_88591_to_utf8); 6714 } 6715 } 6716#if 0 /* This bug could be worked around by the caller. */ 6717 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 6718 { 6719 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 6720 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6721 { 6722 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 6723 char buf[50]; 6724 ICONV_CONST char *inptr = input; 6725 size_t inbytesleft = strlen (input); 6726 char *outptr = buf; 6727 size_t outbytesleft = sizeof (buf); 6728 size_t res = iconv (cd_88591_to_utf8, 6729 &inptr, &inbytesleft, 6730 &outptr, &outbytesleft); 6731 if ((int)res > 0) 6732 result |= 8; 6733 iconv_close (cd_88591_to_utf8); 6734 } 6735 } 6736#endif 6737 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 6738 provided. */ 6739 { 6740 /* Try standardized names. */ 6741 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 6742 /* Try IRIX, OSF/1 names. */ 6743 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 6744 /* Try AIX names. */ 6745 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 6746 /* Try HP-UX names. */ 6747 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 6748 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 6749 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 6750 result |= 16; 6751 if (cd1 != (iconv_t)(-1)) 6752 iconv_close (cd1); 6753 if (cd2 != (iconv_t)(-1)) 6754 iconv_close (cd2); 6755 if (cd3 != (iconv_t)(-1)) 6756 iconv_close (cd3); 6757 if (cd4 != (iconv_t)(-1)) 6758 iconv_close (cd4); 6759 } 6760 return result; 6761 6762 ; 6763 return 0; 6764} 6765_ACEOF 6766if ac_fn_c_try_run "$LINENO"; then : 6767 am_cv_func_iconv_works=yes 6768fi 6769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6770 conftest.$ac_objext conftest.beam conftest.$ac_ext 6771fi 6772 6773 test "$am_cv_func_iconv_works" = no || break 6774 done 6775 LIBS="$am_save_LIBS" 6776 6777fi 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 6779$as_echo "$am_cv_func_iconv_works" >&6; } 6780 case "$am_cv_func_iconv_works" in 6781 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 6782 *) am_func_iconv=yes ;; 6783 esac 6784 else 6785 am_func_iconv=no am_cv_lib_iconv=no 6786 fi 6787 if test "$am_func_iconv" = yes; then 6788 6789$as_echo "#define HAVE_ICONV 1" >>confdefs.h 6790 6791 fi 6792 if test "$am_cv_lib_iconv" = yes; then 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 6794$as_echo_n "checking how to link with libiconv... " >&6; } 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 6796$as_echo "$LIBICONV" >&6; } 6797 else 6798 CPPFLAGS="$am_save_CPPFLAGS" 6799 LIBICONV= 6800 LTLIBICONV= 6801 fi 6802 6803 6804 6805 6806 6807 6808 use_additional=yes 6809 6810 acl_save_prefix="$prefix" 6811 prefix="$acl_final_prefix" 6812 acl_save_exec_prefix="$exec_prefix" 6813 exec_prefix="$acl_final_exec_prefix" 6814 6815 eval additional_includedir=\"$includedir\" 6816 eval additional_libdir=\"$libdir\" 6817 6818 exec_prefix="$acl_save_exec_prefix" 6819 prefix="$acl_save_prefix" 6820 6821 6822# Check whether --with-libintl-prefix was given. 6823if test "${with_libintl_prefix+set}" = set; then : 6824 withval=$with_libintl_prefix; 6825 if test "X$withval" = "Xno"; then 6826 use_additional=no 6827 else 6828 if test "X$withval" = "X"; then 6829 6830 acl_save_prefix="$prefix" 6831 prefix="$acl_final_prefix" 6832 acl_save_exec_prefix="$exec_prefix" 6833 exec_prefix="$acl_final_exec_prefix" 6834 6835 eval additional_includedir=\"$includedir\" 6836 eval additional_libdir=\"$libdir\" 6837 6838 exec_prefix="$acl_save_exec_prefix" 6839 prefix="$acl_save_prefix" 6840 6841 else 6842 additional_includedir="$withval/include" 6843 additional_libdir="$withval/lib" 6844 fi 6845 fi 6846 6847fi 6848 6849 6850# Check whether --with-libintl-type was given. 6851if test "${with_libintl_type+set}" = set; then : 6852 withval=$with_libintl_type; with_libintl_type=$withval 6853else 6854 with_libintl_type=auto 6855fi 6856 6857 lib_type=`eval echo \$with_libintl_type` 6858 6859 LIBINTL= 6860 LTLIBINTL= 6861 INCINTL= 6862 rpathdirs= 6863 ltrpathdirs= 6864 names_already_handled= 6865 names_next_round='intl ' 6866 while test -n "$names_next_round"; do 6867 names_this_round="$names_next_round" 6868 names_next_round= 6869 for name in $names_this_round; do 6870 already_handled= 6871 for n in $names_already_handled; do 6872 if test "$n" = "$name"; then 6873 already_handled=yes 6874 break 6875 fi 6876 done 6877 if test -z "$already_handled"; then 6878 names_already_handled="$names_already_handled $name" 6879 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6880 eval value=\"\$HAVE_LIB$uppername\" 6881 if test -n "$value"; then 6882 if test "$value" = yes; then 6883 eval value=\"\$LIB$uppername\" 6884 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 6885 eval value=\"\$LTLIB$uppername\" 6886 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 6887 else 6888 : 6889 fi 6890 else 6891 found_dir= 6892 found_la= 6893 found_so= 6894 found_a= 6895 if test $use_additional = yes; then 6896 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6897 found_dir="$additional_libdir" 6898 found_so="$additional_libdir/lib$name.$shlibext" 6899 if test -f "$additional_libdir/lib$name.la"; then 6900 found_la="$additional_libdir/lib$name.la" 6901 fi 6902 elif test x$lib_type != xshared; then 6903 if test -f "$additional_libdir/lib$name.$libext"; then 6904 found_dir="$additional_libdir" 6905 found_a="$additional_libdir/lib$name.$libext" 6906 if test -f "$additional_libdir/lib$name.la"; then 6907 found_la="$additional_libdir/lib$name.la" 6908 fi 6909 fi 6910 fi 6911 fi 6912 if test "X$found_dir" = "X"; then 6913 for x in $LDFLAGS $LTLIBINTL; do 6914 6915 acl_save_prefix="$prefix" 6916 prefix="$acl_final_prefix" 6917 acl_save_exec_prefix="$exec_prefix" 6918 exec_prefix="$acl_final_exec_prefix" 6919 eval x=\"$x\" 6920 exec_prefix="$acl_save_exec_prefix" 6921 prefix="$acl_save_prefix" 6922 6923 case "$x" in 6924 -L*) 6925 dir=`echo "X$x" | sed -e 's/^X-L//'` 6926 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6927 found_dir="$dir" 6928 found_so="$dir/lib$name.$shlibext" 6929 if test -f "$dir/lib$name.la"; then 6930 found_la="$dir/lib$name.la" 6931 fi 6932 elif test x$lib_type != xshared; then 6933 if test -f "$dir/lib$name.$libext"; then 6934 found_dir="$dir" 6935 found_a="$dir/lib$name.$libext" 6936 if test -f "$dir/lib$name.la"; then 6937 found_la="$dir/lib$name.la" 6938 fi 6939 fi 6940 fi 6941 ;; 6942 esac 6943 if test "X$found_dir" != "X"; then 6944 break 6945 fi 6946 done 6947 fi 6948 if test "X$found_dir" != "X"; then 6949 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 6950 if test "X$found_so" != "X"; then 6951 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6952 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6953 else 6954 haveit= 6955 for x in $ltrpathdirs; do 6956 if test "X$x" = "X$found_dir"; then 6957 haveit=yes 6958 break 6959 fi 6960 done 6961 if test -z "$haveit"; then 6962 ltrpathdirs="$ltrpathdirs $found_dir" 6963 fi 6964 if test "$hardcode_direct" = yes; then 6965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6966 else 6967 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6968 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6969 haveit= 6970 for x in $rpathdirs; do 6971 if test "X$x" = "X$found_dir"; then 6972 haveit=yes 6973 break 6974 fi 6975 done 6976 if test -z "$haveit"; then 6977 rpathdirs="$rpathdirs $found_dir" 6978 fi 6979 else 6980 haveit= 6981 for x in $LDFLAGS $LIBINTL; do 6982 6983 acl_save_prefix="$prefix" 6984 prefix="$acl_final_prefix" 6985 acl_save_exec_prefix="$exec_prefix" 6986 exec_prefix="$acl_final_exec_prefix" 6987 eval x=\"$x\" 6988 exec_prefix="$acl_save_exec_prefix" 6989 prefix="$acl_save_prefix" 6990 6991 if test "X$x" = "X-L$found_dir"; then 6992 haveit=yes 6993 break 6994 fi 6995 done 6996 if test -z "$haveit"; then 6997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 6998 fi 6999 if test "$hardcode_minus_L" != no; then 7000 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7001 else 7002 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7003 fi 7004 fi 7005 fi 7006 fi 7007 else 7008 if test "X$found_a" != "X"; then 7009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 7010 else 7011 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 7012 fi 7013 fi 7014 additional_includedir= 7015 case "$found_dir" in 7016 */lib | */lib/) 7017 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7018 additional_includedir="$basedir/include" 7019 ;; 7020 esac 7021 if test "X$additional_includedir" != "X"; then 7022 if test "X$additional_includedir" != "X/usr/include"; then 7023 haveit= 7024 if test "X$additional_includedir" = "X/usr/local/include"; then 7025 if test -n "$GCC"; then 7026 case $host_os in 7027 linux*) haveit=yes;; 7028 esac 7029 fi 7030 fi 7031 if test -z "$haveit"; then 7032 for x in $CPPFLAGS $INCINTL; do 7033 7034 acl_save_prefix="$prefix" 7035 prefix="$acl_final_prefix" 7036 acl_save_exec_prefix="$exec_prefix" 7037 exec_prefix="$acl_final_exec_prefix" 7038 eval x=\"$x\" 7039 exec_prefix="$acl_save_exec_prefix" 7040 prefix="$acl_save_prefix" 7041 7042 if test "X$x" = "X-I$additional_includedir"; then 7043 haveit=yes 7044 break 7045 fi 7046 done 7047 if test -z "$haveit"; then 7048 if test -d "$additional_includedir"; then 7049 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 7050 fi 7051 fi 7052 fi 7053 fi 7054 fi 7055 if test -n "$found_la"; then 7056 save_libdir="$libdir" 7057 case "$found_la" in 7058 */* | *\\*) . "$found_la" ;; 7059 *) . "./$found_la" ;; 7060 esac 7061 libdir="$save_libdir" 7062 for dep in $dependency_libs; do 7063 case "$dep" in 7064 -L*) 7065 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7066 if test "X$additional_libdir" != "X/usr/lib"; then 7067 haveit= 7068 if test "X$additional_libdir" = "X/usr/local/lib"; then 7069 if test -n "$GCC"; then 7070 case $host_os in 7071 linux*) haveit=yes;; 7072 esac 7073 fi 7074 fi 7075 if test -z "$haveit"; then 7076 haveit= 7077 for x in $LDFLAGS $LIBINTL; do 7078 7079 acl_save_prefix="$prefix" 7080 prefix="$acl_final_prefix" 7081 acl_save_exec_prefix="$exec_prefix" 7082 exec_prefix="$acl_final_exec_prefix" 7083 eval x=\"$x\" 7084 exec_prefix="$acl_save_exec_prefix" 7085 prefix="$acl_save_prefix" 7086 7087 if test "X$x" = "X-L$additional_libdir"; then 7088 haveit=yes 7089 break 7090 fi 7091 done 7092 if test -z "$haveit"; then 7093 if test -d "$additional_libdir"; then 7094 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 7095 fi 7096 fi 7097 haveit= 7098 for x in $LDFLAGS $LTLIBINTL; do 7099 7100 acl_save_prefix="$prefix" 7101 prefix="$acl_final_prefix" 7102 acl_save_exec_prefix="$exec_prefix" 7103 exec_prefix="$acl_final_exec_prefix" 7104 eval x=\"$x\" 7105 exec_prefix="$acl_save_exec_prefix" 7106 prefix="$acl_save_prefix" 7107 7108 if test "X$x" = "X-L$additional_libdir"; then 7109 haveit=yes 7110 break 7111 fi 7112 done 7113 if test -z "$haveit"; then 7114 if test -d "$additional_libdir"; then 7115 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 7116 fi 7117 fi 7118 fi 7119 fi 7120 ;; 7121 -R*) 7122 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7123 if test "$enable_rpath" != no; then 7124 haveit= 7125 for x in $rpathdirs; do 7126 if test "X$x" = "X$dir"; then 7127 haveit=yes 7128 break 7129 fi 7130 done 7131 if test -z "$haveit"; then 7132 rpathdirs="$rpathdirs $dir" 7133 fi 7134 haveit= 7135 for x in $ltrpathdirs; do 7136 if test "X$x" = "X$dir"; then 7137 haveit=yes 7138 break 7139 fi 7140 done 7141 if test -z "$haveit"; then 7142 ltrpathdirs="$ltrpathdirs $dir" 7143 fi 7144 fi 7145 ;; 7146 -l*) 7147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7148 ;; 7149 *.la) 7150 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7151 ;; 7152 *) 7153 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 7154 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 7155 ;; 7156 esac 7157 done 7158 fi 7159 else 7160 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 7161 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7162 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 7163 else 7164 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 7165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 7166 fi 7167 fi 7168 fi 7169 fi 7170 done 7171 done 7172 if test "X$rpathdirs" != "X"; then 7173 if test -n "$hardcode_libdir_separator"; then 7174 alldirs= 7175 for found_dir in $rpathdirs; do 7176 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7177 done 7178 acl_save_libdir="$libdir" 7179 libdir="$alldirs" 7180 eval flag=\"$hardcode_libdir_flag_spec\" 7181 libdir="$acl_save_libdir" 7182 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7183 else 7184 for found_dir in $rpathdirs; do 7185 acl_save_libdir="$libdir" 7186 libdir="$found_dir" 7187 eval flag=\"$hardcode_libdir_flag_spec\" 7188 libdir="$acl_save_libdir" 7189 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7190 done 7191 fi 7192 fi 7193 if test "X$ltrpathdirs" != "X"; then 7194 for found_dir in $ltrpathdirs; do 7195 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 7196 done 7197 fi 7198 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 7200$as_echo_n "checking for GNU gettext in libintl... " >&6; } 7201if eval \${$gt_func_gnugettext_libintl+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 gt_save_CPPFLAGS="$CPPFLAGS" 7205 CPPFLAGS="$CPPFLAGS $INCINTL" 7206 gt_save_LIBS="$LIBS" 7207 LIBS="$LIBS $LIBINTL" 7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209/* end confdefs.h. */ 7210 7211#include <libintl.h> 7212#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 7213extern int _nl_msg_cat_cntr; 7214extern 7215#ifdef __cplusplus 7216"C" 7217#endif 7218const char *_nl_expand_alias (const char *); 7219#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 7220#else 7221#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 7222#endif 7223$gt_revision_test_code 7224 7225int 7226main () 7227{ 7228 7229bindtextdomain ("", ""); 7230return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 7231 7232 ; 7233 return 0; 7234} 7235_ACEOF 7236if ac_fn_c_try_link "$LINENO"; then : 7237 eval "$gt_func_gnugettext_libintl=yes" 7238else 7239 eval "$gt_func_gnugettext_libintl=no" 7240fi 7241rm -f core conftest.err conftest.$ac_objext \ 7242 conftest$ac_exeext conftest.$ac_ext 7243 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 7244 LIBS="$LIBS $LIBICONV" 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247 7248#include <libintl.h> 7249#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 7250extern int _nl_msg_cat_cntr; 7251extern 7252#ifdef __cplusplus 7253"C" 7254#endif 7255const char *_nl_expand_alias (const char *); 7256#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 7257#else 7258#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 7259#endif 7260$gt_revision_test_code 7261 7262int 7263main () 7264{ 7265 7266bindtextdomain ("", ""); 7267return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 7268 7269 ; 7270 return 0; 7271} 7272_ACEOF 7273if ac_fn_c_try_link "$LINENO"; then : 7274 LIBINTL="$LIBINTL $LIBICONV" 7275 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 7276 eval "$gt_func_gnugettext_libintl=yes" 7277 7278fi 7279rm -f core conftest.err conftest.$ac_objext \ 7280 conftest$ac_exeext conftest.$ac_ext 7281 fi 7282 CPPFLAGS="$gt_save_CPPFLAGS" 7283 LIBS="$gt_save_LIBS" 7284fi 7285eval ac_res=\$$gt_func_gnugettext_libintl 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7287$as_echo "$ac_res" >&6; } 7288 fi 7289 7290 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 7291 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 7292 && test "$PACKAGE" != gettext-runtime \ 7293 && test "$PACKAGE" != gettext-tools; }; then 7294 gt_use_preinstalled_gnugettext=yes 7295 else 7296 LIBINTL= 7297 LTLIBINTL= 7298 INCINTL= 7299 fi 7300 7301 7302 7303 if test -n "$INTL_MACOSX_LIBS"; then 7304 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7305 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7306 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 7307 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 7308 fi 7309 fi 7310 7311 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7312 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7313 7314$as_echo "#define ENABLE_NLS 1" >>confdefs.h 7315 7316 else 7317 USE_NLS=no 7318 fi 7319 fi 7320 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 7322$as_echo_n "checking whether to use NLS... " >&6; } 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 7324$as_echo "$USE_NLS" >&6; } 7325 if test "$USE_NLS" = "yes"; then 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 7327$as_echo_n "checking where the gettext function comes from... " >&6; } 7328 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7329 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7330 gt_source="external libintl" 7331 else 7332 gt_source="libc" 7333 fi 7334 else 7335 gt_source="included intl directory" 7336 fi 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 7338$as_echo "$gt_source" >&6; } 7339 fi 7340 7341 if test "$USE_NLS" = "yes"; then 7342 7343 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7344 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 7346$as_echo_n "checking how to link with libintl... " >&6; } 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 7348$as_echo "$LIBINTL" >&6; } 7349 7350 for element in $INCINTL; do 7351 haveit= 7352 for x in $CPPFLAGS; do 7353 7354 acl_save_prefix="$prefix" 7355 prefix="$acl_final_prefix" 7356 acl_save_exec_prefix="$exec_prefix" 7357 exec_prefix="$acl_final_exec_prefix" 7358 eval x=\"$x\" 7359 exec_prefix="$acl_save_exec_prefix" 7360 prefix="$acl_save_prefix" 7361 7362 if test "X$x" = "X$element"; then 7363 haveit=yes 7364 break 7365 fi 7366 done 7367 if test -z "$haveit"; then 7368 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7369 fi 7370 done 7371 7372 fi 7373 7374 7375$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 7376 7377 7378$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 7379 7380 fi 7381 7382 POSUB=po 7383 fi 7384 7385 7386 7387 INTLLIBS="$LIBINTL" 7388 7389 7390 7391 7392 7393 7394fi 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 7407$as_echo_n "checking whether NLS is requested... " >&6; } 7408if test x"$USE_NLS" != xyes; then 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410$as_echo "no" >&6; } 7411else 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7413$as_echo "yes" >&6; } 7414 7415$as_echo "#define ENABLE_NLS 1" >>confdefs.h 7416 7417 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 7419$as_echo_n "checking for catalogs to be installed... " >&6; } 7420 # Look for .po and .gmo files in the source directory. 7421 CATALOGS= 7422 XLINGUAS= 7423 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 7424 # If there aren't any .gmo files the shell will give us the 7425 # literal string "../path/to/srcdir/po/*.gmo" which has to be 7426 # weeded out. 7427 case "$cat" in *\**) 7428 continue;; 7429 esac 7430 # The quadruple backslash is collapsed to a double backslash 7431 # by the backticks, then collapsed again by the double quotes, 7432 # leaving us with one backslash in the sed expression (right 7433 # before the dot that mustn't act as a wildcard). 7434 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 7435 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 7436 # The user is allowed to set LINGUAS to a list of languages to 7437 # install catalogs for. If it's empty that means "all of them." 7438 if test "x$LINGUAS" = x; then 7439 CATALOGS="$CATALOGS $cat" 7440 XLINGUAS="$XLINGUAS $lang" 7441 else 7442 case "$LINGUAS" in *$lang*) 7443 CATALOGS="$CATALOGS $cat" 7444 XLINGUAS="$XLINGUAS $lang" 7445 ;; 7446 esac 7447 fi 7448 done 7449 LINGUAS="$XLINGUAS" 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 7451$as_echo "$LINGUAS" >&6; } 7452 7453 7454 DATADIRNAME=share 7455 7456 INSTOBJEXT=.mo 7457 7458 GENCAT=gencat 7459 7460 CATOBJEXT=.gmo 7461 7462fi 7463 7464# Check whether --enable-shared was given. 7465if test "${enable_shared+set}" = set; then : 7466 enableval=$enable_shared; p=${PACKAGE-default} 7467 case $enableval in 7468 yes) enable_shared=yes ;; 7469 no) enable_shared=no ;; 7470 *) 7471 enable_shared=no 7472 # Look at the argument we got. We use all the common list separators. 7473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7474 for pkg in $enableval; do 7475 IFS="$lt_save_ifs" 7476 if test "X$pkg" = "X$p"; then 7477 enable_shared=yes 7478 fi 7479 done 7480 IFS="$lt_save_ifs" 7481 ;; 7482 esac 7483else 7484 enable_shared=no 7485fi 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496case `pwd` in 7497 *\ * | *\ *) 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7499$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7500esac 7501 7502 7503 7504macro_version='2.2.7a' 7505macro_revision='1.3134' 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519ltmain="$ac_aux_dir/ltmain.sh" 7520 7521# Backslashify metacharacters that are still active within 7522# double-quoted strings. 7523sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7524 7525# Same as above, but do not quote variable references. 7526double_quote_subst='s/\(["`\\]\)/\\\1/g' 7527 7528# Sed substitution to delay expansion of an escaped shell variable in a 7529# double_quote_subst'ed string. 7530delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7531 7532# Sed substitution to delay expansion of an escaped single quote. 7533delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7534 7535# Sed substitution to avoid accidental globbing in evaled expressions 7536no_glob_subst='s/\*/\\\*/g' 7537 7538ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7539ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7540ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7541 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7543$as_echo_n "checking how to print strings... " >&6; } 7544# Test print first, because it will be a builtin if present. 7545if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 7546 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7547 ECHO='print -r --' 7548elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7549 ECHO='printf %s\n' 7550else 7551 # Use this function as a fallback that always works. 7552 func_fallback_echo () 7553 { 7554 eval 'cat <<_LTECHO_EOF 7555$1 7556_LTECHO_EOF' 7557 } 7558 ECHO='func_fallback_echo' 7559fi 7560 7561# func_echo_all arg... 7562# Invoke $ECHO with all args, space-separated. 7563func_echo_all () 7564{ 7565 $ECHO "" 7566} 7567 7568case "$ECHO" in 7569 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7570$as_echo "printf" >&6; } ;; 7571 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7572$as_echo "print -r" >&6; } ;; 7573 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7574$as_echo "cat" >&6; } ;; 7575esac 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7591$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7592if ${ac_cv_path_SED+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7596 for ac_i in 1 2 3 4 5 6 7; do 7597 ac_script="$ac_script$as_nl$ac_script" 7598 done 7599 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7600 { ac_script=; unset ac_script;} 7601 if test -z "$SED"; then 7602 ac_path_SED_found=false 7603 # Loop through the user's path and test for each of PROGNAME-LIST 7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7605for as_dir in $PATH 7606do 7607 IFS=$as_save_IFS 7608 test -z "$as_dir" && as_dir=. 7609 for ac_prog in sed gsed; do 7610 for ac_exec_ext in '' $ac_executable_extensions; do 7611 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7612 as_fn_executable_p "$ac_path_SED" || continue 7613# Check for GNU ac_path_SED and select it if it is found. 7614 # Check for GNU $ac_path_SED 7615case `"$ac_path_SED" --version 2>&1` in 7616*GNU*) 7617 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7618*) 7619 ac_count=0 7620 $as_echo_n 0123456789 >"conftest.in" 7621 while : 7622 do 7623 cat "conftest.in" "conftest.in" >"conftest.tmp" 7624 mv "conftest.tmp" "conftest.in" 7625 cp "conftest.in" "conftest.nl" 7626 $as_echo '' >> "conftest.nl" 7627 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7629 as_fn_arith $ac_count + 1 && ac_count=$as_val 7630 if test $ac_count -gt ${ac_path_SED_max-0}; then 7631 # Best one so far, save it but keep looking for a better one 7632 ac_cv_path_SED="$ac_path_SED" 7633 ac_path_SED_max=$ac_count 7634 fi 7635 # 10*(2^10) chars as input seems more than enough 7636 test $ac_count -gt 10 && break 7637 done 7638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7639esac 7640 7641 $ac_path_SED_found && break 3 7642 done 7643 done 7644 done 7645IFS=$as_save_IFS 7646 if test -z "$ac_cv_path_SED"; then 7647 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7648 fi 7649else 7650 ac_cv_path_SED=$SED 7651fi 7652 7653fi 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7655$as_echo "$ac_cv_path_SED" >&6; } 7656 SED="$ac_cv_path_SED" 7657 rm -f conftest.sed 7658 7659test -z "$SED" && SED=sed 7660Xsed="$SED -e 1s/^X//" 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7673$as_echo_n "checking for fgrep... " >&6; } 7674if ${ac_cv_path_FGREP+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7678 then ac_cv_path_FGREP="$GREP -F" 7679 else 7680 if test -z "$FGREP"; then 7681 ac_path_FGREP_found=false 7682 # Loop through the user's path and test for each of PROGNAME-LIST 7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7684for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7685do 7686 IFS=$as_save_IFS 7687 test -z "$as_dir" && as_dir=. 7688 for ac_prog in fgrep; do 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7691 as_fn_executable_p "$ac_path_FGREP" || continue 7692# Check for GNU ac_path_FGREP and select it if it is found. 7693 # Check for GNU $ac_path_FGREP 7694case `"$ac_path_FGREP" --version 2>&1` in 7695*GNU*) 7696 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7697*) 7698 ac_count=0 7699 $as_echo_n 0123456789 >"conftest.in" 7700 while : 7701 do 7702 cat "conftest.in" "conftest.in" >"conftest.tmp" 7703 mv "conftest.tmp" "conftest.in" 7704 cp "conftest.in" "conftest.nl" 7705 $as_echo 'FGREP' >> "conftest.nl" 7706 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7708 as_fn_arith $ac_count + 1 && ac_count=$as_val 7709 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7710 # Best one so far, save it but keep looking for a better one 7711 ac_cv_path_FGREP="$ac_path_FGREP" 7712 ac_path_FGREP_max=$ac_count 7713 fi 7714 # 10*(2^10) chars as input seems more than enough 7715 test $ac_count -gt 10 && break 7716 done 7717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7718esac 7719 7720 $ac_path_FGREP_found && break 3 7721 done 7722 done 7723 done 7724IFS=$as_save_IFS 7725 if test -z "$ac_cv_path_FGREP"; then 7726 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7727 fi 7728else 7729 ac_cv_path_FGREP=$FGREP 7730fi 7731 7732 fi 7733fi 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7735$as_echo "$ac_cv_path_FGREP" >&6; } 7736 FGREP="$ac_cv_path_FGREP" 7737 7738 7739test -z "$GREP" && GREP=grep 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759# Check whether --with-gnu-ld was given. 7760if test "${with_gnu_ld+set}" = set; then : 7761 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7762else 7763 with_gnu_ld=no 7764fi 7765 7766ac_prog=ld 7767if test "$GCC" = yes; then 7768 # Check if gcc -print-prog-name=ld gives a path. 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7770$as_echo_n "checking for ld used by $CC... " >&6; } 7771 case $host in 7772 *-*-mingw*) 7773 # gcc leaves a trailing carriage return which upsets mingw 7774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7775 *) 7776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7777 esac 7778 case $ac_prog in 7779 # Accept absolute paths. 7780 [\\/]* | ?:[\\/]*) 7781 re_direlt='/[^/][^/]*/\.\./' 7782 # Canonicalize the pathname of ld 7783 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7784 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7785 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7786 done 7787 test -z "$LD" && LD="$ac_prog" 7788 ;; 7789 "") 7790 # If it fails, then pretend we aren't using GCC. 7791 ac_prog=ld 7792 ;; 7793 *) 7794 # If it is relative, then search for the first ld in PATH. 7795 with_gnu_ld=unknown 7796 ;; 7797 esac 7798elif test "$with_gnu_ld" = yes; then 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7800$as_echo_n "checking for GNU ld... " >&6; } 7801else 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7803$as_echo_n "checking for non-GNU ld... " >&6; } 7804fi 7805if ${lt_cv_path_LD+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 if test -z "$LD"; then 7809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7810 for ac_dir in $PATH; do 7811 IFS="$lt_save_ifs" 7812 test -z "$ac_dir" && ac_dir=. 7813 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7814 lt_cv_path_LD="$ac_dir/$ac_prog" 7815 # Check to see if the program is GNU ld. I'd rather use --version, 7816 # but apparently some variants of GNU ld only accept -v. 7817 # Break only if it was the GNU/non-GNU ld that we prefer. 7818 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7819 *GNU* | *'with BFD'*) 7820 test "$with_gnu_ld" != no && break 7821 ;; 7822 *) 7823 test "$with_gnu_ld" != yes && break 7824 ;; 7825 esac 7826 fi 7827 done 7828 IFS="$lt_save_ifs" 7829else 7830 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7831fi 7832fi 7833 7834LD="$lt_cv_path_LD" 7835if test -n "$LD"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7837$as_echo "$LD" >&6; } 7838else 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7840$as_echo "no" >&6; } 7841fi 7842test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7844$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7845if ${lt_cv_prog_gnu_ld+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7849case `$LD -v 2>&1 </dev/null` in 7850*GNU* | *'with BFD'*) 7851 lt_cv_prog_gnu_ld=yes 7852 ;; 7853*) 7854 lt_cv_prog_gnu_ld=no 7855 ;; 7856esac 7857fi 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7859$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7860with_gnu_ld=$lt_cv_prog_gnu_ld 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7871$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7872if ${lt_cv_path_NM+:} false; then : 7873 $as_echo_n "(cached) " >&6 7874else 7875 if test -n "$NM"; then 7876 # Let the user override the nm to test. 7877 lt_nm_to_check="$NM" 7878 else 7879 lt_nm_to_check="${ac_tool_prefix}nm" 7880 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7881 lt_nm_to_check="$lt_nm_to_check nm" 7882 fi 7883 fi 7884 for lt_tmp_nm in "$lt_nm_to_check"; do 7885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7886 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7887 IFS="$lt_save_ifs" 7888 test -z "$ac_dir" && ac_dir=. 7889 # Strip out any user-provided options from the nm to test twice, 7890 # the first time to test to see if nm (rather than its options) has 7891 # an explicit path, the second time to yield a file which can be 7892 # nm'ed itself. 7893 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 7894 case "$tmp_nm_path" in 7895 */*|*\\*) tmp_nm="$lt_tmp_nm";; 7896 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 7897 esac 7898 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 7899 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 7900 # Check to see if the nm accepts a BSD-compat flag. 7901 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7902 # nm: unknown option "B" ignored 7903 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 7904 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 7905 break 7906 ;; 7907 *) 7908 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 7909 *$tmp_nm*) 7910 lt_cv_path_NM="$tmp_nm -p" 7911 break 7912 ;; 7913 *) 7914 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7915 continue # so that we can try to find one that supports BSD flags 7916 ;; 7917 esac 7918 ;; 7919 esac 7920 fi 7921 done 7922 IFS="$lt_save_ifs" 7923 done 7924 : ${lt_cv_path_NM=no} 7925fi 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7927$as_echo "$lt_cv_path_NM" >&6; } 7928if test "$lt_cv_path_NM" != "no"; then 7929 NM="$lt_cv_path_NM" 7930else 7931 # Didn't find any BSD compatible name lister, look for dumpbin. 7932 if test -n "$DUMPBIN"; then : 7933 # Let the user override the test. 7934 else 7935 if test -n "$ac_tool_prefix"; then 7936 for ac_prog in dumpbin "link -dump" 7937 do 7938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7939set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7941$as_echo_n "checking for $ac_word... " >&6; } 7942if ${ac_cv_prog_DUMPBIN+:} false; then : 7943 $as_echo_n "(cached) " >&6 7944else 7945 if test -n "$DUMPBIN"; then 7946 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7947else 7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7949for as_dir in $PATH 7950do 7951 IFS=$as_save_IFS 7952 test -z "$as_dir" && as_dir=. 7953 for ac_exec_ext in '' $ac_executable_extensions; do 7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7955 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7957 break 2 7958 fi 7959done 7960 done 7961IFS=$as_save_IFS 7962 7963fi 7964fi 7965DUMPBIN=$ac_cv_prog_DUMPBIN 7966if test -n "$DUMPBIN"; then 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7968$as_echo "$DUMPBIN" >&6; } 7969else 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971$as_echo "no" >&6; } 7972fi 7973 7974 7975 test -n "$DUMPBIN" && break 7976 done 7977fi 7978if test -z "$DUMPBIN"; then 7979 ac_ct_DUMPBIN=$DUMPBIN 7980 for ac_prog in dumpbin "link -dump" 7981do 7982 # Extract the first word of "$ac_prog", so it can be a program name with args. 7983set dummy $ac_prog; ac_word=$2 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7985$as_echo_n "checking for $ac_word... " >&6; } 7986if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988else 7989 if test -n "$ac_ct_DUMPBIN"; then 7990 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7991else 7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7993for as_dir in $PATH 7994do 7995 IFS=$as_save_IFS 7996 test -z "$as_dir" && as_dir=. 7997 for ac_exec_ext in '' $ac_executable_extensions; do 7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7999 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8001 break 2 8002 fi 8003done 8004 done 8005IFS=$as_save_IFS 8006 8007fi 8008fi 8009ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8010if test -n "$ac_ct_DUMPBIN"; then 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8012$as_echo "$ac_ct_DUMPBIN" >&6; } 8013else 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8015$as_echo "no" >&6; } 8016fi 8017 8018 8019 test -n "$ac_ct_DUMPBIN" && break 8020done 8021 8022 if test "x$ac_ct_DUMPBIN" = x; then 8023 DUMPBIN=":" 8024 else 8025 case $cross_compiling:$ac_tool_warned in 8026yes:) 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8029ac_tool_warned=yes ;; 8030esac 8031 DUMPBIN=$ac_ct_DUMPBIN 8032 fi 8033fi 8034 8035 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 8036 *COFF*) 8037 DUMPBIN="$DUMPBIN -symbols" 8038 ;; 8039 *) 8040 DUMPBIN=: 8041 ;; 8042 esac 8043 fi 8044 8045 if test "$DUMPBIN" != ":"; then 8046 NM="$DUMPBIN" 8047 fi 8048fi 8049test -z "$NM" && NM=nm 8050 8051 8052 8053 8054 8055 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8057$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8058if ${lt_cv_nm_interface+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 lt_cv_nm_interface="BSD nm" 8062 echo "int some_variable = 0;" > conftest.$ac_ext 8063 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8064 (eval "$ac_compile" 2>conftest.err) 8065 cat conftest.err >&5 8066 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8067 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8068 cat conftest.err >&5 8069 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8070 cat conftest.out >&5 8071 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8072 lt_cv_nm_interface="MS dumpbin" 8073 fi 8074 rm -f conftest* 8075fi 8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8077$as_echo "$lt_cv_nm_interface" >&6; } 8078 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8080$as_echo_n "checking whether ln -s works... " >&6; } 8081LN_S=$as_ln_s 8082if test "$LN_S" = "ln -s"; then 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8084$as_echo "yes" >&6; } 8085else 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8087$as_echo "no, using $LN_S" >&6; } 8088fi 8089 8090# find the maximum length of command line arguments 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8092$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8093if ${lt_cv_sys_max_cmd_len+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095else 8096 i=0 8097 teststring="ABCD" 8098 8099 case $build_os in 8100 msdosdjgpp*) 8101 # On DJGPP, this test can blow up pretty badly due to problems in libc 8102 # (any single argument exceeding 2000 bytes causes a buffer overrun 8103 # during glob expansion). Even if it were fixed, the result of this 8104 # check would be larger than it should be. 8105 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8106 ;; 8107 8108 gnu*) 8109 # Under GNU Hurd, this test is not required because there is 8110 # no limit to the length of command line arguments. 8111 # Libtool will interpret -1 as no limit whatsoever 8112 lt_cv_sys_max_cmd_len=-1; 8113 ;; 8114 8115 cygwin* | mingw* | cegcc*) 8116 # On Win9x/ME, this test blows up -- it succeeds, but takes 8117 # about 5 minutes as the teststring grows exponentially. 8118 # Worse, since 9x/ME are not pre-emptively multitasking, 8119 # you end up with a "frozen" computer, even though with patience 8120 # the test eventually succeeds (with a max line length of 256k). 8121 # Instead, let's just punt: use the minimum linelength reported by 8122 # all of the supported platforms: 8192 (on NT/2K/XP). 8123 lt_cv_sys_max_cmd_len=8192; 8124 ;; 8125 8126 mint*) 8127 # On MiNT this can take a long time and run out of memory. 8128 lt_cv_sys_max_cmd_len=8192; 8129 ;; 8130 8131 amigaos*) 8132 # On AmigaOS with pdksh, this test takes hours, literally. 8133 # So we just punt and use a minimum line length of 8192. 8134 lt_cv_sys_max_cmd_len=8192; 8135 ;; 8136 8137 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8138 # This has been around since 386BSD, at least. Likely further. 8139 if test -x /sbin/sysctl; then 8140 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8141 elif test -x /usr/sbin/sysctl; then 8142 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8143 else 8144 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8145 fi 8146 # And add a safety zone 8147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8149 ;; 8150 8151 interix*) 8152 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8153 lt_cv_sys_max_cmd_len=196608 8154 ;; 8155 8156 osf*) 8157 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8158 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8159 # nice to cause kernel panics so lets avoid the loop below. 8160 # First set a reasonable default. 8161 lt_cv_sys_max_cmd_len=16384 8162 # 8163 if test -x /sbin/sysconfig; then 8164 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8165 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8166 esac 8167 fi 8168 ;; 8169 sco3.2v5*) 8170 lt_cv_sys_max_cmd_len=102400 8171 ;; 8172 sysv5* | sco5v6* | sysv4.2uw2*) 8173 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8174 if test -n "$kargmax"; then 8175 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8176 else 8177 lt_cv_sys_max_cmd_len=32768 8178 fi 8179 ;; 8180 *) 8181 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8182 if test -n "$lt_cv_sys_max_cmd_len"; then 8183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8185 else 8186 # Make teststring a little bigger before we do anything with it. 8187 # a 1K string should be a reasonable start. 8188 for i in 1 2 3 4 5 6 7 8 ; do 8189 teststring=$teststring$teststring 8190 done 8191 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8192 # If test is not a shell built-in, we'll probably end up computing a 8193 # maximum length that is only half of the actual maximum length, but 8194 # we can't tell. 8195 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 8196 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8197 test $i != 17 # 1/2 MB should be enough 8198 do 8199 i=`expr $i + 1` 8200 teststring=$teststring$teststring 8201 done 8202 # Only check the string length outside the loop. 8203 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8204 teststring= 8205 # Add a significant safety factor because C++ compilers can tack on 8206 # massive amounts of additional arguments before passing them to the 8207 # linker. It appears as though 1/2 is a usable value. 8208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8209 fi 8210 ;; 8211 esac 8212 8213fi 8214 8215if test -n $lt_cv_sys_max_cmd_len ; then 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8217$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8218else 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8220$as_echo "none" >&6; } 8221fi 8222max_cmd_len=$lt_cv_sys_max_cmd_len 8223 8224 8225 8226 8227 8228 8229: ${CP="cp -f"} 8230: ${MV="mv -f"} 8231: ${RM="rm -f"} 8232 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8234$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8235# Try some XSI features 8236xsi_shell=no 8237( _lt_dummy="a/b/c" 8238 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 8239 = c,a/b,, \ 8240 && eval 'test $(( 1 + 1 )) -eq 2 \ 8241 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8242 && xsi_shell=yes 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 8244$as_echo "$xsi_shell" >&6; } 8245 8246 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 8248$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 8249lt_shell_append=no 8250( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 8251 >/dev/null 2>&1 \ 8252 && lt_shell_append=yes 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 8254$as_echo "$lt_shell_append" >&6; } 8255 8256 8257if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8258 lt_unset=unset 8259else 8260 lt_unset=false 8261fi 8262 8263 8264 8265 8266 8267# test EBCDIC or ASCII 8268case `echo X|tr X '\101'` in 8269 A) # ASCII based system 8270 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8271 lt_SP2NL='tr \040 \012' 8272 lt_NL2SP='tr \015\012 \040\040' 8273 ;; 8274 *) # EBCDIC based system 8275 lt_SP2NL='tr \100 \n' 8276 lt_NL2SP='tr \r\n \100\100' 8277 ;; 8278esac 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8289$as_echo_n "checking for $LD option to reload object files... " >&6; } 8290if ${lt_cv_ld_reload_flag+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292else 8293 lt_cv_ld_reload_flag='-r' 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8296$as_echo "$lt_cv_ld_reload_flag" >&6; } 8297reload_flag=$lt_cv_ld_reload_flag 8298case $reload_flag in 8299"" | " "*) ;; 8300*) reload_flag=" $reload_flag" ;; 8301esac 8302reload_cmds='$LD$reload_flag -o $output$reload_objs' 8303case $host_os in 8304 darwin*) 8305 if test "$GCC" = yes; then 8306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8307 else 8308 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8309 fi 8310 ;; 8311esac 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321if test -n "$ac_tool_prefix"; then 8322 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8323set dummy ${ac_tool_prefix}objdump; ac_word=$2 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8325$as_echo_n "checking for $ac_word... " >&6; } 8326if ${ac_cv_prog_OBJDUMP+:} false; then : 8327 $as_echo_n "(cached) " >&6 8328else 8329 if test -n "$OBJDUMP"; then 8330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8331else 8332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8333for as_dir in $PATH 8334do 8335 IFS=$as_save_IFS 8336 test -z "$as_dir" && as_dir=. 8337 for ac_exec_ext in '' $ac_executable_extensions; do 8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8339 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8341 break 2 8342 fi 8343done 8344 done 8345IFS=$as_save_IFS 8346 8347fi 8348fi 8349OBJDUMP=$ac_cv_prog_OBJDUMP 8350if test -n "$OBJDUMP"; then 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8352$as_echo "$OBJDUMP" >&6; } 8353else 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8355$as_echo "no" >&6; } 8356fi 8357 8358 8359fi 8360if test -z "$ac_cv_prog_OBJDUMP"; then 8361 ac_ct_OBJDUMP=$OBJDUMP 8362 # Extract the first word of "objdump", so it can be a program name with args. 8363set dummy objdump; ac_word=$2 8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8365$as_echo_n "checking for $ac_word... " >&6; } 8366if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8367 $as_echo_n "(cached) " >&6 8368else 8369 if test -n "$ac_ct_OBJDUMP"; then 8370 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8371else 8372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8373for as_dir in $PATH 8374do 8375 IFS=$as_save_IFS 8376 test -z "$as_dir" && as_dir=. 8377 for ac_exec_ext in '' $ac_executable_extensions; do 8378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8379 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8381 break 2 8382 fi 8383done 8384 done 8385IFS=$as_save_IFS 8386 8387fi 8388fi 8389ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8390if test -n "$ac_ct_OBJDUMP"; then 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8392$as_echo "$ac_ct_OBJDUMP" >&6; } 8393else 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8395$as_echo "no" >&6; } 8396fi 8397 8398 if test "x$ac_ct_OBJDUMP" = x; then 8399 OBJDUMP="false" 8400 else 8401 case $cross_compiling:$ac_tool_warned in 8402yes:) 8403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8405ac_tool_warned=yes ;; 8406esac 8407 OBJDUMP=$ac_ct_OBJDUMP 8408 fi 8409else 8410 OBJDUMP="$ac_cv_prog_OBJDUMP" 8411fi 8412 8413test -z "$OBJDUMP" && OBJDUMP=objdump 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8424$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8425if ${lt_cv_deplibs_check_method+:} false; then : 8426 $as_echo_n "(cached) " >&6 8427else 8428 lt_cv_file_magic_cmd='$MAGIC_CMD' 8429lt_cv_file_magic_test_file= 8430lt_cv_deplibs_check_method='unknown' 8431# Need to set the preceding variable on all platforms that support 8432# interlibrary dependencies. 8433# 'none' -- dependencies not supported. 8434# `unknown' -- same as none, but documents that we really don't know. 8435# 'pass_all' -- all dependencies passed with no checks. 8436# 'test_compile' -- check by making test program. 8437# 'file_magic [[regex]]' -- check by looking for files in library path 8438# which responds to the $file_magic_cmd with a given extended regex. 8439# If you have `file' or equivalent on your system and you're not sure 8440# whether `pass_all' will *always* work, you probably want this one. 8441 8442case $host_os in 8443aix[4-9]*) 8444 lt_cv_deplibs_check_method=pass_all 8445 ;; 8446 8447beos*) 8448 lt_cv_deplibs_check_method=pass_all 8449 ;; 8450 8451bsdi[45]*) 8452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8453 lt_cv_file_magic_cmd='/usr/bin/file -L' 8454 lt_cv_file_magic_test_file=/shlib/libc.so 8455 ;; 8456 8457cygwin*) 8458 # func_win32_libid is a shell function defined in ltmain.sh 8459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8460 lt_cv_file_magic_cmd='func_win32_libid' 8461 ;; 8462 8463mingw* | pw32*) 8464 # Base MSYS/MinGW do not provide the 'file' command needed by 8465 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8466 # unless we find 'file', for example because we are cross-compiling. 8467 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8468 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8470 lt_cv_file_magic_cmd='func_win32_libid' 8471 else 8472 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 8473 lt_cv_file_magic_cmd='$OBJDUMP -f' 8474 fi 8475 ;; 8476 8477cegcc*) 8478 # use the weaker test based on 'objdump'. See mingw*. 8479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8480 lt_cv_file_magic_cmd='$OBJDUMP -f' 8481 ;; 8482 8483darwin* | rhapsody*) 8484 lt_cv_deplibs_check_method=pass_all 8485 ;; 8486 8487freebsd* | dragonfly*) 8488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8489 case $host_cpu in 8490 i*86 ) 8491 # Not sure whether the presence of OpenBSD here was a mistake. 8492 # Let's accept both of them until this is cleared up. 8493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8494 lt_cv_file_magic_cmd=/usr/bin/file 8495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8496 ;; 8497 esac 8498 else 8499 lt_cv_deplibs_check_method=pass_all 8500 fi 8501 ;; 8502 8503gnu*) 8504 lt_cv_deplibs_check_method=pass_all 8505 ;; 8506 8507haiku*) 8508 lt_cv_deplibs_check_method=pass_all 8509 ;; 8510 8511hpux10.20* | hpux11*) 8512 lt_cv_file_magic_cmd=/usr/bin/file 8513 case $host_cpu in 8514 ia64*) 8515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8517 ;; 8518 hppa*64*) 8519 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]' 8520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8521 ;; 8522 *) 8523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8524 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8525 ;; 8526 esac 8527 ;; 8528 8529interix[3-9]*) 8530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8532 ;; 8533 8534irix5* | irix6* | nonstopux*) 8535 case $LD in 8536 *-32|*"-32 ") libmagic=32-bit;; 8537 *-n32|*"-n32 ") libmagic=N32;; 8538 *-64|*"-64 ") libmagic=64-bit;; 8539 *) libmagic=never-match;; 8540 esac 8541 lt_cv_deplibs_check_method=pass_all 8542 ;; 8543 8544# This must be Linux ELF. 8545linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8546 lt_cv_deplibs_check_method=pass_all 8547 ;; 8548 8549netbsd*) 8550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8552 else 8553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8554 fi 8555 ;; 8556 8557newos6*) 8558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8559 lt_cv_file_magic_cmd=/usr/bin/file 8560 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8561 ;; 8562 8563*nto* | *qnx*) 8564 lt_cv_deplibs_check_method=pass_all 8565 ;; 8566 8567openbsd*) 8568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8570 else 8571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8572 fi 8573 ;; 8574 8575osf3* | osf4* | osf5*) 8576 lt_cv_deplibs_check_method=pass_all 8577 ;; 8578 8579rdos*) 8580 lt_cv_deplibs_check_method=pass_all 8581 ;; 8582 8583solaris*) 8584 lt_cv_deplibs_check_method=pass_all 8585 ;; 8586 8587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8588 lt_cv_deplibs_check_method=pass_all 8589 ;; 8590 8591sysv4 | sysv4.3*) 8592 case $host_vendor in 8593 motorola) 8594 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]' 8595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8596 ;; 8597 ncr) 8598 lt_cv_deplibs_check_method=pass_all 8599 ;; 8600 sequent) 8601 lt_cv_file_magic_cmd='/bin/file' 8602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8603 ;; 8604 sni) 8605 lt_cv_file_magic_cmd='/bin/file' 8606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8607 lt_cv_file_magic_test_file=/lib/libc.so 8608 ;; 8609 siemens) 8610 lt_cv_deplibs_check_method=pass_all 8611 ;; 8612 pc) 8613 lt_cv_deplibs_check_method=pass_all 8614 ;; 8615 esac 8616 ;; 8617 8618tpf*) 8619 lt_cv_deplibs_check_method=pass_all 8620 ;; 8621vxworks*) 8622 # Assume VxWorks cross toolchains are built on Linux, possibly 8623 # as canadian for Windows hosts. 8624 lt_cv_deplibs_check_method=pass_all 8625 ;; 8626esac 8627 8628fi 8629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8630$as_echo "$lt_cv_deplibs_check_method" >&6; } 8631file_magic_cmd=$lt_cv_file_magic_cmd 8632deplibs_check_method=$lt_cv_deplibs_check_method 8633test -z "$deplibs_check_method" && deplibs_check_method=unknown 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646plugin_option= 8647plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 8648for plugin in $plugin_names; do 8649 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 8650 if test x$plugin_so = x$plugin; then 8651 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 8652 fi 8653 if test x$plugin_so != x$plugin; then 8654 plugin_option="--plugin $plugin_so" 8655 break 8656 fi 8657done 8658 8659if test -n "$ac_tool_prefix"; then 8660 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8661set dummy ${ac_tool_prefix}ar; ac_word=$2 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8663$as_echo_n "checking for $ac_word... " >&6; } 8664if ${ac_cv_prog_AR+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666else 8667 if test -n "$AR"; then 8668 ac_cv_prog_AR="$AR" # Let the user override the test. 8669else 8670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8671for as_dir in $PATH 8672do 8673 IFS=$as_save_IFS 8674 test -z "$as_dir" && as_dir=. 8675 for ac_exec_ext in '' $ac_executable_extensions; do 8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8677 ac_cv_prog_AR="${ac_tool_prefix}ar" 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8679 break 2 8680 fi 8681done 8682 done 8683IFS=$as_save_IFS 8684 8685fi 8686fi 8687AR=$ac_cv_prog_AR 8688if test -n "$AR"; then 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8690$as_echo "$AR" >&6; } 8691else 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8693$as_echo "no" >&6; } 8694fi 8695 8696 8697fi 8698if test -z "$ac_cv_prog_AR"; then 8699 ac_ct_AR=$AR 8700 # Extract the first word of "ar", so it can be a program name with args. 8701set dummy ar; ac_word=$2 8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8703$as_echo_n "checking for $ac_word... " >&6; } 8704if ${ac_cv_prog_ac_ct_AR+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 if test -n "$ac_ct_AR"; then 8708 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8709else 8710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8711for as_dir in $PATH 8712do 8713 IFS=$as_save_IFS 8714 test -z "$as_dir" && as_dir=. 8715 for ac_exec_ext in '' $ac_executable_extensions; do 8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8717 ac_cv_prog_ac_ct_AR="ar" 8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8719 break 2 8720 fi 8721done 8722 done 8723IFS=$as_save_IFS 8724 8725fi 8726fi 8727ac_ct_AR=$ac_cv_prog_ac_ct_AR 8728if test -n "$ac_ct_AR"; then 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8730$as_echo "$ac_ct_AR" >&6; } 8731else 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8733$as_echo "no" >&6; } 8734fi 8735 8736 if test "x$ac_ct_AR" = x; then 8737 AR="false" 8738 else 8739 case $cross_compiling:$ac_tool_warned in 8740yes:) 8741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8743ac_tool_warned=yes ;; 8744esac 8745 AR=$ac_ct_AR 8746 fi 8747else 8748 AR="$ac_cv_prog_AR" 8749fi 8750 8751test -z "$AR" && AR=ar 8752if test -n "$plugin_option"; then 8753 if $AR --help 2>&1 | grep -q "\--plugin"; then 8754 touch conftest.c 8755 $AR $plugin_option rc conftest.a conftest.c 8756 if test "$?" != 0; then 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 8758$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 8759 else 8760 AR="$AR $plugin_option" 8761 fi 8762 rm -f conftest.* 8763 fi 8764fi 8765test -z "$AR_FLAGS" && AR_FLAGS=cru 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777if test -n "$ac_tool_prefix"; then 8778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8779set dummy ${ac_tool_prefix}strip; ac_word=$2 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8781$as_echo_n "checking for $ac_word... " >&6; } 8782if ${ac_cv_prog_STRIP+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 if test -n "$STRIP"; then 8786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8787else 8788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8789for as_dir in $PATH 8790do 8791 IFS=$as_save_IFS 8792 test -z "$as_dir" && as_dir=. 8793 for ac_exec_ext in '' $ac_executable_extensions; do 8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8795 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8797 break 2 8798 fi 8799done 8800 done 8801IFS=$as_save_IFS 8802 8803fi 8804fi 8805STRIP=$ac_cv_prog_STRIP 8806if test -n "$STRIP"; then 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8808$as_echo "$STRIP" >&6; } 8809else 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8811$as_echo "no" >&6; } 8812fi 8813 8814 8815fi 8816if test -z "$ac_cv_prog_STRIP"; then 8817 ac_ct_STRIP=$STRIP 8818 # Extract the first word of "strip", so it can be a program name with args. 8819set dummy strip; ac_word=$2 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8821$as_echo_n "checking for $ac_word... " >&6; } 8822if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 if test -n "$ac_ct_STRIP"; then 8826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8827else 8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8829for as_dir in $PATH 8830do 8831 IFS=$as_save_IFS 8832 test -z "$as_dir" && as_dir=. 8833 for ac_exec_ext in '' $ac_executable_extensions; do 8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8835 ac_cv_prog_ac_ct_STRIP="strip" 8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8837 break 2 8838 fi 8839done 8840 done 8841IFS=$as_save_IFS 8842 8843fi 8844fi 8845ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8846if test -n "$ac_ct_STRIP"; then 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8848$as_echo "$ac_ct_STRIP" >&6; } 8849else 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851$as_echo "no" >&6; } 8852fi 8853 8854 if test "x$ac_ct_STRIP" = x; then 8855 STRIP=":" 8856 else 8857 case $cross_compiling:$ac_tool_warned in 8858yes:) 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8861ac_tool_warned=yes ;; 8862esac 8863 STRIP=$ac_ct_STRIP 8864 fi 8865else 8866 STRIP="$ac_cv_prog_STRIP" 8867fi 8868 8869test -z "$STRIP" && STRIP=: 8870 8871 8872 8873 8874 8875 8876if test -n "$ac_tool_prefix"; then 8877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8878set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8880$as_echo_n "checking for $ac_word... " >&6; } 8881if ${ac_cv_prog_RANLIB+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883else 8884 if test -n "$RANLIB"; then 8885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8886else 8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8888for as_dir in $PATH 8889do 8890 IFS=$as_save_IFS 8891 test -z "$as_dir" && as_dir=. 8892 for ac_exec_ext in '' $ac_executable_extensions; do 8893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8896 break 2 8897 fi 8898done 8899 done 8900IFS=$as_save_IFS 8901 8902fi 8903fi 8904RANLIB=$ac_cv_prog_RANLIB 8905if test -n "$RANLIB"; then 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8907$as_echo "$RANLIB" >&6; } 8908else 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8910$as_echo "no" >&6; } 8911fi 8912 8913 8914fi 8915if test -z "$ac_cv_prog_RANLIB"; then 8916 ac_ct_RANLIB=$RANLIB 8917 # Extract the first word of "ranlib", so it can be a program name with args. 8918set dummy ranlib; ac_word=$2 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8920$as_echo_n "checking for $ac_word... " >&6; } 8921if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 if test -n "$ac_ct_RANLIB"; then 8925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8926else 8927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8928for as_dir in $PATH 8929do 8930 IFS=$as_save_IFS 8931 test -z "$as_dir" && as_dir=. 8932 for ac_exec_ext in '' $ac_executable_extensions; do 8933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8934 ac_cv_prog_ac_ct_RANLIB="ranlib" 8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8936 break 2 8937 fi 8938done 8939 done 8940IFS=$as_save_IFS 8941 8942fi 8943fi 8944ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8945if test -n "$ac_ct_RANLIB"; then 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8947$as_echo "$ac_ct_RANLIB" >&6; } 8948else 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8950$as_echo "no" >&6; } 8951fi 8952 8953 if test "x$ac_ct_RANLIB" = x; then 8954 RANLIB=":" 8955 else 8956 case $cross_compiling:$ac_tool_warned in 8957yes:) 8958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8960ac_tool_warned=yes ;; 8961esac 8962 RANLIB=$ac_ct_RANLIB 8963 fi 8964else 8965 RANLIB="$ac_cv_prog_RANLIB" 8966fi 8967 8968test -z "$RANLIB" && RANLIB=: 8969if test -n "$plugin_option" && test "$RANLIB" != ":"; then 8970 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 8971 RANLIB="$RANLIB $plugin_option" 8972 fi 8973fi 8974 8975 8976 8977 8978 8979 8980# Determine commands to create old-style static archives. 8981old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8982old_postinstall_cmds='chmod 644 $oldlib' 8983old_postuninstall_cmds= 8984 8985if test -n "$RANLIB"; then 8986 case $host_os in 8987 openbsd*) 8988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8989 ;; 8990 *) 8991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8992 ;; 8993 esac 8994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8995fi 8996 8997case $host_os in 8998 darwin*) 8999 lock_old_archive_extraction=yes ;; 9000 *) 9001 lock_old_archive_extraction=no ;; 9002esac 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042# If no C compiler was specified, use CC. 9043LTCC=${LTCC-"$CC"} 9044 9045# If no C compiler flags were specified, use CFLAGS. 9046LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9047 9048# Allow CC to be a program name with arguments. 9049compiler=$CC 9050 9051 9052# Check for command to grab the raw symbol name followed by C symbol from nm. 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9054$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9055if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057else 9058 9059# These are sane defaults that work on at least a few old systems. 9060# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9061 9062# Character class describing NM global symbol codes. 9063symcode='[BCDEGRST]' 9064 9065# Regexp to match symbols that can be accessed directly from C. 9066sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9067 9068# Define system-specific variables. 9069case $host_os in 9070aix*) 9071 symcode='[BCDT]' 9072 ;; 9073cygwin* | mingw* | pw32* | cegcc*) 9074 symcode='[ABCDGISTW]' 9075 ;; 9076hpux*) 9077 if test "$host_cpu" = ia64; then 9078 symcode='[ABCDEGRST]' 9079 fi 9080 ;; 9081irix* | nonstopux*) 9082 symcode='[BCDEGRST]' 9083 ;; 9084osf*) 9085 symcode='[BCDEGQRST]' 9086 ;; 9087solaris*) 9088 symcode='[BCDRT]' 9089 ;; 9090sco3.2v5*) 9091 symcode='[DT]' 9092 ;; 9093sysv4.2uw2*) 9094 symcode='[DT]' 9095 ;; 9096sysv5* | sco5v6* | unixware* | OpenUNIX*) 9097 symcode='[ABDT]' 9098 ;; 9099sysv4) 9100 symcode='[DFNSTU]' 9101 ;; 9102esac 9103 9104# If we're using GNU nm, then use its standard symbol codes. 9105case `$NM -V 2>&1` in 9106*GNU* | *'with BFD'*) 9107 symcode='[ABCDGIRSTW]' ;; 9108esac 9109 9110# Transform an extracted symbol line into a proper C declaration. 9111# Some systems (esp. on ia64) link data and code symbols differently, 9112# so use this general approach. 9113lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9114 9115# Transform an extracted symbol line into symbol name and symbol address 9116lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9117lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 9118 9119# Handle CRLF in mingw tool chain 9120opt_cr= 9121case $build_os in 9122mingw*) 9123 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9124 ;; 9125esac 9126 9127# Try without a prefix underscore, then with it. 9128for ac_symprfx in "" "_"; do 9129 9130 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9131 symxfrm="\\1 $ac_symprfx\\2 \\2" 9132 9133 # Write the raw and C identifiers. 9134 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9135 # Fake it for dumpbin and say T for any non-static function 9136 # and D for any global variable. 9137 # Also find C++ and __fastcall symbols from MSVC++, 9138 # which start with @ or ?. 9139 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9140" {last_section=section; section=\$ 3};"\ 9141" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9142" \$ 0!~/External *\|/{next};"\ 9143" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9144" {if(hide[section]) next};"\ 9145" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9146" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9147" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9148" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9149" ' prfx=^$ac_symprfx" 9150 else 9151 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9152 fi 9153 9154 # Check to see that the pipe works correctly. 9155 pipe_works=no 9156 9157 rm -f conftest* 9158 cat > conftest.$ac_ext <<_LT_EOF 9159#ifdef __cplusplus 9160extern "C" { 9161#endif 9162char nm_test_var; 9163void nm_test_func(void); 9164void nm_test_func(void){} 9165#ifdef __cplusplus 9166} 9167#endif 9168int main(){nm_test_var='a';nm_test_func();return(0);} 9169_LT_EOF 9170 9171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9172 (eval $ac_compile) 2>&5 9173 ac_status=$? 9174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9175 test $ac_status = 0; }; then 9176 # Now try to grab the symbols. 9177 nlist=conftest.nm 9178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9179 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9180 ac_status=$? 9181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9182 test $ac_status = 0; } && test -s "$nlist"; then 9183 # Try sorting and uniquifying the output. 9184 if sort "$nlist" | uniq > "$nlist"T; then 9185 mv -f "$nlist"T "$nlist" 9186 else 9187 rm -f "$nlist"T 9188 fi 9189 9190 # Make sure that we snagged all the symbols we need. 9191 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9192 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9193 cat <<_LT_EOF > conftest.$ac_ext 9194#ifdef __cplusplus 9195extern "C" { 9196#endif 9197 9198_LT_EOF 9199 # Now generate the symbol file. 9200 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9201 9202 cat <<_LT_EOF >> conftest.$ac_ext 9203 9204/* The mapping between symbol names and symbols. */ 9205const struct { 9206 const char *name; 9207 void *address; 9208} 9209lt__PROGRAM__LTX_preloaded_symbols[] = 9210{ 9211 { "@PROGRAM@", (void *) 0 }, 9212_LT_EOF 9213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9214 cat <<\_LT_EOF >> conftest.$ac_ext 9215 {0, (void *) 0} 9216}; 9217 9218/* This works around a problem in FreeBSD linker */ 9219#ifdef FREEBSD_WORKAROUND 9220static const void *lt_preloaded_setup() { 9221 return lt__PROGRAM__LTX_preloaded_symbols; 9222} 9223#endif 9224 9225#ifdef __cplusplus 9226} 9227#endif 9228_LT_EOF 9229 # Now try linking the two files. 9230 mv conftest.$ac_objext conftstm.$ac_objext 9231 lt_save_LIBS="$LIBS" 9232 lt_save_CFLAGS="$CFLAGS" 9233 LIBS="conftstm.$ac_objext" 9234 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9236 (eval $ac_link) 2>&5 9237 ac_status=$? 9238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9239 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9240 pipe_works=yes 9241 fi 9242 LIBS="$lt_save_LIBS" 9243 CFLAGS="$lt_save_CFLAGS" 9244 else 9245 echo "cannot find nm_test_func in $nlist" >&5 9246 fi 9247 else 9248 echo "cannot find nm_test_var in $nlist" >&5 9249 fi 9250 else 9251 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9252 fi 9253 else 9254 echo "$progname: failed program was:" >&5 9255 cat conftest.$ac_ext >&5 9256 fi 9257 rm -rf conftest* conftst* 9258 9259 # Do not use the global_symbol_pipe unless it works. 9260 if test "$pipe_works" = yes; then 9261 break 9262 else 9263 lt_cv_sys_global_symbol_pipe= 9264 fi 9265done 9266 9267fi 9268 9269if test -z "$lt_cv_sys_global_symbol_pipe"; then 9270 lt_cv_sys_global_symbol_to_cdecl= 9271fi 9272if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9274$as_echo "failed" >&6; } 9275else 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9277$as_echo "ok" >&6; } 9278fi 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301# Check whether --enable-libtool-lock was given. 9302if test "${enable_libtool_lock+set}" = set; then : 9303 enableval=$enable_libtool_lock; 9304fi 9305 9306test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9307 9308# Some flags need to be propagated to the compiler or linker for good 9309# libtool support. 9310case $host in 9311ia64-*-hpux*) 9312 # Find out which ABI we are using. 9313 echo 'int i;' > conftest.$ac_ext 9314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9315 (eval $ac_compile) 2>&5 9316 ac_status=$? 9317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9318 test $ac_status = 0; }; then 9319 case `/usr/bin/file conftest.$ac_objext` in 9320 *ELF-32*) 9321 HPUX_IA64_MODE="32" 9322 ;; 9323 *ELF-64*) 9324 HPUX_IA64_MODE="64" 9325 ;; 9326 esac 9327 fi 9328 rm -rf conftest* 9329 ;; 9330*-*-irix6*) 9331 # Find out which ABI we are using. 9332 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9334 (eval $ac_compile) 2>&5 9335 ac_status=$? 9336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9337 test $ac_status = 0; }; then 9338 if test "$lt_cv_prog_gnu_ld" = yes; then 9339 case `/usr/bin/file conftest.$ac_objext` in 9340 *32-bit*) 9341 LD="${LD-ld} -melf32bsmip" 9342 ;; 9343 *N32*) 9344 LD="${LD-ld} -melf32bmipn32" 9345 ;; 9346 *64-bit*) 9347 LD="${LD-ld} -melf64bmip" 9348 ;; 9349 esac 9350 else 9351 case `/usr/bin/file conftest.$ac_objext` in 9352 *32-bit*) 9353 LD="${LD-ld} -32" 9354 ;; 9355 *N32*) 9356 LD="${LD-ld} -n32" 9357 ;; 9358 *64-bit*) 9359 LD="${LD-ld} -64" 9360 ;; 9361 esac 9362 fi 9363 fi 9364 rm -rf conftest* 9365 ;; 9366 9367x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9368s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9369 # Find out which ABI we are using. 9370 echo 'int i;' > conftest.$ac_ext 9371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9372 (eval $ac_compile) 2>&5 9373 ac_status=$? 9374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9375 test $ac_status = 0; }; then 9376 case `/usr/bin/file conftest.o` in 9377 *32-bit*) 9378 case $host in 9379 x86_64-*kfreebsd*-gnu) 9380 LD="${LD-ld} -m elf_i386_fbsd" 9381 ;; 9382 x86_64-*linux*) 9383 case `/usr/bin/file conftest.o` in 9384 *x86-64*) 9385 LD="${LD-ld} -m elf32_x86_64" 9386 ;; 9387 *) 9388 LD="${LD-ld} -m elf_i386" 9389 ;; 9390 esac 9391 ;; 9392 powerpc64le-*linux*) 9393 LD="${LD-ld} -m elf32lppclinux" 9394 ;; 9395 powerpc64-*linux*) 9396 LD="${LD-ld} -m elf32ppclinux" 9397 ;; 9398 s390x-*linux*) 9399 LD="${LD-ld} -m elf_s390" 9400 ;; 9401 sparc64-*linux*) 9402 LD="${LD-ld} -m elf32_sparc" 9403 ;; 9404 esac 9405 ;; 9406 *64-bit*) 9407 case $host in 9408 x86_64-*kfreebsd*-gnu) 9409 LD="${LD-ld} -m elf_x86_64_fbsd" 9410 ;; 9411 x86_64-*linux*) 9412 LD="${LD-ld} -m elf_x86_64" 9413 ;; 9414 powerpcle-*linux*) 9415 LD="${LD-ld} -m elf64lppc" 9416 ;; 9417 powerpc-*linux*) 9418 LD="${LD-ld} -m elf64ppc" 9419 ;; 9420 s390*-*linux*|s390*-*tpf*) 9421 LD="${LD-ld} -m elf64_s390" 9422 ;; 9423 sparc*-*linux*) 9424 LD="${LD-ld} -m elf64_sparc" 9425 ;; 9426 esac 9427 ;; 9428 esac 9429 fi 9430 rm -rf conftest* 9431 ;; 9432 9433*-*-sco3.2v5*) 9434 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9435 SAVE_CFLAGS="$CFLAGS" 9436 CFLAGS="$CFLAGS -belf" 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9438$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9439if ${lt_cv_cc_needs_belf+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 ac_ext=c 9443ac_cpp='$CPP $CPPFLAGS' 9444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9446ac_compiler_gnu=$ac_cv_c_compiler_gnu 9447 9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9449/* end confdefs.h. */ 9450 9451int 9452main () 9453{ 9454 9455 ; 9456 return 0; 9457} 9458_ACEOF 9459if ac_fn_c_try_link "$LINENO"; then : 9460 lt_cv_cc_needs_belf=yes 9461else 9462 lt_cv_cc_needs_belf=no 9463fi 9464rm -f core conftest.err conftest.$ac_objext \ 9465 conftest$ac_exeext conftest.$ac_ext 9466 ac_ext=c 9467ac_cpp='$CPP $CPPFLAGS' 9468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9470ac_compiler_gnu=$ac_cv_c_compiler_gnu 9471 9472fi 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9474$as_echo "$lt_cv_cc_needs_belf" >&6; } 9475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9477 CFLAGS="$SAVE_CFLAGS" 9478 fi 9479 ;; 9480sparc*-*solaris*) 9481 # Find out which ABI we are using. 9482 echo 'int i;' > conftest.$ac_ext 9483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9484 (eval $ac_compile) 2>&5 9485 ac_status=$? 9486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9487 test $ac_status = 0; }; then 9488 case `/usr/bin/file conftest.o` in 9489 *64-bit*) 9490 case $lt_cv_prog_gnu_ld in 9491 yes*) LD="${LD-ld} -m elf64_sparc" ;; 9492 *) 9493 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9494 LD="${LD-ld} -64" 9495 fi 9496 ;; 9497 esac 9498 ;; 9499 esac 9500 fi 9501 rm -rf conftest* 9502 ;; 9503esac 9504 9505need_locks="$enable_libtool_lock" 9506 9507 9508 case $host_os in 9509 rhapsody* | darwin*) 9510 if test -n "$ac_tool_prefix"; then 9511 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9512set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9514$as_echo_n "checking for $ac_word... " >&6; } 9515if ${ac_cv_prog_DSYMUTIL+:} false; then : 9516 $as_echo_n "(cached) " >&6 9517else 9518 if test -n "$DSYMUTIL"; then 9519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9520else 9521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9522for as_dir in $PATH 9523do 9524 IFS=$as_save_IFS 9525 test -z "$as_dir" && as_dir=. 9526 for ac_exec_ext in '' $ac_executable_extensions; do 9527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9528 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9530 break 2 9531 fi 9532done 9533 done 9534IFS=$as_save_IFS 9535 9536fi 9537fi 9538DSYMUTIL=$ac_cv_prog_DSYMUTIL 9539if test -n "$DSYMUTIL"; then 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9541$as_echo "$DSYMUTIL" >&6; } 9542else 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9544$as_echo "no" >&6; } 9545fi 9546 9547 9548fi 9549if test -z "$ac_cv_prog_DSYMUTIL"; then 9550 ac_ct_DSYMUTIL=$DSYMUTIL 9551 # Extract the first word of "dsymutil", so it can be a program name with args. 9552set dummy dsymutil; ac_word=$2 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9554$as_echo_n "checking for $ac_word... " >&6; } 9555if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 if test -n "$ac_ct_DSYMUTIL"; then 9559 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9560else 9561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9562for as_dir in $PATH 9563do 9564 IFS=$as_save_IFS 9565 test -z "$as_dir" && as_dir=. 9566 for ac_exec_ext in '' $ac_executable_extensions; do 9567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9570 break 2 9571 fi 9572done 9573 done 9574IFS=$as_save_IFS 9575 9576fi 9577fi 9578ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9579if test -n "$ac_ct_DSYMUTIL"; then 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9581$as_echo "$ac_ct_DSYMUTIL" >&6; } 9582else 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9584$as_echo "no" >&6; } 9585fi 9586 9587 if test "x$ac_ct_DSYMUTIL" = x; then 9588 DSYMUTIL=":" 9589 else 9590 case $cross_compiling:$ac_tool_warned in 9591yes:) 9592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9594ac_tool_warned=yes ;; 9595esac 9596 DSYMUTIL=$ac_ct_DSYMUTIL 9597 fi 9598else 9599 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9600fi 9601 9602 if test -n "$ac_tool_prefix"; then 9603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9604set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9606$as_echo_n "checking for $ac_word... " >&6; } 9607if ${ac_cv_prog_NMEDIT+:} false; then : 9608 $as_echo_n "(cached) " >&6 9609else 9610 if test -n "$NMEDIT"; then 9611 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9612else 9613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9614for as_dir in $PATH 9615do 9616 IFS=$as_save_IFS 9617 test -z "$as_dir" && as_dir=. 9618 for ac_exec_ext in '' $ac_executable_extensions; do 9619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9620 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9622 break 2 9623 fi 9624done 9625 done 9626IFS=$as_save_IFS 9627 9628fi 9629fi 9630NMEDIT=$ac_cv_prog_NMEDIT 9631if test -n "$NMEDIT"; then 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9633$as_echo "$NMEDIT" >&6; } 9634else 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636$as_echo "no" >&6; } 9637fi 9638 9639 9640fi 9641if test -z "$ac_cv_prog_NMEDIT"; then 9642 ac_ct_NMEDIT=$NMEDIT 9643 # Extract the first word of "nmedit", so it can be a program name with args. 9644set dummy nmedit; ac_word=$2 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9646$as_echo_n "checking for $ac_word... " >&6; } 9647if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 if test -n "$ac_ct_NMEDIT"; then 9651 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9652else 9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9654for as_dir in $PATH 9655do 9656 IFS=$as_save_IFS 9657 test -z "$as_dir" && as_dir=. 9658 for ac_exec_ext in '' $ac_executable_extensions; do 9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9660 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9662 break 2 9663 fi 9664done 9665 done 9666IFS=$as_save_IFS 9667 9668fi 9669fi 9670ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9671if test -n "$ac_ct_NMEDIT"; then 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9673$as_echo "$ac_ct_NMEDIT" >&6; } 9674else 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9676$as_echo "no" >&6; } 9677fi 9678 9679 if test "x$ac_ct_NMEDIT" = x; then 9680 NMEDIT=":" 9681 else 9682 case $cross_compiling:$ac_tool_warned in 9683yes:) 9684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9686ac_tool_warned=yes ;; 9687esac 9688 NMEDIT=$ac_ct_NMEDIT 9689 fi 9690else 9691 NMEDIT="$ac_cv_prog_NMEDIT" 9692fi 9693 9694 if test -n "$ac_tool_prefix"; then 9695 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9696set dummy ${ac_tool_prefix}lipo; ac_word=$2 9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9698$as_echo_n "checking for $ac_word... " >&6; } 9699if ${ac_cv_prog_LIPO+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701else 9702 if test -n "$LIPO"; then 9703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9704else 9705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9706for as_dir in $PATH 9707do 9708 IFS=$as_save_IFS 9709 test -z "$as_dir" && as_dir=. 9710 for ac_exec_ext in '' $ac_executable_extensions; do 9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9712 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9714 break 2 9715 fi 9716done 9717 done 9718IFS=$as_save_IFS 9719 9720fi 9721fi 9722LIPO=$ac_cv_prog_LIPO 9723if test -n "$LIPO"; then 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9725$as_echo "$LIPO" >&6; } 9726else 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9728$as_echo "no" >&6; } 9729fi 9730 9731 9732fi 9733if test -z "$ac_cv_prog_LIPO"; then 9734 ac_ct_LIPO=$LIPO 9735 # Extract the first word of "lipo", so it can be a program name with args. 9736set dummy lipo; ac_word=$2 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9738$as_echo_n "checking for $ac_word... " >&6; } 9739if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9740 $as_echo_n "(cached) " >&6 9741else 9742 if test -n "$ac_ct_LIPO"; then 9743 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9744else 9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9746for as_dir in $PATH 9747do 9748 IFS=$as_save_IFS 9749 test -z "$as_dir" && as_dir=. 9750 for ac_exec_ext in '' $ac_executable_extensions; do 9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9752 ac_cv_prog_ac_ct_LIPO="lipo" 9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9754 break 2 9755 fi 9756done 9757 done 9758IFS=$as_save_IFS 9759 9760fi 9761fi 9762ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9763if test -n "$ac_ct_LIPO"; then 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9765$as_echo "$ac_ct_LIPO" >&6; } 9766else 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9768$as_echo "no" >&6; } 9769fi 9770 9771 if test "x$ac_ct_LIPO" = x; then 9772 LIPO=":" 9773 else 9774 case $cross_compiling:$ac_tool_warned in 9775yes:) 9776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9778ac_tool_warned=yes ;; 9779esac 9780 LIPO=$ac_ct_LIPO 9781 fi 9782else 9783 LIPO="$ac_cv_prog_LIPO" 9784fi 9785 9786 if test -n "$ac_tool_prefix"; then 9787 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9788set dummy ${ac_tool_prefix}otool; ac_word=$2 9789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9790$as_echo_n "checking for $ac_word... " >&6; } 9791if ${ac_cv_prog_OTOOL+:} false; then : 9792 $as_echo_n "(cached) " >&6 9793else 9794 if test -n "$OTOOL"; then 9795 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9796else 9797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9798for as_dir in $PATH 9799do 9800 IFS=$as_save_IFS 9801 test -z "$as_dir" && as_dir=. 9802 for ac_exec_ext in '' $ac_executable_extensions; do 9803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9804 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9806 break 2 9807 fi 9808done 9809 done 9810IFS=$as_save_IFS 9811 9812fi 9813fi 9814OTOOL=$ac_cv_prog_OTOOL 9815if test -n "$OTOOL"; then 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9817$as_echo "$OTOOL" >&6; } 9818else 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9820$as_echo "no" >&6; } 9821fi 9822 9823 9824fi 9825if test -z "$ac_cv_prog_OTOOL"; then 9826 ac_ct_OTOOL=$OTOOL 9827 # Extract the first word of "otool", so it can be a program name with args. 9828set dummy otool; ac_word=$2 9829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9830$as_echo_n "checking for $ac_word... " >&6; } 9831if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9832 $as_echo_n "(cached) " >&6 9833else 9834 if test -n "$ac_ct_OTOOL"; then 9835 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9836else 9837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9838for as_dir in $PATH 9839do 9840 IFS=$as_save_IFS 9841 test -z "$as_dir" && as_dir=. 9842 for ac_exec_ext in '' $ac_executable_extensions; do 9843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9844 ac_cv_prog_ac_ct_OTOOL="otool" 9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9846 break 2 9847 fi 9848done 9849 done 9850IFS=$as_save_IFS 9851 9852fi 9853fi 9854ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9855if test -n "$ac_ct_OTOOL"; then 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9857$as_echo "$ac_ct_OTOOL" >&6; } 9858else 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9860$as_echo "no" >&6; } 9861fi 9862 9863 if test "x$ac_ct_OTOOL" = x; then 9864 OTOOL=":" 9865 else 9866 case $cross_compiling:$ac_tool_warned in 9867yes:) 9868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9870ac_tool_warned=yes ;; 9871esac 9872 OTOOL=$ac_ct_OTOOL 9873 fi 9874else 9875 OTOOL="$ac_cv_prog_OTOOL" 9876fi 9877 9878 if test -n "$ac_tool_prefix"; then 9879 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9880set dummy ${ac_tool_prefix}otool64; ac_word=$2 9881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9882$as_echo_n "checking for $ac_word... " >&6; } 9883if ${ac_cv_prog_OTOOL64+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885else 9886 if test -n "$OTOOL64"; then 9887 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9888else 9889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9890for as_dir in $PATH 9891do 9892 IFS=$as_save_IFS 9893 test -z "$as_dir" && as_dir=. 9894 for ac_exec_ext in '' $ac_executable_extensions; do 9895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9896 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9898 break 2 9899 fi 9900done 9901 done 9902IFS=$as_save_IFS 9903 9904fi 9905fi 9906OTOOL64=$ac_cv_prog_OTOOL64 9907if test -n "$OTOOL64"; then 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9909$as_echo "$OTOOL64" >&6; } 9910else 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9912$as_echo "no" >&6; } 9913fi 9914 9915 9916fi 9917if test -z "$ac_cv_prog_OTOOL64"; then 9918 ac_ct_OTOOL64=$OTOOL64 9919 # Extract the first word of "otool64", so it can be a program name with args. 9920set dummy otool64; ac_word=$2 9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9922$as_echo_n "checking for $ac_word... " >&6; } 9923if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9924 $as_echo_n "(cached) " >&6 9925else 9926 if test -n "$ac_ct_OTOOL64"; then 9927 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9928else 9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9930for as_dir in $PATH 9931do 9932 IFS=$as_save_IFS 9933 test -z "$as_dir" && as_dir=. 9934 for ac_exec_ext in '' $ac_executable_extensions; do 9935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9936 ac_cv_prog_ac_ct_OTOOL64="otool64" 9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9938 break 2 9939 fi 9940done 9941 done 9942IFS=$as_save_IFS 9943 9944fi 9945fi 9946ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9947if test -n "$ac_ct_OTOOL64"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9949$as_echo "$ac_ct_OTOOL64" >&6; } 9950else 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9952$as_echo "no" >&6; } 9953fi 9954 9955 if test "x$ac_ct_OTOOL64" = x; then 9956 OTOOL64=":" 9957 else 9958 case $cross_compiling:$ac_tool_warned in 9959yes:) 9960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9962ac_tool_warned=yes ;; 9963esac 9964 OTOOL64=$ac_ct_OTOOL64 9965 fi 9966else 9967 OTOOL64="$ac_cv_prog_OTOOL64" 9968fi 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9997$as_echo_n "checking for -single_module linker flag... " >&6; } 9998if ${lt_cv_apple_cc_single_mod+:} false; then : 9999 $as_echo_n "(cached) " >&6 10000else 10001 lt_cv_apple_cc_single_mod=no 10002 if test -z "${LT_MULTI_MODULE}"; then 10003 # By default we will add the -single_module flag. You can override 10004 # by either setting the environment variable LT_MULTI_MODULE 10005 # non-empty at configure time, or by adding -multi_module to the 10006 # link flags. 10007 rm -rf libconftest.dylib* 10008 echo "int foo(void){return 1;}" > conftest.c 10009 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10010-dynamiclib -Wl,-single_module conftest.c" >&5 10011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10012 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10013 _lt_result=$? 10014 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 10015 lt_cv_apple_cc_single_mod=yes 10016 else 10017 cat conftest.err >&5 10018 fi 10019 rm -rf libconftest.dylib* 10020 rm -f conftest.* 10021 fi 10022fi 10023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10024$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10026$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10027if ${lt_cv_ld_exported_symbols_list+:} false; then : 10028 $as_echo_n "(cached) " >&6 10029else 10030 lt_cv_ld_exported_symbols_list=no 10031 save_LDFLAGS=$LDFLAGS 10032 echo "_main" > conftest.sym 10033 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036 10037int 10038main () 10039{ 10040 10041 ; 10042 return 0; 10043} 10044_ACEOF 10045if ac_fn_c_try_link "$LINENO"; then : 10046 lt_cv_ld_exported_symbols_list=yes 10047else 10048 lt_cv_ld_exported_symbols_list=no 10049fi 10050rm -f core conftest.err conftest.$ac_objext \ 10051 conftest$ac_exeext conftest.$ac_ext 10052 LDFLAGS="$save_LDFLAGS" 10053 10054fi 10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10056$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10058$as_echo_n "checking for -force_load linker flag... " >&6; } 10059if ${lt_cv_ld_force_load+:} false; then : 10060 $as_echo_n "(cached) " >&6 10061else 10062 lt_cv_ld_force_load=no 10063 cat > conftest.c << _LT_EOF 10064int forced_loaded() { return 2;} 10065_LT_EOF 10066 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10067 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10068 echo "$AR cru libconftest.a conftest.o" >&5 10069 $AR cru libconftest.a conftest.o 2>&5 10070 cat > conftest.c << _LT_EOF 10071int main() { return 0;} 10072_LT_EOF 10073 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10074 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10075 _lt_result=$? 10076 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 10077 lt_cv_ld_force_load=yes 10078 else 10079 cat conftest.err >&5 10080 fi 10081 rm -f conftest.err libconftest.a conftest conftest.c 10082 rm -rf conftest.dSYM 10083 10084fi 10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10086$as_echo "$lt_cv_ld_force_load" >&6; } 10087 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 10088 # build without first building modern cctools / linker. 10089 case $host_cpu-$host_os in 10090 *-rhapsody* | *-darwin1.[012]) 10091 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10092 *-darwin1.*) 10093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10094 *-darwin*) 10095 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 10096 # deployment target is forced to an earlier version. 10097 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 10098 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 10099 ;; 10100 10.[012][,.]*) 10101 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10102 ;; 10103 *) 10104 ;; 10105 esac 10106 ;; 10107 esac 10108 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10109 _lt_dar_single_mod='$single_module' 10110 fi 10111 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10112 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10113 else 10114 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10115 fi 10116 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10117 _lt_dsymutil='~$DSYMUTIL $lib || :' 10118 else 10119 _lt_dsymutil= 10120 fi 10121 ;; 10122 esac 10123 10124for ac_header in dlfcn.h 10125do : 10126 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10127" 10128if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10129 cat >>confdefs.h <<_ACEOF 10130#define HAVE_DLFCN_H 1 10131_ACEOF 10132 10133fi 10134 10135done 10136 10137 10138 10139 10140 10141# Set options 10142 10143 10144 10145 enable_dlopen=no 10146 10147 10148 enable_win32_dll=no 10149 10150 10151 10152 # Check whether --enable-static was given. 10153if test "${enable_static+set}" = set; then : 10154 enableval=$enable_static; p=${PACKAGE-default} 10155 case $enableval in 10156 yes) enable_static=yes ;; 10157 no) enable_static=no ;; 10158 *) 10159 enable_static=no 10160 # Look at the argument we got. We use all the common list separators. 10161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10162 for pkg in $enableval; do 10163 IFS="$lt_save_ifs" 10164 if test "X$pkg" = "X$p"; then 10165 enable_static=yes 10166 fi 10167 done 10168 IFS="$lt_save_ifs" 10169 ;; 10170 esac 10171else 10172 enable_static=yes 10173fi 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184# Check whether --with-pic was given. 10185if test "${with_pic+set}" = set; then : 10186 withval=$with_pic; pic_mode="$withval" 10187else 10188 pic_mode=default 10189fi 10190 10191 10192test -z "$pic_mode" && pic_mode=default 10193 10194 10195 10196 10197 10198 10199 10200 # Check whether --enable-fast-install was given. 10201if test "${enable_fast_install+set}" = set; then : 10202 enableval=$enable_fast_install; p=${PACKAGE-default} 10203 case $enableval in 10204 yes) enable_fast_install=yes ;; 10205 no) enable_fast_install=no ;; 10206 *) 10207 enable_fast_install=no 10208 # Look at the argument we got. We use all the common list separators. 10209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10210 for pkg in $enableval; do 10211 IFS="$lt_save_ifs" 10212 if test "X$pkg" = "X$p"; then 10213 enable_fast_install=yes 10214 fi 10215 done 10216 IFS="$lt_save_ifs" 10217 ;; 10218 esac 10219else 10220 enable_fast_install=yes 10221fi 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233# This can be used to rebuild libtool when needed 10234LIBTOOL_DEPS="$ltmain" 10235 10236# Always use our own libtool. 10237LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264test -z "$LN_S" && LN_S="ln -s" 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279if test -n "${ZSH_VERSION+set}" ; then 10280 setopt NO_GLOB_SUBST 10281fi 10282 10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10284$as_echo_n "checking for objdir... " >&6; } 10285if ${lt_cv_objdir+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287else 10288 rm -f .libs 2>/dev/null 10289mkdir .libs 2>/dev/null 10290if test -d .libs; then 10291 lt_cv_objdir=.libs 10292else 10293 # MS-DOS does not allow filenames that begin with a dot. 10294 lt_cv_objdir=_libs 10295fi 10296rmdir .libs 2>/dev/null 10297fi 10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10299$as_echo "$lt_cv_objdir" >&6; } 10300objdir=$lt_cv_objdir 10301 10302 10303 10304 10305 10306cat >>confdefs.h <<_ACEOF 10307#define LT_OBJDIR "$lt_cv_objdir/" 10308_ACEOF 10309 10310 10311 10312 10313case $host_os in 10314aix3*) 10315 # AIX sometimes has problems with the GCC collect2 program. For some 10316 # reason, if we set the COLLECT_NAMES environment variable, the problems 10317 # vanish in a puff of smoke. 10318 if test "X${COLLECT_NAMES+set}" != Xset; then 10319 COLLECT_NAMES= 10320 export COLLECT_NAMES 10321 fi 10322 ;; 10323esac 10324 10325# Global variables: 10326ofile=libtool 10327can_build_shared=yes 10328 10329# All known linkers require a `.a' archive for static linking (except MSVC, 10330# which needs '.lib'). 10331libext=a 10332 10333with_gnu_ld="$lt_cv_prog_gnu_ld" 10334 10335old_CC="$CC" 10336old_CFLAGS="$CFLAGS" 10337 10338# Set sane defaults for various variables 10339test -z "$CC" && CC=cc 10340test -z "$LTCC" && LTCC=$CC 10341test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10342test -z "$LD" && LD=ld 10343test -z "$ac_objext" && ac_objext=o 10344 10345for cc_temp in $compiler""; do 10346 case $cc_temp in 10347 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10348 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10349 \-*) ;; 10350 *) break;; 10351 esac 10352done 10353cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10354 10355 10356# Only perform the check for file, if the check method requires it 10357test -z "$MAGIC_CMD" && MAGIC_CMD=file 10358case $deplibs_check_method in 10359file_magic*) 10360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10362$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10363if ${lt_cv_path_MAGIC_CMD+:} false; then : 10364 $as_echo_n "(cached) " >&6 10365else 10366 case $MAGIC_CMD in 10367[\\/*] | ?:[\\/]*) 10368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10369 ;; 10370*) 10371 lt_save_MAGIC_CMD="$MAGIC_CMD" 10372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10374 for ac_dir in $ac_dummy; do 10375 IFS="$lt_save_ifs" 10376 test -z "$ac_dir" && ac_dir=. 10377 if test -f $ac_dir/${ac_tool_prefix}file; then 10378 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10379 if test -n "$file_magic_test_file"; then 10380 case $deplibs_check_method in 10381 "file_magic "*) 10382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10385 $EGREP "$file_magic_regex" > /dev/null; then 10386 : 10387 else 10388 cat <<_LT_EOF 1>&2 10389 10390*** Warning: the command libtool uses to detect shared libraries, 10391*** $file_magic_cmd, produces output that libtool cannot recognize. 10392*** The result is that libtool may fail to recognize shared libraries 10393*** as such. This will affect the creation of libtool libraries that 10394*** depend on shared libraries, but programs linked with such libtool 10395*** libraries will work regardless of this problem. Nevertheless, you 10396*** may want to report the problem to your system manager and/or to 10397*** bug-libtool@gnu.org 10398 10399_LT_EOF 10400 fi ;; 10401 esac 10402 fi 10403 break 10404 fi 10405 done 10406 IFS="$lt_save_ifs" 10407 MAGIC_CMD="$lt_save_MAGIC_CMD" 10408 ;; 10409esac 10410fi 10411 10412MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10413if test -n "$MAGIC_CMD"; then 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10415$as_echo "$MAGIC_CMD" >&6; } 10416else 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10418$as_echo "no" >&6; } 10419fi 10420 10421 10422 10423 10424 10425if test -z "$lt_cv_path_MAGIC_CMD"; then 10426 if test -n "$ac_tool_prefix"; then 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10428$as_echo_n "checking for file... " >&6; } 10429if ${lt_cv_path_MAGIC_CMD+:} false; then : 10430 $as_echo_n "(cached) " >&6 10431else 10432 case $MAGIC_CMD in 10433[\\/*] | ?:[\\/]*) 10434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10435 ;; 10436*) 10437 lt_save_MAGIC_CMD="$MAGIC_CMD" 10438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10440 for ac_dir in $ac_dummy; do 10441 IFS="$lt_save_ifs" 10442 test -z "$ac_dir" && ac_dir=. 10443 if test -f $ac_dir/file; then 10444 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10445 if test -n "$file_magic_test_file"; then 10446 case $deplibs_check_method in 10447 "file_magic "*) 10448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10451 $EGREP "$file_magic_regex" > /dev/null; then 10452 : 10453 else 10454 cat <<_LT_EOF 1>&2 10455 10456*** Warning: the command libtool uses to detect shared libraries, 10457*** $file_magic_cmd, produces output that libtool cannot recognize. 10458*** The result is that libtool may fail to recognize shared libraries 10459*** as such. This will affect the creation of libtool libraries that 10460*** depend on shared libraries, but programs linked with such libtool 10461*** libraries will work regardless of this problem. Nevertheless, you 10462*** may want to report the problem to your system manager and/or to 10463*** bug-libtool@gnu.org 10464 10465_LT_EOF 10466 fi ;; 10467 esac 10468 fi 10469 break 10470 fi 10471 done 10472 IFS="$lt_save_ifs" 10473 MAGIC_CMD="$lt_save_MAGIC_CMD" 10474 ;; 10475esac 10476fi 10477 10478MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10479if test -n "$MAGIC_CMD"; then 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10481$as_echo "$MAGIC_CMD" >&6; } 10482else 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10484$as_echo "no" >&6; } 10485fi 10486 10487 10488 else 10489 MAGIC_CMD=: 10490 fi 10491fi 10492 10493 fi 10494 ;; 10495esac 10496 10497# Use C for the default configuration in the libtool script 10498 10499lt_save_CC="$CC" 10500ac_ext=c 10501ac_cpp='$CPP $CPPFLAGS' 10502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10504ac_compiler_gnu=$ac_cv_c_compiler_gnu 10505 10506 10507# Source file extension for C test sources. 10508ac_ext=c 10509 10510# Object file extension for compiled C test sources. 10511objext=o 10512objext=$objext 10513 10514# Code to be used in simple compile tests 10515lt_simple_compile_test_code="int some_variable = 0;" 10516 10517# Code to be used in simple link tests 10518lt_simple_link_test_code='int main(){return(0);}' 10519 10520 10521 10522 10523 10524 10525 10526# If no C compiler was specified, use CC. 10527LTCC=${LTCC-"$CC"} 10528 10529# If no C compiler flags were specified, use CFLAGS. 10530LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10531 10532# Allow CC to be a program name with arguments. 10533compiler=$CC 10534 10535# Save the default compiler, since it gets overwritten when the other 10536# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10537compiler_DEFAULT=$CC 10538 10539# save warnings/boilerplate of simple test code 10540ac_outfile=conftest.$ac_objext 10541echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10542eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10543_lt_compiler_boilerplate=`cat conftest.err` 10544$RM conftest* 10545 10546ac_outfile=conftest.$ac_objext 10547echo "$lt_simple_link_test_code" >conftest.$ac_ext 10548eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10549_lt_linker_boilerplate=`cat conftest.err` 10550$RM -r conftest* 10551 10552 10553## CAVEAT EMPTOR: 10554## There is no encapsulation within the following macros, do not change 10555## the running order or otherwise move them around unless you know exactly 10556## what you are doing... 10557if test -n "$compiler"; then 10558 10559lt_prog_compiler_no_builtin_flag= 10560 10561if test "$GCC" = yes; then 10562 case $cc_basename in 10563 nvcc*) 10564 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10565 *) 10566 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10567 esac 10568 10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10570$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10571if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10572 $as_echo_n "(cached) " >&6 10573else 10574 lt_cv_prog_compiler_rtti_exceptions=no 10575 ac_outfile=conftest.$ac_objext 10576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10577 lt_compiler_flag="-fno-rtti -fno-exceptions" 10578 # Insert the option either (1) after the last *FLAGS variable, or 10579 # (2) before a word containing "conftest.", or (3) at the end. 10580 # Note that $ac_compile itself does not contain backslashes and begins 10581 # with a dollar sign (not a hyphen), so the echo should work correctly. 10582 # The option is referenced via a variable to avoid confusing sed. 10583 lt_compile=`echo "$ac_compile" | $SED \ 10584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10586 -e 's:$: $lt_compiler_flag:'` 10587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10588 (eval "$lt_compile" 2>conftest.err) 10589 ac_status=$? 10590 cat conftest.err >&5 10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10592 if (exit $ac_status) && test -s "$ac_outfile"; then 10593 # The compiler can only warn and ignore the option if not recognized 10594 # So say no if there are warnings other than the usual output. 10595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10598 lt_cv_prog_compiler_rtti_exceptions=yes 10599 fi 10600 fi 10601 $RM conftest* 10602 10603fi 10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10605$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10606 10607if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10609else 10610 : 10611fi 10612 10613fi 10614 10615 10616 10617 10618 10619 10620 lt_prog_compiler_wl= 10621lt_prog_compiler_pic= 10622lt_prog_compiler_static= 10623 10624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10625$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10626 10627 if test "$GCC" = yes; then 10628 lt_prog_compiler_wl='-Wl,' 10629 lt_prog_compiler_static='-static' 10630 10631 case $host_os in 10632 aix*) 10633 # All AIX code is PIC. 10634 if test "$host_cpu" = ia64; then 10635 # AIX 5 now supports IA64 processor 10636 lt_prog_compiler_static='-Bstatic' 10637 fi 10638 lt_prog_compiler_pic='-fPIC' 10639 ;; 10640 10641 amigaos*) 10642 case $host_cpu in 10643 powerpc) 10644 # see comment about AmigaOS4 .so support 10645 lt_prog_compiler_pic='-fPIC' 10646 ;; 10647 m68k) 10648 # FIXME: we need at least 68020 code to build shared libraries, but 10649 # adding the `-m68020' flag to GCC prevents building anything better, 10650 # like `-m68040'. 10651 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10652 ;; 10653 esac 10654 ;; 10655 10656 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10657 # PIC is the default for these OSes. 10658 ;; 10659 10660 mingw* | cygwin* | pw32* | os2* | cegcc*) 10661 # This hack is so that the source file can tell whether it is being 10662 # built for inclusion in a dll (and should export symbols for example). 10663 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10664 # (--disable-auto-import) libraries 10665 lt_prog_compiler_pic='-DDLL_EXPORT' 10666 ;; 10667 10668 darwin* | rhapsody*) 10669 # PIC is the default on this platform 10670 # Common symbols not allowed in MH_DYLIB files 10671 lt_prog_compiler_pic='-fno-common' 10672 ;; 10673 10674 haiku*) 10675 # PIC is the default for Haiku. 10676 # The "-static" flag exists, but is broken. 10677 lt_prog_compiler_static= 10678 ;; 10679 10680 hpux*) 10681 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10682 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10683 # sets the default TLS model and affects inlining. 10684 case $host_cpu in 10685 hppa*64*) 10686 # +Z the default 10687 ;; 10688 *) 10689 lt_prog_compiler_pic='-fPIC' 10690 ;; 10691 esac 10692 ;; 10693 10694 interix[3-9]*) 10695 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10696 # Instead, we relocate shared libraries at runtime. 10697 ;; 10698 10699 msdosdjgpp*) 10700 # Just because we use GCC doesn't mean we suddenly get shared libraries 10701 # on systems that don't support them. 10702 lt_prog_compiler_can_build_shared=no 10703 enable_shared=no 10704 ;; 10705 10706 *nto* | *qnx*) 10707 # QNX uses GNU C++, but need to define -shared option too, otherwise 10708 # it will coredump. 10709 lt_prog_compiler_pic='-fPIC -shared' 10710 ;; 10711 10712 sysv4*MP*) 10713 if test -d /usr/nec; then 10714 lt_prog_compiler_pic=-Kconform_pic 10715 fi 10716 ;; 10717 10718 *) 10719 lt_prog_compiler_pic='-fPIC' 10720 ;; 10721 esac 10722 10723 case $cc_basename in 10724 nvcc*) # Cuda Compiler Driver 2.2 10725 lt_prog_compiler_wl='-Xlinker ' 10726 lt_prog_compiler_pic='-Xcompiler -fPIC' 10727 ;; 10728 esac 10729 else 10730 # PORTME Check for flag to pass linker flags through the system compiler. 10731 case $host_os in 10732 aix*) 10733 lt_prog_compiler_wl='-Wl,' 10734 if test "$host_cpu" = ia64; then 10735 # AIX 5 now supports IA64 processor 10736 lt_prog_compiler_static='-Bstatic' 10737 else 10738 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10739 fi 10740 ;; 10741 10742 mingw* | cygwin* | pw32* | os2* | cegcc*) 10743 # This hack is so that the source file can tell whether it is being 10744 # built for inclusion in a dll (and should export symbols for example). 10745 lt_prog_compiler_pic='-DDLL_EXPORT' 10746 ;; 10747 10748 hpux9* | hpux10* | hpux11*) 10749 lt_prog_compiler_wl='-Wl,' 10750 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10751 # not for PA HP-UX. 10752 case $host_cpu in 10753 hppa*64*|ia64*) 10754 # +Z the default 10755 ;; 10756 *) 10757 lt_prog_compiler_pic='+Z' 10758 ;; 10759 esac 10760 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10761 lt_prog_compiler_static='${wl}-a ${wl}archive' 10762 ;; 10763 10764 irix5* | irix6* | nonstopux*) 10765 lt_prog_compiler_wl='-Wl,' 10766 # PIC (with -KPIC) is the default. 10767 lt_prog_compiler_static='-non_shared' 10768 ;; 10769 10770 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10771 case $cc_basename in 10772 # old Intel for x86_64 which still supported -KPIC. 10773 ecc*) 10774 lt_prog_compiler_wl='-Wl,' 10775 lt_prog_compiler_pic='-KPIC' 10776 lt_prog_compiler_static='-static' 10777 ;; 10778 # icc used to be incompatible with GCC. 10779 # ICC 10 doesn't accept -KPIC any more. 10780 icc* | ifort*) 10781 lt_prog_compiler_wl='-Wl,' 10782 lt_prog_compiler_pic='-fPIC' 10783 lt_prog_compiler_static='-static' 10784 ;; 10785 # Lahey Fortran 8.1. 10786 lf95*) 10787 lt_prog_compiler_wl='-Wl,' 10788 lt_prog_compiler_pic='--shared' 10789 lt_prog_compiler_static='--static' 10790 ;; 10791 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10792 # Portland Group compilers (*not* the Pentium gcc compiler, 10793 # which looks to be a dead project) 10794 lt_prog_compiler_wl='-Wl,' 10795 lt_prog_compiler_pic='-fpic' 10796 lt_prog_compiler_static='-Bstatic' 10797 ;; 10798 ccc*) 10799 lt_prog_compiler_wl='-Wl,' 10800 # All Alpha code is PIC. 10801 lt_prog_compiler_static='-non_shared' 10802 ;; 10803 xl* | bgxl* | bgf* | mpixl*) 10804 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10805 lt_prog_compiler_wl='-Wl,' 10806 lt_prog_compiler_pic='-qpic' 10807 lt_prog_compiler_static='-qstaticlink' 10808 ;; 10809 *) 10810 case `$CC -V 2>&1 | sed 5q` in 10811 *Sun\ F* | *Sun*Fortran*) 10812 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10813 lt_prog_compiler_pic='-KPIC' 10814 lt_prog_compiler_static='-Bstatic' 10815 lt_prog_compiler_wl='' 10816 ;; 10817 *Sun\ C*) 10818 # Sun C 5.9 10819 lt_prog_compiler_pic='-KPIC' 10820 lt_prog_compiler_static='-Bstatic' 10821 lt_prog_compiler_wl='-Wl,' 10822 ;; 10823 esac 10824 ;; 10825 esac 10826 ;; 10827 10828 newsos6) 10829 lt_prog_compiler_pic='-KPIC' 10830 lt_prog_compiler_static='-Bstatic' 10831 ;; 10832 10833 *nto* | *qnx*) 10834 # QNX uses GNU C++, but need to define -shared option too, otherwise 10835 # it will coredump. 10836 lt_prog_compiler_pic='-fPIC -shared' 10837 ;; 10838 10839 osf3* | osf4* | osf5*) 10840 lt_prog_compiler_wl='-Wl,' 10841 # All OSF/1 code is PIC. 10842 lt_prog_compiler_static='-non_shared' 10843 ;; 10844 10845 rdos*) 10846 lt_prog_compiler_static='-non_shared' 10847 ;; 10848 10849 solaris*) 10850 lt_prog_compiler_pic='-KPIC' 10851 lt_prog_compiler_static='-Bstatic' 10852 case $cc_basename in 10853 f77* | f90* | f95*) 10854 lt_prog_compiler_wl='-Qoption ld ';; 10855 *) 10856 lt_prog_compiler_wl='-Wl,';; 10857 esac 10858 ;; 10859 10860 sunos4*) 10861 lt_prog_compiler_wl='-Qoption ld ' 10862 lt_prog_compiler_pic='-PIC' 10863 lt_prog_compiler_static='-Bstatic' 10864 ;; 10865 10866 sysv4 | sysv4.2uw2* | sysv4.3*) 10867 lt_prog_compiler_wl='-Wl,' 10868 lt_prog_compiler_pic='-KPIC' 10869 lt_prog_compiler_static='-Bstatic' 10870 ;; 10871 10872 sysv4*MP*) 10873 if test -d /usr/nec ;then 10874 lt_prog_compiler_pic='-Kconform_pic' 10875 lt_prog_compiler_static='-Bstatic' 10876 fi 10877 ;; 10878 10879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10880 lt_prog_compiler_wl='-Wl,' 10881 lt_prog_compiler_pic='-KPIC' 10882 lt_prog_compiler_static='-Bstatic' 10883 ;; 10884 10885 unicos*) 10886 lt_prog_compiler_wl='-Wl,' 10887 lt_prog_compiler_can_build_shared=no 10888 ;; 10889 10890 uts4*) 10891 lt_prog_compiler_pic='-pic' 10892 lt_prog_compiler_static='-Bstatic' 10893 ;; 10894 10895 *) 10896 lt_prog_compiler_can_build_shared=no 10897 ;; 10898 esac 10899 fi 10900 10901case $host_os in 10902 # For platforms which do not support PIC, -DPIC is meaningless: 10903 *djgpp*) 10904 lt_prog_compiler_pic= 10905 ;; 10906 *) 10907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10908 ;; 10909esac 10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 10911$as_echo "$lt_prog_compiler_pic" >&6; } 10912 10913 10914 10915 10916 10917 10918# 10919# Check to make sure the PIC flag actually works. 10920# 10921if test -n "$lt_prog_compiler_pic"; then 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10923$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10924if ${lt_cv_prog_compiler_pic_works+:} false; then : 10925 $as_echo_n "(cached) " >&6 10926else 10927 lt_cv_prog_compiler_pic_works=no 10928 ac_outfile=conftest.$ac_objext 10929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10930 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10931 # Insert the option either (1) after the last *FLAGS variable, or 10932 # (2) before a word containing "conftest.", or (3) at the end. 10933 # Note that $ac_compile itself does not contain backslashes and begins 10934 # with a dollar sign (not a hyphen), so the echo should work correctly. 10935 # The option is referenced via a variable to avoid confusing sed. 10936 lt_compile=`echo "$ac_compile" | $SED \ 10937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10939 -e 's:$: $lt_compiler_flag:'` 10940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10941 (eval "$lt_compile" 2>conftest.err) 10942 ac_status=$? 10943 cat conftest.err >&5 10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10945 if (exit $ac_status) && test -s "$ac_outfile"; then 10946 # The compiler can only warn and ignore the option if not recognized 10947 # So say no if there are warnings other than the usual output. 10948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10950 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10951 lt_cv_prog_compiler_pic_works=yes 10952 fi 10953 fi 10954 $RM conftest* 10955 10956fi 10957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10958$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10959 10960if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10961 case $lt_prog_compiler_pic in 10962 "" | " "*) ;; 10963 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10964 esac 10965else 10966 lt_prog_compiler_pic= 10967 lt_prog_compiler_can_build_shared=no 10968fi 10969 10970fi 10971 10972 10973 10974 10975 10976 10977# 10978# Check to make sure the static flag actually works. 10979# 10980wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10982$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10983if ${lt_cv_prog_compiler_static_works+:} false; then : 10984 $as_echo_n "(cached) " >&6 10985else 10986 lt_cv_prog_compiler_static_works=no 10987 save_LDFLAGS="$LDFLAGS" 10988 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10989 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10991 # The linker can only warn and ignore the option if not recognized 10992 # So say no if there are warnings 10993 if test -s conftest.err; then 10994 # Append any errors to the config.log. 10995 cat conftest.err 1>&5 10996 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10998 if diff conftest.exp conftest.er2 >/dev/null; then 10999 lt_cv_prog_compiler_static_works=yes 11000 fi 11001 else 11002 lt_cv_prog_compiler_static_works=yes 11003 fi 11004 fi 11005 $RM -r conftest* 11006 LDFLAGS="$save_LDFLAGS" 11007 11008fi 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11010$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11011 11012if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11013 : 11014else 11015 lt_prog_compiler_static= 11016fi 11017 11018 11019 11020 11021 11022 11023 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11025$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11026if ${lt_cv_prog_compiler_c_o+:} false; then : 11027 $as_echo_n "(cached) " >&6 11028else 11029 lt_cv_prog_compiler_c_o=no 11030 $RM -r conftest 2>/dev/null 11031 mkdir conftest 11032 cd conftest 11033 mkdir out 11034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11035 11036 lt_compiler_flag="-o out/conftest2.$ac_objext" 11037 # Insert the option either (1) after the last *FLAGS variable, or 11038 # (2) before a word containing "conftest.", or (3) at the end. 11039 # Note that $ac_compile itself does not contain backslashes and begins 11040 # with a dollar sign (not a hyphen), so the echo should work correctly. 11041 lt_compile=`echo "$ac_compile" | $SED \ 11042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11044 -e 's:$: $lt_compiler_flag:'` 11045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11046 (eval "$lt_compile" 2>out/conftest.err) 11047 ac_status=$? 11048 cat out/conftest.err >&5 11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11050 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11051 then 11052 # The compiler can only warn and ignore the option if not recognized 11053 # So say no if there are warnings 11054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11057 lt_cv_prog_compiler_c_o=yes 11058 fi 11059 fi 11060 chmod u+w . 2>&5 11061 $RM conftest* 11062 # SGI C++ compiler will create directory out/ii_files/ for 11063 # template instantiation 11064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11065 $RM out/* && rmdir out 11066 cd .. 11067 $RM -r conftest 11068 $RM conftest* 11069 11070fi 11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11072$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11073 11074 11075 11076 11077 11078 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11080$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11081if ${lt_cv_prog_compiler_c_o+:} false; then : 11082 $as_echo_n "(cached) " >&6 11083else 11084 lt_cv_prog_compiler_c_o=no 11085 $RM -r conftest 2>/dev/null 11086 mkdir conftest 11087 cd conftest 11088 mkdir out 11089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11090 11091 lt_compiler_flag="-o out/conftest2.$ac_objext" 11092 # Insert the option either (1) after the last *FLAGS variable, or 11093 # (2) before a word containing "conftest.", or (3) at the end. 11094 # Note that $ac_compile itself does not contain backslashes and begins 11095 # with a dollar sign (not a hyphen), so the echo should work correctly. 11096 lt_compile=`echo "$ac_compile" | $SED \ 11097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11099 -e 's:$: $lt_compiler_flag:'` 11100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11101 (eval "$lt_compile" 2>out/conftest.err) 11102 ac_status=$? 11103 cat out/conftest.err >&5 11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11105 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11106 then 11107 # The compiler can only warn and ignore the option if not recognized 11108 # So say no if there are warnings 11109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11112 lt_cv_prog_compiler_c_o=yes 11113 fi 11114 fi 11115 chmod u+w . 2>&5 11116 $RM conftest* 11117 # SGI C++ compiler will create directory out/ii_files/ for 11118 # template instantiation 11119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11120 $RM out/* && rmdir out 11121 cd .. 11122 $RM -r conftest 11123 $RM conftest* 11124 11125fi 11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11127$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11128 11129 11130 11131 11132hard_links="nottested" 11133if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11134 # do not overwrite the value of need_locks provided by the user 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11136$as_echo_n "checking if we can lock with hard links... " >&6; } 11137 hard_links=yes 11138 $RM conftest* 11139 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11140 touch conftest.a 11141 ln conftest.a conftest.b 2>&5 || hard_links=no 11142 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11144$as_echo "$hard_links" >&6; } 11145 if test "$hard_links" = no; then 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11147$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11148 need_locks=warn 11149 fi 11150else 11151 need_locks=no 11152fi 11153 11154 11155 11156 11157 11158 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11160$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11161 11162 runpath_var= 11163 allow_undefined_flag= 11164 always_export_symbols=no 11165 archive_cmds= 11166 archive_expsym_cmds= 11167 compiler_needs_object=no 11168 enable_shared_with_static_runtimes=no 11169 export_dynamic_flag_spec= 11170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11171 hardcode_automatic=no 11172 hardcode_direct=no 11173 hardcode_direct_absolute=no 11174 hardcode_libdir_flag_spec= 11175 hardcode_libdir_flag_spec_ld= 11176 hardcode_libdir_separator= 11177 hardcode_minus_L=no 11178 hardcode_shlibpath_var=unsupported 11179 inherit_rpath=no 11180 link_all_deplibs=unknown 11181 module_cmds= 11182 module_expsym_cmds= 11183 old_archive_from_new_cmds= 11184 old_archive_from_expsyms_cmds= 11185 thread_safe_flag_spec= 11186 whole_archive_flag_spec= 11187 # include_expsyms should be a list of space-separated symbols to be *always* 11188 # included in the symbol list 11189 include_expsyms= 11190 # exclude_expsyms can be an extended regexp of symbols to exclude 11191 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11192 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11193 # as well as any symbol that contains `d'. 11194 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11196 # platforms (ab)use it in PIC code, but their linkers get confused if 11197 # the symbol is explicitly referenced. Since portable code cannot 11198 # rely on this symbol name, it's probably fine to never include it in 11199 # preloaded symbol tables. 11200 # Exclude shared library initialization/finalization symbols. 11201 extract_expsyms_cmds= 11202 11203 case $host_os in 11204 cygwin* | mingw* | pw32* | cegcc*) 11205 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11206 # When not using gcc, we currently assume that we are using 11207 # Microsoft Visual C++. 11208 if test "$GCC" != yes; then 11209 with_gnu_ld=no 11210 fi 11211 ;; 11212 interix*) 11213 # we just hope/assume this is gcc and not c89 (= MSVC++) 11214 with_gnu_ld=yes 11215 ;; 11216 openbsd*) 11217 with_gnu_ld=no 11218 ;; 11219 esac 11220 11221 ld_shlibs=yes 11222 11223 # On some targets, GNU ld is compatible enough with the native linker 11224 # that we're better off using the native interface for both. 11225 lt_use_gnu_ld_interface=no 11226 if test "$with_gnu_ld" = yes; then 11227 case $host_os in 11228 aix*) 11229 # The AIX port of GNU ld has always aspired to compatibility 11230 # with the native linker. However, as the warning in the GNU ld 11231 # block says, versions before 2.19.5* couldn't really create working 11232 # shared libraries, regardless of the interface used. 11233 case `$LD -v 2>&1` in 11234 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11235 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11236 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11237 *) 11238 lt_use_gnu_ld_interface=yes 11239 ;; 11240 esac 11241 ;; 11242 *) 11243 lt_use_gnu_ld_interface=yes 11244 ;; 11245 esac 11246 fi 11247 11248 if test "$lt_use_gnu_ld_interface" = yes; then 11249 # If archive_cmds runs LD, not CC, wlarc should be empty 11250 wlarc='${wl}' 11251 11252 # Set some defaults for GNU ld with shared library support. These 11253 # are reset later if shared libraries are not supported. Putting them 11254 # here allows them to be overridden if necessary. 11255 runpath_var=LD_RUN_PATH 11256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11257 export_dynamic_flag_spec='${wl}--export-dynamic' 11258 # ancient GNU ld didn't support --whole-archive et. al. 11259 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11261 else 11262 whole_archive_flag_spec= 11263 fi 11264 supports_anon_versioning=no 11265 case `$LD -v 2>&1` in 11266 *GNU\ gold*) supports_anon_versioning=yes ;; 11267 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11268 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11269 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11270 *\ 2.11.*) ;; # other 2.11 versions 11271 *) supports_anon_versioning=yes ;; 11272 esac 11273 11274 # See if GNU ld supports shared libraries. 11275 case $host_os in 11276 aix[3-9]*) 11277 # On AIX/PPC, the GNU linker is very broken 11278 if test "$host_cpu" != ia64; then 11279 ld_shlibs=no 11280 cat <<_LT_EOF 1>&2 11281 11282*** Warning: the GNU linker, at least up to release 2.19, is reported 11283*** to be unable to reliably create shared libraries on AIX. 11284*** Therefore, libtool is disabling shared libraries support. If you 11285*** really care for shared libraries, you may want to install binutils 11286*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11287*** You will then need to restart the configuration process. 11288 11289_LT_EOF 11290 fi 11291 ;; 11292 11293 amigaos*) 11294 case $host_cpu in 11295 powerpc) 11296 # see comment about AmigaOS4 .so support 11297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11298 archive_expsym_cmds='' 11299 ;; 11300 m68k) 11301 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)' 11302 hardcode_libdir_flag_spec='-L$libdir' 11303 hardcode_minus_L=yes 11304 ;; 11305 esac 11306 ;; 11307 11308 beos*) 11309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11310 allow_undefined_flag=unsupported 11311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11312 # support --undefined. This deserves some investigation. FIXME 11313 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11314 else 11315 ld_shlibs=no 11316 fi 11317 ;; 11318 11319 cygwin* | mingw* | pw32* | cegcc*) 11320 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11321 # as there is no search path for DLLs. 11322 hardcode_libdir_flag_spec='-L$libdir' 11323 export_dynamic_flag_spec='${wl}--export-all-symbols' 11324 allow_undefined_flag=unsupported 11325 always_export_symbols=no 11326 enable_shared_with_static_runtimes=yes 11327 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11328 11329 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11331 # If the export-symbols file already is a .def file (1st line 11332 # is EXPORTS), use it as is; otherwise, prepend... 11333 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11334 cp $export_symbols $output_objdir/$soname.def; 11335 else 11336 echo EXPORTS > $output_objdir/$soname.def; 11337 cat $export_symbols >> $output_objdir/$soname.def; 11338 fi~ 11339 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11340 else 11341 ld_shlibs=no 11342 fi 11343 ;; 11344 11345 haiku*) 11346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11347 link_all_deplibs=yes 11348 ;; 11349 11350 interix[3-9]*) 11351 hardcode_direct=no 11352 hardcode_shlibpath_var=no 11353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11354 export_dynamic_flag_spec='${wl}-E' 11355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11356 # Instead, shared libraries are loaded at an image base (0x10000000 by 11357 # default) and relocated if they conflict, which is a slow very memory 11358 # consuming and fragmenting process. To avoid this, we pick a random, 11359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11360 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11362 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' 11363 ;; 11364 11365 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 11366 tmp_diet=no 11367 if test "$host_os" = linux-dietlibc; then 11368 case $cc_basename in 11369 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11370 esac 11371 fi 11372 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11373 && test "$tmp_diet" = no 11374 then 11375 tmp_addflag=' $pic_flag' 11376 tmp_sharedflag='-shared' 11377 case $cc_basename,$host_cpu in 11378 pgcc*) # Portland Group C compiler 11379 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' 11380 tmp_addflag=' $pic_flag' 11381 ;; 11382 pgf77* | pgf90* | pgf95* | pgfortran*) 11383 # Portland Group f77 and f90 compilers 11384 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' 11385 tmp_addflag=' $pic_flag -Mnomain' ;; 11386 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11387 tmp_addflag=' -i_dynamic' ;; 11388 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11389 tmp_addflag=' -i_dynamic -nofor_main' ;; 11390 ifc* | ifort*) # Intel Fortran compiler 11391 tmp_addflag=' -nofor_main' ;; 11392 lf95*) # Lahey Fortran 8.1 11393 whole_archive_flag_spec= 11394 tmp_sharedflag='--shared' ;; 11395 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11396 tmp_sharedflag='-qmkshrobj' 11397 tmp_addflag= ;; 11398 nvcc*) # Cuda Compiler Driver 2.2 11399 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' 11400 compiler_needs_object=yes 11401 ;; 11402 esac 11403 case `$CC -V 2>&1 | sed 5q` in 11404 *Sun\ C*) # Sun C 5.9 11405 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' 11406 compiler_needs_object=yes 11407 tmp_sharedflag='-G' ;; 11408 *Sun\ F*) # Sun Fortran 8.3 11409 tmp_sharedflag='-G' ;; 11410 esac 11411 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11412 11413 if test "x$supports_anon_versioning" = xyes; then 11414 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11416 echo "local: *; };" >> $output_objdir/$libname.ver~ 11417 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11418 fi 11419 11420 case $cc_basename in 11421 xlf* | bgf* | bgxlf* | mpixlf*) 11422 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11423 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11424 hardcode_libdir_flag_spec= 11425 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11426 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 11427 if test "x$supports_anon_versioning" = xyes; then 11428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11430 echo "local: *; };" >> $output_objdir/$libname.ver~ 11431 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11432 fi 11433 ;; 11434 esac 11435 else 11436 ld_shlibs=no 11437 fi 11438 ;; 11439 11440 netbsd*) 11441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11442 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11443 wlarc= 11444 else 11445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11447 fi 11448 ;; 11449 11450 solaris*) 11451 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11452 ld_shlibs=no 11453 cat <<_LT_EOF 1>&2 11454 11455*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11456*** create shared libraries on Solaris systems. Therefore, libtool 11457*** is disabling shared libraries support. We urge you to upgrade GNU 11458*** binutils to release 2.9.1 or newer. Another option is to modify 11459*** your PATH or compiler configuration so that the native linker is 11460*** used, and then restart. 11461 11462_LT_EOF 11463 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11466 else 11467 ld_shlibs=no 11468 fi 11469 ;; 11470 11471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11472 case `$LD -v 2>&1` in 11473 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11474 ld_shlibs=no 11475 cat <<_LT_EOF 1>&2 11476 11477*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11478*** reliably create shared libraries on SCO systems. Therefore, libtool 11479*** is disabling shared libraries support. We urge you to upgrade GNU 11480*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11481*** your PATH or compiler configuration so that the native linker is 11482*** used, and then restart. 11483 11484_LT_EOF 11485 ;; 11486 *) 11487 # For security reasons, it is highly recommended that you always 11488 # use absolute paths for naming shared libraries, and exclude the 11489 # DT_RUNPATH tag from executables and libraries. But doing so 11490 # requires that you compile everything twice, which is a pain. 11491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11495 else 11496 ld_shlibs=no 11497 fi 11498 ;; 11499 esac 11500 ;; 11501 11502 sunos4*) 11503 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11504 wlarc= 11505 hardcode_direct=yes 11506 hardcode_shlibpath_var=no 11507 ;; 11508 11509 *) 11510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11513 else 11514 ld_shlibs=no 11515 fi 11516 ;; 11517 esac 11518 11519 if test "$ld_shlibs" = no; then 11520 runpath_var= 11521 hardcode_libdir_flag_spec= 11522 export_dynamic_flag_spec= 11523 whole_archive_flag_spec= 11524 fi 11525 else 11526 # PORTME fill in a description of your system's linker (not GNU ld) 11527 case $host_os in 11528 aix3*) 11529 allow_undefined_flag=unsupported 11530 always_export_symbols=yes 11531 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' 11532 # Note: this linker hardcodes the directories in LIBPATH if there 11533 # are no directories specified by -L. 11534 hardcode_minus_L=yes 11535 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11536 # Neither direct hardcoding nor static linking is supported with a 11537 # broken collect2. 11538 hardcode_direct=unsupported 11539 fi 11540 ;; 11541 11542 aix[4-9]*) 11543 if test "$host_cpu" = ia64; then 11544 # On IA64, the linker does run time linking by default, so we don't 11545 # have to do anything special. 11546 aix_use_runtimelinking=no 11547 exp_sym_flag='-Bexport' 11548 no_entry_flag="" 11549 else 11550 # If we're using GNU nm, then we don't want the "-C" option. 11551 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11552 # Also, AIX nm treats weak defined symbols like other global 11553 # defined symbols, whereas GNU nm marks them as "W". 11554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11555 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11556 else 11557 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11558 fi 11559 aix_use_runtimelinking=no 11560 11561 # Test if we are trying to use run time linking or normal 11562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11563 # need to do runtime linking. 11564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11565 for ld_flag in $LDFLAGS; do 11566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11567 aix_use_runtimelinking=yes 11568 break 11569 fi 11570 done 11571 ;; 11572 esac 11573 11574 exp_sym_flag='-bexport' 11575 no_entry_flag='-bnoentry' 11576 fi 11577 11578 # When large executables or shared objects are built, AIX ld can 11579 # have problems creating the table of contents. If linking a library 11580 # or program results in "error TOC overflow" add -mminimal-toc to 11581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11583 11584 archive_cmds='' 11585 hardcode_direct=yes 11586 hardcode_direct_absolute=yes 11587 hardcode_libdir_separator=':' 11588 link_all_deplibs=yes 11589 file_list_spec='${wl}-f,' 11590 11591 if test "$GCC" = yes; then 11592 case $host_os in aix4.[012]|aix4.[012].*) 11593 # We only want to do this on AIX 4.2 and lower, the check 11594 # below for broken collect2 doesn't work under 4.3+ 11595 collect2name=`${CC} -print-prog-name=collect2` 11596 if test -f "$collect2name" && 11597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11598 then 11599 # We have reworked collect2 11600 : 11601 else 11602 # We have old collect2 11603 hardcode_direct=unsupported 11604 # It fails to find uninstalled libraries when the uninstalled 11605 # path is not listed in the libpath. Setting hardcode_minus_L 11606 # to unsupported forces relinking 11607 hardcode_minus_L=yes 11608 hardcode_libdir_flag_spec='-L$libdir' 11609 hardcode_libdir_separator= 11610 fi 11611 ;; 11612 esac 11613 shared_flag='-shared' 11614 if test "$aix_use_runtimelinking" = yes; then 11615 shared_flag="$shared_flag "'${wl}-G' 11616 fi 11617 else 11618 # not using gcc 11619 if test "$host_cpu" = ia64; then 11620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11621 # chokes on -Wl,-G. The following line is correct: 11622 shared_flag='-G' 11623 else 11624 if test "$aix_use_runtimelinking" = yes; then 11625 shared_flag='${wl}-G' 11626 else 11627 shared_flag='${wl}-bM:SRE' 11628 fi 11629 fi 11630 fi 11631 11632 export_dynamic_flag_spec='${wl}-bexpall' 11633 # It seems that -bexpall does not export symbols beginning with 11634 # underscore (_), so it is better to generate a list of symbols to export. 11635 always_export_symbols=yes 11636 if test "$aix_use_runtimelinking" = yes; then 11637 # Warning - without using the other runtime loading flags (-brtl), 11638 # -berok will link without error, but may produce a broken library. 11639 allow_undefined_flag='-berok' 11640 # Determine the default libpath from the value encoded in an 11641 # empty executable. 11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11643/* end confdefs.h. */ 11644 11645int 11646main () 11647{ 11648 11649 ; 11650 return 0; 11651} 11652_ACEOF 11653if ac_fn_c_try_link "$LINENO"; then : 11654 11655lt_aix_libpath_sed=' 11656 /Import File Strings/,/^$/ { 11657 /^0/ { 11658 s/^0 *\(.*\)$/\1/ 11659 p 11660 } 11661 }' 11662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11663# Check for a 64-bit object if we didn't find anything. 11664if test -z "$aix_libpath"; then 11665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11666fi 11667fi 11668rm -f core conftest.err conftest.$ac_objext \ 11669 conftest$ac_exeext conftest.$ac_ext 11670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11671 11672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11673 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11674 else 11675 if test "$host_cpu" = ia64; then 11676 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11677 allow_undefined_flag="-z nodefs" 11678 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" 11679 else 11680 # Determine the default libpath from the value encoded in an 11681 # empty executable. 11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11683/* end confdefs.h. */ 11684 11685int 11686main () 11687{ 11688 11689 ; 11690 return 0; 11691} 11692_ACEOF 11693if ac_fn_c_try_link "$LINENO"; then : 11694 11695lt_aix_libpath_sed=' 11696 /Import File Strings/,/^$/ { 11697 /^0/ { 11698 s/^0 *\(.*\)$/\1/ 11699 p 11700 } 11701 }' 11702aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11703# Check for a 64-bit object if we didn't find anything. 11704if test -z "$aix_libpath"; then 11705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11706fi 11707fi 11708rm -f core conftest.err conftest.$ac_objext \ 11709 conftest$ac_exeext conftest.$ac_ext 11710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11711 11712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11713 # Warning - without using the other run time loading flags, 11714 # -berok will link without error, but may produce a broken library. 11715 no_undefined_flag=' ${wl}-bernotok' 11716 allow_undefined_flag=' ${wl}-berok' 11717 if test "$with_gnu_ld" = yes; then 11718 # We only use this code for GNU lds that support --whole-archive. 11719 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11720 else 11721 # Exported symbols can be pulled into shared objects from archives 11722 whole_archive_flag_spec='$convenience' 11723 fi 11724 archive_cmds_need_lc=yes 11725 # This is similar to how AIX traditionally builds its shared libraries. 11726 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11727 fi 11728 fi 11729 ;; 11730 11731 amigaos*) 11732 case $host_cpu in 11733 powerpc) 11734 # see comment about AmigaOS4 .so support 11735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11736 archive_expsym_cmds='' 11737 ;; 11738 m68k) 11739 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)' 11740 hardcode_libdir_flag_spec='-L$libdir' 11741 hardcode_minus_L=yes 11742 ;; 11743 esac 11744 ;; 11745 11746 bsdi[45]*) 11747 export_dynamic_flag_spec=-rdynamic 11748 ;; 11749 11750 cygwin* | mingw* | pw32* | cegcc*) 11751 # When not using gcc, we currently assume that we are using 11752 # Microsoft Visual C++. 11753 # hardcode_libdir_flag_spec is actually meaningless, as there is 11754 # no search path for DLLs. 11755 hardcode_libdir_flag_spec=' ' 11756 allow_undefined_flag=unsupported 11757 # Tell ltmain to make .lib files, not .a files. 11758 libext=lib 11759 # Tell ltmain to make .dll files, not .so files. 11760 shrext_cmds=".dll" 11761 # FIXME: Setting linknames here is a bad hack. 11762 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11763 # The linker will automatically build a .lib file if we build a DLL. 11764 old_archive_from_new_cmds='true' 11765 # FIXME: Should let the user specify the lib program. 11766 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11767 fix_srcfile_path='`cygpath -w "$srcfile"`' 11768 enable_shared_with_static_runtimes=yes 11769 ;; 11770 11771 darwin* | rhapsody*) 11772 11773 11774 archive_cmds_need_lc=no 11775 hardcode_direct=no 11776 hardcode_automatic=yes 11777 hardcode_shlibpath_var=unsupported 11778 if test "$lt_cv_ld_force_load" = "yes"; then 11779 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\"`' 11780 else 11781 whole_archive_flag_spec='' 11782 fi 11783 link_all_deplibs=yes 11784 allow_undefined_flag="$_lt_dar_allow_undefined" 11785 case $cc_basename in 11786 ifort*) _lt_dar_can_shared=yes ;; 11787 *) _lt_dar_can_shared=$GCC ;; 11788 esac 11789 if test "$_lt_dar_can_shared" = "yes"; then 11790 output_verbose_link_cmd=func_echo_all 11791 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11792 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11793 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}" 11794 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}" 11795 11796 else 11797 ld_shlibs=no 11798 fi 11799 11800 ;; 11801 11802 dgux*) 11803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11804 hardcode_libdir_flag_spec='-L$libdir' 11805 hardcode_shlibpath_var=no 11806 ;; 11807 11808 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11809 # support. Future versions do this automatically, but an explicit c++rt0.o 11810 # does not break anything, and helps significantly (at the cost of a little 11811 # extra space). 11812 freebsd2.2*) 11813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11814 hardcode_libdir_flag_spec='-R$libdir' 11815 hardcode_direct=yes 11816 hardcode_shlibpath_var=no 11817 ;; 11818 11819 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11820 freebsd2.*) 11821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11822 hardcode_direct=yes 11823 hardcode_minus_L=yes 11824 hardcode_shlibpath_var=no 11825 ;; 11826 11827 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11828 freebsd* | dragonfly*) 11829 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 11830 hardcode_libdir_flag_spec='-R$libdir' 11831 hardcode_direct=yes 11832 hardcode_shlibpath_var=no 11833 ;; 11834 11835 hpux9*) 11836 if test "$GCC" = yes; then 11837 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11838 else 11839 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11840 fi 11841 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11842 hardcode_libdir_separator=: 11843 hardcode_direct=yes 11844 11845 # hardcode_minus_L: Not really in the search PATH, 11846 # but as the default location of the library. 11847 hardcode_minus_L=yes 11848 export_dynamic_flag_spec='${wl}-E' 11849 ;; 11850 11851 hpux10*) 11852 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11854 else 11855 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11856 fi 11857 if test "$with_gnu_ld" = no; then 11858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11859 hardcode_libdir_flag_spec_ld='+b $libdir' 11860 hardcode_libdir_separator=: 11861 hardcode_direct=yes 11862 hardcode_direct_absolute=yes 11863 export_dynamic_flag_spec='${wl}-E' 11864 # hardcode_minus_L: Not really in the search PATH, 11865 # but as the default location of the library. 11866 hardcode_minus_L=yes 11867 fi 11868 ;; 11869 11870 hpux11*) 11871 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11872 case $host_cpu in 11873 hppa*64*) 11874 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11875 ;; 11876 ia64*) 11877 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11878 ;; 11879 *) 11880 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11881 ;; 11882 esac 11883 else 11884 case $host_cpu in 11885 hppa*64*) 11886 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11887 ;; 11888 ia64*) 11889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11890 ;; 11891 *) 11892 11893 # Older versions of the 11.00 compiler do not understand -b yet 11894 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11896$as_echo_n "checking if $CC understands -b... " >&6; } 11897if ${lt_cv_prog_compiler__b+:} false; then : 11898 $as_echo_n "(cached) " >&6 11899else 11900 lt_cv_prog_compiler__b=no 11901 save_LDFLAGS="$LDFLAGS" 11902 LDFLAGS="$LDFLAGS -b" 11903 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11905 # The linker can only warn and ignore the option if not recognized 11906 # So say no if there are warnings 11907 if test -s conftest.err; then 11908 # Append any errors to the config.log. 11909 cat conftest.err 1>&5 11910 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11912 if diff conftest.exp conftest.er2 >/dev/null; then 11913 lt_cv_prog_compiler__b=yes 11914 fi 11915 else 11916 lt_cv_prog_compiler__b=yes 11917 fi 11918 fi 11919 $RM -r conftest* 11920 LDFLAGS="$save_LDFLAGS" 11921 11922fi 11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11924$as_echo "$lt_cv_prog_compiler__b" >&6; } 11925 11926if test x"$lt_cv_prog_compiler__b" = xyes; then 11927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11928else 11929 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11930fi 11931 11932 ;; 11933 esac 11934 fi 11935 if test "$with_gnu_ld" = no; then 11936 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11937 hardcode_libdir_separator=: 11938 11939 case $host_cpu in 11940 hppa*64*|ia64*) 11941 hardcode_direct=no 11942 hardcode_shlibpath_var=no 11943 ;; 11944 *) 11945 hardcode_direct=yes 11946 hardcode_direct_absolute=yes 11947 export_dynamic_flag_spec='${wl}-E' 11948 11949 # hardcode_minus_L: Not really in the search PATH, 11950 # but as the default location of the library. 11951 hardcode_minus_L=yes 11952 ;; 11953 esac 11954 fi 11955 ;; 11956 11957 irix5* | irix6* | nonstopux*) 11958 if test "$GCC" = yes; then 11959 archive_cmds='$CC -shared $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' 11960 # Try to use the -exported_symbol ld option, if it does not 11961 # work, assume that -exports_file does not work either and 11962 # implicitly export all symbols. 11963 save_LDFLAGS="$LDFLAGS" 11964 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11966/* end confdefs.h. */ 11967int foo(void) {} 11968_ACEOF 11969if ac_fn_c_try_link "$LINENO"; then : 11970 archive_expsym_cmds='$CC -shared $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' 11971 11972fi 11973rm -f core conftest.err conftest.$ac_objext \ 11974 conftest$ac_exeext conftest.$ac_ext 11975 LDFLAGS="$save_LDFLAGS" 11976 else 11977 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' 11978 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' 11979 fi 11980 archive_cmds_need_lc='no' 11981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11982 hardcode_libdir_separator=: 11983 inherit_rpath=yes 11984 link_all_deplibs=yes 11985 ;; 11986 11987 netbsd*) 11988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11990 else 11991 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11992 fi 11993 hardcode_libdir_flag_spec='-R$libdir' 11994 hardcode_direct=yes 11995 hardcode_shlibpath_var=no 11996 ;; 11997 11998 newsos6) 11999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12000 hardcode_direct=yes 12001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12002 hardcode_libdir_separator=: 12003 hardcode_shlibpath_var=no 12004 ;; 12005 12006 *nto* | *qnx*) 12007 ;; 12008 12009 openbsd*) 12010 if test -f /usr/libexec/ld.so; then 12011 hardcode_direct=yes 12012 hardcode_shlibpath_var=no 12013 hardcode_direct_absolute=yes 12014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12016 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12018 export_dynamic_flag_spec='${wl}-E' 12019 else 12020 case $host_os in 12021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12023 hardcode_libdir_flag_spec='-R$libdir' 12024 ;; 12025 *) 12026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12028 ;; 12029 esac 12030 fi 12031 else 12032 ld_shlibs=no 12033 fi 12034 ;; 12035 12036 os2*) 12037 hardcode_libdir_flag_spec='-L$libdir' 12038 hardcode_minus_L=yes 12039 allow_undefined_flag=unsupported 12040 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 12041 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12042 ;; 12043 12044 osf3*) 12045 if test "$GCC" = yes; then 12046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12047 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' 12048 else 12049 allow_undefined_flag=' -expect_unresolved \*' 12050 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' 12051 fi 12052 archive_cmds_need_lc='no' 12053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12054 hardcode_libdir_separator=: 12055 ;; 12056 12057 osf4* | osf5*) # as osf3* with the addition of -msym flag 12058 if test "$GCC" = yes; then 12059 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12060 archive_cmds='$CC -shared${allow_undefined_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' 12061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12062 else 12063 allow_undefined_flag=' -expect_unresolved \*' 12064 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' 12065 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~ 12066 $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' 12067 12068 # Both c and cxx compiler support -rpath directly 12069 hardcode_libdir_flag_spec='-rpath $libdir' 12070 fi 12071 archive_cmds_need_lc='no' 12072 hardcode_libdir_separator=: 12073 ;; 12074 12075 solaris*) 12076 no_undefined_flag=' -z defs' 12077 if test "$GCC" = yes; then 12078 wlarc='${wl}' 12079 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12081 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12082 else 12083 case `$CC -V 2>&1` in 12084 *"Compilers 5.0"*) 12085 wlarc='' 12086 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12089 ;; 12090 *) 12091 wlarc='${wl}' 12092 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12094 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12095 ;; 12096 esac 12097 fi 12098 hardcode_libdir_flag_spec='-R$libdir' 12099 hardcode_shlibpath_var=no 12100 case $host_os in 12101 solaris2.[0-5] | solaris2.[0-5].*) ;; 12102 *) 12103 # The compiler driver will combine and reorder linker options, 12104 # but understands `-z linker_flag'. GCC discards it without `$wl', 12105 # but is careful enough not to reorder. 12106 # Supported since Solaris 2.6 (maybe 2.5.1?) 12107 if test "$GCC" = yes; then 12108 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12109 else 12110 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12111 fi 12112 ;; 12113 esac 12114 link_all_deplibs=yes 12115 ;; 12116 12117 sunos4*) 12118 if test "x$host_vendor" = xsequent; then 12119 # Use $CC to link under sequent, because it throws in some extra .o 12120 # files that make .init and .fini sections work. 12121 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12122 else 12123 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12124 fi 12125 hardcode_libdir_flag_spec='-L$libdir' 12126 hardcode_direct=yes 12127 hardcode_minus_L=yes 12128 hardcode_shlibpath_var=no 12129 ;; 12130 12131 sysv4) 12132 case $host_vendor in 12133 sni) 12134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12135 hardcode_direct=yes # is this really true??? 12136 ;; 12137 siemens) 12138 ## LD is ld it makes a PLAMLIB 12139 ## CC just makes a GrossModule. 12140 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12141 reload_cmds='$CC -r -o $output$reload_objs' 12142 hardcode_direct=no 12143 ;; 12144 motorola) 12145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12146 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12147 ;; 12148 esac 12149 runpath_var='LD_RUN_PATH' 12150 hardcode_shlibpath_var=no 12151 ;; 12152 12153 sysv4.3*) 12154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12155 hardcode_shlibpath_var=no 12156 export_dynamic_flag_spec='-Bexport' 12157 ;; 12158 12159 sysv4*MP*) 12160 if test -d /usr/nec; then 12161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12162 hardcode_shlibpath_var=no 12163 runpath_var=LD_RUN_PATH 12164 hardcode_runpath_var=yes 12165 ld_shlibs=yes 12166 fi 12167 ;; 12168 12169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12170 no_undefined_flag='${wl}-z,text' 12171 archive_cmds_need_lc=no 12172 hardcode_shlibpath_var=no 12173 runpath_var='LD_RUN_PATH' 12174 12175 if test "$GCC" = yes; then 12176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12177 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12178 else 12179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12180 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12181 fi 12182 ;; 12183 12184 sysv5* | sco3.2v5* | sco5v6*) 12185 # Note: We can NOT use -z defs as we might desire, because we do not 12186 # link with -lc, and that would cause any symbols used from libc to 12187 # always be unresolved, which means just about no library would 12188 # ever link correctly. If we're not using GNU ld we use -z text 12189 # though, which does catch some bad symbols but isn't as heavy-handed 12190 # as -z defs. 12191 no_undefined_flag='${wl}-z,text' 12192 allow_undefined_flag='${wl}-z,nodefs' 12193 archive_cmds_need_lc=no 12194 hardcode_shlibpath_var=no 12195 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12196 hardcode_libdir_separator=':' 12197 link_all_deplibs=yes 12198 export_dynamic_flag_spec='${wl}-Bexport' 12199 runpath_var='LD_RUN_PATH' 12200 12201 if test "$GCC" = yes; then 12202 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12203 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12204 else 12205 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12206 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12207 fi 12208 ;; 12209 12210 uts4*) 12211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12212 hardcode_libdir_flag_spec='-L$libdir' 12213 hardcode_shlibpath_var=no 12214 ;; 12215 12216 *) 12217 ld_shlibs=no 12218 ;; 12219 esac 12220 12221 if test x$host_vendor = xsni; then 12222 case $host in 12223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12224 export_dynamic_flag_spec='${wl}-Blargedynsym' 12225 ;; 12226 esac 12227 fi 12228 fi 12229 12230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12231$as_echo "$ld_shlibs" >&6; } 12232test "$ld_shlibs" = no && can_build_shared=no 12233 12234with_gnu_ld=$with_gnu_ld 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250# 12251# Do we need to explicitly link libc? 12252# 12253case "x$archive_cmds_need_lc" in 12254x|xyes) 12255 # Assume -lc should be added 12256 archive_cmds_need_lc=yes 12257 12258 if test "$enable_shared" = yes && test "$GCC" = yes; then 12259 case $archive_cmds in 12260 *'~'*) 12261 # FIXME: we may have to deal with multi-command sequences. 12262 ;; 12263 '$CC '*) 12264 # Test whether the compiler implicitly links with -lc since on some 12265 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12266 # to ld, don't add -lc before -lgcc. 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12268$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12269if ${lt_cv_archive_cmds_need_lc+:} false; then : 12270 $as_echo_n "(cached) " >&6 12271else 12272 $RM conftest* 12273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12274 12275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12276 (eval $ac_compile) 2>&5 12277 ac_status=$? 12278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12279 test $ac_status = 0; } 2>conftest.err; then 12280 soname=conftest 12281 lib=conftest 12282 libobjs=conftest.$ac_objext 12283 deplibs= 12284 wl=$lt_prog_compiler_wl 12285 pic_flag=$lt_prog_compiler_pic 12286 compiler_flags=-v 12287 linker_flags=-v 12288 verstring= 12289 output_objdir=. 12290 libname=conftest 12291 lt_save_allow_undefined_flag=$allow_undefined_flag 12292 allow_undefined_flag= 12293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12294 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12295 ac_status=$? 12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12297 test $ac_status = 0; } 12298 then 12299 lt_cv_archive_cmds_need_lc=no 12300 else 12301 lt_cv_archive_cmds_need_lc=yes 12302 fi 12303 allow_undefined_flag=$lt_save_allow_undefined_flag 12304 else 12305 cat conftest.err 1>&5 12306 fi 12307 $RM conftest* 12308 12309fi 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12311$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12312 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12313 ;; 12314 esac 12315 fi 12316 ;; 12317esac 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12476$as_echo_n "checking dynamic linker characteristics... " >&6; } 12477 12478if test "$GCC" = yes; then 12479 case $host_os in 12480 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12481 *) lt_awk_arg="/^libraries:/" ;; 12482 esac 12483 case $host_os in 12484 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12485 *) lt_sed_strip_eq="s,=/,/,g" ;; 12486 esac 12487 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12488 case $lt_search_path_spec in 12489 *\;*) 12490 # if the path contains ";" then we assume it to be the separator 12491 # otherwise default to the standard path separator (i.e. ":") - it is 12492 # assumed that no part of a normal pathname contains ";" but that should 12493 # okay in the real world where ";" in dirpaths is itself problematic. 12494 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12495 ;; 12496 *) 12497 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12498 ;; 12499 esac 12500 # Ok, now we have the path, separated by spaces, we can step through it 12501 # and add multilib dir if necessary. 12502 lt_tmp_lt_search_path_spec= 12503 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12504 for lt_sys_path in $lt_search_path_spec; do 12505 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12506 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12507 else 12508 test -d "$lt_sys_path" && \ 12509 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12510 fi 12511 done 12512 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12513BEGIN {RS=" "; FS="/|\n";} { 12514 lt_foo=""; 12515 lt_count=0; 12516 for (lt_i = NF; lt_i > 0; lt_i--) { 12517 if ($lt_i != "" && $lt_i != ".") { 12518 if ($lt_i == "..") { 12519 lt_count++; 12520 } else { 12521 if (lt_count == 0) { 12522 lt_foo="/" $lt_i lt_foo; 12523 } else { 12524 lt_count--; 12525 } 12526 } 12527 } 12528 } 12529 if (lt_foo != "") { lt_freq[lt_foo]++; } 12530 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12531}'` 12532 # AWK program above erroneously prepends '/' to C:/dos/paths 12533 # for these hosts. 12534 case $host_os in 12535 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12536 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12537 esac 12538 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12539else 12540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12541fi 12542library_names_spec= 12543libname_spec='lib$name' 12544soname_spec= 12545shrext_cmds=".so" 12546postinstall_cmds= 12547postuninstall_cmds= 12548finish_cmds= 12549finish_eval= 12550shlibpath_var= 12551shlibpath_overrides_runpath=unknown 12552version_type=none 12553dynamic_linker="$host_os ld.so" 12554sys_lib_dlsearch_path_spec="/lib /usr/lib" 12555need_lib_prefix=unknown 12556hardcode_into_libs=no 12557 12558# when you set need_version to no, make sure it does not cause -set_version 12559# flags to be left without arguments 12560need_version=unknown 12561 12562case $host_os in 12563aix3*) 12564 version_type=linux 12565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12566 shlibpath_var=LIBPATH 12567 12568 # AIX 3 has no versioning support, so we append a major version to the name. 12569 soname_spec='${libname}${release}${shared_ext}$major' 12570 ;; 12571 12572aix[4-9]*) 12573 version_type=linux 12574 need_lib_prefix=no 12575 need_version=no 12576 hardcode_into_libs=yes 12577 if test "$host_cpu" = ia64; then 12578 # AIX 5 supports IA64 12579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12580 shlibpath_var=LD_LIBRARY_PATH 12581 else 12582 # With GCC up to 2.95.x, collect2 would create an import file 12583 # for dependence libraries. The import file would start with 12584 # the line `#! .'. This would cause the generated library to 12585 # depend on `.', always an invalid library. This was fixed in 12586 # development snapshots of GCC prior to 3.0. 12587 case $host_os in 12588 aix4 | aix4.[01] | aix4.[01].*) 12589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12590 echo ' yes ' 12591 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12592 : 12593 else 12594 can_build_shared=no 12595 fi 12596 ;; 12597 esac 12598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12599 # soname into executable. Probably we can add versioning support to 12600 # collect2, so additional links can be useful in future. 12601 if test "$aix_use_runtimelinking" = yes; then 12602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12603 # instead of lib<name>.a to let people know that these are not 12604 # typical AIX shared libraries. 12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12606 else 12607 # We preserve .a as extension for shared libraries through AIX4.2 12608 # and later when we are not doing run time linking. 12609 library_names_spec='${libname}${release}.a $libname.a' 12610 soname_spec='${libname}${release}${shared_ext}$major' 12611 fi 12612 shlibpath_var=LIBPATH 12613 fi 12614 ;; 12615 12616amigaos*) 12617 case $host_cpu in 12618 powerpc) 12619 # Since July 2007 AmigaOS4 officially supports .so libraries. 12620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12622 ;; 12623 m68k) 12624 library_names_spec='$libname.ixlibrary $libname.a' 12625 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12626 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12627 ;; 12628 esac 12629 ;; 12630 12631beos*) 12632 library_names_spec='${libname}${shared_ext}' 12633 dynamic_linker="$host_os ld.so" 12634 shlibpath_var=LIBRARY_PATH 12635 ;; 12636 12637bsdi[45]*) 12638 version_type=linux 12639 need_version=no 12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12641 soname_spec='${libname}${release}${shared_ext}$major' 12642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12643 shlibpath_var=LD_LIBRARY_PATH 12644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12646 # the default ld.so.conf also contains /usr/contrib/lib and 12647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12648 # libtool to hard-code these into programs 12649 ;; 12650 12651cygwin* | mingw* | pw32* | cegcc*) 12652 version_type=windows 12653 shrext_cmds=".dll" 12654 need_version=no 12655 need_lib_prefix=no 12656 12657 case $GCC,$host_os in 12658 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 12659 library_names_spec='$libname.dll.a' 12660 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12661 postinstall_cmds='base_file=`basename \${file}`~ 12662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12663 dldir=$destdir/`dirname \$dlpath`~ 12664 test -d \$dldir || mkdir -p \$dldir~ 12665 $install_prog $dir/$dlname \$dldir/$dlname~ 12666 chmod a+x \$dldir/$dlname~ 12667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12669 fi' 12670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12671 dlpath=$dir/\$dldll~ 12672 $RM \$dlpath' 12673 shlibpath_overrides_runpath=yes 12674 12675 case $host_os in 12676 cygwin*) 12677 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12678 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12679 12680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12681 ;; 12682 mingw* | cegcc*) 12683 # MinGW DLLs use traditional 'lib' prefix 12684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12685 ;; 12686 pw32*) 12687 # pw32 DLLs use 'pw' prefix rather than 'lib' 12688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12689 ;; 12690 esac 12691 ;; 12692 12693 *) 12694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12695 ;; 12696 esac 12697 dynamic_linker='Win32 ld.exe' 12698 # FIXME: first we should search . and the directory the executable is in 12699 shlibpath_var=PATH 12700 ;; 12701 12702darwin* | rhapsody*) 12703 dynamic_linker="$host_os dyld" 12704 version_type=darwin 12705 need_lib_prefix=no 12706 need_version=no 12707 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12708 soname_spec='${libname}${release}${major}$shared_ext' 12709 shlibpath_overrides_runpath=yes 12710 shlibpath_var=DYLD_LIBRARY_PATH 12711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12712 12713 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12714 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12715 ;; 12716 12717dgux*) 12718 version_type=linux 12719 need_lib_prefix=no 12720 need_version=no 12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12722 soname_spec='${libname}${release}${shared_ext}$major' 12723 shlibpath_var=LD_LIBRARY_PATH 12724 ;; 12725 12726freebsd* | dragonfly*) 12727 # DragonFly does not have aout. When/if they implement a new 12728 # versioning mechanism, adjust this. 12729 if test -x /usr/bin/objformat; then 12730 objformat=`/usr/bin/objformat` 12731 else 12732 case $host_os in 12733 freebsd[23].*) objformat=aout ;; 12734 *) objformat=elf ;; 12735 esac 12736 fi 12737 version_type=freebsd-$objformat 12738 case $version_type in 12739 freebsd-elf*) 12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12741 need_version=no 12742 need_lib_prefix=no 12743 ;; 12744 freebsd-*) 12745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12746 need_version=yes 12747 ;; 12748 esac 12749 shlibpath_var=LD_LIBRARY_PATH 12750 case $host_os in 12751 freebsd2.*) 12752 shlibpath_overrides_runpath=yes 12753 ;; 12754 freebsd3.[01]* | freebsdelf3.[01]*) 12755 shlibpath_overrides_runpath=yes 12756 hardcode_into_libs=yes 12757 ;; 12758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12760 shlibpath_overrides_runpath=no 12761 hardcode_into_libs=yes 12762 ;; 12763 *) # from 4.6 on, and DragonFly 12764 shlibpath_overrides_runpath=yes 12765 hardcode_into_libs=yes 12766 ;; 12767 esac 12768 ;; 12769 12770haiku*) 12771 version_type=linux 12772 need_lib_prefix=no 12773 need_version=no 12774 dynamic_linker="$host_os runtime_loader" 12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12776 soname_spec='${libname}${release}${shared_ext}$major' 12777 shlibpath_var=LIBRARY_PATH 12778 shlibpath_overrides_runpath=yes 12779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12780 hardcode_into_libs=yes 12781 ;; 12782 12783hpux9* | hpux10* | hpux11*) 12784 # Give a soname corresponding to the major version so that dld.sl refuses to 12785 # link against other versions. 12786 version_type=sunos 12787 need_lib_prefix=no 12788 need_version=no 12789 case $host_cpu in 12790 ia64*) 12791 shrext_cmds='.so' 12792 hardcode_into_libs=yes 12793 dynamic_linker="$host_os dld.so" 12794 shlibpath_var=LD_LIBRARY_PATH 12795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12797 soname_spec='${libname}${release}${shared_ext}$major' 12798 if test "X$HPUX_IA64_MODE" = X32; then 12799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12800 else 12801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12802 fi 12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12804 ;; 12805 hppa*64*) 12806 shrext_cmds='.sl' 12807 hardcode_into_libs=yes 12808 dynamic_linker="$host_os dld.sl" 12809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12812 soname_spec='${libname}${release}${shared_ext}$major' 12813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12815 ;; 12816 *) 12817 shrext_cmds='.sl' 12818 dynamic_linker="$host_os dld.sl" 12819 shlibpath_var=SHLIB_PATH 12820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12822 soname_spec='${libname}${release}${shared_ext}$major' 12823 ;; 12824 esac 12825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12826 postinstall_cmds='chmod 555 $lib' 12827 # or fails outright, so override atomically: 12828 install_override_mode=555 12829 ;; 12830 12831interix[3-9]*) 12832 version_type=linux 12833 need_lib_prefix=no 12834 need_version=no 12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12836 soname_spec='${libname}${release}${shared_ext}$major' 12837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12838 shlibpath_var=LD_LIBRARY_PATH 12839 shlibpath_overrides_runpath=no 12840 hardcode_into_libs=yes 12841 ;; 12842 12843irix5* | irix6* | nonstopux*) 12844 case $host_os in 12845 nonstopux*) version_type=nonstopux ;; 12846 *) 12847 if test "$lt_cv_prog_gnu_ld" = yes; then 12848 version_type=linux 12849 else 12850 version_type=irix 12851 fi ;; 12852 esac 12853 need_lib_prefix=no 12854 need_version=no 12855 soname_spec='${libname}${release}${shared_ext}$major' 12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12857 case $host_os in 12858 irix5* | nonstopux*) 12859 libsuff= shlibsuff= 12860 ;; 12861 *) 12862 case $LD in # libtool.m4 will add one of these switches to LD 12863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12864 libsuff= shlibsuff= libmagic=32-bit;; 12865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12866 libsuff=32 shlibsuff=N32 libmagic=N32;; 12867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12868 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12869 *) libsuff= shlibsuff= libmagic=never-match;; 12870 esac 12871 ;; 12872 esac 12873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12874 shlibpath_overrides_runpath=no 12875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12877 hardcode_into_libs=yes 12878 ;; 12879 12880# No shared lib support for Linux oldld, aout, or coff. 12881linux*oldld* | linux*aout* | linux*coff*) 12882 dynamic_linker=no 12883 ;; 12884 12885# This must be Linux ELF. 12886 12887# uclinux* changes (here and below) have been submitted to the libtool 12888# project, but have not yet been accepted: they are GCC-local changes 12889# for the time being. (See 12890# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 12891linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 12892 version_type=linux 12893 need_lib_prefix=no 12894 need_version=no 12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12896 soname_spec='${libname}${release}${shared_ext}$major' 12897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12898 shlibpath_var=LD_LIBRARY_PATH 12899 shlibpath_overrides_runpath=no 12900 12901 # Some binutils ld are patched to set DT_RUNPATH 12902 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904else 12905 lt_cv_shlibpath_overrides_runpath=no 12906 save_LDFLAGS=$LDFLAGS 12907 save_libdir=$libdir 12908 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12909 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12911/* end confdefs.h. */ 12912 12913int 12914main () 12915{ 12916 12917 ; 12918 return 0; 12919} 12920_ACEOF 12921if ac_fn_c_try_link "$LINENO"; then : 12922 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12923 lt_cv_shlibpath_overrides_runpath=yes 12924fi 12925fi 12926rm -f core conftest.err conftest.$ac_objext \ 12927 conftest$ac_exeext conftest.$ac_ext 12928 LDFLAGS=$save_LDFLAGS 12929 libdir=$save_libdir 12930 12931fi 12932 12933 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12934 12935 # This implies no fast_install, which is unacceptable. 12936 # Some rework will be needed to allow for fast_install 12937 # before this can be enabled. 12938 hardcode_into_libs=yes 12939 12940 # Append ld.so.conf contents to the search path 12941 if test -f /etc/ld.so.conf; then 12942 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' ' '` 12943 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12944 fi 12945 12946 # We used to test for /lib/ld.so.1 and disable shared libraries on 12947 # powerpc, because MkLinux only supported shared libraries with the 12948 # GNU dynamic linker. Since this was broken with cross compilers, 12949 # most powerpc-linux boxes support dynamic linking these days and 12950 # people can always --disable-shared, the test was removed, and we 12951 # assume the GNU/Linux dynamic linker is in use. 12952 dynamic_linker='GNU/Linux ld.so' 12953 ;; 12954 12955netbsd*) 12956 version_type=sunos 12957 need_lib_prefix=no 12958 need_version=no 12959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12962 dynamic_linker='NetBSD (a.out) ld.so' 12963 else 12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12965 soname_spec='${libname}${release}${shared_ext}$major' 12966 dynamic_linker='NetBSD ld.elf_so' 12967 fi 12968 shlibpath_var=LD_LIBRARY_PATH 12969 shlibpath_overrides_runpath=yes 12970 hardcode_into_libs=yes 12971 ;; 12972 12973newsos6) 12974 version_type=linux 12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12976 shlibpath_var=LD_LIBRARY_PATH 12977 shlibpath_overrides_runpath=yes 12978 ;; 12979 12980*nto* | *qnx*) 12981 version_type=qnx 12982 need_lib_prefix=no 12983 need_version=no 12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12985 soname_spec='${libname}${release}${shared_ext}$major' 12986 shlibpath_var=LD_LIBRARY_PATH 12987 shlibpath_overrides_runpath=no 12988 hardcode_into_libs=yes 12989 dynamic_linker='ldqnx.so' 12990 ;; 12991 12992openbsd*) 12993 version_type=sunos 12994 sys_lib_dlsearch_path_spec="/usr/lib" 12995 need_lib_prefix=no 12996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12997 case $host_os in 12998 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12999 *) need_version=no ;; 13000 esac 13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13003 shlibpath_var=LD_LIBRARY_PATH 13004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13005 case $host_os in 13006 openbsd2.[89] | openbsd2.[89].*) 13007 shlibpath_overrides_runpath=no 13008 ;; 13009 *) 13010 shlibpath_overrides_runpath=yes 13011 ;; 13012 esac 13013 else 13014 shlibpath_overrides_runpath=yes 13015 fi 13016 ;; 13017 13018os2*) 13019 libname_spec='$name' 13020 shrext_cmds=".dll" 13021 need_lib_prefix=no 13022 library_names_spec='$libname${shared_ext} $libname.a' 13023 dynamic_linker='OS/2 ld.exe' 13024 shlibpath_var=LIBPATH 13025 ;; 13026 13027osf3* | osf4* | osf5*) 13028 version_type=osf 13029 need_lib_prefix=no 13030 need_version=no 13031 soname_spec='${libname}${release}${shared_ext}$major' 13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13033 shlibpath_var=LD_LIBRARY_PATH 13034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13036 ;; 13037 13038rdos*) 13039 dynamic_linker=no 13040 ;; 13041 13042solaris*) 13043 version_type=linux 13044 need_lib_prefix=no 13045 need_version=no 13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13047 soname_spec='${libname}${release}${shared_ext}$major' 13048 shlibpath_var=LD_LIBRARY_PATH 13049 shlibpath_overrides_runpath=yes 13050 hardcode_into_libs=yes 13051 # ldd complains unless libraries are executable 13052 postinstall_cmds='chmod +x $lib' 13053 ;; 13054 13055sunos4*) 13056 version_type=sunos 13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13059 shlibpath_var=LD_LIBRARY_PATH 13060 shlibpath_overrides_runpath=yes 13061 if test "$with_gnu_ld" = yes; then 13062 need_lib_prefix=no 13063 fi 13064 need_version=yes 13065 ;; 13066 13067sysv4 | sysv4.3*) 13068 version_type=linux 13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13070 soname_spec='${libname}${release}${shared_ext}$major' 13071 shlibpath_var=LD_LIBRARY_PATH 13072 case $host_vendor in 13073 sni) 13074 shlibpath_overrides_runpath=no 13075 need_lib_prefix=no 13076 runpath_var=LD_RUN_PATH 13077 ;; 13078 siemens) 13079 need_lib_prefix=no 13080 ;; 13081 motorola) 13082 need_lib_prefix=no 13083 need_version=no 13084 shlibpath_overrides_runpath=no 13085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13086 ;; 13087 esac 13088 ;; 13089 13090sysv4*MP*) 13091 if test -d /usr/nec ;then 13092 version_type=linux 13093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13094 soname_spec='$libname${shared_ext}.$major' 13095 shlibpath_var=LD_LIBRARY_PATH 13096 fi 13097 ;; 13098 13099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13100 version_type=freebsd-elf 13101 need_lib_prefix=no 13102 need_version=no 13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13104 soname_spec='${libname}${release}${shared_ext}$major' 13105 shlibpath_var=LD_LIBRARY_PATH 13106 shlibpath_overrides_runpath=yes 13107 hardcode_into_libs=yes 13108 if test "$with_gnu_ld" = yes; then 13109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13110 else 13111 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13112 case $host_os in 13113 sco3.2v5*) 13114 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13115 ;; 13116 esac 13117 fi 13118 sys_lib_dlsearch_path_spec='/usr/lib' 13119 ;; 13120 13121tpf*) 13122 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13123 version_type=linux 13124 need_lib_prefix=no 13125 need_version=no 13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13127 shlibpath_var=LD_LIBRARY_PATH 13128 shlibpath_overrides_runpath=no 13129 hardcode_into_libs=yes 13130 ;; 13131 13132uts4*) 13133 version_type=linux 13134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13135 soname_spec='${libname}${release}${shared_ext}$major' 13136 shlibpath_var=LD_LIBRARY_PATH 13137 ;; 13138 13139# Shared libraries for VwWorks, >= 7 only at this stage 13140# and (fpic) still incompatible with "large" code models 13141# in a few configurations. Only for RTP mode in any case, 13142# and upon explicit request at configure time. 13143vxworks7*) 13144 dynamic_linker=no 13145 case ${with_multisubdir}-${enable_shared} in 13146 *large*) 13147 ;; 13148 *mrtp*-yes) 13149 version_type=linux 13150 need_lib_prefix=no 13151 need_version=no 13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13153 soname_spec='${libname}${release}${shared_ext}$major' 13154 dynamic_linker="$host_os module_loader" 13155 ;; 13156 esac 13157 ;; 13158*) 13159 dynamic_linker=no 13160 ;; 13161esac 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13163$as_echo "$dynamic_linker" >&6; } 13164test "$dynamic_linker" = no && can_build_shared=no 13165 13166variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13167if test "$GCC" = yes; then 13168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13169fi 13170 13171if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13173fi 13174if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13176fi 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13270$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13271hardcode_action= 13272if test -n "$hardcode_libdir_flag_spec" || 13273 test -n "$runpath_var" || 13274 test "X$hardcode_automatic" = "Xyes" ; then 13275 13276 # We can hardcode non-existent directories. 13277 if test "$hardcode_direct" != no && 13278 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13279 # have to relink, otherwise we might link with an installed library 13280 # when we should be linking with a yet-to-be-installed one 13281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13282 test "$hardcode_minus_L" != no; then 13283 # Linking always hardcodes the temporary library directory. 13284 hardcode_action=relink 13285 else 13286 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13287 hardcode_action=immediate 13288 fi 13289else 13290 # We cannot hardcode anything, or else we can only hardcode existing 13291 # directories. 13292 hardcode_action=unsupported 13293fi 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13295$as_echo "$hardcode_action" >&6; } 13296 13297if test "$hardcode_action" = relink || 13298 test "$inherit_rpath" = yes; then 13299 # Fast installation is not supported 13300 enable_fast_install=no 13301elif test "$shlibpath_overrides_runpath" = yes || 13302 test "$enable_shared" = no; then 13303 # Fast installation is not necessary 13304 enable_fast_install=needless 13305fi 13306 13307 13308 13309 13310 13311 13312 if test "x$enable_dlopen" != xyes; then 13313 enable_dlopen=unknown 13314 enable_dlopen_self=unknown 13315 enable_dlopen_self_static=unknown 13316else 13317 lt_cv_dlopen=no 13318 lt_cv_dlopen_libs= 13319 13320 case $host_os in 13321 beos*) 13322 lt_cv_dlopen="load_add_on" 13323 lt_cv_dlopen_libs= 13324 lt_cv_dlopen_self=yes 13325 ;; 13326 13327 mingw* | pw32* | cegcc*) 13328 lt_cv_dlopen="LoadLibrary" 13329 lt_cv_dlopen_libs= 13330 ;; 13331 13332 cygwin*) 13333 lt_cv_dlopen="dlopen" 13334 lt_cv_dlopen_libs= 13335 ;; 13336 13337 darwin*) 13338 # if libdl is installed we need to link against it 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13340$as_echo_n "checking for dlopen in -ldl... " >&6; } 13341if ${ac_cv_lib_dl_dlopen+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343else 13344 ac_check_lib_save_LIBS=$LIBS 13345LIBS="-ldl $LIBS" 13346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13347/* end confdefs.h. */ 13348 13349/* Override any GCC internal prototype to avoid an error. 13350 Use char because int might match the return type of a GCC 13351 builtin and then its argument prototype would still apply. */ 13352#ifdef __cplusplus 13353extern "C" 13354#endif 13355char dlopen (); 13356int 13357main () 13358{ 13359return dlopen (); 13360 ; 13361 return 0; 13362} 13363_ACEOF 13364if ac_fn_c_try_link "$LINENO"; then : 13365 ac_cv_lib_dl_dlopen=yes 13366else 13367 ac_cv_lib_dl_dlopen=no 13368fi 13369rm -f core conftest.err conftest.$ac_objext \ 13370 conftest$ac_exeext conftest.$ac_ext 13371LIBS=$ac_check_lib_save_LIBS 13372fi 13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13374$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13375if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13377else 13378 13379 lt_cv_dlopen="dyld" 13380 lt_cv_dlopen_libs= 13381 lt_cv_dlopen_self=yes 13382 13383fi 13384 13385 ;; 13386 13387 *) 13388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13389if test "x$ac_cv_func_shl_load" = xyes; then : 13390 lt_cv_dlopen="shl_load" 13391else 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13393$as_echo_n "checking for shl_load in -ldld... " >&6; } 13394if ${ac_cv_lib_dld_shl_load+:} false; then : 13395 $as_echo_n "(cached) " >&6 13396else 13397 ac_check_lib_save_LIBS=$LIBS 13398LIBS="-ldld $LIBS" 13399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400/* end confdefs.h. */ 13401 13402/* Override any GCC internal prototype to avoid an error. 13403 Use char because int might match the return type of a GCC 13404 builtin and then its argument prototype would still apply. */ 13405#ifdef __cplusplus 13406extern "C" 13407#endif 13408char shl_load (); 13409int 13410main () 13411{ 13412return shl_load (); 13413 ; 13414 return 0; 13415} 13416_ACEOF 13417if ac_fn_c_try_link "$LINENO"; then : 13418 ac_cv_lib_dld_shl_load=yes 13419else 13420 ac_cv_lib_dld_shl_load=no 13421fi 13422rm -f core conftest.err conftest.$ac_objext \ 13423 conftest$ac_exeext conftest.$ac_ext 13424LIBS=$ac_check_lib_save_LIBS 13425fi 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13427$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13428if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13430else 13431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13432if test "x$ac_cv_func_dlopen" = xyes; then : 13433 lt_cv_dlopen="dlopen" 13434else 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13436$as_echo_n "checking for dlopen in -ldl... " >&6; } 13437if ${ac_cv_lib_dl_dlopen+:} false; then : 13438 $as_echo_n "(cached) " >&6 13439else 13440 ac_check_lib_save_LIBS=$LIBS 13441LIBS="-ldl $LIBS" 13442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13443/* end confdefs.h. */ 13444 13445/* Override any GCC internal prototype to avoid an error. 13446 Use char because int might match the return type of a GCC 13447 builtin and then its argument prototype would still apply. */ 13448#ifdef __cplusplus 13449extern "C" 13450#endif 13451char dlopen (); 13452int 13453main () 13454{ 13455return dlopen (); 13456 ; 13457 return 0; 13458} 13459_ACEOF 13460if ac_fn_c_try_link "$LINENO"; then : 13461 ac_cv_lib_dl_dlopen=yes 13462else 13463 ac_cv_lib_dl_dlopen=no 13464fi 13465rm -f core conftest.err conftest.$ac_objext \ 13466 conftest$ac_exeext conftest.$ac_ext 13467LIBS=$ac_check_lib_save_LIBS 13468fi 13469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13470$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13471if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13473else 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13475$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13476if ${ac_cv_lib_svld_dlopen+:} false; then : 13477 $as_echo_n "(cached) " >&6 13478else 13479 ac_check_lib_save_LIBS=$LIBS 13480LIBS="-lsvld $LIBS" 13481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13482/* end confdefs.h. */ 13483 13484/* Override any GCC internal prototype to avoid an error. 13485 Use char because int might match the return type of a GCC 13486 builtin and then its argument prototype would still apply. */ 13487#ifdef __cplusplus 13488extern "C" 13489#endif 13490char dlopen (); 13491int 13492main () 13493{ 13494return dlopen (); 13495 ; 13496 return 0; 13497} 13498_ACEOF 13499if ac_fn_c_try_link "$LINENO"; then : 13500 ac_cv_lib_svld_dlopen=yes 13501else 13502 ac_cv_lib_svld_dlopen=no 13503fi 13504rm -f core conftest.err conftest.$ac_objext \ 13505 conftest$ac_exeext conftest.$ac_ext 13506LIBS=$ac_check_lib_save_LIBS 13507fi 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13509$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13510if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13512else 13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13514$as_echo_n "checking for dld_link in -ldld... " >&6; } 13515if ${ac_cv_lib_dld_dld_link+:} false; then : 13516 $as_echo_n "(cached) " >&6 13517else 13518 ac_check_lib_save_LIBS=$LIBS 13519LIBS="-ldld $LIBS" 13520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13521/* end confdefs.h. */ 13522 13523/* Override any GCC internal prototype to avoid an error. 13524 Use char because int might match the return type of a GCC 13525 builtin and then its argument prototype would still apply. */ 13526#ifdef __cplusplus 13527extern "C" 13528#endif 13529char dld_link (); 13530int 13531main () 13532{ 13533return dld_link (); 13534 ; 13535 return 0; 13536} 13537_ACEOF 13538if ac_fn_c_try_link "$LINENO"; then : 13539 ac_cv_lib_dld_dld_link=yes 13540else 13541 ac_cv_lib_dld_dld_link=no 13542fi 13543rm -f core conftest.err conftest.$ac_objext \ 13544 conftest$ac_exeext conftest.$ac_ext 13545LIBS=$ac_check_lib_save_LIBS 13546fi 13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13548$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13549if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13551fi 13552 13553 13554fi 13555 13556 13557fi 13558 13559 13560fi 13561 13562 13563fi 13564 13565 13566fi 13567 13568 ;; 13569 esac 13570 13571 if test "x$lt_cv_dlopen" != xno; then 13572 enable_dlopen=yes 13573 else 13574 enable_dlopen=no 13575 fi 13576 13577 case $lt_cv_dlopen in 13578 dlopen) 13579 save_CPPFLAGS="$CPPFLAGS" 13580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13581 13582 save_LDFLAGS="$LDFLAGS" 13583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13584 13585 save_LIBS="$LIBS" 13586 LIBS="$lt_cv_dlopen_libs $LIBS" 13587 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13589$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13590if ${lt_cv_dlopen_self+:} false; then : 13591 $as_echo_n "(cached) " >&6 13592else 13593 if test "$cross_compiling" = yes; then : 13594 lt_cv_dlopen_self=cross 13595else 13596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13597 lt_status=$lt_dlunknown 13598 cat > conftest.$ac_ext <<_LT_EOF 13599#line 13599 "configure" 13600#include "confdefs.h" 13601 13602#if HAVE_DLFCN_H 13603#include <dlfcn.h> 13604#endif 13605 13606#include <stdio.h> 13607 13608#ifdef RTLD_GLOBAL 13609# define LT_DLGLOBAL RTLD_GLOBAL 13610#else 13611# ifdef DL_GLOBAL 13612# define LT_DLGLOBAL DL_GLOBAL 13613# else 13614# define LT_DLGLOBAL 0 13615# endif 13616#endif 13617 13618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13619 find out it does not work in some platform. */ 13620#ifndef LT_DLLAZY_OR_NOW 13621# ifdef RTLD_LAZY 13622# define LT_DLLAZY_OR_NOW RTLD_LAZY 13623# else 13624# ifdef DL_LAZY 13625# define LT_DLLAZY_OR_NOW DL_LAZY 13626# else 13627# ifdef RTLD_NOW 13628# define LT_DLLAZY_OR_NOW RTLD_NOW 13629# else 13630# ifdef DL_NOW 13631# define LT_DLLAZY_OR_NOW DL_NOW 13632# else 13633# define LT_DLLAZY_OR_NOW 0 13634# endif 13635# endif 13636# endif 13637# endif 13638#endif 13639 13640/* When -fvisbility=hidden is used, assume the code has been annotated 13641 correspondingly for the symbols needed. */ 13642#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13643void fnord () __attribute__((visibility("default"))); 13644#endif 13645 13646void fnord () { int i=42; } 13647int main () 13648{ 13649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13650 int status = $lt_dlunknown; 13651 13652 if (self) 13653 { 13654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13655 else 13656 { 13657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13658 else puts (dlerror ()); 13659 } 13660 /* dlclose (self); */ 13661 } 13662 else 13663 puts (dlerror ()); 13664 13665 return status; 13666} 13667_LT_EOF 13668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13669 (eval $ac_link) 2>&5 13670 ac_status=$? 13671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13673 (./conftest; exit; ) >&5 2>/dev/null 13674 lt_status=$? 13675 case x$lt_status in 13676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13679 esac 13680 else : 13681 # compilation failed 13682 lt_cv_dlopen_self=no 13683 fi 13684fi 13685rm -fr conftest* 13686 13687 13688fi 13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13690$as_echo "$lt_cv_dlopen_self" >&6; } 13691 13692 if test "x$lt_cv_dlopen_self" = xyes; then 13693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13695$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13696if ${lt_cv_dlopen_self_static+:} false; then : 13697 $as_echo_n "(cached) " >&6 13698else 13699 if test "$cross_compiling" = yes; then : 13700 lt_cv_dlopen_self_static=cross 13701else 13702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13703 lt_status=$lt_dlunknown 13704 cat > conftest.$ac_ext <<_LT_EOF 13705#line 13705 "configure" 13706#include "confdefs.h" 13707 13708#if HAVE_DLFCN_H 13709#include <dlfcn.h> 13710#endif 13711 13712#include <stdio.h> 13713 13714#ifdef RTLD_GLOBAL 13715# define LT_DLGLOBAL RTLD_GLOBAL 13716#else 13717# ifdef DL_GLOBAL 13718# define LT_DLGLOBAL DL_GLOBAL 13719# else 13720# define LT_DLGLOBAL 0 13721# endif 13722#endif 13723 13724/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13725 find out it does not work in some platform. */ 13726#ifndef LT_DLLAZY_OR_NOW 13727# ifdef RTLD_LAZY 13728# define LT_DLLAZY_OR_NOW RTLD_LAZY 13729# else 13730# ifdef DL_LAZY 13731# define LT_DLLAZY_OR_NOW DL_LAZY 13732# else 13733# ifdef RTLD_NOW 13734# define LT_DLLAZY_OR_NOW RTLD_NOW 13735# else 13736# ifdef DL_NOW 13737# define LT_DLLAZY_OR_NOW DL_NOW 13738# else 13739# define LT_DLLAZY_OR_NOW 0 13740# endif 13741# endif 13742# endif 13743# endif 13744#endif 13745 13746/* When -fvisbility=hidden is used, assume the code has been annotated 13747 correspondingly for the symbols needed. */ 13748#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13749void fnord () __attribute__((visibility("default"))); 13750#endif 13751 13752void fnord () { int i=42; } 13753int main () 13754{ 13755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13756 int status = $lt_dlunknown; 13757 13758 if (self) 13759 { 13760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13761 else 13762 { 13763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13764 else puts (dlerror ()); 13765 } 13766 /* dlclose (self); */ 13767 } 13768 else 13769 puts (dlerror ()); 13770 13771 return status; 13772} 13773_LT_EOF 13774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13775 (eval $ac_link) 2>&5 13776 ac_status=$? 13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13779 (./conftest; exit; ) >&5 2>/dev/null 13780 lt_status=$? 13781 case x$lt_status in 13782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13785 esac 13786 else : 13787 # compilation failed 13788 lt_cv_dlopen_self_static=no 13789 fi 13790fi 13791rm -fr conftest* 13792 13793 13794fi 13795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13796$as_echo "$lt_cv_dlopen_self_static" >&6; } 13797 fi 13798 13799 CPPFLAGS="$save_CPPFLAGS" 13800 LDFLAGS="$save_LDFLAGS" 13801 LIBS="$save_LIBS" 13802 ;; 13803 esac 13804 13805 case $lt_cv_dlopen_self in 13806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13807 *) enable_dlopen_self=unknown ;; 13808 esac 13809 13810 case $lt_cv_dlopen_self_static in 13811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13812 *) enable_dlopen_self_static=unknown ;; 13813 esac 13814fi 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832striplib= 13833old_striplib= 13834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13835$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13836if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13838 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13840$as_echo "yes" >&6; } 13841else 13842# FIXME - insert some real tests, host_os isn't really good enough 13843 case $host_os in 13844 darwin*) 13845 if test -n "$STRIP" ; then 13846 striplib="$STRIP -x" 13847 old_striplib="$STRIP -S" 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13849$as_echo "yes" >&6; } 13850 else 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13852$as_echo "no" >&6; } 13853 fi 13854 ;; 13855 *) 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13857$as_echo "no" >&6; } 13858 ;; 13859 esac 13860fi 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 # Report which library types will actually be built 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13875$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13877$as_echo "$can_build_shared" >&6; } 13878 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13880$as_echo_n "checking whether to build shared libraries... " >&6; } 13881 test "$can_build_shared" = "no" && enable_shared=no 13882 13883 # On AIX, shared libraries and static libraries use the same namespace, and 13884 # are all built from PIC. 13885 case $host_os in 13886 aix3*) 13887 test "$enable_shared" = yes && enable_static=no 13888 if test -n "$RANLIB"; then 13889 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13890 postinstall_cmds='$RANLIB $lib' 13891 fi 13892 ;; 13893 13894 aix[4-9]*) 13895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13896 test "$enable_shared" = yes && enable_static=no 13897 fi 13898 ;; 13899 esac 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13901$as_echo "$enable_shared" >&6; } 13902 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13904$as_echo_n "checking whether to build static libraries... " >&6; } 13905 # Make sure either enable_shared or enable_static is yes. 13906 test "$enable_shared" = yes || enable_static=yes 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13908$as_echo "$enable_static" >&6; } 13909 13910 13911 13912 13913fi 13914ac_ext=c 13915ac_cpp='$CPP $CPPFLAGS' 13916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13918ac_compiler_gnu=$ac_cv_c_compiler_gnu 13919 13920CC="$lt_save_CC" 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 ac_config_commands="$ac_config_commands libtool" 13935 13936 13937 13938 13939# Only expand once: 13940 13941 13942# Check whether --enable-largefile was given. 13943if test "${enable_largefile+set}" = set; then : 13944 enableval=$enable_largefile; 13945fi 13946 13947if test "$enable_largefile" != no; then 13948 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13950$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13951if ${ac_cv_sys_largefile_CC+:} false; then : 13952 $as_echo_n "(cached) " >&6 13953else 13954 ac_cv_sys_largefile_CC=no 13955 if test "$GCC" != yes; then 13956 ac_save_CC=$CC 13957 while :; do 13958 # IRIX 6.2 and later do not support large files by default, 13959 # so use the C compiler's -n32 option if that helps. 13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13961/* end confdefs.h. */ 13962#include <sys/types.h> 13963 /* Check that off_t can represent 2**63 - 1 correctly. 13964 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13965 since some C++ compilers masquerading as C compilers 13966 incorrectly reject 9223372036854775807. */ 13967#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13969 && LARGE_OFF_T % 2147483647 == 1) 13970 ? 1 : -1]; 13971int 13972main () 13973{ 13974 13975 ; 13976 return 0; 13977} 13978_ACEOF 13979 if ac_fn_c_try_compile "$LINENO"; then : 13980 break 13981fi 13982rm -f core conftest.err conftest.$ac_objext 13983 CC="$CC -n32" 13984 if ac_fn_c_try_compile "$LINENO"; then : 13985 ac_cv_sys_largefile_CC=' -n32'; break 13986fi 13987rm -f core conftest.err conftest.$ac_objext 13988 break 13989 done 13990 CC=$ac_save_CC 13991 rm -f conftest.$ac_ext 13992 fi 13993fi 13994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13995$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13996 if test "$ac_cv_sys_largefile_CC" != no; then 13997 CC=$CC$ac_cv_sys_largefile_CC 13998 fi 13999 14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14001$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14002if ${ac_cv_sys_file_offset_bits+:} false; then : 14003 $as_echo_n "(cached) " >&6 14004else 14005 while :; do 14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14007/* end confdefs.h. */ 14008#include <sys/types.h> 14009 /* Check that off_t can represent 2**63 - 1 correctly. 14010 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14011 since some C++ compilers masquerading as C compilers 14012 incorrectly reject 9223372036854775807. */ 14013#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14015 && LARGE_OFF_T % 2147483647 == 1) 14016 ? 1 : -1]; 14017int 14018main () 14019{ 14020 14021 ; 14022 return 0; 14023} 14024_ACEOF 14025if ac_fn_c_try_compile "$LINENO"; then : 14026 ac_cv_sys_file_offset_bits=no; break 14027fi 14028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14030/* end confdefs.h. */ 14031#define _FILE_OFFSET_BITS 64 14032#include <sys/types.h> 14033 /* Check that off_t can represent 2**63 - 1 correctly. 14034 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14035 since some C++ compilers masquerading as C compilers 14036 incorrectly reject 9223372036854775807. */ 14037#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14039 && LARGE_OFF_T % 2147483647 == 1) 14040 ? 1 : -1]; 14041int 14042main () 14043{ 14044 14045 ; 14046 return 0; 14047} 14048_ACEOF 14049if ac_fn_c_try_compile "$LINENO"; then : 14050 ac_cv_sys_file_offset_bits=64; break 14051fi 14052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14053 ac_cv_sys_file_offset_bits=unknown 14054 break 14055done 14056fi 14057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14058$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14059case $ac_cv_sys_file_offset_bits in #( 14060 no | unknown) ;; 14061 *) 14062cat >>confdefs.h <<_ACEOF 14063#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14064_ACEOF 14065;; 14066esac 14067rm -rf conftest* 14068 if test $ac_cv_sys_file_offset_bits = unknown; then 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14070$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14071if ${ac_cv_sys_large_files+:} false; then : 14072 $as_echo_n "(cached) " >&6 14073else 14074 while :; do 14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14076/* end confdefs.h. */ 14077#include <sys/types.h> 14078 /* Check that off_t can represent 2**63 - 1 correctly. 14079 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14080 since some C++ compilers masquerading as C compilers 14081 incorrectly reject 9223372036854775807. */ 14082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14084 && LARGE_OFF_T % 2147483647 == 1) 14085 ? 1 : -1]; 14086int 14087main () 14088{ 14089 14090 ; 14091 return 0; 14092} 14093_ACEOF 14094if ac_fn_c_try_compile "$LINENO"; then : 14095 ac_cv_sys_large_files=no; break 14096fi 14097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100#define _LARGE_FILES 1 14101#include <sys/types.h> 14102 /* Check that off_t can represent 2**63 - 1 correctly. 14103 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14104 since some C++ compilers masquerading as C compilers 14105 incorrectly reject 9223372036854775807. */ 14106#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14108 && LARGE_OFF_T % 2147483647 == 1) 14109 ? 1 : -1]; 14110int 14111main () 14112{ 14113 14114 ; 14115 return 0; 14116} 14117_ACEOF 14118if ac_fn_c_try_compile "$LINENO"; then : 14119 ac_cv_sys_large_files=1; break 14120fi 14121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14122 ac_cv_sys_large_files=unknown 14123 break 14124done 14125fi 14126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14127$as_echo "$ac_cv_sys_large_files" >&6; } 14128case $ac_cv_sys_large_files in #( 14129 no | unknown) ;; 14130 *) 14131cat >>confdefs.h <<_ACEOF 14132#define _LARGE_FILES $ac_cv_sys_large_files 14133_ACEOF 14134;; 14135esac 14136rm -rf conftest* 14137 fi 14138 14139 14140fi 14141 14142: ${CONFIG_LT=./config.lt} 14143{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 14144$as_echo "$as_me: creating $CONFIG_LT" >&6;} 14145as_write_fail=0 14146cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 14147#! $SHELL 14148# Generated by $as_me. 14149# Run this file to recreate a libtool stub with the current configuration. 14150SHELL=\${CONFIG_SHELL-$SHELL} 14151export SHELL 14152_ASEOF 14153cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 14154## -------------------- ## 14155## M4sh Initialization. ## 14156## -------------------- ## 14157 14158# Be more Bourne compatible 14159DUALCASE=1; export DUALCASE # for MKS sh 14160if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14161 emulate sh 14162 NULLCMD=: 14163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14164 # is contrary to our usage. Disable this feature. 14165 alias -g '${1+"$@"}'='"$@"' 14166 setopt NO_GLOB_SUBST 14167else 14168 case `(set -o) 2>/dev/null` in #( 14169 *posix*) : 14170 set -o posix ;; #( 14171 *) : 14172 ;; 14173esac 14174fi 14175 14176 14177as_nl=' 14178' 14179export as_nl 14180# Printing a long string crashes Solaris 7 /usr/bin/printf. 14181as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14182as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14184# Prefer a ksh shell builtin over an external printf program on Solaris, 14185# but without wasting forks for bash or zsh. 14186if test -z "$BASH_VERSION$ZSH_VERSION" \ 14187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14188 as_echo='print -r --' 14189 as_echo_n='print -rn --' 14190elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14191 as_echo='printf %s\n' 14192 as_echo_n='printf %s' 14193else 14194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14196 as_echo_n='/usr/ucb/echo -n' 14197 else 14198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14199 as_echo_n_body='eval 14200 arg=$1; 14201 case $arg in #( 14202 *"$as_nl"*) 14203 expr "X$arg" : "X\\(.*\\)$as_nl"; 14204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14205 esac; 14206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14207 ' 14208 export as_echo_n_body 14209 as_echo_n='sh -c $as_echo_n_body as_echo' 14210 fi 14211 export as_echo_body 14212 as_echo='sh -c $as_echo_body as_echo' 14213fi 14214 14215# The user is always right. 14216if test "${PATH_SEPARATOR+set}" != set; then 14217 PATH_SEPARATOR=: 14218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14220 PATH_SEPARATOR=';' 14221 } 14222fi 14223 14224 14225# IFS 14226# We need space, tab and new line, in precisely that order. Quoting is 14227# there to prevent editors from complaining about space-tab. 14228# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14229# splitting by setting IFS to empty value.) 14230IFS=" "" $as_nl" 14231 14232# Find who we are. Look in the path if we contain no directory separator. 14233as_myself= 14234case $0 in #(( 14235 *[\\/]* ) as_myself=$0 ;; 14236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14237for as_dir in $PATH 14238do 14239 IFS=$as_save_IFS 14240 test -z "$as_dir" && as_dir=. 14241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14242 done 14243IFS=$as_save_IFS 14244 14245 ;; 14246esac 14247# We did not find ourselves, most probably we were run as `sh COMMAND' 14248# in which case we are not to be found in the path. 14249if test "x$as_myself" = x; then 14250 as_myself=$0 14251fi 14252if test ! -f "$as_myself"; then 14253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14254 exit 1 14255fi 14256 14257# Unset variables that we do not need and which cause bugs (e.g. in 14258# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14259# suppresses any "Segmentation fault" message there. '((' could 14260# trigger a bug in pdksh 5.2.14. 14261for as_var in BASH_ENV ENV MAIL MAILPATH 14262do eval test x\${$as_var+set} = xset \ 14263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14264done 14265PS1='$ ' 14266PS2='> ' 14267PS4='+ ' 14268 14269# NLS nuisances. 14270LC_ALL=C 14271export LC_ALL 14272LANGUAGE=C 14273export LANGUAGE 14274 14275# CDPATH. 14276(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14277 14278 14279# as_fn_error STATUS ERROR [LINENO LOG_FD] 14280# ---------------------------------------- 14281# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14282# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14283# script with STATUS, using 1 if that was 0. 14284as_fn_error () 14285{ 14286 as_status=$1; test $as_status -eq 0 && as_status=1 14287 if test "$4"; then 14288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14290 fi 14291 $as_echo "$as_me: error: $2" >&2 14292 as_fn_exit $as_status 14293} # as_fn_error 14294 14295 14296# as_fn_set_status STATUS 14297# ----------------------- 14298# Set $? to STATUS, without forking. 14299as_fn_set_status () 14300{ 14301 return $1 14302} # as_fn_set_status 14303 14304# as_fn_exit STATUS 14305# ----------------- 14306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14307as_fn_exit () 14308{ 14309 set +e 14310 as_fn_set_status $1 14311 exit $1 14312} # as_fn_exit 14313 14314# as_fn_unset VAR 14315# --------------- 14316# Portably unset VAR. 14317as_fn_unset () 14318{ 14319 { eval $1=; unset $1;} 14320} 14321as_unset=as_fn_unset 14322# as_fn_append VAR VALUE 14323# ---------------------- 14324# Append the text in VALUE to the end of the definition contained in VAR. Take 14325# advantage of any shell optimizations that allow amortized linear growth over 14326# repeated appends, instead of the typical quadratic growth present in naive 14327# implementations. 14328if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14329 eval 'as_fn_append () 14330 { 14331 eval $1+=\$2 14332 }' 14333else 14334 as_fn_append () 14335 { 14336 eval $1=\$$1\$2 14337 } 14338fi # as_fn_append 14339 14340# as_fn_arith ARG... 14341# ------------------ 14342# Perform arithmetic evaluation on the ARGs, and store the result in the 14343# global $as_val. Take advantage of shells that can avoid forks. The arguments 14344# must be portable across $(()) and expr. 14345if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14346 eval 'as_fn_arith () 14347 { 14348 as_val=$(( $* )) 14349 }' 14350else 14351 as_fn_arith () 14352 { 14353 as_val=`expr "$@" || test $? -eq 1` 14354 } 14355fi # as_fn_arith 14356 14357 14358if expr a : '\(a\)' >/dev/null 2>&1 && 14359 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14360 as_expr=expr 14361else 14362 as_expr=false 14363fi 14364 14365if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14366 as_basename=basename 14367else 14368 as_basename=false 14369fi 14370 14371if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14372 as_dirname=dirname 14373else 14374 as_dirname=false 14375fi 14376 14377as_me=`$as_basename -- "$0" || 14378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14379 X"$0" : 'X\(//\)$' \| \ 14380 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14381$as_echo X/"$0" | 14382 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14383 s//\1/ 14384 q 14385 } 14386 /^X\/\(\/\/\)$/{ 14387 s//\1/ 14388 q 14389 } 14390 /^X\/\(\/\).*/{ 14391 s//\1/ 14392 q 14393 } 14394 s/.*/./; q'` 14395 14396# Avoid depending upon Character Ranges. 14397as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14398as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14399as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14400as_cr_digits='0123456789' 14401as_cr_alnum=$as_cr_Letters$as_cr_digits 14402 14403ECHO_C= ECHO_N= ECHO_T= 14404case `echo -n x` in #((((( 14405-n*) 14406 case `echo 'xy\c'` in 14407 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14408 xy) ECHO_C='\c';; 14409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14410 ECHO_T=' ';; 14411 esac;; 14412*) 14413 ECHO_N='-n';; 14414esac 14415 14416rm -f conf$$ conf$$.exe conf$$.file 14417if test -d conf$$.dir; then 14418 rm -f conf$$.dir/conf$$.file 14419else 14420 rm -f conf$$.dir 14421 mkdir conf$$.dir 2>/dev/null 14422fi 14423if (echo >conf$$.file) 2>/dev/null; then 14424 if ln -s conf$$.file conf$$ 2>/dev/null; then 14425 as_ln_s='ln -s' 14426 # ... but there are two gotchas: 14427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14429 # In both cases, we have to default to `cp -pR'. 14430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14431 as_ln_s='cp -pR' 14432 elif ln conf$$.file conf$$ 2>/dev/null; then 14433 as_ln_s=ln 14434 else 14435 as_ln_s='cp -pR' 14436 fi 14437else 14438 as_ln_s='cp -pR' 14439fi 14440rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14441rmdir conf$$.dir 2>/dev/null 14442 14443 14444# as_fn_mkdir_p 14445# ------------- 14446# Create "$as_dir" as a directory, including parents if necessary. 14447as_fn_mkdir_p () 14448{ 14449 14450 case $as_dir in #( 14451 -*) as_dir=./$as_dir;; 14452 esac 14453 test -d "$as_dir" || eval $as_mkdir_p || { 14454 as_dirs= 14455 while :; do 14456 case $as_dir in #( 14457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14458 *) as_qdir=$as_dir;; 14459 esac 14460 as_dirs="'$as_qdir' $as_dirs" 14461 as_dir=`$as_dirname -- "$as_dir" || 14462$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14463 X"$as_dir" : 'X\(//\)[^/]' \| \ 14464 X"$as_dir" : 'X\(//\)$' \| \ 14465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14466$as_echo X"$as_dir" | 14467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14468 s//\1/ 14469 q 14470 } 14471 /^X\(\/\/\)[^/].*/{ 14472 s//\1/ 14473 q 14474 } 14475 /^X\(\/\/\)$/{ 14476 s//\1/ 14477 q 14478 } 14479 /^X\(\/\).*/{ 14480 s//\1/ 14481 q 14482 } 14483 s/.*/./; q'` 14484 test -d "$as_dir" && break 14485 done 14486 test -z "$as_dirs" || eval "mkdir $as_dirs" 14487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14488 14489 14490} # as_fn_mkdir_p 14491if mkdir -p . 2>/dev/null; then 14492 as_mkdir_p='mkdir -p "$as_dir"' 14493else 14494 test -d ./-p && rmdir ./-p 14495 as_mkdir_p=false 14496fi 14497 14498 14499# as_fn_executable_p FILE 14500# ----------------------- 14501# Test if FILE is an executable regular file. 14502as_fn_executable_p () 14503{ 14504 test -f "$1" && test -x "$1" 14505} # as_fn_executable_p 14506as_test_x='test -x' 14507as_executable_p=as_fn_executable_p 14508 14509# Sed expression to map a string onto a valid CPP name. 14510as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14511 14512# Sed expression to map a string onto a valid variable name. 14513as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14514 14515 14516exec 6>&1 14517## --------------------------------- ## 14518## Main body of "$CONFIG_LT" script. ## 14519## --------------------------------- ## 14520_ASEOF 14521test $as_write_fail = 0 && chmod +x "$CONFIG_LT" 14522 14523cat >>"$CONFIG_LT" <<\_LTEOF 14524lt_cl_silent=false 14525exec 5>>config.log 14526{ 14527 echo 14528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14529## Running $as_me. ## 14530_ASBOX 14531} >&5 14532 14533lt_cl_help="\ 14534\`$as_me' creates a local libtool stub from the current configuration, 14535for use in further configure time tests before the real libtool is 14536generated. 14537 14538Usage: $0 [OPTIONS] 14539 14540 -h, --help print this help, then exit 14541 -V, --version print version number, then exit 14542 -q, --quiet do not print progress messages 14543 -d, --debug don't remove temporary files 14544 14545Report bugs to <bug-libtool@gnu.org>." 14546 14547lt_cl_version="\ 14548libctf config.lt 1.2.0 14549configured by $0, generated by GNU Autoconf 2.69. 14550 14551Copyright (C) 2009 Free Software Foundation, Inc. 14552This config.lt script is free software; the Free Software Foundation 14553gives unlimited permision to copy, distribute and modify it." 14554 14555while test $# != 0 14556do 14557 case $1 in 14558 --version | --v* | -V ) 14559 echo "$lt_cl_version"; exit 0 ;; 14560 --help | --h* | -h ) 14561 echo "$lt_cl_help"; exit 0 ;; 14562 --debug | --d* | -d ) 14563 debug=: ;; 14564 --quiet | --q* | --silent | --s* | -q ) 14565 lt_cl_silent=: ;; 14566 14567 -*) as_fn_error $? "unrecognized option: $1 14568Try \`$0 --help' for more information." "$LINENO" 5 ;; 14569 14570 *) as_fn_error $? "unrecognized argument: $1 14571Try \`$0 --help' for more information." "$LINENO" 5 ;; 14572 esac 14573 shift 14574done 14575 14576if $lt_cl_silent; then 14577 exec 6>/dev/null 14578fi 14579_LTEOF 14580 14581cat >>"$CONFIG_LT" <<_LTEOF 14582 14583 14584# The HP-UX ksh and POSIX shell print the target directory to stdout 14585# if CDPATH is set. 14586(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14587 14588sed_quote_subst='$sed_quote_subst' 14589double_quote_subst='$double_quote_subst' 14590delay_variable_subst='$delay_variable_subst' 14591enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14592macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14593macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14594enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14595pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14596enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14597SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14598ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14599host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14600host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14601host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14602build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14603build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14604build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14605SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14606Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14607GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14608EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14609FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14610LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14611NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14612LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14613max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14614ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14615exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14616lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14617lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14618lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14619reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14620reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14621OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14622deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14623file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14624AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14625AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14626STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14627RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14628old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14629old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14630old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14631lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14632CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14633CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14634compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14635GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14636lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14637lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14638lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14639lt_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"`' 14640objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14641MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14642lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14643lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14644lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14645lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14646lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14647need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14648DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14649NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14650LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14651OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14652OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14653libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14654shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14655extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14656archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14657enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14658export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14659whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14660compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14661old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14662old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14663archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14664archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14665module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14666module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14667with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14668allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14669no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14670hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14671hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 14672hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14673hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14674hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14675hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14676hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14677hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14678inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14679link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14680fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 14681always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14682export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14683exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14684include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14685prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14686file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14687variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14688need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14689need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14690version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14691runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14692shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14693shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14694libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14695library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14696soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14697install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14698postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14699postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14700finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14701finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14702hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14703sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14704sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14705hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14706enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14707enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14708enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14709old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14710striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14711 14712LTCC='$LTCC' 14713LTCFLAGS='$LTCFLAGS' 14714compiler='$compiler_DEFAULT' 14715 14716# A function that is used when there is no print builtin or printf. 14717func_fallback_echo () 14718{ 14719 eval 'cat <<_LTECHO_EOF 14720\$1 14721_LTECHO_EOF' 14722} 14723 14724# Quote evaled strings. 14725for var in SHELL \ 14726ECHO \ 14727SED \ 14728GREP \ 14729EGREP \ 14730FGREP \ 14731LD \ 14732NM \ 14733LN_S \ 14734lt_SP2NL \ 14735lt_NL2SP \ 14736reload_flag \ 14737OBJDUMP \ 14738deplibs_check_method \ 14739file_magic_cmd \ 14740AR \ 14741AR_FLAGS \ 14742STRIP \ 14743RANLIB \ 14744CC \ 14745CFLAGS \ 14746compiler \ 14747lt_cv_sys_global_symbol_pipe \ 14748lt_cv_sys_global_symbol_to_cdecl \ 14749lt_cv_sys_global_symbol_to_c_name_address \ 14750lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14751lt_prog_compiler_no_builtin_flag \ 14752lt_prog_compiler_wl \ 14753lt_prog_compiler_pic \ 14754lt_prog_compiler_static \ 14755lt_cv_prog_compiler_c_o \ 14756need_locks \ 14757DSYMUTIL \ 14758NMEDIT \ 14759LIPO \ 14760OTOOL \ 14761OTOOL64 \ 14762shrext_cmds \ 14763export_dynamic_flag_spec \ 14764whole_archive_flag_spec \ 14765compiler_needs_object \ 14766with_gnu_ld \ 14767allow_undefined_flag \ 14768no_undefined_flag \ 14769hardcode_libdir_flag_spec \ 14770hardcode_libdir_flag_spec_ld \ 14771hardcode_libdir_separator \ 14772fix_srcfile_path \ 14773exclude_expsyms \ 14774include_expsyms \ 14775file_list_spec \ 14776variables_saved_for_relink \ 14777libname_spec \ 14778library_names_spec \ 14779soname_spec \ 14780install_override_mode \ 14781finish_eval \ 14782old_striplib \ 14783striplib; do 14784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14785 *[\\\\\\\`\\"\\\$]*) 14786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14787 ;; 14788 *) 14789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14790 ;; 14791 esac 14792done 14793 14794# Double-quote double-evaled strings. 14795for var in reload_cmds \ 14796old_postinstall_cmds \ 14797old_postuninstall_cmds \ 14798old_archive_cmds \ 14799extract_expsyms_cmds \ 14800old_archive_from_new_cmds \ 14801old_archive_from_expsyms_cmds \ 14802archive_cmds \ 14803archive_expsym_cmds \ 14804module_cmds \ 14805module_expsym_cmds \ 14806export_symbols_cmds \ 14807prelink_cmds \ 14808postinstall_cmds \ 14809postuninstall_cmds \ 14810finish_cmds \ 14811sys_lib_search_path_spec \ 14812sys_lib_dlsearch_path_spec; do 14813 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14814 *[\\\\\\\`\\"\\\$]*) 14815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14816 ;; 14817 *) 14818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14819 ;; 14820 esac 14821done 14822 14823ac_aux_dir='$ac_aux_dir' 14824xsi_shell='$xsi_shell' 14825lt_shell_append='$lt_shell_append' 14826 14827# See if we are running on zsh, and set the options which allow our 14828# commands through without removal of \ escapes INIT. 14829if test -n "\${ZSH_VERSION+set}" ; then 14830 setopt NO_GLOB_SUBST 14831fi 14832 14833 14834 PACKAGE='$PACKAGE' 14835 VERSION='$VERSION' 14836 TIMESTAMP='$TIMESTAMP' 14837 RM='$RM' 14838 ofile='$ofile' 14839 14840 14841 14842_LTEOF 14843 14844cat >>"$CONFIG_LT" <<\_LTEOF 14845{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 14846$as_echo "$as_me: creating $ofile" >&6;} 14847 14848 14849 # See if we are running on zsh, and set the options which allow our 14850 # commands through without removal of \ escapes. 14851 if test -n "${ZSH_VERSION+set}" ; then 14852 setopt NO_GLOB_SUBST 14853 fi 14854 14855 cfgfile="${ofile}T" 14856 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14857 $RM "$cfgfile" 14858 14859 cat <<_LT_EOF >> "$cfgfile" 14860#! $SHELL 14861 14862# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14863# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14864# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14865# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14866# 14867# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14868# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 14869# Written by Gordon Matzigkeit, 1996 14870# 14871# This file is part of GNU Libtool. 14872# 14873# GNU Libtool is free software; you can redistribute it and/or 14874# modify it under the terms of the GNU General Public License as 14875# published by the Free Software Foundation; either version 2 of 14876# the License, or (at your option) any later version. 14877# 14878# As a special exception to the GNU General Public License, 14879# if you distribute this file as part of a program or library that 14880# is built using GNU Libtool, you may include this file under the 14881# same distribution terms that you use for the rest of that program. 14882# 14883# GNU Libtool is distributed in the hope that it will be useful, 14884# but WITHOUT ANY WARRANTY; without even the implied warranty of 14885# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14886# GNU General Public License for more details. 14887# 14888# You should have received a copy of the GNU General Public License 14889# along with GNU Libtool; see the file COPYING. If not, a copy 14890# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14891# obtained by writing to the Free Software Foundation, Inc., 14892# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14893 14894 14895# The names of the tagged configurations supported by this script. 14896available_tags="" 14897 14898# ### BEGIN LIBTOOL CONFIG 14899 14900# Whether or not to build shared libraries. 14901build_libtool_libs=$enable_shared 14902 14903# Which release of libtool.m4 was used? 14904macro_version=$macro_version 14905macro_revision=$macro_revision 14906 14907# Whether or not to build static libraries. 14908build_old_libs=$enable_static 14909 14910# What type of objects to build. 14911pic_mode=$pic_mode 14912 14913# Whether or not to optimize for fast installation. 14914fast_install=$enable_fast_install 14915 14916# Shell to use when invoking shell scripts. 14917SHELL=$lt_SHELL 14918 14919# An echo program that protects backslashes. 14920ECHO=$lt_ECHO 14921 14922# The host system. 14923host_alias=$host_alias 14924host=$host 14925host_os=$host_os 14926 14927# The build system. 14928build_alias=$build_alias 14929build=$build 14930build_os=$build_os 14931 14932# A sed program that does not truncate output. 14933SED=$lt_SED 14934 14935# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14936Xsed="\$SED -e 1s/^X//" 14937 14938# A grep program that handles long lines. 14939GREP=$lt_GREP 14940 14941# An ERE matcher. 14942EGREP=$lt_EGREP 14943 14944# A literal string matcher. 14945FGREP=$lt_FGREP 14946 14947# A BSD- or MS-compatible name lister. 14948NM=$lt_NM 14949 14950# Whether we need soft or hard links. 14951LN_S=$lt_LN_S 14952 14953# What is the maximum length of a command? 14954max_cmd_len=$max_cmd_len 14955 14956# Object file suffix (normally "o"). 14957objext=$ac_objext 14958 14959# Executable file suffix (normally ""). 14960exeext=$exeext 14961 14962# whether the shell understands "unset". 14963lt_unset=$lt_unset 14964 14965# turn spaces into newlines. 14966SP2NL=$lt_lt_SP2NL 14967 14968# turn newlines into spaces. 14969NL2SP=$lt_lt_NL2SP 14970 14971# An object symbol dumper. 14972OBJDUMP=$lt_OBJDUMP 14973 14974# Method to check whether dependent libraries are shared objects. 14975deplibs_check_method=$lt_deplibs_check_method 14976 14977# Command to use when deplibs_check_method == "file_magic". 14978file_magic_cmd=$lt_file_magic_cmd 14979 14980# The archiver. 14981AR=$lt_AR 14982AR_FLAGS=$lt_AR_FLAGS 14983 14984# A symbol stripping program. 14985STRIP=$lt_STRIP 14986 14987# Commands used to install an old-style archive. 14988RANLIB=$lt_RANLIB 14989old_postinstall_cmds=$lt_old_postinstall_cmds 14990old_postuninstall_cmds=$lt_old_postuninstall_cmds 14991 14992# Whether to use a lock for old archive extraction. 14993lock_old_archive_extraction=$lock_old_archive_extraction 14994 14995# A C compiler. 14996LTCC=$lt_CC 14997 14998# LTCC compiler flags. 14999LTCFLAGS=$lt_CFLAGS 15000 15001# Take the output of nm and produce a listing of raw symbols and C names. 15002global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15003 15004# Transform the output of nm in a proper C declaration. 15005global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15006 15007# Transform the output of nm in a C name address pair. 15008global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15009 15010# Transform the output of nm in a C name address pair when lib prefix is needed. 15011global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15012 15013# The name of the directory that contains temporary libtool files. 15014objdir=$objdir 15015 15016# Used to examine libraries when file_magic_cmd begins with "file". 15017MAGIC_CMD=$MAGIC_CMD 15018 15019# Must we lock files when doing compilation? 15020need_locks=$lt_need_locks 15021 15022# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15023DSYMUTIL=$lt_DSYMUTIL 15024 15025# Tool to change global to local symbols on Mac OS X. 15026NMEDIT=$lt_NMEDIT 15027 15028# Tool to manipulate fat objects and archives on Mac OS X. 15029LIPO=$lt_LIPO 15030 15031# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15032OTOOL=$lt_OTOOL 15033 15034# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15035OTOOL64=$lt_OTOOL64 15036 15037# Old archive suffix (normally "a"). 15038libext=$libext 15039 15040# Shared library suffix (normally ".so"). 15041shrext_cmds=$lt_shrext_cmds 15042 15043# The commands to extract the exported symbol list from a shared archive. 15044extract_expsyms_cmds=$lt_extract_expsyms_cmds 15045 15046# Variables whose values should be saved in libtool wrapper scripts and 15047# restored at link time. 15048variables_saved_for_relink=$lt_variables_saved_for_relink 15049 15050# Do we need the "lib" prefix for modules? 15051need_lib_prefix=$need_lib_prefix 15052 15053# Do we need a version for libraries? 15054need_version=$need_version 15055 15056# Library versioning type. 15057version_type=$version_type 15058 15059# Shared library runtime path variable. 15060runpath_var=$runpath_var 15061 15062# Shared library path variable. 15063shlibpath_var=$shlibpath_var 15064 15065# Is shlibpath searched before the hard-coded library search path? 15066shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15067 15068# Format of library name prefix. 15069libname_spec=$lt_libname_spec 15070 15071# List of archive names. First name is the real one, the rest are links. 15072# The last name is the one that the linker finds with -lNAME 15073library_names_spec=$lt_library_names_spec 15074 15075# The coded name of the library, if different from the real name. 15076soname_spec=$lt_soname_spec 15077 15078# Permission mode override for installation of shared libraries. 15079install_override_mode=$lt_install_override_mode 15080 15081# Command to use after installation of a shared archive. 15082postinstall_cmds=$lt_postinstall_cmds 15083 15084# Command to use after uninstallation of a shared archive. 15085postuninstall_cmds=$lt_postuninstall_cmds 15086 15087# Commands used to finish a libtool library installation in a directory. 15088finish_cmds=$lt_finish_cmds 15089 15090# As "finish_cmds", except a single script fragment to be evaled but 15091# not shown. 15092finish_eval=$lt_finish_eval 15093 15094# Whether we should hardcode library paths into libraries. 15095hardcode_into_libs=$hardcode_into_libs 15096 15097# Compile-time system search path for libraries. 15098sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15099 15100# Run-time system search path for libraries. 15101sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15102 15103# Whether dlopen is supported. 15104dlopen_support=$enable_dlopen 15105 15106# Whether dlopen of programs is supported. 15107dlopen_self=$enable_dlopen_self 15108 15109# Whether dlopen of statically linked programs is supported. 15110dlopen_self_static=$enable_dlopen_self_static 15111 15112# Commands to strip libraries. 15113old_striplib=$lt_old_striplib 15114striplib=$lt_striplib 15115 15116 15117# The linker used to build libraries. 15118LD=$lt_LD 15119 15120# How to create reloadable object files. 15121reload_flag=$lt_reload_flag 15122reload_cmds=$lt_reload_cmds 15123 15124# Commands used to build an old-style archive. 15125old_archive_cmds=$lt_old_archive_cmds 15126 15127# A language specific compiler. 15128CC=$lt_compiler 15129 15130# Is the compiler the GNU compiler? 15131with_gcc=$GCC 15132 15133# Compiler flag to turn off builtin functions. 15134no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15135 15136# How to pass a linker flag through the compiler. 15137wl=$lt_lt_prog_compiler_wl 15138 15139# Additional compiler flags for building library objects. 15140pic_flag=$lt_lt_prog_compiler_pic 15141 15142# Compiler flag to prevent dynamic linking. 15143link_static_flag=$lt_lt_prog_compiler_static 15144 15145# Does compiler simultaneously support -c and -o options? 15146compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15147 15148# Whether or not to add -lc for building shared libraries. 15149build_libtool_need_lc=$archive_cmds_need_lc 15150 15151# Whether or not to disallow shared libs when runtime libs are static. 15152allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15153 15154# Compiler flag to allow reflexive dlopens. 15155export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15156 15157# Compiler flag to generate shared objects directly from archives. 15158whole_archive_flag_spec=$lt_whole_archive_flag_spec 15159 15160# Whether the compiler copes with passing no objects directly. 15161compiler_needs_object=$lt_compiler_needs_object 15162 15163# Create an old-style archive from a shared archive. 15164old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15165 15166# Create a temporary old-style archive to link instead of a shared archive. 15167old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15168 15169# Commands used to build a shared archive. 15170archive_cmds=$lt_archive_cmds 15171archive_expsym_cmds=$lt_archive_expsym_cmds 15172 15173# Commands used to build a loadable module if different from building 15174# a shared archive. 15175module_cmds=$lt_module_cmds 15176module_expsym_cmds=$lt_module_expsym_cmds 15177 15178# Whether we are building with GNU ld or not. 15179with_gnu_ld=$lt_with_gnu_ld 15180 15181# Flag that allows shared libraries with undefined symbols to be built. 15182allow_undefined_flag=$lt_allow_undefined_flag 15183 15184# Flag that enforces no undefined symbols. 15185no_undefined_flag=$lt_no_undefined_flag 15186 15187# Flag to hardcode \$libdir into a binary during linking. 15188# This must work even if \$libdir does not exist 15189hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15190 15191# If ld is used when linking, flag to hardcode \$libdir into a binary 15192# during linking. This must work even if \$libdir does not exist. 15193hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15194 15195# Whether we need a single "-rpath" flag with a separated argument. 15196hardcode_libdir_separator=$lt_hardcode_libdir_separator 15197 15198# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15199# DIR into the resulting binary. 15200hardcode_direct=$hardcode_direct 15201 15202# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15203# DIR into the resulting binary and the resulting library dependency is 15204# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15205# library is relocated. 15206hardcode_direct_absolute=$hardcode_direct_absolute 15207 15208# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15209# into the resulting binary. 15210hardcode_minus_L=$hardcode_minus_L 15211 15212# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15213# into the resulting binary. 15214hardcode_shlibpath_var=$hardcode_shlibpath_var 15215 15216# Set to "yes" if building a shared library automatically hardcodes DIR 15217# into the library and all subsequent libraries and executables linked 15218# against it. 15219hardcode_automatic=$hardcode_automatic 15220 15221# Set to yes if linker adds runtime paths of dependent libraries 15222# to runtime path list. 15223inherit_rpath=$inherit_rpath 15224 15225# Whether libtool must link a program against all its dependency libraries. 15226link_all_deplibs=$link_all_deplibs 15227 15228# Fix the shell variable \$srcfile for the compiler. 15229fix_srcfile_path=$lt_fix_srcfile_path 15230 15231# Set to "yes" if exported symbols are required. 15232always_export_symbols=$always_export_symbols 15233 15234# The commands to list exported symbols. 15235export_symbols_cmds=$lt_export_symbols_cmds 15236 15237# Symbols that should not be listed in the preloaded symbols. 15238exclude_expsyms=$lt_exclude_expsyms 15239 15240# Symbols that must always be exported. 15241include_expsyms=$lt_include_expsyms 15242 15243# Commands necessary for linking programs (against libraries) with templates. 15244prelink_cmds=$lt_prelink_cmds 15245 15246# Specify filename containing input files. 15247file_list_spec=$lt_file_list_spec 15248 15249# How to hardcode a shared library path into an executable. 15250hardcode_action=$hardcode_action 15251 15252# ### END LIBTOOL CONFIG 15253 15254_LT_EOF 15255 15256 case $host_os in 15257 aix3*) 15258 cat <<\_LT_EOF >> "$cfgfile" 15259# AIX sometimes has problems with the GCC collect2 program. For some 15260# reason, if we set the COLLECT_NAMES environment variable, the problems 15261# vanish in a puff of smoke. 15262if test "X${COLLECT_NAMES+set}" != Xset; then 15263 COLLECT_NAMES= 15264 export COLLECT_NAMES 15265fi 15266_LT_EOF 15267 ;; 15268 esac 15269 15270 15271ltmain="$ac_aux_dir/ltmain.sh" 15272 15273 15274 # We use sed instead of cat because bash on DJGPP gets confused if 15275 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15276 # text mode, it properly converts lines to CR/LF. This bash problem 15277 # is reportedly fixed, but why not run on old versions too? 15278 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15279 || (rm -f "$cfgfile"; exit 1) 15280 15281 case $xsi_shell in 15282 yes) 15283 cat << \_LT_EOF >> "$cfgfile" 15284 15285# func_dirname file append nondir_replacement 15286# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15287# otherwise set result to NONDIR_REPLACEMENT. 15288func_dirname () 15289{ 15290 case ${1} in 15291 */*) func_dirname_result="${1%/*}${2}" ;; 15292 * ) func_dirname_result="${3}" ;; 15293 esac 15294} 15295 15296# func_basename file 15297func_basename () 15298{ 15299 func_basename_result="${1##*/}" 15300} 15301 15302# func_dirname_and_basename file append nondir_replacement 15303# perform func_basename and func_dirname in a single function 15304# call: 15305# dirname: Compute the dirname of FILE. If nonempty, 15306# add APPEND to the result, otherwise set result 15307# to NONDIR_REPLACEMENT. 15308# value returned in "$func_dirname_result" 15309# basename: Compute filename of FILE. 15310# value retuned in "$func_basename_result" 15311# Implementation must be kept synchronized with func_dirname 15312# and func_basename. For efficiency, we do not delegate to 15313# those functions but instead duplicate the functionality here. 15314func_dirname_and_basename () 15315{ 15316 case ${1} in 15317 */*) func_dirname_result="${1%/*}${2}" ;; 15318 * ) func_dirname_result="${3}" ;; 15319 esac 15320 func_basename_result="${1##*/}" 15321} 15322 15323# func_stripname prefix suffix name 15324# strip PREFIX and SUFFIX off of NAME. 15325# PREFIX and SUFFIX must not contain globbing or regex special 15326# characters, hashes, percent signs, but SUFFIX may contain a leading 15327# dot (in which case that matches only a dot). 15328func_stripname () 15329{ 15330 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15331 # positional parameters, so assign one to ordinary parameter first. 15332 func_stripname_result=${3} 15333 func_stripname_result=${func_stripname_result#"${1}"} 15334 func_stripname_result=${func_stripname_result%"${2}"} 15335} 15336 15337# func_opt_split 15338func_opt_split () 15339{ 15340 func_opt_split_opt=${1%%=*} 15341 func_opt_split_arg=${1#*=} 15342} 15343 15344# func_lo2o object 15345func_lo2o () 15346{ 15347 case ${1} in 15348 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15349 *) func_lo2o_result=${1} ;; 15350 esac 15351} 15352 15353# func_xform libobj-or-source 15354func_xform () 15355{ 15356 func_xform_result=${1%.*}.lo 15357} 15358 15359# func_arith arithmetic-term... 15360func_arith () 15361{ 15362 func_arith_result=$(( $* )) 15363} 15364 15365# func_len string 15366# STRING may not start with a hyphen. 15367func_len () 15368{ 15369 func_len_result=${#1} 15370} 15371 15372_LT_EOF 15373 ;; 15374 *) # Bourne compatible functions. 15375 cat << \_LT_EOF >> "$cfgfile" 15376 15377# func_dirname file append nondir_replacement 15378# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15379# otherwise set result to NONDIR_REPLACEMENT. 15380func_dirname () 15381{ 15382 # Extract subdirectory from the argument. 15383 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 15384 if test "X$func_dirname_result" = "X${1}"; then 15385 func_dirname_result="${3}" 15386 else 15387 func_dirname_result="$func_dirname_result${2}" 15388 fi 15389} 15390 15391# func_basename file 15392func_basename () 15393{ 15394 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 15395} 15396 15397 15398# func_stripname prefix suffix name 15399# strip PREFIX and SUFFIX off of NAME. 15400# PREFIX and SUFFIX must not contain globbing or regex special 15401# characters, hashes, percent signs, but SUFFIX may contain a leading 15402# dot (in which case that matches only a dot). 15403# func_strip_suffix prefix name 15404func_stripname () 15405{ 15406 case ${2} in 15407 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 15408 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 15409 esac 15410} 15411 15412# sed scripts: 15413my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15414my_sed_long_arg='1s/^-[^=]*=//' 15415 15416# func_opt_split 15417func_opt_split () 15418{ 15419 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 15420 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 15421} 15422 15423# func_lo2o object 15424func_lo2o () 15425{ 15426 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 15427} 15428 15429# func_xform libobj-or-source 15430func_xform () 15431{ 15432 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 15433} 15434 15435# func_arith arithmetic-term... 15436func_arith () 15437{ 15438 func_arith_result=`expr "$@"` 15439} 15440 15441# func_len string 15442# STRING may not start with a hyphen. 15443func_len () 15444{ 15445 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15446} 15447 15448_LT_EOF 15449esac 15450 15451case $lt_shell_append in 15452 yes) 15453 cat << \_LT_EOF >> "$cfgfile" 15454 15455# func_append var value 15456# Append VALUE to the end of shell variable VAR. 15457func_append () 15458{ 15459 eval "$1+=\$2" 15460} 15461_LT_EOF 15462 ;; 15463 *) 15464 cat << \_LT_EOF >> "$cfgfile" 15465 15466# func_append var value 15467# Append VALUE to the end of shell variable VAR. 15468func_append () 15469{ 15470 eval "$1=\$$1\$2" 15471} 15472 15473_LT_EOF 15474 ;; 15475 esac 15476 15477 15478 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15479 || (rm -f "$cfgfile"; exit 1) 15480 15481 mv -f "$cfgfile" "$ofile" || 15482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15483 chmod +x "$ofile" 15484 15485 15486as_fn_exit 0 15487_LTEOF 15488chmod +x "$CONFIG_LT" 15489 15490# configure is writing to config.log, but config.lt does its own redirection, 15491# appending to config.log, which fails on DOS, as config.log is still kept 15492# open by configure. Here we exec the FD to /dev/null, effectively closing 15493# config.log, so it can be properly (re)opened and appended to by config.lt. 15494lt_cl_success=: 15495test "$silent" = yes && 15496 lt_config_lt_args="$lt_config_lt_args --quiet" 15497exec 5>/dev/null 15498$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 15499exec 5>>config.log 15500$lt_cl_success || as_fn_exit 1 15501 15502 15503MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 15504for ac_prog in aclocal 15505do 15506 # Extract the first word of "$ac_prog", so it can be a program name with args. 15507set dummy $ac_prog; ac_word=$2 15508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15509$as_echo_n "checking for $ac_word... " >&6; } 15510if ${ac_cv_prog_ACLOCAL+:} false; then : 15511 $as_echo_n "(cached) " >&6 15512else 15513 if test -n "$ACLOCAL"; then 15514 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. 15515else 15516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15517for as_dir in $PATH 15518do 15519 IFS=$as_save_IFS 15520 test -z "$as_dir" && as_dir=. 15521 for ac_exec_ext in '' $ac_executable_extensions; do 15522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15523 ac_cv_prog_ACLOCAL="$ac_prog" 15524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15525 break 2 15526 fi 15527done 15528 done 15529IFS=$as_save_IFS 15530 15531fi 15532fi 15533ACLOCAL=$ac_cv_prog_ACLOCAL 15534if test -n "$ACLOCAL"; then 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 15536$as_echo "$ACLOCAL" >&6; } 15537else 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15539$as_echo "no" >&6; } 15540fi 15541 15542 15543 test -n "$ACLOCAL" && break 15544done 15545test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" 15546 15547for ac_prog in autoconf 15548do 15549 # Extract the first word of "$ac_prog", so it can be a program name with args. 15550set dummy $ac_prog; ac_word=$2 15551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15552$as_echo_n "checking for $ac_word... " >&6; } 15553if ${ac_cv_prog_AUTOCONF+:} false; then : 15554 $as_echo_n "(cached) " >&6 15555else 15556 if test -n "$AUTOCONF"; then 15557 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. 15558else 15559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15560for as_dir in $PATH 15561do 15562 IFS=$as_save_IFS 15563 test -z "$as_dir" && as_dir=. 15564 for ac_exec_ext in '' $ac_executable_extensions; do 15565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15566 ac_cv_prog_AUTOCONF="$ac_prog" 15567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15568 break 2 15569 fi 15570done 15571 done 15572IFS=$as_save_IFS 15573 15574fi 15575fi 15576AUTOCONF=$ac_cv_prog_AUTOCONF 15577if test -n "$AUTOCONF"; then 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 15579$as_echo "$AUTOCONF" >&6; } 15580else 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15582$as_echo "no" >&6; } 15583fi 15584 15585 15586 test -n "$AUTOCONF" && break 15587done 15588test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" 15589 15590for ac_prog in autoheader 15591do 15592 # Extract the first word of "$ac_prog", so it can be a program name with args. 15593set dummy $ac_prog; ac_word=$2 15594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15595$as_echo_n "checking for $ac_word... " >&6; } 15596if ${ac_cv_prog_AUTOHEADER+:} false; then : 15597 $as_echo_n "(cached) " >&6 15598else 15599 if test -n "$AUTOHEADER"; then 15600 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. 15601else 15602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15603for as_dir in $PATH 15604do 15605 IFS=$as_save_IFS 15606 test -z "$as_dir" && as_dir=. 15607 for ac_exec_ext in '' $ac_executable_extensions; do 15608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15609 ac_cv_prog_AUTOHEADER="$ac_prog" 15610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15611 break 2 15612 fi 15613done 15614 done 15615IFS=$as_save_IFS 15616 15617fi 15618fi 15619AUTOHEADER=$ac_cv_prog_AUTOHEADER 15620if test -n "$AUTOHEADER"; then 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 15622$as_echo "$AUTOHEADER" >&6; } 15623else 15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15625$as_echo "no" >&6; } 15626fi 15627 15628 15629 test -n "$AUTOHEADER" && break 15630done 15631test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" 15632 15633 15634# Figure out what compiler warnings we can enable. 15635# See config/warnings.m4 for details. 15636 15637ac_ext=c 15638ac_cpp='$CPP $CPPFLAGS' 15639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15641ac_compiler_gnu=$ac_cv_c_compiler_gnu 15642 15643warn= 15644save_CFLAGS="$CFLAGS" 15645for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \ 15646 -Wmissing-format-attribute; do 15647 # Do the check with the no- prefix removed since gcc silently 15648 # accepts any -Wno-* option on purpose 15649 case $real_option in 15650 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 15651 *) option=$real_option ;; 15652 esac 15653 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 15654 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 15656$as_echo_n "checking whether $CC supports $option... " >&6; } 15657if eval \${$as_acx_Woption+:} false; then : 15658 $as_echo_n "(cached) " >&6 15659else 15660 CFLAGS="$option" 15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15662/* end confdefs.h. */ 15663 15664int 15665main () 15666{ 15667 15668 ; 15669 return 0; 15670} 15671_ACEOF 15672if ac_fn_c_try_compile "$LINENO"; then : 15673 eval "$as_acx_Woption=yes" 15674else 15675 eval "$as_acx_Woption=no" 15676fi 15677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15678 15679fi 15680eval ac_res=\$$as_acx_Woption 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15682$as_echo "$ac_res" >&6; } 15683 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 15684 warn="$warn${warn:+ }$real_option" 15685fi 15686 done 15687CFLAGS="$save_CFLAGS" 15688ac_ext=c 15689ac_cpp='$CPP $CPPFLAGS' 15690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15692ac_compiler_gnu=$ac_cv_c_compiler_gnu 15693 15694 15695ac_ext=c 15696ac_cpp='$CPP $CPPFLAGS' 15697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15699ac_compiler_gnu=$ac_cv_c_compiler_gnu 15700 15701c_warn= 15702save_CFLAGS="$CFLAGS" 15703for real_option in -Wstrict-prototypes -Wmissing-prototypes \ 15704 -Wold-style-definition; do 15705 # Do the check with the no- prefix removed since gcc silently 15706 # accepts any -Wno-* option on purpose 15707 case $real_option in 15708 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 15709 *) option=$real_option ;; 15710 esac 15711 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 15712 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 15714$as_echo_n "checking whether $CC supports $option... " >&6; } 15715if eval \${$as_acx_Woption+:} false; then : 15716 $as_echo_n "(cached) " >&6 15717else 15718 CFLAGS="$option" 15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15720/* end confdefs.h. */ 15721 15722int 15723main () 15724{ 15725 15726 ; 15727 return 0; 15728} 15729_ACEOF 15730if ac_fn_c_try_compile "$LINENO"; then : 15731 eval "$as_acx_Woption=yes" 15732else 15733 eval "$as_acx_Woption=no" 15734fi 15735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15736 15737fi 15738eval ac_res=\$$as_acx_Woption 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15740$as_echo "$ac_res" >&6; } 15741 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 15742 c_warn="$c_warn${c_warn:+ }$real_option" 15743fi 15744 done 15745CFLAGS="$save_CFLAGS" 15746ac_ext=c 15747ac_cpp='$CPP $CPPFLAGS' 15748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15750ac_compiler_gnu=$ac_cv_c_compiler_gnu 15751 15752 15753ac_ext=c 15754ac_cpp='$CPP $CPPFLAGS' 15755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15757ac_compiler_gnu=$ac_cv_c_compiler_gnu 15758 15759WARN_PEDANTIC= 15760# Do the check with the no- prefix removed from the warning options 15761# since gcc silently accepts any -Wno-* option on purpose 15762if test "$GCC" = yes; then : 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5 15764$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; } 15765if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then : 15766 $as_echo_n "(cached) " >&6 15767else 15768 save_CFLAGS="$CFLAGS" 15769CFLAGS="-pedantic -Wlong-long" 15770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15771/* end confdefs.h. */ 15772 15773int 15774main () 15775{ 15776 15777 ; 15778 return 0; 15779} 15780_ACEOF 15781if ac_fn_c_try_compile "$LINENO"; then : 15782 acx_cv_prog_cc_pedantic__Wlong_long=yes 15783else 15784 acx_cv_prog_cc_pedantic__Wlong_long=no 15785fi 15786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15787CFLAGS="$save_CFLAGS" 15788fi 15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5 15790$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; } 15791if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then : 15792 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" 15793fi 15794 15795fi 15796ac_ext=c 15797ac_cpp='$CPP $CPPFLAGS' 15798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15800ac_compiler_gnu=$ac_cv_c_compiler_gnu 15801 15802 15803 15804# Only enable with --enable-werror-always until existing warnings are 15805# corrected. 15806ac_ext=c 15807ac_cpp='$CPP $CPPFLAGS' 15808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15810ac_compiler_gnu=$ac_cv_c_compiler_gnu 15811 15812WERROR= 15813# Check whether --enable-werror-always was given. 15814if test "${enable_werror_always+set}" = set; then : 15815 enableval=$enable_werror_always; 15816else 15817 enable_werror_always=no 15818fi 15819 15820if test $enable_werror_always = yes; then : 15821 WERROR="$WERROR${WERROR:+ }-Werror" 15822fi 15823 15824ac_ext=c 15825ac_cpp='$CPP $CPPFLAGS' 15826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15828ac_compiler_gnu=$ac_cv_c_compiler_gnu 15829 15830 15831 15832 15833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 15834$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 15835 # Check whether --enable-maintainer-mode was given. 15836if test "${enable_maintainer_mode+set}" = set; then : 15837 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 15838else 15839 USE_MAINTAINER_MODE=no 15840fi 15841 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 15843$as_echo "$USE_MAINTAINER_MODE" >&6; } 15844 if test $USE_MAINTAINER_MODE = yes; then 15845 MAINTAINER_MODE_TRUE= 15846 MAINTAINER_MODE_FALSE='#' 15847else 15848 MAINTAINER_MODE_TRUE='#' 15849 MAINTAINER_MODE_FALSE= 15850fi 15851 15852 MAINT=$MAINTAINER_MODE_TRUE 15853 15854 15855 case ${build_alias} in 15856 "") build_noncanonical=${build} ;; 15857 *) build_noncanonical=${build_alias} ;; 15858esac 15859 15860 case ${host_alias} in 15861 "") host_noncanonical=${build_noncanonical} ;; 15862 *) host_noncanonical=${host_alias} ;; 15863esac 15864 15865 case ${target_alias} in 15866 "") target_noncanonical=${host_noncanonical} ;; 15867 *) target_noncanonical=${target_alias} ;; 15868esac 15869 15870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 15871$as_echo_n "checking whether to install libbfd... " >&6; } 15872 # Check whether --enable-install-libbfd was given. 15873if test "${enable_install_libbfd+set}" = set; then : 15874 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 15875else 15876 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 15877 install_libbfd_p=yes 15878 else 15879 install_libbfd_p=no 15880 fi 15881fi 15882 15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 15884$as_echo "$install_libbfd_p" >&6; } 15885 if test $install_libbfd_p = yes; then 15886 INSTALL_LIBBFD_TRUE= 15887 INSTALL_LIBBFD_FALSE='#' 15888else 15889 INSTALL_LIBBFD_TRUE='#' 15890 INSTALL_LIBBFD_FALSE= 15891fi 15892 15893 # Need _noncanonical variables for this. 15894 15895 15896 15897 15898 # libbfd.a is a host library containing target dependent code 15899 bfdlibdir='$(libdir)' 15900 bfdincludedir='$(includedir)' 15901 if test "${host}" != "${target}"; then 15902 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 15903 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 15904 fi 15905 15906 15907 15908 15909 15910 15911ac_ext=c 15912ac_cpp='$CPP $CPPFLAGS' 15913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15915ac_compiler_gnu=$ac_cv_c_compiler_gnu 15916 15917ac_libctf_warn_cflags= 15918save_CFLAGS="$CFLAGS" 15919for real_option in -Wall; do 15920 # Do the check with the no- prefix removed since gcc silently 15921 # accepts any -Wno-* option on purpose 15922 case $real_option in 15923 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 15924 *) option=$real_option ;; 15925 esac 15926 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 15927 15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 15929$as_echo_n "checking whether $CC supports $option... " >&6; } 15930if eval \${$as_acx_Woption+:} false; then : 15931 $as_echo_n "(cached) " >&6 15932else 15933 CFLAGS="$option" 15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935/* end confdefs.h. */ 15936 15937int 15938main () 15939{ 15940 15941 ; 15942 return 0; 15943} 15944_ACEOF 15945if ac_fn_c_try_compile "$LINENO"; then : 15946 eval "$as_acx_Woption=yes" 15947else 15948 eval "$as_acx_Woption=no" 15949fi 15950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15951 15952fi 15953eval ac_res=\$$as_acx_Woption 15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15955$as_echo "$ac_res" >&6; } 15956 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 15957 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option" 15958fi 15959 done 15960CFLAGS="$save_CFLAGS" 15961ac_ext=c 15962ac_cpp='$CPP $CPPFLAGS' 15963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15965ac_compiler_gnu=$ac_cv_c_compiler_gnu 15966 15967 15968 15969 15970 15971 15972 for ac_header in $ac_header_list 15973do : 15974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15975ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15976" 15977if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15978 cat >>confdefs.h <<_ACEOF 15979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15980_ACEOF 15981 15982fi 15983 15984done 15985 15986 15987 15988 15989 15990 15991 15992 15993for ac_func in getpagesize 15994do : 15995 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 15996if test "x$ac_cv_func_getpagesize" = xyes; then : 15997 cat >>confdefs.h <<_ACEOF 15998#define HAVE_GETPAGESIZE 1 15999_ACEOF 16000 16001fi 16002done 16003 16004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 16005$as_echo_n "checking for working mmap... " >&6; } 16006if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 16007 $as_echo_n "(cached) " >&6 16008else 16009 if test "$cross_compiling" = yes; then : 16010 ac_cv_func_mmap_fixed_mapped=no 16011else 16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16013/* end confdefs.h. */ 16014$ac_includes_default 16015/* malloc might have been renamed as rpl_malloc. */ 16016#undef malloc 16017 16018/* Thanks to Mike Haertel and Jim Avera for this test. 16019 Here is a matrix of mmap possibilities: 16020 mmap private not fixed 16021 mmap private fixed at somewhere currently unmapped 16022 mmap private fixed at somewhere already mapped 16023 mmap shared not fixed 16024 mmap shared fixed at somewhere currently unmapped 16025 mmap shared fixed at somewhere already mapped 16026 For private mappings, we should verify that changes cannot be read() 16027 back from the file, nor mmap's back from the file at a different 16028 address. (There have been systems where private was not correctly 16029 implemented like the infamous i386 svr4.0, and systems where the 16030 VM page cache was not coherent with the file system buffer cache 16031 like early versions of FreeBSD and possibly contemporary NetBSD.) 16032 For shared mappings, we should conversely verify that changes get 16033 propagated back to all the places they're supposed to be. 16034 16035 Grep wants private fixed already mapped. 16036 The main things grep needs to know about mmap are: 16037 * does it exist and is it safe to write into the mmap'd area 16038 * how to use it (BSD variants) */ 16039 16040#include <fcntl.h> 16041#include <sys/mman.h> 16042 16043#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 16044char *malloc (); 16045#endif 16046 16047/* This mess was copied from the GNU getpagesize.h. */ 16048#ifndef HAVE_GETPAGESIZE 16049# ifdef _SC_PAGESIZE 16050# define getpagesize() sysconf(_SC_PAGESIZE) 16051# else /* no _SC_PAGESIZE */ 16052# ifdef HAVE_SYS_PARAM_H 16053# include <sys/param.h> 16054# ifdef EXEC_PAGESIZE 16055# define getpagesize() EXEC_PAGESIZE 16056# else /* no EXEC_PAGESIZE */ 16057# ifdef NBPG 16058# define getpagesize() NBPG * CLSIZE 16059# ifndef CLSIZE 16060# define CLSIZE 1 16061# endif /* no CLSIZE */ 16062# else /* no NBPG */ 16063# ifdef NBPC 16064# define getpagesize() NBPC 16065# else /* no NBPC */ 16066# ifdef PAGESIZE 16067# define getpagesize() PAGESIZE 16068# endif /* PAGESIZE */ 16069# endif /* no NBPC */ 16070# endif /* no NBPG */ 16071# endif /* no EXEC_PAGESIZE */ 16072# else /* no HAVE_SYS_PARAM_H */ 16073# define getpagesize() 8192 /* punt totally */ 16074# endif /* no HAVE_SYS_PARAM_H */ 16075# endif /* no _SC_PAGESIZE */ 16076 16077#endif /* no HAVE_GETPAGESIZE */ 16078 16079int 16080main () 16081{ 16082 char *data, *data2, *data3; 16083 const char *cdata2; 16084 int i, pagesize; 16085 int fd, fd2; 16086 16087 pagesize = getpagesize (); 16088 16089 /* First, make a file with some known garbage in it. */ 16090 data = (char *) malloc (pagesize); 16091 if (!data) 16092 return 1; 16093 for (i = 0; i < pagesize; ++i) 16094 *(data + i) = rand (); 16095 umask (0); 16096 fd = creat ("conftest.mmap", 0600); 16097 if (fd < 0) 16098 return 2; 16099 if (write (fd, data, pagesize) != pagesize) 16100 return 3; 16101 close (fd); 16102 16103 /* Next, check that the tail of a page is zero-filled. File must have 16104 non-zero length, otherwise we risk SIGBUS for entire page. */ 16105 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 16106 if (fd2 < 0) 16107 return 4; 16108 cdata2 = ""; 16109 if (write (fd2, cdata2, 1) != 1) 16110 return 5; 16111 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 16112 if (data2 == MAP_FAILED) 16113 return 6; 16114 for (i = 0; i < pagesize; ++i) 16115 if (*(data2 + i)) 16116 return 7; 16117 close (fd2); 16118 if (munmap (data2, pagesize)) 16119 return 8; 16120 16121 /* Next, try to mmap the file at a fixed address which already has 16122 something else allocated at it. If we can, also make sure that 16123 we see the same garbage. */ 16124 fd = open ("conftest.mmap", O_RDWR); 16125 if (fd < 0) 16126 return 9; 16127 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 16128 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 16129 return 10; 16130 for (i = 0; i < pagesize; ++i) 16131 if (*(data + i) != *(data2 + i)) 16132 return 11; 16133 16134 /* Finally, make sure that changes to the mapped area do not 16135 percolate back to the file as seen by read(). (This is a bug on 16136 some variants of i386 svr4.0.) */ 16137 for (i = 0; i < pagesize; ++i) 16138 *(data2 + i) = *(data2 + i) + 1; 16139 data3 = (char *) malloc (pagesize); 16140 if (!data3) 16141 return 12; 16142 if (read (fd, data3, pagesize) != pagesize) 16143 return 13; 16144 for (i = 0; i < pagesize; ++i) 16145 if (*(data + i) != *(data3 + i)) 16146 return 14; 16147 close (fd); 16148 return 0; 16149} 16150_ACEOF 16151if ac_fn_c_try_run "$LINENO"; then : 16152 ac_cv_func_mmap_fixed_mapped=yes 16153else 16154 ac_cv_func_mmap_fixed_mapped=no 16155fi 16156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16157 conftest.$ac_objext conftest.beam conftest.$ac_ext 16158fi 16159 16160fi 16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 16162$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 16163if test $ac_cv_func_mmap_fixed_mapped = yes; then 16164 16165$as_echo "#define HAVE_MMAP 1" >>confdefs.h 16166 16167fi 16168rm -f conftest.mmap conftest.txt 16169 16170# Needed for BFD capability checks. 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 16172$as_echo_n "checking for library containing dlsym... " >&6; } 16173if ${ac_cv_search_dlsym+:} false; then : 16174 $as_echo_n "(cached) " >&6 16175else 16176 ac_func_search_save_LIBS=$LIBS 16177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16178/* end confdefs.h. */ 16179 16180/* Override any GCC internal prototype to avoid an error. 16181 Use char because int might match the return type of a GCC 16182 builtin and then its argument prototype would still apply. */ 16183#ifdef __cplusplus 16184extern "C" 16185#endif 16186char dlsym (); 16187int 16188main () 16189{ 16190return dlsym (); 16191 ; 16192 return 0; 16193} 16194_ACEOF 16195for ac_lib in '' dl; do 16196 if test -z "$ac_lib"; then 16197 ac_res="none required" 16198 else 16199 ac_res=-l$ac_lib 16200 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16201 fi 16202 if ac_fn_c_try_link "$LINENO"; then : 16203 ac_cv_search_dlsym=$ac_res 16204fi 16205rm -f core conftest.err conftest.$ac_objext \ 16206 conftest$ac_exeext 16207 if ${ac_cv_search_dlsym+:} false; then : 16208 break 16209fi 16210done 16211if ${ac_cv_search_dlsym+:} false; then : 16212 16213else 16214 ac_cv_search_dlsym=no 16215fi 16216rm conftest.$ac_ext 16217LIBS=$ac_func_search_save_LIBS 16218fi 16219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 16220$as_echo "$ac_cv_search_dlsym" >&6; } 16221ac_res=$ac_cv_search_dlsym 16222if test "$ac_res" != no; then : 16223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16224 16225fi 16226 16227 16228 # Use the system's zlib library. 16229 zlibdir="-L\$(top_builddir)/../zlib" 16230 zlibinc="-I\$(top_srcdir)/../zlib" 16231 16232# Check whether --with-system-zlib was given. 16233if test "${with_system_zlib+set}" = set; then : 16234 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 16235 zlibdir= 16236 zlibinc= 16237 fi 16238 16239fi 16240 16241 16242 16243 16244 16245 # Check whether --enable-libctf-hash-debugging was given. 16246if test "${enable_libctf_hash_debugging+set}" = set; then : 16247 enableval=$enable_libctf_hash_debugging; 16248 case "$enableval" in 16249 yes|no) ;; 16250 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;; 16251 esac 16252 16253else 16254 enable_libctf_hash_debugging=no 16255fi 16256 16257 16258if test "${enable_libctf_hash_debugging}" = yes; then 16259 16260$as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h 16261 16262fi 16263 if test "${enable_libctf_hash_debugging}" = yes; then 16264 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE= 16265 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#' 16266else 16267 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#' 16268 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE= 16269fi 16270 16271 16272# Similar to GDB_AC_CHECK_BFD. 16273OLD_CFLAGS=$CFLAGS 16274OLD_LDFLAGS=$LDFLAGS 16275OLD_LIBS=$LIBS 16276OLD_CC=$CC 16277# Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS 16278# points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We 16279# always want our bfd. 16280CC="./libtool --quiet --mode=link $OLD_CC" 16281CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" 16282LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" 16283intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` 16284LIBS="-lbfd -liberty $intl $LIBS" 16285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5 16286$as_echo_n "checking for ELF support in BFD... " >&6; } 16287if ${ac_cv_libctf_bfd_elf+:} false; then : 16288 $as_echo_n "(cached) " >&6 16289else 16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16291/* end confdefs.h. */ 16292#include <stdlib.h> 16293 #include <string.h> 16294 #include "bfd.h" 16295 #include "elf-bfd.h" 16296int 16297main () 16298{ 16299(void) bfd_section_from_elf_index (NULL, 0); 16300 return 0; 16301 ; 16302 return 0; 16303} 16304_ACEOF 16305if ac_fn_c_try_link "$LINENO"; then : 16306 ac_cv_libctf_bfd_elf=yes 16307else 16308 ac_cv_libctf_bfd_elf=no 16309fi 16310rm -f core conftest.err conftest.$ac_objext \ 16311 conftest$ac_exeext conftest.$ac_ext 16312fi 16313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5 16314$as_echo "$ac_cv_libctf_bfd_elf" >&6; } 16315CFLAGS=$OLD_CFLAGS 16316LDFLAGS=$OLD_LDFLAGS 16317LIBS=$OLD_LIBS 16318CC=$OLD_CC 16319 16320if test $ac_cv_libctf_bfd_elf = yes; then 16321 16322$as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h 16323 16324fi 16325 16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16327$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16328if ${ac_cv_c_bigendian+:} false; then : 16329 $as_echo_n "(cached) " >&6 16330else 16331 ac_cv_c_bigendian=unknown 16332 # See if we're dealing with a universal compiler. 16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16334/* end confdefs.h. */ 16335#ifndef __APPLE_CC__ 16336 not a universal capable compiler 16337 #endif 16338 typedef int dummy; 16339 16340_ACEOF 16341if ac_fn_c_try_compile "$LINENO"; then : 16342 16343 # Check for potential -arch flags. It is not universal unless 16344 # there are at least two -arch flags with different values. 16345 ac_arch= 16346 ac_prev= 16347 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16348 if test -n "$ac_prev"; then 16349 case $ac_word in 16350 i?86 | x86_64 | ppc | ppc64) 16351 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16352 ac_arch=$ac_word 16353 else 16354 ac_cv_c_bigendian=universal 16355 break 16356 fi 16357 ;; 16358 esac 16359 ac_prev= 16360 elif test "x$ac_word" = "x-arch"; then 16361 ac_prev=arch 16362 fi 16363 done 16364fi 16365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16366 if test $ac_cv_c_bigendian = unknown; then 16367 # See if sys/param.h defines the BYTE_ORDER macro. 16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16369/* end confdefs.h. */ 16370#include <sys/types.h> 16371 #include <sys/param.h> 16372 16373int 16374main () 16375{ 16376#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16377 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16378 && LITTLE_ENDIAN) 16379 bogus endian macros 16380 #endif 16381 16382 ; 16383 return 0; 16384} 16385_ACEOF 16386if ac_fn_c_try_compile "$LINENO"; then : 16387 # It does; now see whether it defined to BIG_ENDIAN or not. 16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16389/* end confdefs.h. */ 16390#include <sys/types.h> 16391 #include <sys/param.h> 16392 16393int 16394main () 16395{ 16396#if BYTE_ORDER != BIG_ENDIAN 16397 not big endian 16398 #endif 16399 16400 ; 16401 return 0; 16402} 16403_ACEOF 16404if ac_fn_c_try_compile "$LINENO"; then : 16405 ac_cv_c_bigendian=yes 16406else 16407 ac_cv_c_bigendian=no 16408fi 16409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16410fi 16411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16412 fi 16413 if test $ac_cv_c_bigendian = unknown; then 16414 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16416/* end confdefs.h. */ 16417#include <limits.h> 16418 16419int 16420main () 16421{ 16422#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16423 bogus endian macros 16424 #endif 16425 16426 ; 16427 return 0; 16428} 16429_ACEOF 16430if ac_fn_c_try_compile "$LINENO"; then : 16431 # It does; now see whether it defined to _BIG_ENDIAN or not. 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433/* end confdefs.h. */ 16434#include <limits.h> 16435 16436int 16437main () 16438{ 16439#ifndef _BIG_ENDIAN 16440 not big endian 16441 #endif 16442 16443 ; 16444 return 0; 16445} 16446_ACEOF 16447if ac_fn_c_try_compile "$LINENO"; then : 16448 ac_cv_c_bigendian=yes 16449else 16450 ac_cv_c_bigendian=no 16451fi 16452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16453fi 16454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16455 fi 16456 if test $ac_cv_c_bigendian = unknown; then 16457 # Compile a test program. 16458 if test "$cross_compiling" = yes; then : 16459 # Try to guess by grepping values from an object file. 16460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16461/* end confdefs.h. */ 16462short int ascii_mm[] = 16463 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16464 short int ascii_ii[] = 16465 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16466 int use_ascii (int i) { 16467 return ascii_mm[i] + ascii_ii[i]; 16468 } 16469 short int ebcdic_ii[] = 16470 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16471 short int ebcdic_mm[] = 16472 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16473 int use_ebcdic (int i) { 16474 return ebcdic_mm[i] + ebcdic_ii[i]; 16475 } 16476 extern int foo; 16477 16478int 16479main () 16480{ 16481return use_ascii (foo) == use_ebcdic (foo); 16482 ; 16483 return 0; 16484} 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO"; then : 16487 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16488 ac_cv_c_bigendian=yes 16489 fi 16490 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16491 if test "$ac_cv_c_bigendian" = unknown; then 16492 ac_cv_c_bigendian=no 16493 else 16494 # finding both strings is unlikely to happen, but who knows? 16495 ac_cv_c_bigendian=unknown 16496 fi 16497 fi 16498fi 16499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16500else 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503$ac_includes_default 16504int 16505main () 16506{ 16507 16508 /* Are we little or big endian? From Harbison&Steele. */ 16509 union 16510 { 16511 long int l; 16512 char c[sizeof (long int)]; 16513 } u; 16514 u.l = 1; 16515 return u.c[sizeof (long int) - 1] == 1; 16516 16517 ; 16518 return 0; 16519} 16520_ACEOF 16521if ac_fn_c_try_run "$LINENO"; then : 16522 ac_cv_c_bigendian=no 16523else 16524 ac_cv_c_bigendian=yes 16525fi 16526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16527 conftest.$ac_objext conftest.beam conftest.$ac_ext 16528fi 16529 16530 fi 16531fi 16532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16533$as_echo "$ac_cv_c_bigendian" >&6; } 16534 case $ac_cv_c_bigendian in #( 16535 yes) 16536 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16537;; #( 16538 no) 16539 ;; #( 16540 universal) 16541 16542$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16543 16544 ;; #( 16545 *) 16546 as_fn_error $? "unknown endianness 16547 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16548 esac 16549 16550for ac_header in byteswap.h endian.h 16551do : 16552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16553ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16555 cat >>confdefs.h <<_ACEOF 16556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16557_ACEOF 16558 16559fi 16560 16561done 16562 16563for ac_func in pread 16564do : 16565 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 16566if test "x$ac_cv_func_pread" = xyes; then : 16567 cat >>confdefs.h <<_ACEOF 16568#define HAVE_PREAD 1 16569_ACEOF 16570 16571fi 16572done 16573 16574 16575ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h> 16576" 16577if test "x$ac_cv_have_decl_bswap_16" = xyes; then : 16578 ac_have_decl=1 16579else 16580 ac_have_decl=0 16581fi 16582 16583cat >>confdefs.h <<_ACEOF 16584#define HAVE_DECL_BSWAP_16 $ac_have_decl 16585_ACEOF 16586ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h> 16587" 16588if test "x$ac_cv_have_decl_bswap_32" = xyes; then : 16589 ac_have_decl=1 16590else 16591 ac_have_decl=0 16592fi 16593 16594cat >>confdefs.h <<_ACEOF 16595#define HAVE_DECL_BSWAP_32 $ac_have_decl 16596_ACEOF 16597ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h> 16598" 16599if test "x$ac_cv_have_decl_bswap_64" = xyes; then : 16600 ac_have_decl=1 16601else 16602 ac_have_decl=0 16603fi 16604 16605cat >>confdefs.h <<_ACEOF 16606#define HAVE_DECL_BSWAP_64 $ac_have_decl 16607_ACEOF 16608 16609ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 16610if test "x$ac_cv_have_decl_asprintf" = xyes; then : 16611 ac_have_decl=1 16612else 16613 ac_have_decl=0 16614fi 16615 16616cat >>confdefs.h <<_ACEOF 16617#define HAVE_DECL_ASPRINTF $ac_have_decl 16618_ACEOF 16619ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 16620if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 16621 ac_have_decl=1 16622else 16623 ac_have_decl=0 16624fi 16625 16626cat >>confdefs.h <<_ACEOF 16627#define HAVE_DECL_VASPRINTF $ac_have_decl 16628_ACEOF 16629ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 16630if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 16631 ac_have_decl=1 16632else 16633 ac_have_decl=0 16634fi 16635 16636cat >>confdefs.h <<_ACEOF 16637#define HAVE_DECL_STPCPY $ac_have_decl 16638_ACEOF 16639 16640 16641 16642 16643 16644 for ac_func in $ac_func_list 16645do : 16646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16647ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16648if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16649 cat >>confdefs.h <<_ACEOF 16650#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16651_ACEOF 16652 16653fi 16654done 16655 16656 16657 16658 16659if test $ac_cv_func_qsort_r = yes; then 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5 16661$as_echo_n "checking for qsort_r signature... " >&6; } 16662if ${ac_cv_libctf_qsort_r_signature+:} false; then : 16663 $as_echo_n "(cached) " >&6 16664else 16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16666/* end confdefs.h. */ 16667#undef qsort_r 16668 #include <stdlib.h> 16669 void qsort_r (void *, size_t, size_t, 16670 int (*) (void const *, void const *, 16671 void *), 16672 void *); 16673 void (*p) (void *, size_t, size_t, 16674 int (*) (void const *, void const *, 16675 void *), 16676 void *) = qsort_r; 16677 16678int 16679main () 16680{ 16681 16682 ; 16683 return 0; 16684} 16685_ACEOF 16686if ac_fn_c_try_link "$LINENO"; then : 16687 ac_cv_libctf_qsort_r_signature=GNU 16688else 16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16690/* end confdefs.h. */ 16691#undef qsort_r 16692 #include <stdlib.h> 16693 void qsort_r (void *, size_t, size_t, void *, 16694 int (*) (void *, 16695 void const *, 16696 void const *)); 16697 void (*p) (void *, size_t, size_t, void *, 16698 int (*) (void *, void const *, 16699 void const *)) = qsort_r; 16700 16701int 16702main () 16703{ 16704 16705 ; 16706 return 0; 16707} 16708_ACEOF 16709if ac_fn_c_try_link "$LINENO"; then : 16710 ac_cv_libctf_qsort_r_signature=BSD 16711else 16712 ac_cv_libctf_qsort_r_signature=unknown 16713fi 16714rm -f core conftest.err conftest.$ac_objext \ 16715 conftest$ac_exeext conftest.$ac_ext 16716fi 16717rm -f core conftest.err conftest.$ac_objext \ 16718 conftest$ac_exeext conftest.$ac_ext 16719fi 16720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5 16721$as_echo "$ac_cv_libctf_qsort_r_signature" >&6; } 16722fi 16723 16724case x$ac_cv_libctf_qsort_r_signature in 16725 xGNU) 16726$as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h 16727;; 16728 xBSD) 16729$as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h 16730;; 16731 *) ac_cv_libctf_qsort_r_signature=unknown;; 16732esac 16733 16734 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then 16735 NEED_CTF_QSORT_R_TRUE= 16736 NEED_CTF_QSORT_R_FALSE='#' 16737else 16738 NEED_CTF_QSORT_R_TRUE='#' 16739 NEED_CTF_QSORT_R_FALSE= 16740fi 16741 16742 16743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 16744$as_echo_n "checking for O_CLOEXEC... " >&6; } 16745if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then : 16746 $as_echo_n "(cached) " >&6 16747else 16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16749/* end confdefs.h. */ 16750#include <fcntl.h> 16751 #ifndef O_CLOEXEC 16752 choke me; 16753 #endif 16754 16755int 16756main () 16757{ 16758return O_CLOEXEC; 16759 ; 16760 return 0; 16761} 16762_ACEOF 16763if ac_fn_c_try_link "$LINENO"; then : 16764 ac_cv_libctf_macro_O_CLOEXEC=yes 16765else 16766 ac_cv_libctf_macro_O_CLOEXEC=no 16767fi 16768rm -f core conftest.err conftest.$ac_objext \ 16769 conftest$ac_exeext conftest.$ac_ext 16770fi 16771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5 16772$as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; } 16773 16774if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then 16775 16776$as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h 16777 16778fi 16779 16780build_info= 16781makeinfo_too_old= 16782for ac_prog in makeinfo 16783do 16784 # Extract the first word of "$ac_prog", so it can be a program name with args. 16785set dummy $ac_prog; ac_word=$2 16786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16787$as_echo_n "checking for $ac_word... " >&6; } 16788if ${ac_cv_prog_MAKEINFO+:} false; then : 16789 $as_echo_n "(cached) " >&6 16790else 16791 if test -n "$MAKEINFO"; then 16792 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 16793else 16794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16795for as_dir in $PATH 16796do 16797 IFS=$as_save_IFS 16798 test -z "$as_dir" && as_dir=. 16799 for ac_exec_ext in '' $ac_executable_extensions; do 16800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16801 ac_cv_prog_MAKEINFO="$ac_prog" 16802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16803 break 2 16804 fi 16805done 16806 done 16807IFS=$as_save_IFS 16808 16809fi 16810fi 16811MAKEINFO=$ac_cv_prog_MAKEINFO 16812if test -n "$MAKEINFO"; then 16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 16814$as_echo "$MAKEINFO" >&6; } 16815else 16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16817$as_echo "no" >&6; } 16818fi 16819 16820 16821 test -n "$MAKEINFO" && break 16822done 16823test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" 16824 16825case " $build_configdirs " in 16826 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; 16827esac 16828 16829 # We require texinfo to be 6.3 or later, for a working synindex 16830 # and validatemenus: otherwise we fall back to /bin/true. 16831 if ${MAKEINFO} --version \ 16832 | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9]|[1-6][0-9])' >/dev/null 2>&1; then 16833 build_info=yes 16834 else 16835 build_info= 16836 makeinfo_too_old=t 16837 fi 16838 16839if test -n "$makeinfo_too_old"; then 16840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16841*** Makeinfo is too old. Info documentation will not be built." >&5 16842$as_echo "$as_me: WARNING: 16843*** Makeinfo is too old. Info documentation will not be built." >&2;} 16844fi 16845 16846 if test "${build_info}" = yes; then 16847 BUILD_INFO_TRUE= 16848 BUILD_INFO_FALSE='#' 16849else 16850 BUILD_INFO_TRUE='#' 16851 BUILD_INFO_FALSE= 16852fi 16853 16854 16855CTF_LIBADD="-L`pwd`/../libiberty -liberty" 16856SHARED_LDFLAGS= 16857 16858# Horrible hacks to build DLLs on Windows and a shared library elsewhere. 16859if test "$enable_shared" = "yes"; then 16860# When building a shared libctf, link against the pic version of libiberty 16861# so that apps that use libctf won't need libiberty just to satisfy any 16862# libctf references. We can't do that if a pic libiberty is unavailable 16863# since including non-pic # code would insert text relocations into libctf. 16864# Note that linking against libbfd as we do here, which is itself linked 16865# against libiberty, may not satisfy all the libctf libiberty references 16866# since libbfd may not pull in the entirety of libiberty. 16867# Also, jam libintl into the right place in all of this: after libiberty, 16868# which uses it, but before -lcygwin, which it uses. 16869 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 16870 if test -n "$x"; then 16871 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty" 16872 fi 16873fi 16874 16875CTF_LIBADD="$CTF_LIBADD $LTLIBINTL" 16876 16877if test "$enable_shared" = "yes"; then 16878 case "${host}" in 16879 # More hacks to build DLLs on Windows. 16880 *-*-cygwin*) 16881 SHARED_LDFLAGS="-no-undefined" 16882 CTF_LIBADD="$CTF_LIBADD -lcygwin" 16883 ;; 16884 esac 16885fi 16886 16887 16888 16889# Extract the first word of "expect", so it can be a program name with args. 16890set dummy expect; ac_word=$2 16891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16892$as_echo_n "checking for $ac_word... " >&6; } 16893if ${ac_cv_path_EXPECT+:} false; then : 16894 $as_echo_n "(cached) " >&6 16895else 16896 case $EXPECT in 16897 [\\/]* | ?:[\\/]*) 16898 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. 16899 ;; 16900 *) 16901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16902for as_dir in $PATH 16903do 16904 IFS=$as_save_IFS 16905 test -z "$as_dir" && as_dir=. 16906 for ac_exec_ext in '' $ac_executable_extensions; do 16907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16908 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" 16909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16910 break 2 16911 fi 16912done 16913 done 16914IFS=$as_save_IFS 16915 16916 ;; 16917esac 16918fi 16919EXPECT=$ac_cv_path_EXPECT 16920if test -n "$EXPECT"; then 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 16922$as_echo "$EXPECT" >&6; } 16923else 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16925$as_echo "no" >&6; } 16926fi 16927 16928 16929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5 16930$as_echo_n "checking for Tcl supporting try/catch... " >&6; } 16931if ${ac_cv_libctf_tcl_try+:} false; then : 16932 $as_echo_n "(cached) " >&6 16933else 16934 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF 16935if [llength [info commands try]] then { puts yes } else { puts no } 16936EOF 16937fi` 16938 16939fi 16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5 16941$as_echo "$ac_cv_libctf_tcl_try" >&6; } 16942 16943HAVE_TCL_TRY=false 16944if test "${ac_cv_libctf_tcl_try}" = "yes"; then 16945 HAVE_TCL_TRY=true 16946fi 16947 16948 16949# Use a version script, if possible, or an -export-symbols-regex otherwise. 16950decommented_version_script= 16951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5 16952$as_echo_n "checking for linker versioning flags... " >&6; } 16953if ${ac_cv_libctf_version_script+:} false; then : 16954 $as_echo_n "(cached) " >&6 16955else 16956 echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver 16957 old_LDFLAGS="$LDFLAGS" 16958 old_CFLAGS="$CFLAGS" 16959 LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver" 16960 CFLAGS="$CFLAGS -fPIC" 16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16962/* end confdefs.h. */ 16963int ctf_foo (void) { return 0; } 16964 int main (void) { return ctf_foo(); } 16965_ACEOF 16966if ac_fn_c_try_link "$LINENO"; then : 16967 ac_cv_libctf_version_script="-Wl,--version-script='$srcdir/libctf.ver'" 16968fi 16969rm -f core conftest.err conftest.$ac_objext \ 16970 conftest$ac_exeext conftest.$ac_ext 16971 LDFLAGS="$old_LDFLAGS" 16972 16973 if test -z "$ac_cv_libctf_version_script"; then 16974 LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver" 16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16976/* end confdefs.h. */ 16977int ctf_foo (void) { return 0; } 16978 int main (void) { return ctf_foo(); } 16979_ACEOF 16980if ac_fn_c_try_link "$LINENO"; then : 16981 ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script" 16982 decommented_version_script=t 16983fi 16984rm -f core conftest.err conftest.$ac_objext \ 16985 conftest$ac_exeext conftest.$ac_ext 16986 LDFLAGS="$old_LDFLAGS" 16987 fi 16988 CFLAGS="$old_CFLAGS" 16989 16990 if test -z "$ac_cv_libctf_version_script"; then 16991 ac_cv_libctf_version_script='-export-symbols-regex ctf_.*' 16992 fi 16993 rm -f conftest.ver 16994fi 16995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5 16996$as_echo "$ac_cv_libctf_version_script" >&6; } 16997if test -n "$decommented_version_script"; then 16998 # Solaris's version scripts use shell-style comments rather than the C-style 16999 # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this 17000 # name on all platforms that support ld -z gnu-version-script.) 17001 # Also ensure that no symbols exist in the version script for libctf-nobfd.so 17002 # that do not exist in the shared library itself, since some linkers add such 17003 # symbols with type NOTYPE. 17004 /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver 17005 grep -v 'libctf only' $srcdir/libctf.ver | /lib/cpp > libctf-nobfd-decommented.ver 17006 VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'" 17007 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'" 17008else 17009 VERSION_FLAGS="$ac_cv_libctf_version_script" 17010 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script" 17011fi 17012 17013 17014 17015ac_config_files="$ac_config_files Makefile" 17016 17017ac_config_headers="$ac_config_headers config.h" 17018 17019cat >confcache <<\_ACEOF 17020# This file is a shell script that caches the results of configure 17021# tests run on this system so they can be shared between configure 17022# scripts and configure runs, see configure's option --config-cache. 17023# It is not useful on other systems. If it contains results you don't 17024# want to keep, you may remove or edit it. 17025# 17026# config.status only pays attention to the cache file if you give it 17027# the --recheck option to rerun configure. 17028# 17029# `ac_cv_env_foo' variables (set or unset) will be overridden when 17030# loading this file, other *unset* `ac_cv_foo' will be assigned the 17031# following values. 17032 17033_ACEOF 17034 17035# The following way of writing the cache mishandles newlines in values, 17036# but we know of no workaround that is simple, portable, and efficient. 17037# So, we kill variables containing newlines. 17038# Ultrix sh set writes to stderr and can't be redirected directly, 17039# and sets the high bit in the cache file unless we assign to the vars. 17040( 17041 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17042 eval ac_val=\$$ac_var 17043 case $ac_val in #( 17044 *${as_nl}*) 17045 case $ac_var in #( 17046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17048 esac 17049 case $ac_var in #( 17050 _ | IFS | as_nl) ;; #( 17051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17052 *) { eval $ac_var=; unset $ac_var;} ;; 17053 esac ;; 17054 esac 17055 done 17056 17057 (set) 2>&1 | 17058 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17059 *${as_nl}ac_space=\ *) 17060 # `set' does not quote correctly, so add quotes: double-quote 17061 # substitution turns \\\\ into \\, and sed turns \\ into \. 17062 sed -n \ 17063 "s/'/'\\\\''/g; 17064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17065 ;; #( 17066 *) 17067 # `set' quotes correctly as required by POSIX, so do not add quotes. 17068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17069 ;; 17070 esac | 17071 sort 17072) | 17073 sed ' 17074 /^ac_cv_env_/b end 17075 t clear 17076 :clear 17077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17078 t end 17079 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17080 :end' >>confcache 17081if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17082 if test -w "$cache_file"; then 17083 if test "x$cache_file" != "x/dev/null"; then 17084 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17085$as_echo "$as_me: updating cache $cache_file" >&6;} 17086 if test ! -f "$cache_file" || test -h "$cache_file"; then 17087 cat confcache >"$cache_file" 17088 else 17089 case $cache_file in #( 17090 */* | ?:*) 17091 mv -f confcache "$cache_file"$$ && 17092 mv -f "$cache_file"$$ "$cache_file" ;; #( 17093 *) 17094 mv -f confcache "$cache_file" ;; 17095 esac 17096 fi 17097 fi 17098 else 17099 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17100$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17101 fi 17102fi 17103rm -f confcache 17104 17105test "x$prefix" = xNONE && prefix=$ac_default_prefix 17106# Let make expand exec_prefix. 17107test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17108 17109DEFS=-DHAVE_CONFIG_H 17110 17111ac_libobjs= 17112ac_ltlibobjs= 17113U= 17114for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17115 # 1. Remove the extension, and $U if already installed. 17116 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17117 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17119 # will be set to the directory where LIBOBJS objects are built. 17120 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17121 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17122done 17123LIBOBJS=$ac_libobjs 17124 17125LTLIBOBJS=$ac_ltlibobjs 17126 17127 17128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17129$as_echo_n "checking that generated files are newer than configure... " >&6; } 17130 if test -n "$am_sleep_pid"; then 17131 # Hide warnings about reused PIDs. 17132 wait $am_sleep_pid 2>/dev/null 17133 fi 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17135$as_echo "done" >&6; } 17136if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17137 as_fn_error $? "conditional \"AMDEP\" was never defined. 17138Usually this means the macro was only invoked conditionally." "$LINENO" 5 17139fi 17140if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17141 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17142Usually this means the macro was only invoked conditionally." "$LINENO" 5 17143fi 17144 if test -n "$EXEEXT"; then 17145 am__EXEEXT_TRUE= 17146 am__EXEEXT_FALSE='#' 17147else 17148 am__EXEEXT_TRUE='#' 17149 am__EXEEXT_FALSE= 17150fi 17151 17152if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17153 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17154Usually this means the macro was only invoked conditionally." "$LINENO" 5 17155fi 17156if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 17157 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 17158Usually this means the macro was only invoked conditionally." "$LINENO" 5 17159fi 17160if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then 17161 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined. 17162Usually this means the macro was only invoked conditionally." "$LINENO" 5 17163fi 17164 17165if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then 17166 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined. 17167Usually this means the macro was only invoked conditionally." "$LINENO" 5 17168fi 17169if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 17170 as_fn_error $? "conditional \"BUILD_INFO\" was never defined. 17171Usually this means the macro was only invoked conditionally." "$LINENO" 5 17172fi 17173 17174: "${CONFIG_STATUS=./config.status}" 17175ac_write_fail=0 17176ac_clean_files_save=$ac_clean_files 17177ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17178{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17179$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17180as_write_fail=0 17181cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17182#! $SHELL 17183# Generated by $as_me. 17184# Run this file to recreate the current configuration. 17185# Compiler output produced by configure, useful for debugging 17186# configure, is in config.log if it exists. 17187 17188debug=false 17189ac_cs_recheck=false 17190ac_cs_silent=false 17191 17192SHELL=\${CONFIG_SHELL-$SHELL} 17193export SHELL 17194_ASEOF 17195cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17196## -------------------- ## 17197## M4sh Initialization. ## 17198## -------------------- ## 17199 17200# Be more Bourne compatible 17201DUALCASE=1; export DUALCASE # for MKS sh 17202if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17203 emulate sh 17204 NULLCMD=: 17205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17206 # is contrary to our usage. Disable this feature. 17207 alias -g '${1+"$@"}'='"$@"' 17208 setopt NO_GLOB_SUBST 17209else 17210 case `(set -o) 2>/dev/null` in #( 17211 *posix*) : 17212 set -o posix ;; #( 17213 *) : 17214 ;; 17215esac 17216fi 17217 17218 17219as_nl=' 17220' 17221export as_nl 17222# Printing a long string crashes Solaris 7 /usr/bin/printf. 17223as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17224as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17225as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17226# Prefer a ksh shell builtin over an external printf program on Solaris, 17227# but without wasting forks for bash or zsh. 17228if test -z "$BASH_VERSION$ZSH_VERSION" \ 17229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17230 as_echo='print -r --' 17231 as_echo_n='print -rn --' 17232elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17233 as_echo='printf %s\n' 17234 as_echo_n='printf %s' 17235else 17236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17237 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17238 as_echo_n='/usr/ucb/echo -n' 17239 else 17240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17241 as_echo_n_body='eval 17242 arg=$1; 17243 case $arg in #( 17244 *"$as_nl"*) 17245 expr "X$arg" : "X\\(.*\\)$as_nl"; 17246 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17247 esac; 17248 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17249 ' 17250 export as_echo_n_body 17251 as_echo_n='sh -c $as_echo_n_body as_echo' 17252 fi 17253 export as_echo_body 17254 as_echo='sh -c $as_echo_body as_echo' 17255fi 17256 17257# The user is always right. 17258if test "${PATH_SEPARATOR+set}" != set; then 17259 PATH_SEPARATOR=: 17260 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17261 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17262 PATH_SEPARATOR=';' 17263 } 17264fi 17265 17266 17267# IFS 17268# We need space, tab and new line, in precisely that order. Quoting is 17269# there to prevent editors from complaining about space-tab. 17270# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17271# splitting by setting IFS to empty value.) 17272IFS=" "" $as_nl" 17273 17274# Find who we are. Look in the path if we contain no directory separator. 17275as_myself= 17276case $0 in #(( 17277 *[\\/]* ) as_myself=$0 ;; 17278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17279for as_dir in $PATH 17280do 17281 IFS=$as_save_IFS 17282 test -z "$as_dir" && as_dir=. 17283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17284 done 17285IFS=$as_save_IFS 17286 17287 ;; 17288esac 17289# We did not find ourselves, most probably we were run as `sh COMMAND' 17290# in which case we are not to be found in the path. 17291if test "x$as_myself" = x; then 17292 as_myself=$0 17293fi 17294if test ! -f "$as_myself"; then 17295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17296 exit 1 17297fi 17298 17299# Unset variables that we do not need and which cause bugs (e.g. in 17300# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17301# suppresses any "Segmentation fault" message there. '((' could 17302# trigger a bug in pdksh 5.2.14. 17303for as_var in BASH_ENV ENV MAIL MAILPATH 17304do eval test x\${$as_var+set} = xset \ 17305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17306done 17307PS1='$ ' 17308PS2='> ' 17309PS4='+ ' 17310 17311# NLS nuisances. 17312LC_ALL=C 17313export LC_ALL 17314LANGUAGE=C 17315export LANGUAGE 17316 17317# CDPATH. 17318(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17319 17320 17321# as_fn_error STATUS ERROR [LINENO LOG_FD] 17322# ---------------------------------------- 17323# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17324# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17325# script with STATUS, using 1 if that was 0. 17326as_fn_error () 17327{ 17328 as_status=$1; test $as_status -eq 0 && as_status=1 17329 if test "$4"; then 17330 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17332 fi 17333 $as_echo "$as_me: error: $2" >&2 17334 as_fn_exit $as_status 17335} # as_fn_error 17336 17337 17338# as_fn_set_status STATUS 17339# ----------------------- 17340# Set $? to STATUS, without forking. 17341as_fn_set_status () 17342{ 17343 return $1 17344} # as_fn_set_status 17345 17346# as_fn_exit STATUS 17347# ----------------- 17348# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17349as_fn_exit () 17350{ 17351 set +e 17352 as_fn_set_status $1 17353 exit $1 17354} # as_fn_exit 17355 17356# as_fn_unset VAR 17357# --------------- 17358# Portably unset VAR. 17359as_fn_unset () 17360{ 17361 { eval $1=; unset $1;} 17362} 17363as_unset=as_fn_unset 17364# as_fn_append VAR VALUE 17365# ---------------------- 17366# Append the text in VALUE to the end of the definition contained in VAR. Take 17367# advantage of any shell optimizations that allow amortized linear growth over 17368# repeated appends, instead of the typical quadratic growth present in naive 17369# implementations. 17370if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17371 eval 'as_fn_append () 17372 { 17373 eval $1+=\$2 17374 }' 17375else 17376 as_fn_append () 17377 { 17378 eval $1=\$$1\$2 17379 } 17380fi # as_fn_append 17381 17382# as_fn_arith ARG... 17383# ------------------ 17384# Perform arithmetic evaluation on the ARGs, and store the result in the 17385# global $as_val. Take advantage of shells that can avoid forks. The arguments 17386# must be portable across $(()) and expr. 17387if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17388 eval 'as_fn_arith () 17389 { 17390 as_val=$(( $* )) 17391 }' 17392else 17393 as_fn_arith () 17394 { 17395 as_val=`expr "$@" || test $? -eq 1` 17396 } 17397fi # as_fn_arith 17398 17399 17400if expr a : '\(a\)' >/dev/null 2>&1 && 17401 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17402 as_expr=expr 17403else 17404 as_expr=false 17405fi 17406 17407if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17408 as_basename=basename 17409else 17410 as_basename=false 17411fi 17412 17413if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17414 as_dirname=dirname 17415else 17416 as_dirname=false 17417fi 17418 17419as_me=`$as_basename -- "$0" || 17420$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17421 X"$0" : 'X\(//\)$' \| \ 17422 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17423$as_echo X/"$0" | 17424 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17425 s//\1/ 17426 q 17427 } 17428 /^X\/\(\/\/\)$/{ 17429 s//\1/ 17430 q 17431 } 17432 /^X\/\(\/\).*/{ 17433 s//\1/ 17434 q 17435 } 17436 s/.*/./; q'` 17437 17438# Avoid depending upon Character Ranges. 17439as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17440as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17441as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17442as_cr_digits='0123456789' 17443as_cr_alnum=$as_cr_Letters$as_cr_digits 17444 17445ECHO_C= ECHO_N= ECHO_T= 17446case `echo -n x` in #((((( 17447-n*) 17448 case `echo 'xy\c'` in 17449 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17450 xy) ECHO_C='\c';; 17451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17452 ECHO_T=' ';; 17453 esac;; 17454*) 17455 ECHO_N='-n';; 17456esac 17457 17458rm -f conf$$ conf$$.exe conf$$.file 17459if test -d conf$$.dir; then 17460 rm -f conf$$.dir/conf$$.file 17461else 17462 rm -f conf$$.dir 17463 mkdir conf$$.dir 2>/dev/null 17464fi 17465if (echo >conf$$.file) 2>/dev/null; then 17466 if ln -s conf$$.file conf$$ 2>/dev/null; then 17467 as_ln_s='ln -s' 17468 # ... but there are two gotchas: 17469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17471 # In both cases, we have to default to `cp -pR'. 17472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17473 as_ln_s='cp -pR' 17474 elif ln conf$$.file conf$$ 2>/dev/null; then 17475 as_ln_s=ln 17476 else 17477 as_ln_s='cp -pR' 17478 fi 17479else 17480 as_ln_s='cp -pR' 17481fi 17482rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17483rmdir conf$$.dir 2>/dev/null 17484 17485 17486# as_fn_mkdir_p 17487# ------------- 17488# Create "$as_dir" as a directory, including parents if necessary. 17489as_fn_mkdir_p () 17490{ 17491 17492 case $as_dir in #( 17493 -*) as_dir=./$as_dir;; 17494 esac 17495 test -d "$as_dir" || eval $as_mkdir_p || { 17496 as_dirs= 17497 while :; do 17498 case $as_dir in #( 17499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17500 *) as_qdir=$as_dir;; 17501 esac 17502 as_dirs="'$as_qdir' $as_dirs" 17503 as_dir=`$as_dirname -- "$as_dir" || 17504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17505 X"$as_dir" : 'X\(//\)[^/]' \| \ 17506 X"$as_dir" : 'X\(//\)$' \| \ 17507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17508$as_echo X"$as_dir" | 17509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17510 s//\1/ 17511 q 17512 } 17513 /^X\(\/\/\)[^/].*/{ 17514 s//\1/ 17515 q 17516 } 17517 /^X\(\/\/\)$/{ 17518 s//\1/ 17519 q 17520 } 17521 /^X\(\/\).*/{ 17522 s//\1/ 17523 q 17524 } 17525 s/.*/./; q'` 17526 test -d "$as_dir" && break 17527 done 17528 test -z "$as_dirs" || eval "mkdir $as_dirs" 17529 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17530 17531 17532} # as_fn_mkdir_p 17533if mkdir -p . 2>/dev/null; then 17534 as_mkdir_p='mkdir -p "$as_dir"' 17535else 17536 test -d ./-p && rmdir ./-p 17537 as_mkdir_p=false 17538fi 17539 17540 17541# as_fn_executable_p FILE 17542# ----------------------- 17543# Test if FILE is an executable regular file. 17544as_fn_executable_p () 17545{ 17546 test -f "$1" && test -x "$1" 17547} # as_fn_executable_p 17548as_test_x='test -x' 17549as_executable_p=as_fn_executable_p 17550 17551# Sed expression to map a string onto a valid CPP name. 17552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17553 17554# Sed expression to map a string onto a valid variable name. 17555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17556 17557 17558exec 6>&1 17559## ----------------------------------- ## 17560## Main body of $CONFIG_STATUS script. ## 17561## ----------------------------------- ## 17562_ASEOF 17563test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17564 17565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17566# Save the log message, to keep $0 and so on meaningful, and to 17567# report actual input values of CONFIG_FILES etc. instead of their 17568# values after options handling. 17569ac_log=" 17570This file was extended by libctf $as_me 1.2.0, which was 17571generated by GNU Autoconf 2.69. Invocation command line was 17572 17573 CONFIG_FILES = $CONFIG_FILES 17574 CONFIG_HEADERS = $CONFIG_HEADERS 17575 CONFIG_LINKS = $CONFIG_LINKS 17576 CONFIG_COMMANDS = $CONFIG_COMMANDS 17577 $ $0 $@ 17578 17579on `(hostname || uname -n) 2>/dev/null | sed 1q` 17580" 17581 17582_ACEOF 17583 17584case $ac_config_files in *" 17585"*) set x $ac_config_files; shift; ac_config_files=$*;; 17586esac 17587 17588case $ac_config_headers in *" 17589"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17590esac 17591 17592 17593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17594# Files that config.status was made for. 17595config_files="$ac_config_files" 17596config_headers="$ac_config_headers" 17597config_commands="$ac_config_commands" 17598 17599_ACEOF 17600 17601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17602ac_cs_usage="\ 17603\`$as_me' instantiates files and other configuration actions 17604from templates according to the current configuration. Unless the files 17605and actions are specified as TAGs, all are instantiated by default. 17606 17607Usage: $0 [OPTION]... [TAG]... 17608 17609 -h, --help print this help, then exit 17610 -V, --version print version number and configuration settings, then exit 17611 --config print configuration, then exit 17612 -q, --quiet, --silent 17613 do not print progress messages 17614 -d, --debug don't remove temporary files 17615 --recheck update $as_me by reconfiguring in the same conditions 17616 --file=FILE[:TEMPLATE] 17617 instantiate the configuration file FILE 17618 --header=FILE[:TEMPLATE] 17619 instantiate the configuration header FILE 17620 17621Configuration files: 17622$config_files 17623 17624Configuration headers: 17625$config_headers 17626 17627Configuration commands: 17628$config_commands 17629 17630Report bugs to the package provider." 17631 17632_ACEOF 17633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17634ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17635ac_cs_version="\\ 17636libctf config.status 1.2.0 17637configured by $0, generated by GNU Autoconf 2.69, 17638 with options \\"\$ac_cs_config\\" 17639 17640Copyright (C) 2012 Free Software Foundation, Inc. 17641This config.status script is free software; the Free Software Foundation 17642gives unlimited permission to copy, distribute and modify it." 17643 17644ac_pwd='$ac_pwd' 17645srcdir='$srcdir' 17646INSTALL='$INSTALL' 17647MKDIR_P='$MKDIR_P' 17648AWK='$AWK' 17649test -n "\$AWK" || AWK=awk 17650_ACEOF 17651 17652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17653# The default lists apply if the user does not specify any file. 17654ac_need_defaults=: 17655while test $# != 0 17656do 17657 case $1 in 17658 --*=?*) 17659 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17661 ac_shift=: 17662 ;; 17663 --*=) 17664 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17665 ac_optarg= 17666 ac_shift=: 17667 ;; 17668 *) 17669 ac_option=$1 17670 ac_optarg=$2 17671 ac_shift=shift 17672 ;; 17673 esac 17674 17675 case $ac_option in 17676 # Handling of the options. 17677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17678 ac_cs_recheck=: ;; 17679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17680 $as_echo "$ac_cs_version"; exit ;; 17681 --config | --confi | --conf | --con | --co | --c ) 17682 $as_echo "$ac_cs_config"; exit ;; 17683 --debug | --debu | --deb | --de | --d | -d ) 17684 debug=: ;; 17685 --file | --fil | --fi | --f ) 17686 $ac_shift 17687 case $ac_optarg in 17688 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17689 '') as_fn_error $? "missing file argument" ;; 17690 esac 17691 as_fn_append CONFIG_FILES " '$ac_optarg'" 17692 ac_need_defaults=false;; 17693 --header | --heade | --head | --hea ) 17694 $ac_shift 17695 case $ac_optarg in 17696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17697 esac 17698 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17699 ac_need_defaults=false;; 17700 --he | --h) 17701 # Conflict between --help and --header 17702 as_fn_error $? "ambiguous option: \`$1' 17703Try \`$0 --help' for more information.";; 17704 --help | --hel | -h ) 17705 $as_echo "$ac_cs_usage"; exit ;; 17706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17707 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17708 ac_cs_silent=: ;; 17709 17710 # This is an error. 17711 -*) as_fn_error $? "unrecognized option: \`$1' 17712Try \`$0 --help' for more information." ;; 17713 17714 *) as_fn_append ac_config_targets " $1" 17715 ac_need_defaults=false ;; 17716 17717 esac 17718 shift 17719done 17720 17721ac_configure_extra_args= 17722 17723if $ac_cs_silent; then 17724 exec 6>/dev/null 17725 ac_configure_extra_args="$ac_configure_extra_args --silent" 17726fi 17727 17728_ACEOF 17729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17730if \$ac_cs_recheck; then 17731 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17732 shift 17733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17734 CONFIG_SHELL='$SHELL' 17735 export CONFIG_SHELL 17736 exec "\$@" 17737fi 17738 17739_ACEOF 17740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17741exec 5>>config.log 17742{ 17743 echo 17744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17745## Running $as_me. ## 17746_ASBOX 17747 $as_echo "$ac_log" 17748} >&5 17749 17750_ACEOF 17751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17752# 17753# INIT-COMMANDS 17754# 17755AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17756# Capture the value of obsolete ALL_LINGUAS because we need it to compute 17757 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 17758 # from automake. 17759 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 17760 # Capture the value of LINGUAS because we need it to compute CATALOGS. 17761 LINGUAS="${LINGUAS-%UNSET%}" 17762 17763 17764 17765# The HP-UX ksh and POSIX shell print the target directory to stdout 17766# if CDPATH is set. 17767(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17768 17769sed_quote_subst='$sed_quote_subst' 17770double_quote_subst='$double_quote_subst' 17771delay_variable_subst='$delay_variable_subst' 17772enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17773macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17774macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17775enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17776pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17777enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17778SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17779ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17780host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17781host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17782host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17783build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17784build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17785build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17786SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17787Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17788GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17789EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17790FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17791LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17792NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17793LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17794max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17795ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17796exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17797lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17798lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17799lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17800reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17801reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17802OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17803deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17804file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17805AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17806AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17807STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17808RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17809old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17810old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17811old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17812lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17813CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17814CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17815compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17816GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17817lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17818lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17819lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17820lt_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"`' 17821objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17822MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17823lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17824lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17825lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17826lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17827lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17828need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17829DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17830NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17831LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17832OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17833OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17834libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17835shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17836extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17837archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17838enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17839export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17840whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17841compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17842old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17843old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17844archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17845archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17846module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17847module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17848with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17849allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17850no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17851hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17852hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 17853hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17854hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17855hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17856hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17857hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17858hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17859inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17860link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17861fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 17862always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17863export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17864exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17865include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17866prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17867file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17868variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17869need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17870need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17871version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17872runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17873shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17874shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17875libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17876library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17877soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17878install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17879postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17880postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17881finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17882finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17883hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17884sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17885sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17886hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17887enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17888enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17889enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17890old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17891striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17892 17893LTCC='$LTCC' 17894LTCFLAGS='$LTCFLAGS' 17895compiler='$compiler_DEFAULT' 17896 17897# A function that is used when there is no print builtin or printf. 17898func_fallback_echo () 17899{ 17900 eval 'cat <<_LTECHO_EOF 17901\$1 17902_LTECHO_EOF' 17903} 17904 17905# Quote evaled strings. 17906for var in SHELL \ 17907ECHO \ 17908SED \ 17909GREP \ 17910EGREP \ 17911FGREP \ 17912LD \ 17913NM \ 17914LN_S \ 17915lt_SP2NL \ 17916lt_NL2SP \ 17917reload_flag \ 17918OBJDUMP \ 17919deplibs_check_method \ 17920file_magic_cmd \ 17921AR \ 17922AR_FLAGS \ 17923STRIP \ 17924RANLIB \ 17925CC \ 17926CFLAGS \ 17927compiler \ 17928lt_cv_sys_global_symbol_pipe \ 17929lt_cv_sys_global_symbol_to_cdecl \ 17930lt_cv_sys_global_symbol_to_c_name_address \ 17931lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17932lt_prog_compiler_no_builtin_flag \ 17933lt_prog_compiler_wl \ 17934lt_prog_compiler_pic \ 17935lt_prog_compiler_static \ 17936lt_cv_prog_compiler_c_o \ 17937need_locks \ 17938DSYMUTIL \ 17939NMEDIT \ 17940LIPO \ 17941OTOOL \ 17942OTOOL64 \ 17943shrext_cmds \ 17944export_dynamic_flag_spec \ 17945whole_archive_flag_spec \ 17946compiler_needs_object \ 17947with_gnu_ld \ 17948allow_undefined_flag \ 17949no_undefined_flag \ 17950hardcode_libdir_flag_spec \ 17951hardcode_libdir_flag_spec_ld \ 17952hardcode_libdir_separator \ 17953fix_srcfile_path \ 17954exclude_expsyms \ 17955include_expsyms \ 17956file_list_spec \ 17957variables_saved_for_relink \ 17958libname_spec \ 17959library_names_spec \ 17960soname_spec \ 17961install_override_mode \ 17962finish_eval \ 17963old_striplib \ 17964striplib; do 17965 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17966 *[\\\\\\\`\\"\\\$]*) 17967 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17968 ;; 17969 *) 17970 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17971 ;; 17972 esac 17973done 17974 17975# Double-quote double-evaled strings. 17976for var in reload_cmds \ 17977old_postinstall_cmds \ 17978old_postuninstall_cmds \ 17979old_archive_cmds \ 17980extract_expsyms_cmds \ 17981old_archive_from_new_cmds \ 17982old_archive_from_expsyms_cmds \ 17983archive_cmds \ 17984archive_expsym_cmds \ 17985module_cmds \ 17986module_expsym_cmds \ 17987export_symbols_cmds \ 17988prelink_cmds \ 17989postinstall_cmds \ 17990postuninstall_cmds \ 17991finish_cmds \ 17992sys_lib_search_path_spec \ 17993sys_lib_dlsearch_path_spec; do 17994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17995 *[\\\\\\\`\\"\\\$]*) 17996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17997 ;; 17998 *) 17999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18000 ;; 18001 esac 18002done 18003 18004ac_aux_dir='$ac_aux_dir' 18005xsi_shell='$xsi_shell' 18006lt_shell_append='$lt_shell_append' 18007 18008# See if we are running on zsh, and set the options which allow our 18009# commands through without removal of \ escapes INIT. 18010if test -n "\${ZSH_VERSION+set}" ; then 18011 setopt NO_GLOB_SUBST 18012fi 18013 18014 18015 PACKAGE='$PACKAGE' 18016 VERSION='$VERSION' 18017 TIMESTAMP='$TIMESTAMP' 18018 RM='$RM' 18019 ofile='$ofile' 18020 18021ac_aux_dir='$ac_aux_dir' 18022 18023 18024 18025_ACEOF 18026 18027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18028 18029# Handling of arguments. 18030for ac_config_target in $ac_config_targets 18031do 18032 case $ac_config_target in 18033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18034 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18035 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18037 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18038 18039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18040 esac 18041done 18042 18043 18044# If the user did not use the arguments to specify the items to instantiate, 18045# then the envvar interface is used. Set only those that are not. 18046# We use the long form for the default assignment because of an extremely 18047# bizarre bug on SunOS 4.1.3. 18048if $ac_need_defaults; then 18049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18052fi 18053 18054# Have a temporary directory for convenience. Make it in the build tree 18055# simply because there is no reason against having it here, and in addition, 18056# creating and moving files from /tmp can sometimes cause problems. 18057# Hook for its removal unless debugging. 18058# Note that there is a small window in which the directory will not be cleaned: 18059# after its creation but before its name has been assigned to `$tmp'. 18060$debug || 18061{ 18062 tmp= ac_tmp= 18063 trap 'exit_status=$? 18064 : "${ac_tmp:=$tmp}" 18065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18066' 0 18067 trap 'as_fn_exit 1' 1 2 13 15 18068} 18069# Create a (secure) tmp directory for tmp files. 18070 18071{ 18072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18073 test -d "$tmp" 18074} || 18075{ 18076 tmp=./conf$$-$RANDOM 18077 (umask 077 && mkdir "$tmp") 18078} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18079ac_tmp=$tmp 18080 18081# Set up the scripts for CONFIG_FILES section. 18082# No need to generate them if there are no CONFIG_FILES. 18083# This happens for instance with `./config.status config.h'. 18084if test -n "$CONFIG_FILES"; then 18085 18086 18087ac_cr=`echo X | tr X '\015'` 18088# On cygwin, bash can eat \r inside `` if the user requested igncr. 18089# But we know of no other shell where ac_cr would be empty at this 18090# point, so we can use a bashism as a fallback. 18091if test "x$ac_cr" = x; then 18092 eval ac_cr=\$\'\\r\' 18093fi 18094ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18095if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18096 ac_cs_awk_cr='\\r' 18097else 18098 ac_cs_awk_cr=$ac_cr 18099fi 18100 18101echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18102_ACEOF 18103 18104 18105{ 18106 echo "cat >conf$$subs.awk <<_ACEOF" && 18107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18108 echo "_ACEOF" 18109} >conf$$subs.sh || 18110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18111ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18112ac_delim='%!_!# ' 18113for ac_last_try in false false false false false :; do 18114 . ./conf$$subs.sh || 18115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18116 18117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18118 if test $ac_delim_n = $ac_delim_num; then 18119 break 18120 elif $ac_last_try; then 18121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18122 else 18123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18124 fi 18125done 18126rm -f conf$$subs.sh 18127 18128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18129cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18130_ACEOF 18131sed -n ' 18132h 18133s/^/S["/; s/!.*/"]=/ 18134p 18135g 18136s/^[^!]*!// 18137:repl 18138t repl 18139s/'"$ac_delim"'$// 18140t delim 18141:nl 18142h 18143s/\(.\{148\}\)..*/\1/ 18144t more1 18145s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18146p 18147n 18148b repl 18149:more1 18150s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18151p 18152g 18153s/.\{148\}// 18154t nl 18155:delim 18156h 18157s/\(.\{148\}\)..*/\1/ 18158t more2 18159s/["\\]/\\&/g; s/^/"/; s/$/"/ 18160p 18161b 18162:more2 18163s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18164p 18165g 18166s/.\{148\}// 18167t delim 18168' <conf$$subs.awk | sed ' 18169/^[^""]/{ 18170 N 18171 s/\n// 18172} 18173' >>$CONFIG_STATUS || ac_write_fail=1 18174rm -f conf$$subs.awk 18175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18176_ACAWK 18177cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18178 for (key in S) S_is_set[key] = 1 18179 FS = "" 18180 18181} 18182{ 18183 line = $ 0 18184 nfields = split(line, field, "@") 18185 substed = 0 18186 len = length(field[1]) 18187 for (i = 2; i < nfields; i++) { 18188 key = field[i] 18189 keylen = length(key) 18190 if (S_is_set[key]) { 18191 value = S[key] 18192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18193 len += length(value) + length(field[++i]) 18194 substed = 1 18195 } else 18196 len += 1 + keylen 18197 } 18198 18199 print line 18200} 18201 18202_ACAWK 18203_ACEOF 18204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18205if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18207else 18208 cat 18209fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18210 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18211_ACEOF 18212 18213# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18214# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18215# trailing colons and then remove the whole line if VPATH becomes empty 18216# (actually we leave an empty line to preserve line numbers). 18217if test "x$srcdir" = x.; then 18218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18219h 18220s/// 18221s/^/:/ 18222s/[ ]*$/:/ 18223s/:\$(srcdir):/:/g 18224s/:\${srcdir}:/:/g 18225s/:@srcdir@:/:/g 18226s/^:*// 18227s/:*$// 18228x 18229s/\(=[ ]*\).*/\1/ 18230G 18231s/\n// 18232s/^[^=]*=[ ]*$// 18233}' 18234fi 18235 18236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18237fi # test -n "$CONFIG_FILES" 18238 18239# Set up the scripts for CONFIG_HEADERS section. 18240# No need to generate them if there are no CONFIG_HEADERS. 18241# This happens for instance with `./config.status Makefile'. 18242if test -n "$CONFIG_HEADERS"; then 18243cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18244BEGIN { 18245_ACEOF 18246 18247# Transform confdefs.h into an awk script `defines.awk', embedded as 18248# here-document in config.status, that substitutes the proper values into 18249# config.h.in to produce config.h. 18250 18251# Create a delimiter string that does not exist in confdefs.h, to ease 18252# handling of long lines. 18253ac_delim='%!_!# ' 18254for ac_last_try in false false :; do 18255 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18256 if test -z "$ac_tt"; then 18257 break 18258 elif $ac_last_try; then 18259 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18260 else 18261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18262 fi 18263done 18264 18265# For the awk script, D is an array of macro values keyed by name, 18266# likewise P contains macro parameters if any. Preserve backslash 18267# newline sequences. 18268 18269ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18270sed -n ' 18271s/.\{148\}/&'"$ac_delim"'/g 18272t rset 18273:rset 18274s/^[ ]*#[ ]*define[ ][ ]*/ / 18275t def 18276d 18277:def 18278s/\\$// 18279t bsnl 18280s/["\\]/\\&/g 18281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18282D["\1"]=" \3"/p 18283s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18284d 18285:bsnl 18286s/["\\]/\\&/g 18287s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18288D["\1"]=" \3\\\\\\n"\\/p 18289t cont 18290s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18291t cont 18292d 18293:cont 18294n 18295s/.\{148\}/&'"$ac_delim"'/g 18296t clear 18297:clear 18298s/\\$// 18299t bsnlc 18300s/["\\]/\\&/g; s/^/"/; s/$/"/p 18301d 18302:bsnlc 18303s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18304b cont 18305' <confdefs.h | sed ' 18306s/'"$ac_delim"'/"\\\ 18307"/g' >>$CONFIG_STATUS || ac_write_fail=1 18308 18309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18310 for (key in D) D_is_set[key] = 1 18311 FS = "" 18312} 18313/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18314 line = \$ 0 18315 split(line, arg, " ") 18316 if (arg[1] == "#") { 18317 defundef = arg[2] 18318 mac1 = arg[3] 18319 } else { 18320 defundef = substr(arg[1], 2) 18321 mac1 = arg[2] 18322 } 18323 split(mac1, mac2, "(") #) 18324 macro = mac2[1] 18325 prefix = substr(line, 1, index(line, defundef) - 1) 18326 if (D_is_set[macro]) { 18327 # Preserve the white space surrounding the "#". 18328 print prefix "define", macro P[macro] D[macro] 18329 next 18330 } else { 18331 # Replace #undef with comments. This is necessary, for example, 18332 # in the case of _POSIX_SOURCE, which is predefined and required 18333 # on some systems where configure will not decide to define it. 18334 if (defundef == "undef") { 18335 print "/*", prefix defundef, macro, "*/" 18336 next 18337 } 18338 } 18339} 18340{ print } 18341_ACAWK 18342_ACEOF 18343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18344 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18345fi # test -n "$CONFIG_HEADERS" 18346 18347 18348eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18349shift 18350for ac_tag 18351do 18352 case $ac_tag in 18353 :[FHLC]) ac_mode=$ac_tag; continue;; 18354 esac 18355 case $ac_mode$ac_tag in 18356 :[FHL]*:*);; 18357 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18358 :[FH]-) ac_tag=-:-;; 18359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18360 esac 18361 ac_save_IFS=$IFS 18362 IFS=: 18363 set x $ac_tag 18364 IFS=$ac_save_IFS 18365 shift 18366 ac_file=$1 18367 shift 18368 18369 case $ac_mode in 18370 :L) ac_source=$1;; 18371 :[FH]) 18372 ac_file_inputs= 18373 for ac_f 18374 do 18375 case $ac_f in 18376 -) ac_f="$ac_tmp/stdin";; 18377 *) # Look for the file first in the build tree, then in the source tree 18378 # (if the path is not absolute). The absolute path cannot be DOS-style, 18379 # because $ac_f cannot contain `:'. 18380 test -f "$ac_f" || 18381 case $ac_f in 18382 [\\/$]*) false;; 18383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18384 esac || 18385 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18386 esac 18387 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18388 as_fn_append ac_file_inputs " '$ac_f'" 18389 done 18390 18391 # Let's still pretend it is `configure' which instantiates (i.e., don't 18392 # use $as_me), people would be surprised to read: 18393 # /* config.h. Generated by config.status. */ 18394 configure_input='Generated from '` 18395 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18396 `' by configure.' 18397 if test x"$ac_file" != x-; then 18398 configure_input="$ac_file. $configure_input" 18399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18400$as_echo "$as_me: creating $ac_file" >&6;} 18401 fi 18402 # Neutralize special characters interpreted by sed in replacement strings. 18403 case $configure_input in #( 18404 *\&* | *\|* | *\\* ) 18405 ac_sed_conf_input=`$as_echo "$configure_input" | 18406 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18407 *) ac_sed_conf_input=$configure_input;; 18408 esac 18409 18410 case $ac_tag in 18411 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18413 esac 18414 ;; 18415 esac 18416 18417 ac_dir=`$as_dirname -- "$ac_file" || 18418$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18419 X"$ac_file" : 'X\(//\)[^/]' \| \ 18420 X"$ac_file" : 'X\(//\)$' \| \ 18421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18422$as_echo X"$ac_file" | 18423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18424 s//\1/ 18425 q 18426 } 18427 /^X\(\/\/\)[^/].*/{ 18428 s//\1/ 18429 q 18430 } 18431 /^X\(\/\/\)$/{ 18432 s//\1/ 18433 q 18434 } 18435 /^X\(\/\).*/{ 18436 s//\1/ 18437 q 18438 } 18439 s/.*/./; q'` 18440 as_dir="$ac_dir"; as_fn_mkdir_p 18441 ac_builddir=. 18442 18443case "$ac_dir" in 18444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18445*) 18446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18447 # A ".." for each directory in $ac_dir_suffix. 18448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18449 case $ac_top_builddir_sub in 18450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18452 esac ;; 18453esac 18454ac_abs_top_builddir=$ac_pwd 18455ac_abs_builddir=$ac_pwd$ac_dir_suffix 18456# for backward compatibility: 18457ac_top_builddir=$ac_top_build_prefix 18458 18459case $srcdir in 18460 .) # We are building in place. 18461 ac_srcdir=. 18462 ac_top_srcdir=$ac_top_builddir_sub 18463 ac_abs_top_srcdir=$ac_pwd ;; 18464 [\\/]* | ?:[\\/]* ) # Absolute name. 18465 ac_srcdir=$srcdir$ac_dir_suffix; 18466 ac_top_srcdir=$srcdir 18467 ac_abs_top_srcdir=$srcdir ;; 18468 *) # Relative name. 18469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18470 ac_top_srcdir=$ac_top_build_prefix$srcdir 18471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18472esac 18473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18474 18475 18476 case $ac_mode in 18477 :F) 18478 # 18479 # CONFIG_FILE 18480 # 18481 18482 case $INSTALL in 18483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18485 esac 18486 ac_MKDIR_P=$MKDIR_P 18487 case $MKDIR_P in 18488 [\\/$]* | ?:[\\/]* ) ;; 18489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18490 esac 18491_ACEOF 18492 18493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18494# If the template does not know about datarootdir, expand it. 18495# FIXME: This hack should be removed a few years after 2.60. 18496ac_datarootdir_hack=; ac_datarootdir_seen= 18497ac_sed_dataroot=' 18498/datarootdir/ { 18499 p 18500 q 18501} 18502/@datadir@/p 18503/@docdir@/p 18504/@infodir@/p 18505/@localedir@/p 18506/@mandir@/p' 18507case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18508*datarootdir*) ac_datarootdir_seen=yes;; 18509*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18511$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18512_ACEOF 18513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18514 ac_datarootdir_hack=' 18515 s&@datadir@&$datadir&g 18516 s&@docdir@&$docdir&g 18517 s&@infodir@&$infodir&g 18518 s&@localedir@&$localedir&g 18519 s&@mandir@&$mandir&g 18520 s&\\\${datarootdir}&$datarootdir&g' ;; 18521esac 18522_ACEOF 18523 18524# Neutralize VPATH when `$srcdir' = `.'. 18525# Shell code in configure.ac might set extrasub. 18526# FIXME: do we really want to maintain this feature? 18527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18528ac_sed_extra="$ac_vpsub 18529$extrasub 18530_ACEOF 18531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18532:t 18533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18534s|@configure_input@|$ac_sed_conf_input|;t t 18535s&@top_builddir@&$ac_top_builddir_sub&;t t 18536s&@top_build_prefix@&$ac_top_build_prefix&;t t 18537s&@srcdir@&$ac_srcdir&;t t 18538s&@abs_srcdir@&$ac_abs_srcdir&;t t 18539s&@top_srcdir@&$ac_top_srcdir&;t t 18540s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18541s&@builddir@&$ac_builddir&;t t 18542s&@abs_builddir@&$ac_abs_builddir&;t t 18543s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18544s&@INSTALL@&$ac_INSTALL&;t t 18545s&@MKDIR_P@&$ac_MKDIR_P&;t t 18546$ac_datarootdir_hack 18547" 18548eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18550 18551test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18554 "$ac_tmp/out"`; test -z "$ac_out"; } && 18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18556which seems to be undefined. Please make sure it is defined" >&5 18557$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18558which seems to be undefined. Please make sure it is defined" >&2;} 18559 18560 rm -f "$ac_tmp/stdin" 18561 case $ac_file in 18562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18564 esac \ 18565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18566 ;; 18567 :H) 18568 # 18569 # CONFIG_HEADER 18570 # 18571 if test x"$ac_file" != x-; then 18572 { 18573 $as_echo "/* $configure_input */" \ 18574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18575 } >"$ac_tmp/config.h" \ 18576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18578 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18579$as_echo "$as_me: $ac_file is unchanged" >&6;} 18580 else 18581 rm -f "$ac_file" 18582 mv "$ac_tmp/config.h" "$ac_file" \ 18583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18584 fi 18585 else 18586 $as_echo "/* $configure_input */" \ 18587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18588 || as_fn_error $? "could not create -" "$LINENO" 5 18589 fi 18590# Compute "$ac_file"'s index in $config_headers. 18591_am_arg="$ac_file" 18592_am_stamp_count=1 18593for _am_header in $config_headers :; do 18594 case $_am_header in 18595 $_am_arg | $_am_arg:* ) 18596 break ;; 18597 * ) 18598 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18599 esac 18600done 18601echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18602$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18603 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18604 X"$_am_arg" : 'X\(//\)$' \| \ 18605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18606$as_echo X"$_am_arg" | 18607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18608 s//\1/ 18609 q 18610 } 18611 /^X\(\/\/\)[^/].*/{ 18612 s//\1/ 18613 q 18614 } 18615 /^X\(\/\/\)$/{ 18616 s//\1/ 18617 q 18618 } 18619 /^X\(\/\).*/{ 18620 s//\1/ 18621 q 18622 } 18623 s/.*/./; q'`/stamp-h$_am_stamp_count 18624 ;; 18625 18626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18627$as_echo "$as_me: executing $ac_file commands" >&6;} 18628 ;; 18629 esac 18630 18631 18632 case $ac_file$ac_mode in 18633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18634 # Older Autoconf quotes --file arguments for eval, but not when files 18635 # are listed without --file. Let's play safe and only enable the eval 18636 # if we detect the quoting. 18637 case $CONFIG_FILES in 18638 *\'*) eval set x "$CONFIG_FILES" ;; 18639 *) set x $CONFIG_FILES ;; 18640 esac 18641 shift 18642 for mf 18643 do 18644 # Strip MF so we end up with the name of the file. 18645 mf=`echo "$mf" | sed -e 's/:.*$//'` 18646 # Check whether this is an Automake generated Makefile or not. 18647 # We used to match only the files named 'Makefile.in', but 18648 # some people rename them; so instead we look at the file content. 18649 # Grep'ing the first line is not enough: some people post-process 18650 # each Makefile.in and add a new line on top of each file to say so. 18651 # Grep'ing the whole file is not good either: AIX grep has a line 18652 # limit of 2048, but all sed's we know have understand at least 4000. 18653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18654 dirpart=`$as_dirname -- "$mf" || 18655$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18656 X"$mf" : 'X\(//\)[^/]' \| \ 18657 X"$mf" : 'X\(//\)$' \| \ 18658 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18659$as_echo X"$mf" | 18660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18661 s//\1/ 18662 q 18663 } 18664 /^X\(\/\/\)[^/].*/{ 18665 s//\1/ 18666 q 18667 } 18668 /^X\(\/\/\)$/{ 18669 s//\1/ 18670 q 18671 } 18672 /^X\(\/\).*/{ 18673 s//\1/ 18674 q 18675 } 18676 s/.*/./; q'` 18677 else 18678 continue 18679 fi 18680 # Extract the definition of DEPDIR, am__include, and am__quote 18681 # from the Makefile without running 'make'. 18682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18683 test -z "$DEPDIR" && continue 18684 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18685 test -z "$am__include" && continue 18686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18687 # Find all dependency output files, they are included files with 18688 # $(DEPDIR) in their names. We invoke sed twice because it is the 18689 # simplest approach to changing $(DEPDIR) to its actual value in the 18690 # expansion. 18691 for file in `sed -n " 18692 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18693 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18694 # Make sure the directory exists. 18695 test -f "$dirpart/$file" && continue 18696 fdir=`$as_dirname -- "$file" || 18697$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18698 X"$file" : 'X\(//\)[^/]' \| \ 18699 X"$file" : 'X\(//\)$' \| \ 18700 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18701$as_echo X"$file" | 18702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18703 s//\1/ 18704 q 18705 } 18706 /^X\(\/\/\)[^/].*/{ 18707 s//\1/ 18708 q 18709 } 18710 /^X\(\/\/\)$/{ 18711 s//\1/ 18712 q 18713 } 18714 /^X\(\/\).*/{ 18715 s//\1/ 18716 q 18717 } 18718 s/.*/./; q'` 18719 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18720 # echo "creating $dirpart/$file" 18721 echo '# dummy' > "$dirpart/$file" 18722 done 18723 done 18724} 18725 ;; 18726 "default-1":C) 18727 for ac_file in $CONFIG_FILES; do 18728 # Support "outfile[:infile[:infile...]]" 18729 case "$ac_file" in 18730 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 18731 esac 18732 # PO directories have a Makefile.in generated from Makefile.in.in. 18733 case "$ac_file" in */Makefile.in) 18734 # Adjust a relative srcdir. 18735 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 18736 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 18737 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 18738 # In autoconf-2.13 it is called $ac_given_srcdir. 18739 # In autoconf-2.50 it is called $srcdir. 18740 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 18741 case "$ac_given_srcdir" in 18742 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 18743 /*) top_srcdir="$ac_given_srcdir" ;; 18744 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 18745 esac 18746 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 18747 rm -f "$ac_dir/POTFILES" 18748 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 18749 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 18750 POMAKEFILEDEPS="POTFILES.in" 18751 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 18752 # on $ac_dir but don't depend on user-specified configuration 18753 # parameters. 18754 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 18755 # The LINGUAS file contains the set of available languages. 18756 if test -n "$OBSOLETE_ALL_LINGUAS"; then 18757 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 18758 fi 18759 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 18760 # Hide the ALL_LINGUAS assigment from automake. 18761 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 18762 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 18763 else 18764 # The set of available languages was given in configure.ac. 18765 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 18766 fi 18767 case "$ac_given_srcdir" in 18768 .) srcdirpre= ;; 18769 *) srcdirpre='$(srcdir)/' ;; 18770 esac 18771 POFILES= 18772 GMOFILES= 18773 UPDATEPOFILES= 18774 DUMMYPOFILES= 18775 for lang in $ALL_LINGUAS; do 18776 POFILES="$POFILES $srcdirpre$lang.po" 18777 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 18778 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 18779 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 18780 done 18781 # CATALOGS depends on both $ac_dir and the user's LINGUAS 18782 # environment variable. 18783 INST_LINGUAS= 18784 if test -n "$ALL_LINGUAS"; then 18785 for presentlang in $ALL_LINGUAS; do 18786 useit=no 18787 if test "%UNSET%" != "$LINGUAS"; then 18788 desiredlanguages="$LINGUAS" 18789 else 18790 desiredlanguages="$ALL_LINGUAS" 18791 fi 18792 for desiredlang in $desiredlanguages; do 18793 # Use the presentlang catalog if desiredlang is 18794 # a. equal to presentlang, or 18795 # b. a variant of presentlang (because in this case, 18796 # presentlang can be used as a fallback for messages 18797 # which are not translated in the desiredlang catalog). 18798 case "$desiredlang" in 18799 "$presentlang"*) useit=yes;; 18800 esac 18801 done 18802 if test $useit = yes; then 18803 INST_LINGUAS="$INST_LINGUAS $presentlang" 18804 fi 18805 done 18806 fi 18807 CATALOGS= 18808 if test -n "$INST_LINGUAS"; then 18809 for lang in $INST_LINGUAS; do 18810 CATALOGS="$CATALOGS $lang.gmo" 18811 done 18812 fi 18813 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 18814 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 18815 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 18816 if test -f "$f"; then 18817 case "$f" in 18818 *.orig | *.bak | *~) ;; 18819 *) cat "$f" >> "$ac_dir/Makefile" ;; 18820 esac 18821 fi 18822 done 18823 fi 18824 ;; 18825 esac 18826 done ;; 18827 "libtool":C) 18828 18829 # See if we are running on zsh, and set the options which allow our 18830 # commands through without removal of \ escapes. 18831 if test -n "${ZSH_VERSION+set}" ; then 18832 setopt NO_GLOB_SUBST 18833 fi 18834 18835 cfgfile="${ofile}T" 18836 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18837 $RM "$cfgfile" 18838 18839 cat <<_LT_EOF >> "$cfgfile" 18840#! $SHELL 18841 18842# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18843# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18844# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18845# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18846# 18847# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18848# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 18849# Written by Gordon Matzigkeit, 1996 18850# 18851# This file is part of GNU Libtool. 18852# 18853# GNU Libtool is free software; you can redistribute it and/or 18854# modify it under the terms of the GNU General Public License as 18855# published by the Free Software Foundation; either version 2 of 18856# the License, or (at your option) any later version. 18857# 18858# As a special exception to the GNU General Public License, 18859# if you distribute this file as part of a program or library that 18860# is built using GNU Libtool, you may include this file under the 18861# same distribution terms that you use for the rest of that program. 18862# 18863# GNU Libtool is distributed in the hope that it will be useful, 18864# but WITHOUT ANY WARRANTY; without even the implied warranty of 18865# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18866# GNU General Public License for more details. 18867# 18868# You should have received a copy of the GNU General Public License 18869# along with GNU Libtool; see the file COPYING. If not, a copy 18870# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18871# obtained by writing to the Free Software Foundation, Inc., 18872# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18873 18874 18875# The names of the tagged configurations supported by this script. 18876available_tags="" 18877 18878# ### BEGIN LIBTOOL CONFIG 18879 18880# Whether or not to build shared libraries. 18881build_libtool_libs=$enable_shared 18882 18883# Which release of libtool.m4 was used? 18884macro_version=$macro_version 18885macro_revision=$macro_revision 18886 18887# Whether or not to build static libraries. 18888build_old_libs=$enable_static 18889 18890# What type of objects to build. 18891pic_mode=$pic_mode 18892 18893# Whether or not to optimize for fast installation. 18894fast_install=$enable_fast_install 18895 18896# Shell to use when invoking shell scripts. 18897SHELL=$lt_SHELL 18898 18899# An echo program that protects backslashes. 18900ECHO=$lt_ECHO 18901 18902# The host system. 18903host_alias=$host_alias 18904host=$host 18905host_os=$host_os 18906 18907# The build system. 18908build_alias=$build_alias 18909build=$build 18910build_os=$build_os 18911 18912# A sed program that does not truncate output. 18913SED=$lt_SED 18914 18915# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18916Xsed="\$SED -e 1s/^X//" 18917 18918# A grep program that handles long lines. 18919GREP=$lt_GREP 18920 18921# An ERE matcher. 18922EGREP=$lt_EGREP 18923 18924# A literal string matcher. 18925FGREP=$lt_FGREP 18926 18927# A BSD- or MS-compatible name lister. 18928NM=$lt_NM 18929 18930# Whether we need soft or hard links. 18931LN_S=$lt_LN_S 18932 18933# What is the maximum length of a command? 18934max_cmd_len=$max_cmd_len 18935 18936# Object file suffix (normally "o"). 18937objext=$ac_objext 18938 18939# Executable file suffix (normally ""). 18940exeext=$exeext 18941 18942# whether the shell understands "unset". 18943lt_unset=$lt_unset 18944 18945# turn spaces into newlines. 18946SP2NL=$lt_lt_SP2NL 18947 18948# turn newlines into spaces. 18949NL2SP=$lt_lt_NL2SP 18950 18951# An object symbol dumper. 18952OBJDUMP=$lt_OBJDUMP 18953 18954# Method to check whether dependent libraries are shared objects. 18955deplibs_check_method=$lt_deplibs_check_method 18956 18957# Command to use when deplibs_check_method == "file_magic". 18958file_magic_cmd=$lt_file_magic_cmd 18959 18960# The archiver. 18961AR=$lt_AR 18962AR_FLAGS=$lt_AR_FLAGS 18963 18964# A symbol stripping program. 18965STRIP=$lt_STRIP 18966 18967# Commands used to install an old-style archive. 18968RANLIB=$lt_RANLIB 18969old_postinstall_cmds=$lt_old_postinstall_cmds 18970old_postuninstall_cmds=$lt_old_postuninstall_cmds 18971 18972# Whether to use a lock for old archive extraction. 18973lock_old_archive_extraction=$lock_old_archive_extraction 18974 18975# A C compiler. 18976LTCC=$lt_CC 18977 18978# LTCC compiler flags. 18979LTCFLAGS=$lt_CFLAGS 18980 18981# Take the output of nm and produce a listing of raw symbols and C names. 18982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18983 18984# Transform the output of nm in a proper C declaration. 18985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18986 18987# Transform the output of nm in a C name address pair. 18988global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18989 18990# Transform the output of nm in a C name address pair when lib prefix is needed. 18991global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18992 18993# The name of the directory that contains temporary libtool files. 18994objdir=$objdir 18995 18996# Used to examine libraries when file_magic_cmd begins with "file". 18997MAGIC_CMD=$MAGIC_CMD 18998 18999# Must we lock files when doing compilation? 19000need_locks=$lt_need_locks 19001 19002# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19003DSYMUTIL=$lt_DSYMUTIL 19004 19005# Tool to change global to local symbols on Mac OS X. 19006NMEDIT=$lt_NMEDIT 19007 19008# Tool to manipulate fat objects and archives on Mac OS X. 19009LIPO=$lt_LIPO 19010 19011# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19012OTOOL=$lt_OTOOL 19013 19014# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19015OTOOL64=$lt_OTOOL64 19016 19017# Old archive suffix (normally "a"). 19018libext=$libext 19019 19020# Shared library suffix (normally ".so"). 19021shrext_cmds=$lt_shrext_cmds 19022 19023# The commands to extract the exported symbol list from a shared archive. 19024extract_expsyms_cmds=$lt_extract_expsyms_cmds 19025 19026# Variables whose values should be saved in libtool wrapper scripts and 19027# restored at link time. 19028variables_saved_for_relink=$lt_variables_saved_for_relink 19029 19030# Do we need the "lib" prefix for modules? 19031need_lib_prefix=$need_lib_prefix 19032 19033# Do we need a version for libraries? 19034need_version=$need_version 19035 19036# Library versioning type. 19037version_type=$version_type 19038 19039# Shared library runtime path variable. 19040runpath_var=$runpath_var 19041 19042# Shared library path variable. 19043shlibpath_var=$shlibpath_var 19044 19045# Is shlibpath searched before the hard-coded library search path? 19046shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19047 19048# Format of library name prefix. 19049libname_spec=$lt_libname_spec 19050 19051# List of archive names. First name is the real one, the rest are links. 19052# The last name is the one that the linker finds with -lNAME 19053library_names_spec=$lt_library_names_spec 19054 19055# The coded name of the library, if different from the real name. 19056soname_spec=$lt_soname_spec 19057 19058# Permission mode override for installation of shared libraries. 19059install_override_mode=$lt_install_override_mode 19060 19061# Command to use after installation of a shared archive. 19062postinstall_cmds=$lt_postinstall_cmds 19063 19064# Command to use after uninstallation of a shared archive. 19065postuninstall_cmds=$lt_postuninstall_cmds 19066 19067# Commands used to finish a libtool library installation in a directory. 19068finish_cmds=$lt_finish_cmds 19069 19070# As "finish_cmds", except a single script fragment to be evaled but 19071# not shown. 19072finish_eval=$lt_finish_eval 19073 19074# Whether we should hardcode library paths into libraries. 19075hardcode_into_libs=$hardcode_into_libs 19076 19077# Compile-time system search path for libraries. 19078sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19079 19080# Run-time system search path for libraries. 19081sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19082 19083# Whether dlopen is supported. 19084dlopen_support=$enable_dlopen 19085 19086# Whether dlopen of programs is supported. 19087dlopen_self=$enable_dlopen_self 19088 19089# Whether dlopen of statically linked programs is supported. 19090dlopen_self_static=$enable_dlopen_self_static 19091 19092# Commands to strip libraries. 19093old_striplib=$lt_old_striplib 19094striplib=$lt_striplib 19095 19096 19097# The linker used to build libraries. 19098LD=$lt_LD 19099 19100# How to create reloadable object files. 19101reload_flag=$lt_reload_flag 19102reload_cmds=$lt_reload_cmds 19103 19104# Commands used to build an old-style archive. 19105old_archive_cmds=$lt_old_archive_cmds 19106 19107# A language specific compiler. 19108CC=$lt_compiler 19109 19110# Is the compiler the GNU compiler? 19111with_gcc=$GCC 19112 19113# Compiler flag to turn off builtin functions. 19114no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19115 19116# How to pass a linker flag through the compiler. 19117wl=$lt_lt_prog_compiler_wl 19118 19119# Additional compiler flags for building library objects. 19120pic_flag=$lt_lt_prog_compiler_pic 19121 19122# Compiler flag to prevent dynamic linking. 19123link_static_flag=$lt_lt_prog_compiler_static 19124 19125# Does compiler simultaneously support -c and -o options? 19126compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19127 19128# Whether or not to add -lc for building shared libraries. 19129build_libtool_need_lc=$archive_cmds_need_lc 19130 19131# Whether or not to disallow shared libs when runtime libs are static. 19132allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19133 19134# Compiler flag to allow reflexive dlopens. 19135export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19136 19137# Compiler flag to generate shared objects directly from archives. 19138whole_archive_flag_spec=$lt_whole_archive_flag_spec 19139 19140# Whether the compiler copes with passing no objects directly. 19141compiler_needs_object=$lt_compiler_needs_object 19142 19143# Create an old-style archive from a shared archive. 19144old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19145 19146# Create a temporary old-style archive to link instead of a shared archive. 19147old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19148 19149# Commands used to build a shared archive. 19150archive_cmds=$lt_archive_cmds 19151archive_expsym_cmds=$lt_archive_expsym_cmds 19152 19153# Commands used to build a loadable module if different from building 19154# a shared archive. 19155module_cmds=$lt_module_cmds 19156module_expsym_cmds=$lt_module_expsym_cmds 19157 19158# Whether we are building with GNU ld or not. 19159with_gnu_ld=$lt_with_gnu_ld 19160 19161# Flag that allows shared libraries with undefined symbols to be built. 19162allow_undefined_flag=$lt_allow_undefined_flag 19163 19164# Flag that enforces no undefined symbols. 19165no_undefined_flag=$lt_no_undefined_flag 19166 19167# Flag to hardcode \$libdir into a binary during linking. 19168# This must work even if \$libdir does not exist 19169hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19170 19171# If ld is used when linking, flag to hardcode \$libdir into a binary 19172# during linking. This must work even if \$libdir does not exist. 19173hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19174 19175# Whether we need a single "-rpath" flag with a separated argument. 19176hardcode_libdir_separator=$lt_hardcode_libdir_separator 19177 19178# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19179# DIR into the resulting binary. 19180hardcode_direct=$hardcode_direct 19181 19182# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19183# DIR into the resulting binary and the resulting library dependency is 19184# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19185# library is relocated. 19186hardcode_direct_absolute=$hardcode_direct_absolute 19187 19188# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19189# into the resulting binary. 19190hardcode_minus_L=$hardcode_minus_L 19191 19192# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19193# into the resulting binary. 19194hardcode_shlibpath_var=$hardcode_shlibpath_var 19195 19196# Set to "yes" if building a shared library automatically hardcodes DIR 19197# into the library and all subsequent libraries and executables linked 19198# against it. 19199hardcode_automatic=$hardcode_automatic 19200 19201# Set to yes if linker adds runtime paths of dependent libraries 19202# to runtime path list. 19203inherit_rpath=$inherit_rpath 19204 19205# Whether libtool must link a program against all its dependency libraries. 19206link_all_deplibs=$link_all_deplibs 19207 19208# Fix the shell variable \$srcfile for the compiler. 19209fix_srcfile_path=$lt_fix_srcfile_path 19210 19211# Set to "yes" if exported symbols are required. 19212always_export_symbols=$always_export_symbols 19213 19214# The commands to list exported symbols. 19215export_symbols_cmds=$lt_export_symbols_cmds 19216 19217# Symbols that should not be listed in the preloaded symbols. 19218exclude_expsyms=$lt_exclude_expsyms 19219 19220# Symbols that must always be exported. 19221include_expsyms=$lt_include_expsyms 19222 19223# Commands necessary for linking programs (against libraries) with templates. 19224prelink_cmds=$lt_prelink_cmds 19225 19226# Specify filename containing input files. 19227file_list_spec=$lt_file_list_spec 19228 19229# How to hardcode a shared library path into an executable. 19230hardcode_action=$hardcode_action 19231 19232# ### END LIBTOOL CONFIG 19233 19234_LT_EOF 19235 19236 case $host_os in 19237 aix3*) 19238 cat <<\_LT_EOF >> "$cfgfile" 19239# AIX sometimes has problems with the GCC collect2 program. For some 19240# reason, if we set the COLLECT_NAMES environment variable, the problems 19241# vanish in a puff of smoke. 19242if test "X${COLLECT_NAMES+set}" != Xset; then 19243 COLLECT_NAMES= 19244 export COLLECT_NAMES 19245fi 19246_LT_EOF 19247 ;; 19248 esac 19249 19250 19251ltmain="$ac_aux_dir/ltmain.sh" 19252 19253 19254 # We use sed instead of cat because bash on DJGPP gets confused if 19255 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19256 # text mode, it properly converts lines to CR/LF. This bash problem 19257 # is reportedly fixed, but why not run on old versions too? 19258 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19259 || (rm -f "$cfgfile"; exit 1) 19260 19261 case $xsi_shell in 19262 yes) 19263 cat << \_LT_EOF >> "$cfgfile" 19264 19265# func_dirname file append nondir_replacement 19266# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19267# otherwise set result to NONDIR_REPLACEMENT. 19268func_dirname () 19269{ 19270 case ${1} in 19271 */*) func_dirname_result="${1%/*}${2}" ;; 19272 * ) func_dirname_result="${3}" ;; 19273 esac 19274} 19275 19276# func_basename file 19277func_basename () 19278{ 19279 func_basename_result="${1##*/}" 19280} 19281 19282# func_dirname_and_basename file append nondir_replacement 19283# perform func_basename and func_dirname in a single function 19284# call: 19285# dirname: Compute the dirname of FILE. If nonempty, 19286# add APPEND to the result, otherwise set result 19287# to NONDIR_REPLACEMENT. 19288# value returned in "$func_dirname_result" 19289# basename: Compute filename of FILE. 19290# value retuned in "$func_basename_result" 19291# Implementation must be kept synchronized with func_dirname 19292# and func_basename. For efficiency, we do not delegate to 19293# those functions but instead duplicate the functionality here. 19294func_dirname_and_basename () 19295{ 19296 case ${1} in 19297 */*) func_dirname_result="${1%/*}${2}" ;; 19298 * ) func_dirname_result="${3}" ;; 19299 esac 19300 func_basename_result="${1##*/}" 19301} 19302 19303# func_stripname prefix suffix name 19304# strip PREFIX and SUFFIX off of NAME. 19305# PREFIX and SUFFIX must not contain globbing or regex special 19306# characters, hashes, percent signs, but SUFFIX may contain a leading 19307# dot (in which case that matches only a dot). 19308func_stripname () 19309{ 19310 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19311 # positional parameters, so assign one to ordinary parameter first. 19312 func_stripname_result=${3} 19313 func_stripname_result=${func_stripname_result#"${1}"} 19314 func_stripname_result=${func_stripname_result%"${2}"} 19315} 19316 19317# func_opt_split 19318func_opt_split () 19319{ 19320 func_opt_split_opt=${1%%=*} 19321 func_opt_split_arg=${1#*=} 19322} 19323 19324# func_lo2o object 19325func_lo2o () 19326{ 19327 case ${1} in 19328 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19329 *) func_lo2o_result=${1} ;; 19330 esac 19331} 19332 19333# func_xform libobj-or-source 19334func_xform () 19335{ 19336 func_xform_result=${1%.*}.lo 19337} 19338 19339# func_arith arithmetic-term... 19340func_arith () 19341{ 19342 func_arith_result=$(( $* )) 19343} 19344 19345# func_len string 19346# STRING may not start with a hyphen. 19347func_len () 19348{ 19349 func_len_result=${#1} 19350} 19351 19352_LT_EOF 19353 ;; 19354 *) # Bourne compatible functions. 19355 cat << \_LT_EOF >> "$cfgfile" 19356 19357# func_dirname file append nondir_replacement 19358# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19359# otherwise set result to NONDIR_REPLACEMENT. 19360func_dirname () 19361{ 19362 # Extract subdirectory from the argument. 19363 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19364 if test "X$func_dirname_result" = "X${1}"; then 19365 func_dirname_result="${3}" 19366 else 19367 func_dirname_result="$func_dirname_result${2}" 19368 fi 19369} 19370 19371# func_basename file 19372func_basename () 19373{ 19374 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19375} 19376 19377 19378# func_stripname prefix suffix name 19379# strip PREFIX and SUFFIX off of NAME. 19380# PREFIX and SUFFIX must not contain globbing or regex special 19381# characters, hashes, percent signs, but SUFFIX may contain a leading 19382# dot (in which case that matches only a dot). 19383# func_strip_suffix prefix name 19384func_stripname () 19385{ 19386 case ${2} in 19387 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19388 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19389 esac 19390} 19391 19392# sed scripts: 19393my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19394my_sed_long_arg='1s/^-[^=]*=//' 19395 19396# func_opt_split 19397func_opt_split () 19398{ 19399 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19400 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19401} 19402 19403# func_lo2o object 19404func_lo2o () 19405{ 19406 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19407} 19408 19409# func_xform libobj-or-source 19410func_xform () 19411{ 19412 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19413} 19414 19415# func_arith arithmetic-term... 19416func_arith () 19417{ 19418 func_arith_result=`expr "$@"` 19419} 19420 19421# func_len string 19422# STRING may not start with a hyphen. 19423func_len () 19424{ 19425 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19426} 19427 19428_LT_EOF 19429esac 19430 19431case $lt_shell_append in 19432 yes) 19433 cat << \_LT_EOF >> "$cfgfile" 19434 19435# func_append var value 19436# Append VALUE to the end of shell variable VAR. 19437func_append () 19438{ 19439 eval "$1+=\$2" 19440} 19441_LT_EOF 19442 ;; 19443 *) 19444 cat << \_LT_EOF >> "$cfgfile" 19445 19446# func_append var value 19447# Append VALUE to the end of shell variable VAR. 19448func_append () 19449{ 19450 eval "$1=\$$1\$2" 19451} 19452 19453_LT_EOF 19454 ;; 19455 esac 19456 19457 19458 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19459 || (rm -f "$cfgfile"; exit 1) 19460 19461 mv -f "$cfgfile" "$ofile" || 19462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19463 chmod +x "$ofile" 19464 19465 ;; 19466 19467 esac 19468done # for ac_tag 19469 19470 19471as_fn_exit 0 19472_ACEOF 19473ac_clean_files=$ac_clean_files_save 19474 19475test $ac_write_fail = 0 || 19476 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19477 19478 19479# configure is writing to config.log, and then calls config.status. 19480# config.status does its own redirection, appending to config.log. 19481# Unfortunately, on DOS this fails, as config.log is still kept open 19482# by configure, so config.status won't be able to write to it; its 19483# output is simply discarded. So we exec the FD to /dev/null, 19484# effectively closing config.log, so it can be properly (re)opened and 19485# appended to by config.status. When coming back to configure, we 19486# need to make the FD available again. 19487if test "$no_create" != yes; then 19488 ac_cs_success=: 19489 ac_config_status_args= 19490 test "$silent" = yes && 19491 ac_config_status_args="$ac_config_status_args --quiet" 19492 exec 5>/dev/null 19493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19494 exec 5>>config.log 19495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19496 # would make configure fail if this is the last instruction. 19497 $ac_cs_success || as_fn_exit 1 19498fi 19499if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19501$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19502fi 19503 19504 19505 19506touch config.status.tmp 19507if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 19508 sed '/as_fn_exit 0/i \ 19509sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 19510touch --reference=Makefile Makefile.tmp \ 19511mv Makefile.tmp Makefile \ 19512' config.status > config.status.tmp 19513 touch --reference=config.status config.status.tmp 19514 mv config.status.tmp config.status 19515 chmod +x config.status 19516 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 19517 touch --reference=Makefile Makefile.tmp 19518 mv Makefile.tmp Makefile 19519else 19520 rm -f config.status.tmp 19521fi 19522