1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for gprof 2.27.0. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 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. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME='gprof' 558PACKAGE_TARNAME='gprof' 559PACKAGE_VERSION='2.27.0' 560PACKAGE_STRING='gprof 2.27.0' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='' 563 564ac_unique_file="gprof.c" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='am__EXEEXT_FALSE 602am__EXEEXT_TRUE 603LTLIBOBJS 604LIBOBJS 605WARN_WRITE_STRINGS 606NO_WERROR 607WARN_CFLAGS 608GENINSRC_NEVER_FALSE 609GENINSRC_NEVER_TRUE 610MAINT 611MAINTAINER_MODE_FALSE 612MAINTAINER_MODE_TRUE 613MSGMERGE 614MSGFMT 615MKINSTALLDIRS 616CATOBJEXT 617GENCAT 618INSTOBJEXT 619DATADIRNAME 620CATALOGS 621POSUB 622GMSGFMT 623XGETTEXT 624INCINTL 625LIBINTL_DEP 626LIBINTL 627USE_NLS 628OTOOL64 629OTOOL 630LIPO 631NMEDIT 632DSYMUTIL 633RANLIB 634AR 635OBJDUMP 636LN_S 637NM 638ac_ct_DUMPBIN 639DUMPBIN 640LD 641FGREP 642SED 643LIBTOOL 644EGREP 645GREP 646CPP 647am__fastdepCC_FALSE 648am__fastdepCC_TRUE 649CCDEPMODE 650am__nodep 651AMDEPBACKSLASH 652AMDEP_FALSE 653AMDEP_TRUE 654am__quote 655am__include 656DEPDIR 657am__untar 658am__tar 659AMTAR 660am__leading_dot 661SET_MAKE 662AWK 663mkdir_p 664MKDIR_P 665INSTALL_STRIP_PROGRAM 666STRIP 667install_sh 668MAKEINFO 669AUTOHEADER 670AUTOMAKE 671AUTOCONF 672ACLOCAL 673VERSION 674PACKAGE 675CYGPATH_W 676am__isrc 677INSTALL_DATA 678INSTALL_SCRIPT 679INSTALL_PROGRAM 680OBJEXT 681EXEEXT 682ac_ct_CC 683CPPFLAGS 684LDFLAGS 685CFLAGS 686CC 687target_os 688target_vendor 689target_cpu 690target 691host_os 692host_vendor 693host_cpu 694host 695build_os 696build_vendor 697build_cpu 698build 699target_alias 700host_alias 701build_alias 702LIBS 703ECHO_T 704ECHO_N 705ECHO_C 706DEFS 707mandir 708localedir 709libdir 710psdir 711pdfdir 712dvidir 713htmldir 714infodir 715docdir 716oldincludedir 717includedir 718localstatedir 719sharedstatedir 720sysconfdir 721datadir 722datarootdir 723libexecdir 724sbindir 725bindir 726program_transform_name 727prefix 728exec_prefix 729PACKAGE_URL 730PACKAGE_BUGREPORT 731PACKAGE_STRING 732PACKAGE_VERSION 733PACKAGE_TARNAME 734PACKAGE_NAME 735PATH_SEPARATOR 736SHELL' 737ac_subst_files='' 738ac_user_opts=' 739enable_option_checking 740enable_dependency_tracking 741enable_shared 742enable_static 743with_pic 744enable_fast_install 745with_gnu_ld 746enable_libtool_lock 747enable_plugins 748enable_largefile 749enable_nls 750enable_maintainer_mode 751enable_werror 752enable_build_warnings 753' 754 ac_precious_vars='build_alias 755host_alias 756target_alias 757CC 758CFLAGS 759LDFLAGS 760LIBS 761CPPFLAGS 762CPP' 763 764 765# Initialize some variables set by options. 766ac_init_help= 767ac_init_version=false 768ac_unrecognized_opts= 769ac_unrecognized_sep= 770# The variables have the same names as the options, with 771# dashes changed to underlines. 772cache_file=/dev/null 773exec_prefix=NONE 774no_create= 775no_recursion= 776prefix=NONE 777program_prefix=NONE 778program_suffix=NONE 779program_transform_name=s,x,x, 780silent= 781site= 782srcdir= 783verbose= 784x_includes=NONE 785x_libraries=NONE 786 787# Installation directory options. 788# These are left unexpanded so users can "make install exec_prefix=/foo" 789# and all the variables that are supposed to be based on exec_prefix 790# by default will actually change. 791# Use braces instead of parens because sh, perl, etc. also accept them. 792# (The list follows the same order as the GNU Coding Standards.) 793bindir='${exec_prefix}/bin' 794sbindir='${exec_prefix}/sbin' 795libexecdir='${exec_prefix}/libexec' 796datarootdir='${prefix}/share' 797datadir='${datarootdir}' 798sysconfdir='${prefix}/etc' 799sharedstatedir='${prefix}/com' 800localstatedir='${prefix}/var' 801includedir='${prefix}/include' 802oldincludedir='/usr/include' 803docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 804infodir='${datarootdir}/info' 805htmldir='${docdir}' 806dvidir='${docdir}' 807pdfdir='${docdir}' 808psdir='${docdir}' 809libdir='${exec_prefix}/lib' 810localedir='${datarootdir}/locale' 811mandir='${datarootdir}/man' 812 813ac_prev= 814ac_dashdash= 815for ac_option 816do 817 # If the previous option needs an argument, assign it. 818 if test -n "$ac_prev"; then 819 eval $ac_prev=\$ac_option 820 ac_prev= 821 continue 822 fi 823 824 case $ac_option in 825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 826 *) ac_optarg=yes ;; 827 esac 828 829 # Accept the important Cygnus configure options, so we can diagnose typos. 830 831 case $ac_dashdash$ac_option in 832 --) 833 ac_dashdash=yes ;; 834 835 -bindir | --bindir | --bindi | --bind | --bin | --bi) 836 ac_prev=bindir ;; 837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 838 bindir=$ac_optarg ;; 839 840 -build | --build | --buil | --bui | --bu) 841 ac_prev=build_alias ;; 842 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 843 build_alias=$ac_optarg ;; 844 845 -cache-file | --cache-file | --cache-fil | --cache-fi \ 846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 847 ac_prev=cache_file ;; 848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 850 cache_file=$ac_optarg ;; 851 852 --config-cache | -C) 853 cache_file=config.cache ;; 854 855 -datadir | --datadir | --datadi | --datad) 856 ac_prev=datadir ;; 857 -datadir=* | --datadir=* | --datadi=* | --datad=*) 858 datadir=$ac_optarg ;; 859 860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 861 | --dataroo | --dataro | --datar) 862 ac_prev=datarootdir ;; 863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 865 datarootdir=$ac_optarg ;; 866 867 -disable-* | --disable-*) 868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 869 # Reject names that are not valid shell variable names. 870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 871 as_fn_error "invalid feature name: $ac_useropt" 872 ac_useropt_orig=$ac_useropt 873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 874 case $ac_user_opts in 875 *" 876"enable_$ac_useropt" 877"*) ;; 878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 879 ac_unrecognized_sep=', ';; 880 esac 881 eval enable_$ac_useropt=no ;; 882 883 -docdir | --docdir | --docdi | --doc | --do) 884 ac_prev=docdir ;; 885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 886 docdir=$ac_optarg ;; 887 888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 889 ac_prev=dvidir ;; 890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 891 dvidir=$ac_optarg ;; 892 893 -enable-* | --enable-*) 894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 895 # Reject names that are not valid shell variable names. 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 897 as_fn_error "invalid feature name: $ac_useropt" 898 ac_useropt_orig=$ac_useropt 899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 900 case $ac_user_opts in 901 *" 902"enable_$ac_useropt" 903"*) ;; 904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 905 ac_unrecognized_sep=', ';; 906 esac 907 eval enable_$ac_useropt=\$ac_optarg ;; 908 909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 911 | --exec | --exe | --ex) 912 ac_prev=exec_prefix ;; 913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 915 | --exec=* | --exe=* | --ex=*) 916 exec_prefix=$ac_optarg ;; 917 918 -gas | --gas | --ga | --g) 919 # Obsolete; use --with-gas. 920 with_gas=yes ;; 921 922 -help | --help | --hel | --he | -h) 923 ac_init_help=long ;; 924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 925 ac_init_help=recursive ;; 926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 927 ac_init_help=short ;; 928 929 -host | --host | --hos | --ho) 930 ac_prev=host_alias ;; 931 -host=* | --host=* | --hos=* | --ho=*) 932 host_alias=$ac_optarg ;; 933 934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 935 ac_prev=htmldir ;; 936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 937 | --ht=*) 938 htmldir=$ac_optarg ;; 939 940 -includedir | --includedir | --includedi | --included | --include \ 941 | --includ | --inclu | --incl | --inc) 942 ac_prev=includedir ;; 943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 944 | --includ=* | --inclu=* | --incl=* | --inc=*) 945 includedir=$ac_optarg ;; 946 947 -infodir | --infodir | --infodi | --infod | --info | --inf) 948 ac_prev=infodir ;; 949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 950 infodir=$ac_optarg ;; 951 952 -libdir | --libdir | --libdi | --libd) 953 ac_prev=libdir ;; 954 -libdir=* | --libdir=* | --libdi=* | --libd=*) 955 libdir=$ac_optarg ;; 956 957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 958 | --libexe | --libex | --libe) 959 ac_prev=libexecdir ;; 960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 961 | --libexe=* | --libex=* | --libe=*) 962 libexecdir=$ac_optarg ;; 963 964 -localedir | --localedir | --localedi | --localed | --locale) 965 ac_prev=localedir ;; 966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 967 localedir=$ac_optarg ;; 968 969 -localstatedir | --localstatedir | --localstatedi | --localstated \ 970 | --localstate | --localstat | --localsta | --localst | --locals) 971 ac_prev=localstatedir ;; 972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 974 localstatedir=$ac_optarg ;; 975 976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 977 ac_prev=mandir ;; 978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 979 mandir=$ac_optarg ;; 980 981 -nfp | --nfp | --nf) 982 # Obsolete; use --without-fp. 983 with_fp=no ;; 984 985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 986 | --no-cr | --no-c | -n) 987 no_create=yes ;; 988 989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 991 no_recursion=yes ;; 992 993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 995 | --oldin | --oldi | --old | --ol | --o) 996 ac_prev=oldincludedir ;; 997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1000 oldincludedir=$ac_optarg ;; 1001 1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1003 ac_prev=prefix ;; 1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1005 prefix=$ac_optarg ;; 1006 1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1008 | --program-pre | --program-pr | --program-p) 1009 ac_prev=program_prefix ;; 1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1012 program_prefix=$ac_optarg ;; 1013 1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1015 | --program-suf | --program-su | --program-s) 1016 ac_prev=program_suffix ;; 1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1019 program_suffix=$ac_optarg ;; 1020 1021 -program-transform-name | --program-transform-name \ 1022 | --program-transform-nam | --program-transform-na \ 1023 | --program-transform-n | --program-transform- \ 1024 | --program-transform | --program-transfor \ 1025 | --program-transfo | --program-transf \ 1026 | --program-trans | --program-tran \ 1027 | --progr-tra | --program-tr | --program-t) 1028 ac_prev=program_transform_name ;; 1029 -program-transform-name=* | --program-transform-name=* \ 1030 | --program-transform-nam=* | --program-transform-na=* \ 1031 | --program-transform-n=* | --program-transform-=* \ 1032 | --program-transform=* | --program-transfor=* \ 1033 | --program-transfo=* | --program-transf=* \ 1034 | --program-trans=* | --program-tran=* \ 1035 | --progr-tra=* | --program-tr=* | --program-t=*) 1036 program_transform_name=$ac_optarg ;; 1037 1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1039 ac_prev=pdfdir ;; 1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1041 pdfdir=$ac_optarg ;; 1042 1043 -psdir | --psdir | --psdi | --psd | --ps) 1044 ac_prev=psdir ;; 1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1046 psdir=$ac_optarg ;; 1047 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 silent=yes ;; 1051 1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1053 ac_prev=sbindir ;; 1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1055 | --sbi=* | --sb=*) 1056 sbindir=$ac_optarg ;; 1057 1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1060 | --sharedst | --shareds | --shared | --share | --shar \ 1061 | --sha | --sh) 1062 ac_prev=sharedstatedir ;; 1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1066 | --sha=* | --sh=*) 1067 sharedstatedir=$ac_optarg ;; 1068 1069 -site | --site | --sit) 1070 ac_prev=site ;; 1071 -site=* | --site=* | --sit=*) 1072 site=$ac_optarg ;; 1073 1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1075 ac_prev=srcdir ;; 1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1077 srcdir=$ac_optarg ;; 1078 1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1080 | --syscon | --sysco | --sysc | --sys | --sy) 1081 ac_prev=sysconfdir ;; 1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1084 sysconfdir=$ac_optarg ;; 1085 1086 -target | --target | --targe | --targ | --tar | --ta | --t) 1087 ac_prev=target_alias ;; 1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1089 target_alias=$ac_optarg ;; 1090 1091 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1092 verbose=yes ;; 1093 1094 -version | --version | --versio | --versi | --vers | -V) 1095 ac_init_version=: ;; 1096 1097 -with-* | --with-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"with_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=\$ac_optarg ;; 1112 1113 -without-* | --without-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=no ;; 1128 1129 --x) 1130 # Obsolete; use --with-x. 1131 with_x=yes ;; 1132 1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1134 | --x-incl | --x-inc | --x-in | --x-i) 1135 ac_prev=x_includes ;; 1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1138 x_includes=$ac_optarg ;; 1139 1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1142 ac_prev=x_libraries ;; 1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1145 x_libraries=$ac_optarg ;; 1146 1147 -*) as_fn_error "unrecognized option: \`$ac_option' 1148Try \`$0 --help' for more information." 1149 ;; 1150 1151 *=*) 1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1153 # Reject names that are not valid shell variable names. 1154 case $ac_envvar in #( 1155 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1157 esac 1158 eval $ac_envvar=\$ac_optarg 1159 export $ac_envvar ;; 1160 1161 *) 1162 # FIXME: should be removed in autoconf 3.0. 1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1167 ;; 1168 1169 esac 1170done 1171 1172if test -n "$ac_prev"; then 1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1174 as_fn_error "missing argument to $ac_option" 1175fi 1176 1177if test -n "$ac_unrecognized_opts"; then 1178 case $enable_option_checking in 1179 no) ;; 1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1182 esac 1183fi 1184 1185# Check all directory arguments for consistency. 1186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1187 datadir sysconfdir sharedstatedir localstatedir includedir \ 1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1189 libdir localedir mandir 1190do 1191 eval ac_val=\$$ac_var 1192 # Remove trailing slashes. 1193 case $ac_val in 1194 */ ) 1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1196 eval $ac_var=\$ac_val;; 1197 esac 1198 # Be sure to have absolute directory names. 1199 case $ac_val in 1200 [\\/$]* | ?:[\\/]* ) continue;; 1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1202 esac 1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1204done 1205 1206# There might be people who depend on the old broken behavior: `$host' 1207# used to hold the argument of --host etc. 1208# FIXME: To remove some day. 1209build=$build_alias 1210host=$host_alias 1211target=$target_alias 1212 1213# FIXME: To remove some day. 1214if test "x$host_alias" != x; then 1215 if test "x$build_alias" = x; then 1216 cross_compiling=maybe 1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1218 If a cross compiler is detected then cross compile mode will be used." >&2 1219 elif test "x$build_alias" != "x$host_alias"; then 1220 cross_compiling=yes 1221 fi 1222fi 1223 1224ac_tool_prefix= 1225test -n "$host_alias" && ac_tool_prefix=$host_alias- 1226 1227test "$silent" = yes && exec 6>/dev/null 1228 1229 1230ac_pwd=`pwd` && test -n "$ac_pwd" && 1231ac_ls_di=`ls -di .` && 1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1233 as_fn_error "working directory cannot be determined" 1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1235 as_fn_error "pwd does not report name of working directory" 1236 1237 1238# Find the source files, if location was not specified. 1239if test -z "$srcdir"; then 1240 ac_srcdir_defaulted=yes 1241 # Try the directory containing this script, then the parent directory. 1242 ac_confdir=`$as_dirname -- "$as_myself" || 1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1244 X"$as_myself" : 'X\(//\)[^/]' \| \ 1245 X"$as_myself" : 'X\(//\)$' \| \ 1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1247$as_echo X"$as_myself" | 1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1249 s//\1/ 1250 q 1251 } 1252 /^X\(\/\/\)[^/].*/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)$/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\).*/{ 1261 s//\1/ 1262 q 1263 } 1264 s/.*/./; q'` 1265 srcdir=$ac_confdir 1266 if test ! -r "$srcdir/$ac_unique_file"; then 1267 srcdir=.. 1268 fi 1269else 1270 ac_srcdir_defaulted=no 1271fi 1272if test ! -r "$srcdir/$ac_unique_file"; then 1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1275fi 1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1277ac_abs_confdir=`( 1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1279 pwd)` 1280# When building in place, set srcdir=. 1281if test "$ac_abs_confdir" = "$ac_pwd"; then 1282 srcdir=. 1283fi 1284# Remove unnecessary trailing slashes from srcdir. 1285# Double slashes in file names in object file debugging info 1286# mess up M-x gdb in Emacs. 1287case $srcdir in 1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1289esac 1290for ac_var in $ac_precious_vars; do 1291 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_env_${ac_var}_value=\$${ac_var} 1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1295done 1296 1297# 1298# Report the --help message. 1299# 1300if test "$ac_init_help" = "long"; then 1301 # Omit some internal or obsolete options to make the list less imposing. 1302 # This message is too long to be a string in the A/UX 3.1 sh. 1303 cat <<_ACEOF 1304\`configure' configures gprof 2.27.0 to adapt to many kinds of systems. 1305 1306Usage: $0 [OPTION]... [VAR=VALUE]... 1307 1308To assign environment variables (e.g., CC, CFLAGS...), specify them as 1309VAR=VALUE. See below for descriptions of some of the useful variables. 1310 1311Defaults for the options are specified in brackets. 1312 1313Configuration: 1314 -h, --help display this help and exit 1315 --help=short display options specific to this package 1316 --help=recursive display the short help of all the included packages 1317 -V, --version display version information and exit 1318 -q, --quiet, --silent do not print \`checking...' messages 1319 --cache-file=FILE cache test results in FILE [disabled] 1320 -C, --config-cache alias for \`--cache-file=config.cache' 1321 -n, --no-create do not create output files 1322 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1323 1324Installation directories: 1325 --prefix=PREFIX install architecture-independent files in PREFIX 1326 [$ac_default_prefix] 1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1328 [PREFIX] 1329 1330By default, \`make install' will install all the files in 1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1332an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1333for instance \`--prefix=\$HOME'. 1334 1335For better control, use the options below. 1336 1337Fine tuning of the installation directories: 1338 --bindir=DIR user executables [EPREFIX/bin] 1339 --sbindir=DIR system admin executables [EPREFIX/sbin] 1340 --libexecdir=DIR program executables [EPREFIX/libexec] 1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1344 --libdir=DIR object code libraries [EPREFIX/lib] 1345 --includedir=DIR C header files [PREFIX/include] 1346 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1349 --infodir=DIR info documentation [DATAROOTDIR/info] 1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1351 --mandir=DIR man documentation [DATAROOTDIR/man] 1352 --docdir=DIR documentation root [DATAROOTDIR/doc/gprof] 1353 --htmldir=DIR html documentation [DOCDIR] 1354 --dvidir=DIR dvi documentation [DOCDIR] 1355 --pdfdir=DIR pdf documentation [DOCDIR] 1356 --psdir=DIR ps documentation [DOCDIR] 1357_ACEOF 1358 1359 cat <<\_ACEOF 1360 1361Program names: 1362 --program-prefix=PREFIX prepend PREFIX to installed program names 1363 --program-suffix=SUFFIX append SUFFIX to installed program names 1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1365 1366System types: 1367 --build=BUILD configure for building on BUILD [guessed] 1368 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1369 --target=TARGET configure for building compilers for TARGET [HOST] 1370_ACEOF 1371fi 1372 1373if test -n "$ac_init_help"; then 1374 case $ac_init_help in 1375 short | recursive ) echo "Configuration of gprof 2.27.0:";; 1376 esac 1377 cat <<\_ACEOF 1378 1379Optional Features: 1380 --disable-option-checking ignore unrecognized --enable/--with options 1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1383 --disable-dependency-tracking speeds up one-time build 1384 --enable-dependency-tracking do not reject slow dependency extractors 1385 --enable-shared[=PKGS] build shared libraries [default=yes] 1386 --enable-static[=PKGS] build static libraries [default=yes] 1387 --enable-fast-install[=PKGS] 1388 optimize for fast installation [default=yes] 1389 --disable-libtool-lock avoid locking (might break parallel builds) 1390 --enable-plugins Enable support for plugins 1391 --disable-largefile omit support for large files 1392 --disable-nls do not use Native Language Support 1393 --enable-maintainer-mode enable make rules and dependencies not useful 1394 (and sometimes confusing) to the casual installer 1395 --enable-werror treat compile warnings as errors 1396 --enable-build-warnings enable build-time compiler warnings 1397 1398Optional Packages: 1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1401 --with-pic try to use only PIC/non-PIC objects [default=use 1402 both] 1403 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1404 1405Some influential environment variables: 1406 CC C compiler command 1407 CFLAGS C compiler flags 1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1409 nonstandard directory <lib dir> 1410 LIBS libraries to pass to the linker, e.g. -l<library> 1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1412 you have headers in a nonstandard directory <include dir> 1413 CPP C preprocessor 1414 1415Use these variables to override the choices made by `configure' or to help 1416it to find libraries and programs with nonstandard names/locations. 1417 1418Report bugs to the package provider. 1419_ACEOF 1420ac_status=$? 1421fi 1422 1423if test "$ac_init_help" = "recursive"; then 1424 # If there are subdirs, report their specific --help. 1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1426 test -d "$ac_dir" || 1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1428 continue 1429 ac_builddir=. 1430 1431case "$ac_dir" in 1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1433*) 1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1435 # A ".." for each directory in $ac_dir_suffix. 1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1437 case $ac_top_builddir_sub in 1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1440 esac ;; 1441esac 1442ac_abs_top_builddir=$ac_pwd 1443ac_abs_builddir=$ac_pwd$ac_dir_suffix 1444# for backward compatibility: 1445ac_top_builddir=$ac_top_build_prefix 1446 1447case $srcdir in 1448 .) # We are building in place. 1449 ac_srcdir=. 1450 ac_top_srcdir=$ac_top_builddir_sub 1451 ac_abs_top_srcdir=$ac_pwd ;; 1452 [\\/]* | ?:[\\/]* ) # Absolute name. 1453 ac_srcdir=$srcdir$ac_dir_suffix; 1454 ac_top_srcdir=$srcdir 1455 ac_abs_top_srcdir=$srcdir ;; 1456 *) # Relative name. 1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1458 ac_top_srcdir=$ac_top_build_prefix$srcdir 1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1460esac 1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1462 1463 cd "$ac_dir" || { ac_status=$?; continue; } 1464 # Check for guested configure. 1465 if test -f "$ac_srcdir/configure.gnu"; then 1466 echo && 1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1468 elif test -f "$ac_srcdir/configure"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure" --help=recursive 1471 else 1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1473 fi || ac_status=$? 1474 cd "$ac_pwd" || { ac_status=$?; break; } 1475 done 1476fi 1477 1478test -n "$ac_init_help" && exit $ac_status 1479if $ac_init_version; then 1480 cat <<\_ACEOF 1481gprof configure 2.27.0 1482generated by GNU Autoconf 2.64 1483 1484Copyright (C) 2009 Free Software Foundation, Inc. 1485This configure script is free software; the Free Software Foundation 1486gives unlimited permission to copy, distribute and modify it. 1487_ACEOF 1488 exit 1489fi 1490 1491## ------------------------ ## 1492## Autoconf initialization. ## 1493## ------------------------ ## 1494 1495# ac_fn_c_try_compile LINENO 1496# -------------------------- 1497# Try to compile conftest.$ac_ext, and return whether this succeeded. 1498ac_fn_c_try_compile () 1499{ 1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1501 rm -f conftest.$ac_objext 1502 if { { ac_try="$ac_compile" 1503case "(($ac_try" in 1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1505 *) ac_try_echo=$ac_try;; 1506esac 1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1508$as_echo "$ac_try_echo"; } >&5 1509 (eval "$ac_compile") 2>conftest.err 1510 ac_status=$? 1511 if test -s conftest.err; then 1512 grep -v '^ *+' conftest.err >conftest.er1 1513 cat conftest.er1 >&5 1514 mv -f conftest.er1 conftest.err 1515 fi 1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1517 test $ac_status = 0; } && { 1518 test -z "$ac_c_werror_flag" || 1519 test ! -s conftest.err 1520 } && test -s conftest.$ac_objext; then : 1521 ac_retval=0 1522else 1523 $as_echo "$as_me: failed program was:" >&5 1524sed 's/^/| /' conftest.$ac_ext >&5 1525 1526 ac_retval=1 1527fi 1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1529 return $ac_retval 1530 1531} # ac_fn_c_try_compile 1532 1533# ac_fn_c_try_link LINENO 1534# ----------------------- 1535# Try to link conftest.$ac_ext, and return whether this succeeded. 1536ac_fn_c_try_link () 1537{ 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1539 rm -f conftest.$ac_objext conftest$ac_exeext 1540 if { { ac_try="$ac_link" 1541case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546$as_echo "$ac_try_echo"; } >&5 1547 (eval "$ac_link") 2>conftest.err 1548 ac_status=$? 1549 if test -s conftest.err; then 1550 grep -v '^ *+' conftest.err >conftest.er1 1551 cat conftest.er1 >&5 1552 mv -f conftest.er1 conftest.err 1553 fi 1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1555 test $ac_status = 0; } && { 1556 test -z "$ac_c_werror_flag" || 1557 test ! -s conftest.err 1558 } && test -s conftest$ac_exeext && { 1559 test "$cross_compiling" = yes || 1560 $as_test_x conftest$ac_exeext 1561 }; then : 1562 ac_retval=0 1563else 1564 $as_echo "$as_me: failed program was:" >&5 1565sed 's/^/| /' conftest.$ac_ext >&5 1566 1567 ac_retval=1 1568fi 1569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1571 # interfere with the next link command; also delete a directory that is 1572 # left behind by Apple's compiler. We do this before executing the actions. 1573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1575 return $ac_retval 1576 1577} # ac_fn_c_try_link 1578 1579# ac_fn_c_try_cpp LINENO 1580# ---------------------- 1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_cpp () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 if { { ac_try="$ac_cpp conftest.$ac_ext" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } >/dev/null && { 1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 }; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1612 return $ac_retval 1613 1614} # ac_fn_c_try_cpp 1615 1616# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1617# ------------------------------------------------------- 1618# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1619# the include files in INCLUDES and setting the cache variable VAR 1620# accordingly. 1621ac_fn_c_check_header_mongrel () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1626$as_echo_n "checking for $2... " >&6; } 1627if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1628 $as_echo_n "(cached) " >&6 1629fi 1630eval ac_res=\$$3 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1632$as_echo "$ac_res" >&6; } 1633else 1634 # Is the header compilable? 1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1636$as_echo_n "checking $2 usability... " >&6; } 1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638/* end confdefs.h. */ 1639$4 1640#include <$2> 1641_ACEOF 1642if ac_fn_c_try_compile "$LINENO"; then : 1643 ac_header_compiler=yes 1644else 1645 ac_header_compiler=no 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1649$as_echo "$ac_header_compiler" >&6; } 1650 1651# Is the header present? 1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1653$as_echo_n "checking $2 presence... " >&6; } 1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1655/* end confdefs.h. */ 1656#include <$2> 1657_ACEOF 1658if ac_fn_c_try_cpp "$LINENO"; then : 1659 ac_header_preproc=yes 1660else 1661 ac_header_preproc=no 1662fi 1663rm -f conftest.err conftest.$ac_ext 1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1665$as_echo "$ac_header_preproc" >&6; } 1666 1667# So? What about this header? 1668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1669 yes:no: ) 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1671$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1674 ;; 1675 no:yes:* ) 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1677$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1679$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1681$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1683$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1686 ;; 1687esac 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1689$as_echo_n "checking for $2... " >&6; } 1690if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1691 $as_echo_n "(cached) " >&6 1692else 1693 eval "$3=\$ac_header_compiler" 1694fi 1695eval ac_res=\$$3 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1697$as_echo "$ac_res" >&6; } 1698fi 1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1700 1701} # ac_fn_c_check_header_mongrel 1702 1703# ac_fn_c_try_run LINENO 1704# ---------------------- 1705# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1706# that executables *can* be run. 1707ac_fn_c_try_run () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 if { { ac_try="$ac_link" 1711case "(($ac_try" in 1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1713 *) ac_try_echo=$ac_try;; 1714esac 1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1716$as_echo "$ac_try_echo"; } >&5 1717 (eval "$ac_link") 2>&5 1718 ac_status=$? 1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1721 { { case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_try") 2>&5 1728 ac_status=$? 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; }; }; then : 1731 ac_retval=0 1732else 1733 $as_echo "$as_me: program exited with status $ac_status" >&5 1734 $as_echo "$as_me: failed program was:" >&5 1735sed 's/^/| /' conftest.$ac_ext >&5 1736 1737 ac_retval=$ac_status 1738fi 1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1741 return $ac_retval 1742 1743} # ac_fn_c_try_run 1744 1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1746# ------------------------------------------------------- 1747# Tests whether HEADER exists and can be compiled using the include files in 1748# INCLUDES, setting the cache variable VAR accordingly. 1749ac_fn_c_check_header_compile () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1753$as_echo_n "checking for $2... " >&6; } 1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1755 $as_echo_n "(cached) " >&6 1756else 1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758/* end confdefs.h. */ 1759$4 1760#include <$2> 1761_ACEOF 1762if ac_fn_c_try_compile "$LINENO"; then : 1763 eval "$3=yes" 1764else 1765 eval "$3=no" 1766fi 1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1768fi 1769eval ac_res=\$$3 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771$as_echo "$ac_res" >&6; } 1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1773 1774} # ac_fn_c_check_header_compile 1775 1776# ac_fn_c_check_func LINENO FUNC VAR 1777# ---------------------------------- 1778# Tests whether FUNC exists, setting the cache variable VAR accordingly 1779ac_fn_c_check_func () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1783$as_echo_n "checking for $2... " >&6; } 1784if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1785 $as_echo_n "(cached) " >&6 1786else 1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1791#define $2 innocuous_$2 1792 1793/* System header to define __stub macros and hopefully few prototypes, 1794 which can conflict with char $2 (); below. 1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1796 <limits.h> exists even on freestanding compilers. */ 1797 1798#ifdef __STDC__ 1799# include <limits.h> 1800#else 1801# include <assert.h> 1802#endif 1803 1804#undef $2 1805 1806/* Override any GCC internal prototype to avoid an error. 1807 Use char because int might match the return type of a GCC 1808 builtin and then its argument prototype would still apply. */ 1809#ifdef __cplusplus 1810extern "C" 1811#endif 1812char $2 (); 1813/* The GNU C library defines this for functions which it implements 1814 to always fail with ENOSYS. Some functions are actually named 1815 something starting with __ and the normal name is an alias. */ 1816#if defined __stub_$2 || defined __stub___$2 1817choke me 1818#endif 1819 1820int 1821main () 1822{ 1823return $2 (); 1824 ; 1825 return 0; 1826} 1827_ACEOF 1828if ac_fn_c_try_link "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext \ 1834 conftest$ac_exeext conftest.$ac_ext 1835fi 1836eval ac_res=\$$3 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1838$as_echo "$ac_res" >&6; } 1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1840 1841} # ac_fn_c_check_func 1842cat >config.log <<_ACEOF 1843This file contains any messages produced by compilers while 1844running configure, to aid debugging if configure makes a mistake. 1845 1846It was created by gprof $as_me 2.27.0, which was 1847generated by GNU Autoconf 2.64. Invocation command line was 1848 1849 $ $0 $@ 1850 1851_ACEOF 1852exec 5>>config.log 1853{ 1854cat <<_ASUNAME 1855## --------- ## 1856## Platform. ## 1857## --------- ## 1858 1859hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1860uname -m = `(uname -m) 2>/dev/null || echo unknown` 1861uname -r = `(uname -r) 2>/dev/null || echo unknown` 1862uname -s = `(uname -s) 2>/dev/null || echo unknown` 1863uname -v = `(uname -v) 2>/dev/null || echo unknown` 1864 1865/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1866/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1867 1868/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1869/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1870/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1871/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1872/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1873/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1874/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1875 1876_ASUNAME 1877 1878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1879for as_dir in $PATH 1880do 1881 IFS=$as_save_IFS 1882 test -z "$as_dir" && as_dir=. 1883 $as_echo "PATH: $as_dir" 1884 done 1885IFS=$as_save_IFS 1886 1887} >&5 1888 1889cat >&5 <<_ACEOF 1890 1891 1892## ----------- ## 1893## Core tests. ## 1894## ----------- ## 1895 1896_ACEOF 1897 1898 1899# Keep a trace of the command line. 1900# Strip out --no-create and --no-recursion so they do not pile up. 1901# Strip out --silent because we don't want to record it for future runs. 1902# Also quote any args containing shell meta-characters. 1903# Make two passes to allow for proper duplicate-argument suppression. 1904ac_configure_args= 1905ac_configure_args0= 1906ac_configure_args1= 1907ac_must_keep_next=false 1908for ac_pass in 1 2 1909do 1910 for ac_arg 1911 do 1912 case $ac_arg in 1913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1915 | -silent | --silent | --silen | --sile | --sil) 1916 continue ;; 1917 *\'*) 1918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1919 esac 1920 case $ac_pass in 1921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1922 2) 1923 as_fn_append ac_configure_args1 " '$ac_arg'" 1924 if test $ac_must_keep_next = true; then 1925 ac_must_keep_next=false # Got value, back to normal. 1926 else 1927 case $ac_arg in 1928 *=* | --config-cache | -C | -disable-* | --disable-* \ 1929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1931 | -with-* | --with-* | -without-* | --without-* | --x) 1932 case "$ac_configure_args0 " in 1933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1934 esac 1935 ;; 1936 -* ) ac_must_keep_next=true ;; 1937 esac 1938 fi 1939 as_fn_append ac_configure_args " '$ac_arg'" 1940 ;; 1941 esac 1942 done 1943done 1944{ ac_configure_args0=; unset ac_configure_args0;} 1945{ ac_configure_args1=; unset ac_configure_args1;} 1946 1947# When interrupted or exit'd, cleanup temporary files, and complete 1948# config.log. We remove comments because anyway the quotes in there 1949# would cause problems or look ugly. 1950# WARNING: Use '\'' to represent an apostrophe within the trap. 1951# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1952trap 'exit_status=$? 1953 # Save into config.log some information that might help in debugging. 1954 { 1955 echo 1956 1957 cat <<\_ASBOX 1958## ---------------- ## 1959## Cache variables. ## 1960## ---------------- ## 1961_ASBOX 1962 echo 1963 # The following way of writing the cache mishandles newlines in values, 1964( 1965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1966 eval ac_val=\$$ac_var 1967 case $ac_val in #( 1968 *${as_nl}*) 1969 case $ac_var in #( 1970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1971$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1972 esac 1973 case $ac_var in #( 1974 _ | IFS | as_nl) ;; #( 1975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1976 *) { eval $ac_var=; unset $ac_var;} ;; 1977 esac ;; 1978 esac 1979 done 1980 (set) 2>&1 | 1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1982 *${as_nl}ac_space=\ *) 1983 sed -n \ 1984 "s/'\''/'\''\\\\'\'''\''/g; 1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1986 ;; #( 1987 *) 1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1989 ;; 1990 esac | 1991 sort 1992) 1993 echo 1994 1995 cat <<\_ASBOX 1996## ----------------- ## 1997## Output variables. ## 1998## ----------------- ## 1999_ASBOX 2000 echo 2001 for ac_var in $ac_subst_vars 2002 do 2003 eval ac_val=\$$ac_var 2004 case $ac_val in 2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2006 esac 2007 $as_echo "$ac_var='\''$ac_val'\''" 2008 done | sort 2009 echo 2010 2011 if test -n "$ac_subst_files"; then 2012 cat <<\_ASBOX 2013## ------------------- ## 2014## File substitutions. ## 2015## ------------------- ## 2016_ASBOX 2017 echo 2018 for ac_var in $ac_subst_files 2019 do 2020 eval ac_val=\$$ac_var 2021 case $ac_val in 2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2023 esac 2024 $as_echo "$ac_var='\''$ac_val'\''" 2025 done | sort 2026 echo 2027 fi 2028 2029 if test -s confdefs.h; then 2030 cat <<\_ASBOX 2031## ----------- ## 2032## confdefs.h. ## 2033## ----------- ## 2034_ASBOX 2035 echo 2036 cat confdefs.h 2037 echo 2038 fi 2039 test "$ac_signal" != 0 && 2040 $as_echo "$as_me: caught signal $ac_signal" 2041 $as_echo "$as_me: exit $exit_status" 2042 } >&5 2043 rm -f core *.core core.conftest.* && 2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2045 exit $exit_status 2046' 0 2047for ac_signal in 1 2 13 15; do 2048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2049done 2050ac_signal=0 2051 2052# confdefs.h avoids OS command line length limits that DEFS can exceed. 2053rm -f -r conftest* confdefs.h 2054 2055$as_echo "/* confdefs.h */" > confdefs.h 2056 2057# Predefined preprocessor variables. 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_NAME "$PACKAGE_NAME" 2061_ACEOF 2062 2063cat >>confdefs.h <<_ACEOF 2064#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2065_ACEOF 2066 2067cat >>confdefs.h <<_ACEOF 2068#define PACKAGE_VERSION "$PACKAGE_VERSION" 2069_ACEOF 2070 2071cat >>confdefs.h <<_ACEOF 2072#define PACKAGE_STRING "$PACKAGE_STRING" 2073_ACEOF 2074 2075cat >>confdefs.h <<_ACEOF 2076#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2077_ACEOF 2078 2079cat >>confdefs.h <<_ACEOF 2080#define PACKAGE_URL "$PACKAGE_URL" 2081_ACEOF 2082 2083 2084# Let the site file select an alternate cache file if it wants to. 2085# Prefer an explicitly selected file to automatically selected ones. 2086ac_site_file1=NONE 2087ac_site_file2=NONE 2088if test -n "$CONFIG_SITE"; then 2089 ac_site_file1=$CONFIG_SITE 2090elif test "x$prefix" != xNONE; then 2091 ac_site_file1=$prefix/share/config.site 2092 ac_site_file2=$prefix/etc/config.site 2093else 2094 ac_site_file1=$ac_default_prefix/share/config.site 2095 ac_site_file2=$ac_default_prefix/etc/config.site 2096fi 2097for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2098do 2099 test "x$ac_site_file" = xNONE && continue 2100 if test -r "$ac_site_file"; then 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2102$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2103 sed 's/^/| /' "$ac_site_file" >&5 2104 . "$ac_site_file" 2105 fi 2106done 2107 2108if test -r "$cache_file"; then 2109 # Some versions of bash will fail to source /dev/null (special 2110 # files actually), so we avoid doing that. 2111 if test -f "$cache_file"; then 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2113$as_echo "$as_me: loading cache $cache_file" >&6;} 2114 case $cache_file in 2115 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2116 *) . "./$cache_file";; 2117 esac 2118 fi 2119else 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2121$as_echo "$as_me: creating cache $cache_file" >&6;} 2122 >$cache_file 2123fi 2124 2125# Check that the precious variables saved in the cache have kept the same 2126# value. 2127ac_cache_corrupted=false 2128for ac_var in $ac_precious_vars; do 2129 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2130 eval ac_new_set=\$ac_env_${ac_var}_set 2131 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2132 eval ac_new_val=\$ac_env_${ac_var}_value 2133 case $ac_old_set,$ac_new_set in 2134 set,) 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2136$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2137 ac_cache_corrupted=: ;; 2138 ,set) 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2140$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2141 ac_cache_corrupted=: ;; 2142 ,);; 2143 *) 2144 if test "x$ac_old_val" != "x$ac_new_val"; then 2145 # differences in whitespace do not lead to failure. 2146 ac_old_val_w=`echo x $ac_old_val` 2147 ac_new_val_w=`echo x $ac_new_val` 2148 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2150$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2151 ac_cache_corrupted=: 2152 else 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2154$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2155 eval $ac_var=\$ac_old_val 2156 fi 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2158$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2160$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2161 fi;; 2162 esac 2163 # Pass precious variables to config.status. 2164 if test "$ac_new_set" = set; then 2165 case $ac_new_val in 2166 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2167 *) ac_arg=$ac_var=$ac_new_val ;; 2168 esac 2169 case " $ac_configure_args " in 2170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2171 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2172 esac 2173 fi 2174done 2175if $ac_cache_corrupted; then 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2179$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2180 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2181fi 2182## -------------------- ## 2183## Main body of script. ## 2184## -------------------- ## 2185 2186ac_ext=c 2187ac_cpp='$CPP $CPPFLAGS' 2188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2190ac_compiler_gnu=$ac_cv_c_compiler_gnu 2191 2192 2193 2194 2195 2196 2197 2198ac_aux_dir= 2199for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2200 for ac_t in install-sh install.sh shtool; do 2201 if test -f "$ac_dir/$ac_t"; then 2202 ac_aux_dir=$ac_dir 2203 ac_install_sh="$ac_aux_dir/$ac_t -c" 2204 break 2 2205 fi 2206 done 2207done 2208if test -z "$ac_aux_dir"; then 2209 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2210fi 2211 2212# These three variables are undocumented and unsupported, 2213# and are intended to be withdrawn in a future Autoconf release. 2214# They can cause serious problems if a builder's source tree is in a directory 2215# whose full name contains unusual characters. 2216ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2217ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2218ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2219 2220 2221# Make sure we can run config.sub. 2222$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2223 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2224 2225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2226$as_echo_n "checking build system type... " >&6; } 2227if test "${ac_cv_build+set}" = set; then : 2228 $as_echo_n "(cached) " >&6 2229else 2230 ac_build_alias=$build_alias 2231test "x$ac_build_alias" = x && 2232 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2233test "x$ac_build_alias" = x && 2234 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2235ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2236 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2237 2238fi 2239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2240$as_echo "$ac_cv_build" >&6; } 2241case $ac_cv_build in 2242*-*-*) ;; 2243*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2244esac 2245build=$ac_cv_build 2246ac_save_IFS=$IFS; IFS='-' 2247set x $ac_cv_build 2248shift 2249build_cpu=$1 2250build_vendor=$2 2251shift; shift 2252# Remember, the first character of IFS is used to create $*, 2253# except with old shells: 2254build_os=$* 2255IFS=$ac_save_IFS 2256case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2257 2258 2259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2260$as_echo_n "checking host system type... " >&6; } 2261if test "${ac_cv_host+set}" = set; then : 2262 $as_echo_n "(cached) " >&6 2263else 2264 if test "x$host_alias" = x; then 2265 ac_cv_host=$ac_cv_build 2266else 2267 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2268 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2269fi 2270 2271fi 2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2273$as_echo "$ac_cv_host" >&6; } 2274case $ac_cv_host in 2275*-*-*) ;; 2276*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2277esac 2278host=$ac_cv_host 2279ac_save_IFS=$IFS; IFS='-' 2280set x $ac_cv_host 2281shift 2282host_cpu=$1 2283host_vendor=$2 2284shift; shift 2285# Remember, the first character of IFS is used to create $*, 2286# except with old shells: 2287host_os=$* 2288IFS=$ac_save_IFS 2289case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2290 2291 2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2293$as_echo_n "checking target system type... " >&6; } 2294if test "${ac_cv_target+set}" = set; then : 2295 $as_echo_n "(cached) " >&6 2296else 2297 if test "x$target_alias" = x; then 2298 ac_cv_target=$ac_cv_host 2299else 2300 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2301 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2302fi 2303 2304fi 2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2306$as_echo "$ac_cv_target" >&6; } 2307case $ac_cv_target in 2308*-*-*) ;; 2309*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2310esac 2311target=$ac_cv_target 2312ac_save_IFS=$IFS; IFS='-' 2313set x $ac_cv_target 2314shift 2315target_cpu=$1 2316target_vendor=$2 2317shift; shift 2318# Remember, the first character of IFS is used to create $*, 2319# except with old shells: 2320target_os=$* 2321IFS=$ac_save_IFS 2322case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2323 2324 2325# The aliases save the names the user supplied, while $host etc. 2326# will get canonicalized. 2327test -n "$target_alias" && 2328 test "$program_prefix$program_suffix$program_transform_name" = \ 2329 NONENONEs,x,x, && 2330 program_prefix=${target_alias}- 2331ac_ext=c 2332ac_cpp='$CPP $CPPFLAGS' 2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2335ac_compiler_gnu=$ac_cv_c_compiler_gnu 2336if test -n "$ac_tool_prefix"; then 2337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2338set dummy ${ac_tool_prefix}gcc; ac_word=$2 2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2340$as_echo_n "checking for $ac_word... " >&6; } 2341if test "${ac_cv_prog_CC+set}" = set; then : 2342 $as_echo_n "(cached) " >&6 2343else 2344 if test -n "$CC"; then 2345 ac_cv_prog_CC="$CC" # Let the user override the test. 2346else 2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2348for as_dir in $PATH 2349do 2350 IFS=$as_save_IFS 2351 test -z "$as_dir" && as_dir=. 2352 for ac_exec_ext in '' $ac_executable_extensions; do 2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2354 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2356 break 2 2357 fi 2358done 2359 done 2360IFS=$as_save_IFS 2361 2362fi 2363fi 2364CC=$ac_cv_prog_CC 2365if test -n "$CC"; then 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2367$as_echo "$CC" >&6; } 2368else 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2370$as_echo "no" >&6; } 2371fi 2372 2373 2374fi 2375if test -z "$ac_cv_prog_CC"; then 2376 ac_ct_CC=$CC 2377 # Extract the first word of "gcc", so it can be a program name with args. 2378set dummy gcc; ac_word=$2 2379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2380$as_echo_n "checking for $ac_word... " >&6; } 2381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2382 $as_echo_n "(cached) " >&6 2383else 2384 if test -n "$ac_ct_CC"; then 2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2386else 2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2388for as_dir in $PATH 2389do 2390 IFS=$as_save_IFS 2391 test -z "$as_dir" && as_dir=. 2392 for ac_exec_ext in '' $ac_executable_extensions; do 2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2394 ac_cv_prog_ac_ct_CC="gcc" 2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2396 break 2 2397 fi 2398done 2399 done 2400IFS=$as_save_IFS 2401 2402fi 2403fi 2404ac_ct_CC=$ac_cv_prog_ac_ct_CC 2405if test -n "$ac_ct_CC"; then 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2407$as_echo "$ac_ct_CC" >&6; } 2408else 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2410$as_echo "no" >&6; } 2411fi 2412 2413 if test "x$ac_ct_CC" = x; then 2414 CC="" 2415 else 2416 case $cross_compiling:$ac_tool_warned in 2417yes:) 2418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2420ac_tool_warned=yes ;; 2421esac 2422 CC=$ac_ct_CC 2423 fi 2424else 2425 CC="$ac_cv_prog_CC" 2426fi 2427 2428if test -z "$CC"; then 2429 if test -n "$ac_tool_prefix"; then 2430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2431set dummy ${ac_tool_prefix}cc; ac_word=$2 2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2433$as_echo_n "checking for $ac_word... " >&6; } 2434if test "${ac_cv_prog_CC+set}" = set; then : 2435 $as_echo_n "(cached) " >&6 2436else 2437 if test -n "$CC"; then 2438 ac_cv_prog_CC="$CC" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2447 ac_cv_prog_CC="${ac_tool_prefix}cc" 2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452 done 2453IFS=$as_save_IFS 2454 2455fi 2456fi 2457CC=$ac_cv_prog_CC 2458if test -n "$CC"; then 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2460$as_echo "$CC" >&6; } 2461else 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2463$as_echo "no" >&6; } 2464fi 2465 2466 2467 fi 2468fi 2469if test -z "$CC"; then 2470 # Extract the first word of "cc", so it can be a program name with args. 2471set dummy cc; ac_word=$2 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2473$as_echo_n "checking for $ac_word... " >&6; } 2474if test "${ac_cv_prog_CC+set}" = set; then : 2475 $as_echo_n "(cached) " >&6 2476else 2477 if test -n "$CC"; then 2478 ac_cv_prog_CC="$CC" # Let the user override the test. 2479else 2480 ac_prog_rejected=no 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482for as_dir in $PATH 2483do 2484 IFS=$as_save_IFS 2485 test -z "$as_dir" && as_dir=. 2486 for ac_exec_ext in '' $ac_executable_extensions; do 2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2489 ac_prog_rejected=yes 2490 continue 2491 fi 2492 ac_cv_prog_CC="cc" 2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2494 break 2 2495 fi 2496done 2497 done 2498IFS=$as_save_IFS 2499 2500if test $ac_prog_rejected = yes; then 2501 # We found a bogon in the path, so make sure we never use it. 2502 set dummy $ac_cv_prog_CC 2503 shift 2504 if test $# != 0; then 2505 # We chose a different compiler from the bogus one. 2506 # However, it has the same basename, so the bogon will be chosen 2507 # first if we set CC to just the basename; use the full file name. 2508 shift 2509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2510 fi 2511fi 2512fi 2513fi 2514CC=$ac_cv_prog_CC 2515if test -n "$CC"; then 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2517$as_echo "$CC" >&6; } 2518else 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2520$as_echo "no" >&6; } 2521fi 2522 2523 2524fi 2525if test -z "$CC"; then 2526 if test -n "$ac_tool_prefix"; then 2527 for ac_prog in cl.exe 2528 do 2529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2530set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2532$as_echo_n "checking for $ac_word... " >&6; } 2533if test "${ac_cv_prog_CC+set}" = set; then : 2534 $as_echo_n "(cached) " >&6 2535else 2536 if test -n "$CC"; then 2537 ac_cv_prog_CC="$CC" # Let the user override the test. 2538else 2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2540for as_dir in $PATH 2541do 2542 IFS=$as_save_IFS 2543 test -z "$as_dir" && as_dir=. 2544 for ac_exec_ext in '' $ac_executable_extensions; do 2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2548 break 2 2549 fi 2550done 2551 done 2552IFS=$as_save_IFS 2553 2554fi 2555fi 2556CC=$ac_cv_prog_CC 2557if test -n "$CC"; then 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2559$as_echo "$CC" >&6; } 2560else 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2562$as_echo "no" >&6; } 2563fi 2564 2565 2566 test -n "$CC" && break 2567 done 2568fi 2569if test -z "$CC"; then 2570 ac_ct_CC=$CC 2571 for ac_prog in cl.exe 2572do 2573 # Extract the first word of "$ac_prog", so it can be a program name with args. 2574set dummy $ac_prog; ac_word=$2 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2576$as_echo_n "checking for $ac_word... " >&6; } 2577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2578 $as_echo_n "(cached) " >&6 2579else 2580 if test -n "$ac_ct_CC"; then 2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2582else 2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2584for as_dir in $PATH 2585do 2586 IFS=$as_save_IFS 2587 test -z "$as_dir" && as_dir=. 2588 for ac_exec_ext in '' $ac_executable_extensions; do 2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2590 ac_cv_prog_ac_ct_CC="$ac_prog" 2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2592 break 2 2593 fi 2594done 2595 done 2596IFS=$as_save_IFS 2597 2598fi 2599fi 2600ac_ct_CC=$ac_cv_prog_ac_ct_CC 2601if test -n "$ac_ct_CC"; then 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2603$as_echo "$ac_ct_CC" >&6; } 2604else 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2606$as_echo "no" >&6; } 2607fi 2608 2609 2610 test -n "$ac_ct_CC" && break 2611done 2612 2613 if test "x$ac_ct_CC" = x; then 2614 CC="" 2615 else 2616 case $cross_compiling:$ac_tool_warned in 2617yes:) 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2620ac_tool_warned=yes ;; 2621esac 2622 CC=$ac_ct_CC 2623 fi 2624fi 2625 2626fi 2627 2628 2629test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2631as_fn_error "no acceptable C compiler found in \$PATH 2632See \`config.log' for more details." "$LINENO" 5; } 2633 2634# Provide some information about the compiler. 2635$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2636set X $ac_compile 2637ac_compiler=$2 2638for ac_option in --version -v -V -qversion; do 2639 { { ac_try="$ac_compiler $ac_option >&5" 2640case "(($ac_try" in 2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2642 *) ac_try_echo=$ac_try;; 2643esac 2644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2645$as_echo "$ac_try_echo"; } >&5 2646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2647 ac_status=$? 2648 if test -s conftest.err; then 2649 sed '10a\ 2650... rest of stderr output deleted ... 2651 10q' conftest.err >conftest.er1 2652 cat conftest.er1 >&5 2653 rm -f conftest.er1 conftest.err 2654 fi 2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2656 test $ac_status = 0; } 2657done 2658 2659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2660/* end confdefs.h. */ 2661 2662int 2663main () 2664{ 2665 2666 ; 2667 return 0; 2668} 2669_ACEOF 2670ac_clean_files_save=$ac_clean_files 2671ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2672# Try to create an executable without -o first, disregard a.out. 2673# It will help us diagnose broken compilers, and finding out an intuition 2674# of exeext. 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2676$as_echo_n "checking for C compiler default output file name... " >&6; } 2677ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2678 2679# The possible output files: 2680ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2681 2682ac_rmfiles= 2683for ac_file in $ac_files 2684do 2685 case $ac_file in 2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2687 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2688 esac 2689done 2690rm -f $ac_rmfiles 2691 2692if { { ac_try="$ac_link_default" 2693case "(($ac_try" in 2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2695 *) ac_try_echo=$ac_try;; 2696esac 2697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2698$as_echo "$ac_try_echo"; } >&5 2699 (eval "$ac_link_default") 2>&5 2700 ac_status=$? 2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2702 test $ac_status = 0; }; then : 2703 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2704# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2705# in a Makefile. We should not override ac_cv_exeext if it was cached, 2706# so that the user can short-circuit this test for compilers unknown to 2707# Autoconf. 2708for ac_file in $ac_files '' 2709do 2710 test -f "$ac_file" || continue 2711 case $ac_file in 2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2713 ;; 2714 [ab].out ) 2715 # We found the default executable, but exeext='' is most 2716 # certainly right. 2717 break;; 2718 *.* ) 2719 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2720 then :; else 2721 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2722 fi 2723 # We set ac_cv_exeext here because the later test for it is not 2724 # safe: cross compilers may not add the suffix if given an `-o' 2725 # argument, so we may need to know it at that point already. 2726 # Even if this section looks crufty: it has the advantage of 2727 # actually working. 2728 break;; 2729 * ) 2730 break;; 2731 esac 2732done 2733test "$ac_cv_exeext" = no && ac_cv_exeext= 2734 2735else 2736 ac_file='' 2737fi 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2739$as_echo "$ac_file" >&6; } 2740if test -z "$ac_file"; then : 2741 $as_echo "$as_me: failed program was:" >&5 2742sed 's/^/| /' conftest.$ac_ext >&5 2743 2744{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2746{ as_fn_set_status 77 2747as_fn_error "C compiler cannot create executables 2748See \`config.log' for more details." "$LINENO" 5; }; } 2749fi 2750ac_exeext=$ac_cv_exeext 2751 2752# Check that the compiler produces executables we can run. If not, either 2753# the compiler is broken, or we cross compile. 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2755$as_echo_n "checking whether the C compiler works... " >&6; } 2756# If not cross compiling, check that we can run a simple program. 2757if test "$cross_compiling" != yes; then 2758 if { ac_try='./$ac_file' 2759 { { case "(($ac_try" in 2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2761 *) ac_try_echo=$ac_try;; 2762esac 2763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2764$as_echo "$ac_try_echo"; } >&5 2765 (eval "$ac_try") 2>&5 2766 ac_status=$? 2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2768 test $ac_status = 0; }; }; then 2769 cross_compiling=no 2770 else 2771 if test "$cross_compiling" = maybe; then 2772 cross_compiling=yes 2773 else 2774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2776as_fn_error "cannot run C compiled programs. 2777If you meant to cross compile, use \`--host'. 2778See \`config.log' for more details." "$LINENO" 5; } 2779 fi 2780 fi 2781fi 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2783$as_echo "yes" >&6; } 2784 2785rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2786ac_clean_files=$ac_clean_files_save 2787# Check that the compiler produces executables we can run. If not, either 2788# the compiler is broken, or we cross compile. 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2790$as_echo_n "checking whether we are cross compiling... " >&6; } 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2792$as_echo "$cross_compiling" >&6; } 2793 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2795$as_echo_n "checking for suffix of executables... " >&6; } 2796if { { ac_try="$ac_link" 2797case "(($ac_try" in 2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2799 *) ac_try_echo=$ac_try;; 2800esac 2801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2802$as_echo "$ac_try_echo"; } >&5 2803 (eval "$ac_link") 2>&5 2804 ac_status=$? 2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2806 test $ac_status = 0; }; then : 2807 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2808# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2809# work properly (i.e., refer to `conftest.exe'), while it won't with 2810# `rm'. 2811for ac_file in conftest.exe conftest conftest.*; do 2812 test -f "$ac_file" || continue 2813 case $ac_file in 2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2816 break;; 2817 * ) break;; 2818 esac 2819done 2820else 2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2823as_fn_error "cannot compute suffix of executables: cannot compile and link 2824See \`config.log' for more details." "$LINENO" 5; } 2825fi 2826rm -f conftest$ac_cv_exeext 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2828$as_echo "$ac_cv_exeext" >&6; } 2829 2830rm -f conftest.$ac_ext 2831EXEEXT=$ac_cv_exeext 2832ac_exeext=$EXEEXT 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2834$as_echo_n "checking for suffix of object files... " >&6; } 2835if test "${ac_cv_objext+set}" = set; then : 2836 $as_echo_n "(cached) " >&6 2837else 2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2839/* end confdefs.h. */ 2840 2841int 2842main () 2843{ 2844 2845 ; 2846 return 0; 2847} 2848_ACEOF 2849rm -f conftest.o conftest.obj 2850if { { ac_try="$ac_compile" 2851case "(($ac_try" in 2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2853 *) ac_try_echo=$ac_try;; 2854esac 2855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2856$as_echo "$ac_try_echo"; } >&5 2857 (eval "$ac_compile") 2>&5 2858 ac_status=$? 2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2860 test $ac_status = 0; }; then : 2861 for ac_file in conftest.o conftest.obj conftest.*; do 2862 test -f "$ac_file" || continue; 2863 case $ac_file in 2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2866 break;; 2867 esac 2868done 2869else 2870 $as_echo "$as_me: failed program was:" >&5 2871sed 's/^/| /' conftest.$ac_ext >&5 2872 2873{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2875as_fn_error "cannot compute suffix of object files: cannot compile 2876See \`config.log' for more details." "$LINENO" 5; } 2877fi 2878rm -f conftest.$ac_cv_objext conftest.$ac_ext 2879fi 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2881$as_echo "$ac_cv_objext" >&6; } 2882OBJEXT=$ac_cv_objext 2883ac_objext=$OBJEXT 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2885$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2886if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2887 $as_echo_n "(cached) " >&6 2888else 2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2890/* end confdefs.h. */ 2891 2892int 2893main () 2894{ 2895#ifndef __GNUC__ 2896 choke me 2897#endif 2898 2899 ; 2900 return 0; 2901} 2902_ACEOF 2903if ac_fn_c_try_compile "$LINENO"; then : 2904 ac_compiler_gnu=yes 2905else 2906 ac_compiler_gnu=no 2907fi 2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2909ac_cv_c_compiler_gnu=$ac_compiler_gnu 2910 2911fi 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2913$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2914if test $ac_compiler_gnu = yes; then 2915 GCC=yes 2916else 2917 GCC= 2918fi 2919ac_test_CFLAGS=${CFLAGS+set} 2920ac_save_CFLAGS=$CFLAGS 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2922$as_echo_n "checking whether $CC accepts -g... " >&6; } 2923if test "${ac_cv_prog_cc_g+set}" = set; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 ac_save_c_werror_flag=$ac_c_werror_flag 2927 ac_c_werror_flag=yes 2928 ac_cv_prog_cc_g=no 2929 CFLAGS="-g" 2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2931/* end confdefs.h. */ 2932 2933int 2934main () 2935{ 2936 2937 ; 2938 return 0; 2939} 2940_ACEOF 2941if ac_fn_c_try_compile "$LINENO"; then : 2942 ac_cv_prog_cc_g=yes 2943else 2944 CFLAGS="" 2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2946/* end confdefs.h. */ 2947 2948int 2949main () 2950{ 2951 2952 ; 2953 return 0; 2954} 2955_ACEOF 2956if ac_fn_c_try_compile "$LINENO"; then : 2957 2958else 2959 ac_c_werror_flag=$ac_save_c_werror_flag 2960 CFLAGS="-g" 2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2962/* end confdefs.h. */ 2963 2964int 2965main () 2966{ 2967 2968 ; 2969 return 0; 2970} 2971_ACEOF 2972if ac_fn_c_try_compile "$LINENO"; then : 2973 ac_cv_prog_cc_g=yes 2974fi 2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2976fi 2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2978fi 2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2980 ac_c_werror_flag=$ac_save_c_werror_flag 2981fi 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2983$as_echo "$ac_cv_prog_cc_g" >&6; } 2984if test "$ac_test_CFLAGS" = set; then 2985 CFLAGS=$ac_save_CFLAGS 2986elif test $ac_cv_prog_cc_g = yes; then 2987 if test "$GCC" = yes; then 2988 CFLAGS="-g -O2" 2989 else 2990 CFLAGS="-g" 2991 fi 2992else 2993 if test "$GCC" = yes; then 2994 CFLAGS="-O2" 2995 else 2996 CFLAGS= 2997 fi 2998fi 2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3000$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3001if test "${ac_cv_prog_cc_c89+set}" = set; then : 3002 $as_echo_n "(cached) " >&6 3003else 3004 ac_cv_prog_cc_c89=no 3005ac_save_CC=$CC 3006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3007/* end confdefs.h. */ 3008#include <stdarg.h> 3009#include <stdio.h> 3010#include <sys/types.h> 3011#include <sys/stat.h> 3012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3013struct buf { int x; }; 3014FILE * (*rcsopen) (struct buf *, struct stat *, int); 3015static char *e (p, i) 3016 char **p; 3017 int i; 3018{ 3019 return p[i]; 3020} 3021static char *f (char * (*g) (char **, int), char **p, ...) 3022{ 3023 char *s; 3024 va_list v; 3025 va_start (v,p); 3026 s = g (p, va_arg (v,int)); 3027 va_end (v); 3028 return s; 3029} 3030 3031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3032 function prototypes and stuff, but not '\xHH' hex character constants. 3033 These don't provoke an error unfortunately, instead are silently treated 3034 as 'x'. The following induces an error, until -std is added to get 3035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3036 array size at least. It's necessary to write '\x00'==0 to get something 3037 that's true only with -std. */ 3038int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3039 3040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3041 inside strings and character constants. */ 3042#define FOO(x) 'x' 3043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3044 3045int test (int i, double x); 3046struct s1 {int (*f) (int a);}; 3047struct s2 {int (*f) (double a);}; 3048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3049int argc; 3050char **argv; 3051int 3052main () 3053{ 3054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3055 ; 3056 return 0; 3057} 3058_ACEOF 3059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3061do 3062 CC="$ac_save_CC $ac_arg" 3063 if ac_fn_c_try_compile "$LINENO"; then : 3064 ac_cv_prog_cc_c89=$ac_arg 3065fi 3066rm -f core conftest.err conftest.$ac_objext 3067 test "x$ac_cv_prog_cc_c89" != "xno" && break 3068done 3069rm -f conftest.$ac_ext 3070CC=$ac_save_CC 3071 3072fi 3073# AC_CACHE_VAL 3074case "x$ac_cv_prog_cc_c89" in 3075 x) 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3077$as_echo "none needed" >&6; } ;; 3078 xno) 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3080$as_echo "unsupported" >&6; } ;; 3081 *) 3082 CC="$CC $ac_cv_prog_cc_c89" 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3084$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3085esac 3086if test "x$ac_cv_prog_cc_c89" != xno; then : 3087 3088fi 3089 3090ac_ext=c 3091ac_cpp='$CPP $CPPFLAGS' 3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3094ac_compiler_gnu=$ac_cv_c_compiler_gnu 3095 3096 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3098$as_echo_n "checking for library containing strerror... " >&6; } 3099if test "${ac_cv_search_strerror+set}" = set; then : 3100 $as_echo_n "(cached) " >&6 3101else 3102 ac_func_search_save_LIBS=$LIBS 3103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3104/* end confdefs.h. */ 3105 3106/* Override any GCC internal prototype to avoid an error. 3107 Use char because int might match the return type of a GCC 3108 builtin and then its argument prototype would still apply. */ 3109#ifdef __cplusplus 3110extern "C" 3111#endif 3112char strerror (); 3113int 3114main () 3115{ 3116return strerror (); 3117 ; 3118 return 0; 3119} 3120_ACEOF 3121for ac_lib in '' cposix; do 3122 if test -z "$ac_lib"; then 3123 ac_res="none required" 3124 else 3125 ac_res=-l$ac_lib 3126 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3127 fi 3128 if ac_fn_c_try_link "$LINENO"; then : 3129 ac_cv_search_strerror=$ac_res 3130fi 3131rm -f core conftest.err conftest.$ac_objext \ 3132 conftest$ac_exeext 3133 if test "${ac_cv_search_strerror+set}" = set; then : 3134 break 3135fi 3136done 3137if test "${ac_cv_search_strerror+set}" = set; then : 3138 3139else 3140 ac_cv_search_strerror=no 3141fi 3142rm conftest.$ac_ext 3143LIBS=$ac_func_search_save_LIBS 3144fi 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3146$as_echo "$ac_cv_search_strerror" >&6; } 3147ac_res=$ac_cv_search_strerror 3148if test "$ac_res" != no; then : 3149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3150 3151fi 3152 3153 3154am__api_version='1.11' 3155 3156# Find a good install program. We prefer a C program (faster), 3157# so one script is as good as another. But avoid the broken or 3158# incompatible versions: 3159# SysV /etc/install, /usr/sbin/install 3160# SunOS /usr/etc/install 3161# IRIX /sbin/install 3162# AIX /bin/install 3163# AmigaOS /C/install, which installs bootblocks on floppy discs 3164# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3165# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3166# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3167# OS/2's system install, which has a completely different semantic 3168# ./install, which can be erroneously created by make from ./install.sh. 3169# Reject install programs that cannot install multiple files. 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3171$as_echo_n "checking for a BSD-compatible install... " >&6; } 3172if test -z "$INSTALL"; then 3173if test "${ac_cv_path_install+set}" = set; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3177for as_dir in $PATH 3178do 3179 IFS=$as_save_IFS 3180 test -z "$as_dir" && as_dir=. 3181 # Account for people who put trailing slashes in PATH elements. 3182case $as_dir/ in #(( 3183 ./ | .// | /[cC]/* | \ 3184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3185 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3186 /usr/ucb/* ) ;; 3187 *) 3188 # OSF1 and SCO ODT 3.0 have their own names for install. 3189 # Don't use installbsd from OSF since it installs stuff as root 3190 # by default. 3191 for ac_prog in ginstall scoinst install; do 3192 for ac_exec_ext in '' $ac_executable_extensions; do 3193 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3194 if test $ac_prog = install && 3195 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3196 # AIX install. It has an incompatible calling convention. 3197 : 3198 elif test $ac_prog = install && 3199 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3200 # program-specific install script used by HP pwplus--don't use. 3201 : 3202 else 3203 rm -rf conftest.one conftest.two conftest.dir 3204 echo one > conftest.one 3205 echo two > conftest.two 3206 mkdir conftest.dir 3207 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3208 test -s conftest.one && test -s conftest.two && 3209 test -s conftest.dir/conftest.one && 3210 test -s conftest.dir/conftest.two 3211 then 3212 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3213 break 3 3214 fi 3215 fi 3216 fi 3217 done 3218 done 3219 ;; 3220esac 3221 3222 done 3223IFS=$as_save_IFS 3224 3225rm -rf conftest.one conftest.two conftest.dir 3226 3227fi 3228 if test "${ac_cv_path_install+set}" = set; then 3229 INSTALL=$ac_cv_path_install 3230 else 3231 # As a last resort, use the slow shell script. Don't cache a 3232 # value for INSTALL within a source directory, because that will 3233 # break other packages using the cache if that directory is 3234 # removed, or if the value is a relative name. 3235 INSTALL=$ac_install_sh 3236 fi 3237fi 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3239$as_echo "$INSTALL" >&6; } 3240 3241# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3242# It thinks the first close brace ends the variable substitution. 3243test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3244 3245test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3246 3247test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3248 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3250$as_echo_n "checking whether build environment is sane... " >&6; } 3251# Just in case 3252sleep 1 3253echo timestamp > conftest.file 3254# Reject unsafe characters in $srcdir or the absolute working directory 3255# name. Accept space and tab only in the latter. 3256am_lf=' 3257' 3258case `pwd` in 3259 *[\\\"\#\$\&\'\`$am_lf]*) 3260 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3261esac 3262case $srcdir in 3263 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3264 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3265esac 3266 3267# Do `set' in a subshell so we don't clobber the current shell's 3268# arguments. Must try -L first in case configure is actually a 3269# symlink; some systems play weird games with the mod time of symlinks 3270# (eg FreeBSD returns the mod time of the symlink's containing 3271# directory). 3272if ( 3273 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3274 if test "$*" = "X"; then 3275 # -L didn't work. 3276 set X `ls -t "$srcdir/configure" conftest.file` 3277 fi 3278 rm -f conftest.file 3279 if test "$*" != "X $srcdir/configure conftest.file" \ 3280 && test "$*" != "X conftest.file $srcdir/configure"; then 3281 3282 # If neither matched, then we have a broken ls. This can happen 3283 # if, for instance, CONFIG_SHELL is bash and it inherits a 3284 # broken ls alias from the environment. This has actually 3285 # happened. Such a system could not be considered "sane". 3286 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3287alias in your environment" "$LINENO" 5 3288 fi 3289 3290 test "$2" = conftest.file 3291 ) 3292then 3293 # Ok. 3294 : 3295else 3296 as_fn_error "newly created file is older than distributed files! 3297Check your system clock" "$LINENO" 5 3298fi 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3300$as_echo "yes" >&6; } 3301test "$program_prefix" != NONE && 3302 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3303# Use a double $ so make ignores it. 3304test "$program_suffix" != NONE && 3305 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3306# Double any \ or $. 3307# By default was `s,x,x', remove it if useless. 3308ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3309program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3310 3311# expand $ac_aux_dir to an absolute path 3312am_aux_dir=`cd $ac_aux_dir && pwd` 3313 3314if test x"${MISSING+set}" != xset; then 3315 case $am_aux_dir in 3316 *\ * | *\ *) 3317 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3318 *) 3319 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3320 esac 3321fi 3322# Use eval to expand $SHELL 3323if eval "$MISSING --run true"; then 3324 am_missing_run="$MISSING --run " 3325else 3326 am_missing_run= 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3328$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3329fi 3330 3331if test x"${install_sh}" != xset; then 3332 case $am_aux_dir in 3333 *\ * | *\ *) 3334 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3335 *) 3336 install_sh="\${SHELL} $am_aux_dir/install-sh" 3337 esac 3338fi 3339 3340# Installed binaries are usually stripped using `strip' when the user 3341# run `make install-strip'. However `strip' might not be the right 3342# tool to use in cross-compilation environments, therefore Automake 3343# will honor the `STRIP' environment variable to overrule this program. 3344if test "$cross_compiling" != no; then 3345 if test -n "$ac_tool_prefix"; then 3346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3347set dummy ${ac_tool_prefix}strip; ac_word=$2 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3349$as_echo_n "checking for $ac_word... " >&6; } 3350if test "${ac_cv_prog_STRIP+set}" = set; then : 3351 $as_echo_n "(cached) " >&6 3352else 3353 if test -n "$STRIP"; then 3354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3355else 3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3357for as_dir in $PATH 3358do 3359 IFS=$as_save_IFS 3360 test -z "$as_dir" && as_dir=. 3361 for ac_exec_ext in '' $ac_executable_extensions; do 3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3363 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3365 break 2 3366 fi 3367done 3368 done 3369IFS=$as_save_IFS 3370 3371fi 3372fi 3373STRIP=$ac_cv_prog_STRIP 3374if test -n "$STRIP"; then 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3376$as_echo "$STRIP" >&6; } 3377else 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3379$as_echo "no" >&6; } 3380fi 3381 3382 3383fi 3384if test -z "$ac_cv_prog_STRIP"; then 3385 ac_ct_STRIP=$STRIP 3386 # Extract the first word of "strip", so it can be a program name with args. 3387set dummy strip; ac_word=$2 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3389$as_echo_n "checking for $ac_word... " >&6; } 3390if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3391 $as_echo_n "(cached) " >&6 3392else 3393 if test -n "$ac_ct_STRIP"; then 3394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3395else 3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3397for as_dir in $PATH 3398do 3399 IFS=$as_save_IFS 3400 test -z "$as_dir" && as_dir=. 3401 for ac_exec_ext in '' $ac_executable_extensions; do 3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3403 ac_cv_prog_ac_ct_STRIP="strip" 3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3405 break 2 3406 fi 3407done 3408 done 3409IFS=$as_save_IFS 3410 3411fi 3412fi 3413ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3414if test -n "$ac_ct_STRIP"; then 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3416$as_echo "$ac_ct_STRIP" >&6; } 3417else 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419$as_echo "no" >&6; } 3420fi 3421 3422 if test "x$ac_ct_STRIP" = x; then 3423 STRIP=":" 3424 else 3425 case $cross_compiling:$ac_tool_warned in 3426yes:) 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3429ac_tool_warned=yes ;; 3430esac 3431 STRIP=$ac_ct_STRIP 3432 fi 3433else 3434 STRIP="$ac_cv_prog_STRIP" 3435fi 3436 3437fi 3438INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3439 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3441$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3442if test -z "$MKDIR_P"; then 3443 if test "${ac_cv_path_mkdir+set}" = set; then : 3444 $as_echo_n "(cached) " >&6 3445else 3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3447for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3448do 3449 IFS=$as_save_IFS 3450 test -z "$as_dir" && as_dir=. 3451 for ac_prog in mkdir gmkdir; do 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3454 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3455 'mkdir (GNU coreutils) '* | \ 3456 'mkdir (coreutils) '* | \ 3457 'mkdir (fileutils) '4.1*) 3458 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3459 break 3;; 3460 esac 3461 done 3462 done 3463 done 3464IFS=$as_save_IFS 3465 3466fi 3467 3468 if test "${ac_cv_path_mkdir+set}" = set; then 3469 MKDIR_P="$ac_cv_path_mkdir -p" 3470 else 3471 # As a last resort, use the slow shell script. Don't cache a 3472 # value for MKDIR_P within a source directory, because that will 3473 # break other packages using the cache if that directory is 3474 # removed, or if the value is a relative name. 3475 test -d ./--version && rmdir ./--version 3476 MKDIR_P="$ac_install_sh -d" 3477 fi 3478fi 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3480$as_echo "$MKDIR_P" >&6; } 3481 3482mkdir_p="$MKDIR_P" 3483case $mkdir_p in 3484 [\\/$]* | ?:[\\/]*) ;; 3485 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3486esac 3487 3488for ac_prog in gawk mawk nawk awk 3489do 3490 # Extract the first word of "$ac_prog", so it can be a program name with args. 3491set dummy $ac_prog; ac_word=$2 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3493$as_echo_n "checking for $ac_word... " >&6; } 3494if test "${ac_cv_prog_AWK+set}" = set; then : 3495 $as_echo_n "(cached) " >&6 3496else 3497 if test -n "$AWK"; then 3498 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3499else 3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501for as_dir in $PATH 3502do 3503 IFS=$as_save_IFS 3504 test -z "$as_dir" && as_dir=. 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3507 ac_cv_prog_AWK="$ac_prog" 3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3509 break 2 3510 fi 3511done 3512 done 3513IFS=$as_save_IFS 3514 3515fi 3516fi 3517AWK=$ac_cv_prog_AWK 3518if test -n "$AWK"; then 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3520$as_echo "$AWK" >&6; } 3521else 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3523$as_echo "no" >&6; } 3524fi 3525 3526 3527 test -n "$AWK" && break 3528done 3529 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3531$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3532set x ${MAKE-make} 3533ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3534if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3535 $as_echo_n "(cached) " >&6 3536else 3537 cat >conftest.make <<\_ACEOF 3538SHELL = /bin/sh 3539all: 3540 @echo '@@@%%%=$(MAKE)=@@@%%%' 3541_ACEOF 3542# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3543case `${MAKE-make} -f conftest.make 2>/dev/null` in 3544 *@@@%%%=?*=@@@%%%*) 3545 eval ac_cv_prog_make_${ac_make}_set=yes;; 3546 *) 3547 eval ac_cv_prog_make_${ac_make}_set=no;; 3548esac 3549rm -f conftest.make 3550fi 3551if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3553$as_echo "yes" >&6; } 3554 SET_MAKE= 3555else 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3557$as_echo "no" >&6; } 3558 SET_MAKE="MAKE=${MAKE-make}" 3559fi 3560 3561rm -rf .tst 2>/dev/null 3562mkdir .tst 2>/dev/null 3563if test -d .tst; then 3564 am__leading_dot=. 3565else 3566 am__leading_dot=_ 3567fi 3568rmdir .tst 2>/dev/null 3569 3570DEPDIR="${am__leading_dot}deps" 3571 3572ac_config_commands="$ac_config_commands depfiles" 3573 3574 3575am_make=${MAKE-make} 3576cat > confinc << 'END' 3577am__doit: 3578 @echo this is the am__doit target 3579.PHONY: am__doit 3580END 3581# If we don't find an include directive, just comment out the code. 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3583$as_echo_n "checking for style of include used by $am_make... " >&6; } 3584am__include="#" 3585am__quote= 3586_am_result=none 3587# First try GNU make style include. 3588echo "include confinc" > confmf 3589# Ignore all kinds of additional output from `make'. 3590case `$am_make -s -f confmf 2> /dev/null` in #( 3591*the\ am__doit\ target*) 3592 am__include=include 3593 am__quote= 3594 _am_result=GNU 3595 ;; 3596esac 3597# Now try BSD make style include. 3598if test "$am__include" = "#"; then 3599 echo '.include "confinc"' > confmf 3600 case `$am_make -s -f confmf 2> /dev/null` in #( 3601 *the\ am__doit\ target*) 3602 am__include=.include 3603 am__quote="\"" 3604 _am_result=BSD 3605 ;; 3606 esac 3607fi 3608 3609 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3611$as_echo "$_am_result" >&6; } 3612rm -f confinc confmf 3613 3614# Check whether --enable-dependency-tracking was given. 3615if test "${enable_dependency_tracking+set}" = set; then : 3616 enableval=$enable_dependency_tracking; 3617fi 3618 3619if test "x$enable_dependency_tracking" != xno; then 3620 am_depcomp="$ac_aux_dir/depcomp" 3621 AMDEPBACKSLASH='\' 3622 am__nodep='_no' 3623fi 3624 if test "x$enable_dependency_tracking" != xno; then 3625 AMDEP_TRUE= 3626 AMDEP_FALSE='#' 3627else 3628 AMDEP_TRUE='#' 3629 AMDEP_FALSE= 3630fi 3631 3632 3633if test "`cd $srcdir && pwd`" != "`pwd`"; then 3634 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3635 # is not polluted with repeated "-I." 3636 am__isrc=' -I$(srcdir)' 3637 # test to see if srcdir already configured 3638 if test -f $srcdir/config.status; then 3639 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3640 fi 3641fi 3642 3643# test whether we have cygpath 3644if test -z "$CYGPATH_W"; then 3645 if (cygpath --version) >/dev/null 2>/dev/null; then 3646 CYGPATH_W='cygpath -w' 3647 else 3648 CYGPATH_W=echo 3649 fi 3650fi 3651 3652 3653# Define the identity of the package. 3654 PACKAGE='gprof' 3655 VERSION='2.27.0' 3656 3657 3658cat >>confdefs.h <<_ACEOF 3659#define PACKAGE "$PACKAGE" 3660_ACEOF 3661 3662 3663cat >>confdefs.h <<_ACEOF 3664#define VERSION "$VERSION" 3665_ACEOF 3666 3667# Some tools Automake needs. 3668 3669ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3670 3671 3672AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3673 3674 3675AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3676 3677 3678AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3679 3680 3681MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3682 3683# We need awk for the "check" target. The system "awk" is bad on 3684# some platforms. 3685# Always define AMTAR for backward compatibility. Yes, it's still used 3686# in the wild :-( We should find a proper way to deprecate it ... 3687AMTAR='$${TAR-tar}' 3688 3689am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3690 3691 3692 3693 3694depcc="$CC" am_compiler_list= 3695 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3697$as_echo_n "checking dependency style of $depcc... " >&6; } 3698if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3699 $as_echo_n "(cached) " >&6 3700else 3701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3702 # We make a subdir and do the tests there. Otherwise we can end up 3703 # making bogus files that we don't know about and never remove. For 3704 # instance it was reported that on HP-UX the gcc test will end up 3705 # making a dummy file named `D' -- because `-MD' means `put the output 3706 # in D'. 3707 rm -rf conftest.dir 3708 mkdir conftest.dir 3709 # Copy depcomp to subdir because otherwise we won't find it if we're 3710 # using a relative directory. 3711 cp "$am_depcomp" conftest.dir 3712 cd conftest.dir 3713 # We will build objects and dependencies in a subdirectory because 3714 # it helps to detect inapplicable dependency modes. For instance 3715 # both Tru64's cc and ICC support -MD to output dependencies as a 3716 # side effect of compilation, but ICC will put the dependencies in 3717 # the current directory while Tru64 will put them in the object 3718 # directory. 3719 mkdir sub 3720 3721 am_cv_CC_dependencies_compiler_type=none 3722 if test "$am_compiler_list" = ""; then 3723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3724 fi 3725 am__universal=false 3726 case " $depcc " in #( 3727 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3728 esac 3729 3730 for depmode in $am_compiler_list; do 3731 # Setup a source with many dependencies, because some compilers 3732 # like to wrap large dependency lists on column 80 (with \), and 3733 # we should not choose a depcomp mode which is confused by this. 3734 # 3735 # We need to recreate these files for each test, as the compiler may 3736 # overwrite some of them when testing with obscure command lines. 3737 # This happens at least with the AIX C compiler. 3738 : > sub/conftest.c 3739 for i in 1 2 3 4 5 6; do 3740 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3742 # Solaris 8's {/usr,}/bin/sh. 3743 touch sub/conftst$i.h 3744 done 3745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3746 3747 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3748 # mode. It turns out that the SunPro C++ compiler does not properly 3749 # handle `-M -o', and we need to detect this. Also, some Intel 3750 # versions had trouble with output in subdirs 3751 am__obj=sub/conftest.${OBJEXT-o} 3752 am__minus_obj="-o $am__obj" 3753 case $depmode in 3754 gcc) 3755 # This depmode causes a compiler race in universal mode. 3756 test "$am__universal" = false || continue 3757 ;; 3758 nosideeffect) 3759 # after this tag, mechanisms are not by side-effect, so they'll 3760 # only be used when explicitly requested 3761 if test "x$enable_dependency_tracking" = xyes; then 3762 continue 3763 else 3764 break 3765 fi 3766 ;; 3767 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3768 # This compiler won't grok `-c -o', but also, the minuso test has 3769 # not run yet. These depmodes are late enough in the game, and 3770 # so weak that their functioning should not be impacted. 3771 am__obj=conftest.${OBJEXT-o} 3772 am__minus_obj= 3773 ;; 3774 none) break ;; 3775 esac 3776 if depmode=$depmode \ 3777 source=sub/conftest.c object=$am__obj \ 3778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3780 >/dev/null 2>conftest.err && 3781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3785 # icc doesn't choke on unknown options, it will just issue warnings 3786 # or remarks (even with -Werror). So we grep stderr for any message 3787 # that says an option was ignored or not supported. 3788 # When given -MP, icc 7.0 and 7.1 complain thusly: 3789 # icc: Command line warning: ignoring option '-M'; no argument required 3790 # The diagnosis changed in icc 8.0: 3791 # icc: Command line remark: option '-MP' not supported 3792 if (grep 'ignoring option' conftest.err || 3793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3794 am_cv_CC_dependencies_compiler_type=$depmode 3795 break 3796 fi 3797 fi 3798 done 3799 3800 cd .. 3801 rm -rf conftest.dir 3802else 3803 am_cv_CC_dependencies_compiler_type=none 3804fi 3805 3806fi 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3808$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3809CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3810 3811 if 3812 test "x$enable_dependency_tracking" != xno \ 3813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3814 am__fastdepCC_TRUE= 3815 am__fastdepCC_FALSE='#' 3816else 3817 am__fastdepCC_TRUE='#' 3818 am__fastdepCC_FALSE= 3819fi 3820 3821 3822 3823 3824ac_config_headers="$ac_config_headers gconfig.h:gconfig.in" 3825 3826 3827ac_ext=c 3828ac_cpp='$CPP $CPPFLAGS' 3829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3831ac_compiler_gnu=$ac_cv_c_compiler_gnu 3832if test -n "$ac_tool_prefix"; then 3833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3834set dummy ${ac_tool_prefix}gcc; ac_word=$2 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3836$as_echo_n "checking for $ac_word... " >&6; } 3837if test "${ac_cv_prog_CC+set}" = set; then : 3838 $as_echo_n "(cached) " >&6 3839else 3840 if test -n "$CC"; then 3841 ac_cv_prog_CC="$CC" # Let the user override the test. 3842else 3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3844for as_dir in $PATH 3845do 3846 IFS=$as_save_IFS 3847 test -z "$as_dir" && as_dir=. 3848 for ac_exec_ext in '' $ac_executable_extensions; do 3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3850 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3852 break 2 3853 fi 3854done 3855 done 3856IFS=$as_save_IFS 3857 3858fi 3859fi 3860CC=$ac_cv_prog_CC 3861if test -n "$CC"; then 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3863$as_echo "$CC" >&6; } 3864else 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3866$as_echo "no" >&6; } 3867fi 3868 3869 3870fi 3871if test -z "$ac_cv_prog_CC"; then 3872 ac_ct_CC=$CC 3873 # Extract the first word of "gcc", so it can be a program name with args. 3874set dummy gcc; ac_word=$2 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3876$as_echo_n "checking for $ac_word... " >&6; } 3877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3878 $as_echo_n "(cached) " >&6 3879else 3880 if test -n "$ac_ct_CC"; then 3881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3882else 3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_exec_ext in '' $ac_executable_extensions; do 3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3890 ac_cv_prog_ac_ct_CC="gcc" 3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3892 break 2 3893 fi 3894done 3895 done 3896IFS=$as_save_IFS 3897 3898fi 3899fi 3900ac_ct_CC=$ac_cv_prog_ac_ct_CC 3901if test -n "$ac_ct_CC"; then 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3903$as_echo "$ac_ct_CC" >&6; } 3904else 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3906$as_echo "no" >&6; } 3907fi 3908 3909 if test "x$ac_ct_CC" = x; then 3910 CC="" 3911 else 3912 case $cross_compiling:$ac_tool_warned in 3913yes:) 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3916ac_tool_warned=yes ;; 3917esac 3918 CC=$ac_ct_CC 3919 fi 3920else 3921 CC="$ac_cv_prog_CC" 3922fi 3923 3924if test -z "$CC"; then 3925 if test -n "$ac_tool_prefix"; then 3926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3927set dummy ${ac_tool_prefix}cc; ac_word=$2 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3929$as_echo_n "checking for $ac_word... " >&6; } 3930if test "${ac_cv_prog_CC+set}" = set; then : 3931 $as_echo_n "(cached) " >&6 3932else 3933 if test -n "$CC"; then 3934 ac_cv_prog_CC="$CC" # Let the user override the test. 3935else 3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3937for as_dir in $PATH 3938do 3939 IFS=$as_save_IFS 3940 test -z "$as_dir" && as_dir=. 3941 for ac_exec_ext in '' $ac_executable_extensions; do 3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3943 ac_cv_prog_CC="${ac_tool_prefix}cc" 3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3945 break 2 3946 fi 3947done 3948 done 3949IFS=$as_save_IFS 3950 3951fi 3952fi 3953CC=$ac_cv_prog_CC 3954if test -n "$CC"; then 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3956$as_echo "$CC" >&6; } 3957else 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3959$as_echo "no" >&6; } 3960fi 3961 3962 3963 fi 3964fi 3965if test -z "$CC"; then 3966 # Extract the first word of "cc", so it can be a program name with args. 3967set dummy cc; ac_word=$2 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3969$as_echo_n "checking for $ac_word... " >&6; } 3970if test "${ac_cv_prog_CC+set}" = set; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 if test -n "$CC"; then 3974 ac_cv_prog_CC="$CC" # Let the user override the test. 3975else 3976 ac_prog_rejected=no 3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3978for as_dir in $PATH 3979do 3980 IFS=$as_save_IFS 3981 test -z "$as_dir" && as_dir=. 3982 for ac_exec_ext in '' $ac_executable_extensions; do 3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3985 ac_prog_rejected=yes 3986 continue 3987 fi 3988 ac_cv_prog_CC="cc" 3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3990 break 2 3991 fi 3992done 3993 done 3994IFS=$as_save_IFS 3995 3996if test $ac_prog_rejected = yes; then 3997 # We found a bogon in the path, so make sure we never use it. 3998 set dummy $ac_cv_prog_CC 3999 shift 4000 if test $# != 0; then 4001 # We chose a different compiler from the bogus one. 4002 # However, it has the same basename, so the bogon will be chosen 4003 # first if we set CC to just the basename; use the full file name. 4004 shift 4005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4006 fi 4007fi 4008fi 4009fi 4010CC=$ac_cv_prog_CC 4011if test -n "$CC"; then 4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4013$as_echo "$CC" >&6; } 4014else 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4016$as_echo "no" >&6; } 4017fi 4018 4019 4020fi 4021if test -z "$CC"; then 4022 if test -n "$ac_tool_prefix"; then 4023 for ac_prog in cl.exe 4024 do 4025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4026set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4028$as_echo_n "checking for $ac_word... " >&6; } 4029if test "${ac_cv_prog_CC+set}" = set; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 if test -n "$CC"; then 4033 ac_cv_prog_CC="$CC" # Let the user override the test. 4034else 4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4036for as_dir in $PATH 4037do 4038 IFS=$as_save_IFS 4039 test -z "$as_dir" && as_dir=. 4040 for ac_exec_ext in '' $ac_executable_extensions; do 4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4044 break 2 4045 fi 4046done 4047 done 4048IFS=$as_save_IFS 4049 4050fi 4051fi 4052CC=$ac_cv_prog_CC 4053if test -n "$CC"; then 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4055$as_echo "$CC" >&6; } 4056else 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4058$as_echo "no" >&6; } 4059fi 4060 4061 4062 test -n "$CC" && break 4063 done 4064fi 4065if test -z "$CC"; then 4066 ac_ct_CC=$CC 4067 for ac_prog in cl.exe 4068do 4069 # Extract the first word of "$ac_prog", so it can be a program name with args. 4070set dummy $ac_prog; ac_word=$2 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4072$as_echo_n "checking for $ac_word... " >&6; } 4073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 if test -n "$ac_ct_CC"; then 4077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4078else 4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4080for as_dir in $PATH 4081do 4082 IFS=$as_save_IFS 4083 test -z "$as_dir" && as_dir=. 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4086 ac_cv_prog_ac_ct_CC="$ac_prog" 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4088 break 2 4089 fi 4090done 4091 done 4092IFS=$as_save_IFS 4093 4094fi 4095fi 4096ac_ct_CC=$ac_cv_prog_ac_ct_CC 4097if test -n "$ac_ct_CC"; then 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4099$as_echo "$ac_ct_CC" >&6; } 4100else 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4102$as_echo "no" >&6; } 4103fi 4104 4105 4106 test -n "$ac_ct_CC" && break 4107done 4108 4109 if test "x$ac_ct_CC" = x; then 4110 CC="" 4111 else 4112 case $cross_compiling:$ac_tool_warned in 4113yes:) 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4116ac_tool_warned=yes ;; 4117esac 4118 CC=$ac_ct_CC 4119 fi 4120fi 4121 4122fi 4123 4124 4125test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4127as_fn_error "no acceptable C compiler found in \$PATH 4128See \`config.log' for more details." "$LINENO" 5; } 4129 4130# Provide some information about the compiler. 4131$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4132set X $ac_compile 4133ac_compiler=$2 4134for ac_option in --version -v -V -qversion; do 4135 { { ac_try="$ac_compiler $ac_option >&5" 4136case "(($ac_try" in 4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4138 *) ac_try_echo=$ac_try;; 4139esac 4140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4141$as_echo "$ac_try_echo"; } >&5 4142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4143 ac_status=$? 4144 if test -s conftest.err; then 4145 sed '10a\ 4146... rest of stderr output deleted ... 4147 10q' conftest.err >conftest.er1 4148 cat conftest.er1 >&5 4149 rm -f conftest.er1 conftest.err 4150 fi 4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4152 test $ac_status = 0; } 4153done 4154 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4156$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4157if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162 4163int 4164main () 4165{ 4166#ifndef __GNUC__ 4167 choke me 4168#endif 4169 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174if ac_fn_c_try_compile "$LINENO"; then : 4175 ac_compiler_gnu=yes 4176else 4177 ac_compiler_gnu=no 4178fi 4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4180ac_cv_c_compiler_gnu=$ac_compiler_gnu 4181 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4184$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4185if test $ac_compiler_gnu = yes; then 4186 GCC=yes 4187else 4188 GCC= 4189fi 4190ac_test_CFLAGS=${CFLAGS+set} 4191ac_save_CFLAGS=$CFLAGS 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4193$as_echo_n "checking whether $CC accepts -g... " >&6; } 4194if test "${ac_cv_prog_cc_g+set}" = set; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 ac_save_c_werror_flag=$ac_c_werror_flag 4198 ac_c_werror_flag=yes 4199 ac_cv_prog_cc_g=no 4200 CFLAGS="-g" 4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4202/* end confdefs.h. */ 4203 4204int 4205main () 4206{ 4207 4208 ; 4209 return 0; 4210} 4211_ACEOF 4212if ac_fn_c_try_compile "$LINENO"; then : 4213 ac_cv_prog_cc_g=yes 4214else 4215 CFLAGS="" 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217/* end confdefs.h. */ 4218 4219int 4220main () 4221{ 4222 4223 ; 4224 return 0; 4225} 4226_ACEOF 4227if ac_fn_c_try_compile "$LINENO"; then : 4228 4229else 4230 ac_c_werror_flag=$ac_save_c_werror_flag 4231 CFLAGS="-g" 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233/* end confdefs.h. */ 4234 4235int 4236main () 4237{ 4238 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243if ac_fn_c_try_compile "$LINENO"; then : 4244 ac_cv_prog_cc_g=yes 4245fi 4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4247fi 4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4249fi 4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4251 ac_c_werror_flag=$ac_save_c_werror_flag 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4254$as_echo "$ac_cv_prog_cc_g" >&6; } 4255if test "$ac_test_CFLAGS" = set; then 4256 CFLAGS=$ac_save_CFLAGS 4257elif test $ac_cv_prog_cc_g = yes; then 4258 if test "$GCC" = yes; then 4259 CFLAGS="-g -O2" 4260 else 4261 CFLAGS="-g" 4262 fi 4263else 4264 if test "$GCC" = yes; then 4265 CFLAGS="-O2" 4266 else 4267 CFLAGS= 4268 fi 4269fi 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4271$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4272if test "${ac_cv_prog_cc_c89+set}" = set; then : 4273 $as_echo_n "(cached) " >&6 4274else 4275 ac_cv_prog_cc_c89=no 4276ac_save_CC=$CC 4277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#include <stdarg.h> 4280#include <stdio.h> 4281#include <sys/types.h> 4282#include <sys/stat.h> 4283/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4284struct buf { int x; }; 4285FILE * (*rcsopen) (struct buf *, struct stat *, int); 4286static char *e (p, i) 4287 char **p; 4288 int i; 4289{ 4290 return p[i]; 4291} 4292static char *f (char * (*g) (char **, int), char **p, ...) 4293{ 4294 char *s; 4295 va_list v; 4296 va_start (v,p); 4297 s = g (p, va_arg (v,int)); 4298 va_end (v); 4299 return s; 4300} 4301 4302/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4303 function prototypes and stuff, but not '\xHH' hex character constants. 4304 These don't provoke an error unfortunately, instead are silently treated 4305 as 'x'. The following induces an error, until -std is added to get 4306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4307 array size at least. It's necessary to write '\x00'==0 to get something 4308 that's true only with -std. */ 4309int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4310 4311/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4312 inside strings and character constants. */ 4313#define FOO(x) 'x' 4314int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4315 4316int test (int i, double x); 4317struct s1 {int (*f) (int a);}; 4318struct s2 {int (*f) (double a);}; 4319int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4320int argc; 4321char **argv; 4322int 4323main () 4324{ 4325return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4326 ; 4327 return 0; 4328} 4329_ACEOF 4330for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4332do 4333 CC="$ac_save_CC $ac_arg" 4334 if ac_fn_c_try_compile "$LINENO"; then : 4335 ac_cv_prog_cc_c89=$ac_arg 4336fi 4337rm -f core conftest.err conftest.$ac_objext 4338 test "x$ac_cv_prog_cc_c89" != "xno" && break 4339done 4340rm -f conftest.$ac_ext 4341CC=$ac_save_CC 4342 4343fi 4344# AC_CACHE_VAL 4345case "x$ac_cv_prog_cc_c89" in 4346 x) 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4348$as_echo "none needed" >&6; } ;; 4349 xno) 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4351$as_echo "unsupported" >&6; } ;; 4352 *) 4353 CC="$CC $ac_cv_prog_cc_c89" 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4355$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4356esac 4357if test "x$ac_cv_prog_cc_c89" != xno; then : 4358 4359fi 4360 4361ac_ext=c 4362ac_cpp='$CPP $CPPFLAGS' 4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4365ac_compiler_gnu=$ac_cv_c_compiler_gnu 4366 4367ac_ext=c 4368ac_cpp='$CPP $CPPFLAGS' 4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4371ac_compiler_gnu=$ac_cv_c_compiler_gnu 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4373$as_echo_n "checking how to run the C preprocessor... " >&6; } 4374# On Suns, sometimes $CPP names a directory. 4375if test -n "$CPP" && test -d "$CPP"; then 4376 CPP= 4377fi 4378if test -z "$CPP"; then 4379 if test "${ac_cv_prog_CPP+set}" = set; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 # Double quotes because CPP needs to be expanded 4383 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4384 do 4385 ac_preproc_ok=false 4386for ac_c_preproc_warn_flag in '' yes 4387do 4388 # Use a header file that comes with gcc, so configuring glibc 4389 # with a fresh cross-compiler works. 4390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4391 # <limits.h> exists even on freestanding compilers. 4392 # On the NeXT, cc -E runs the code through the compiler's parser, 4393 # not just through cpp. "Syntax error" is here to catch this case. 4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4395/* end confdefs.h. */ 4396#ifdef __STDC__ 4397# include <limits.h> 4398#else 4399# include <assert.h> 4400#endif 4401 Syntax error 4402_ACEOF 4403if ac_fn_c_try_cpp "$LINENO"; then : 4404 4405else 4406 # Broken: fails on valid input. 4407continue 4408fi 4409rm -f conftest.err conftest.$ac_ext 4410 4411 # OK, works on sane cases. Now check whether nonexistent headers 4412 # can be detected and how. 4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4414/* end confdefs.h. */ 4415#include <ac_nonexistent.h> 4416_ACEOF 4417if ac_fn_c_try_cpp "$LINENO"; then : 4418 # Broken: success on invalid input. 4419continue 4420else 4421 # Passes both tests. 4422ac_preproc_ok=: 4423break 4424fi 4425rm -f conftest.err conftest.$ac_ext 4426 4427done 4428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4429rm -f conftest.err conftest.$ac_ext 4430if $ac_preproc_ok; then : 4431 break 4432fi 4433 4434 done 4435 ac_cv_prog_CPP=$CPP 4436 4437fi 4438 CPP=$ac_cv_prog_CPP 4439else 4440 ac_cv_prog_CPP=$CPP 4441fi 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4443$as_echo "$CPP" >&6; } 4444ac_preproc_ok=false 4445for ac_c_preproc_warn_flag in '' yes 4446do 4447 # Use a header file that comes with gcc, so configuring glibc 4448 # with a fresh cross-compiler works. 4449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4450 # <limits.h> exists even on freestanding compilers. 4451 # On the NeXT, cc -E runs the code through the compiler's parser, 4452 # not just through cpp. "Syntax error" is here to catch this case. 4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4454/* end confdefs.h. */ 4455#ifdef __STDC__ 4456# include <limits.h> 4457#else 4458# include <assert.h> 4459#endif 4460 Syntax error 4461_ACEOF 4462if ac_fn_c_try_cpp "$LINENO"; then : 4463 4464else 4465 # Broken: fails on valid input. 4466continue 4467fi 4468rm -f conftest.err conftest.$ac_ext 4469 4470 # OK, works on sane cases. Now check whether nonexistent headers 4471 # can be detected and how. 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4473/* end confdefs.h. */ 4474#include <ac_nonexistent.h> 4475_ACEOF 4476if ac_fn_c_try_cpp "$LINENO"; then : 4477 # Broken: success on invalid input. 4478continue 4479else 4480 # Passes both tests. 4481ac_preproc_ok=: 4482break 4483fi 4484rm -f conftest.err conftest.$ac_ext 4485 4486done 4487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4488rm -f conftest.err conftest.$ac_ext 4489if $ac_preproc_ok; then : 4490 4491else 4492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4494as_fn_error "C preprocessor \"$CPP\" fails sanity check 4495See \`config.log' for more details." "$LINENO" 5; } 4496fi 4497 4498ac_ext=c 4499ac_cpp='$CPP $CPPFLAGS' 4500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4502ac_compiler_gnu=$ac_cv_c_compiler_gnu 4503 4504 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4506$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4507if test "${ac_cv_path_GREP+set}" = set; then : 4508 $as_echo_n "(cached) " >&6 4509else 4510 if test -z "$GREP"; then 4511 ac_path_GREP_found=false 4512 # Loop through the user's path and test for each of PROGNAME-LIST 4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4515do 4516 IFS=$as_save_IFS 4517 test -z "$as_dir" && as_dir=. 4518 for ac_prog in grep ggrep; do 4519 for ac_exec_ext in '' $ac_executable_extensions; do 4520 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4521 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4522# Check for GNU ac_path_GREP and select it if it is found. 4523 # Check for GNU $ac_path_GREP 4524case `"$ac_path_GREP" --version 2>&1` in 4525*GNU*) 4526 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4527*) 4528 ac_count=0 4529 $as_echo_n 0123456789 >"conftest.in" 4530 while : 4531 do 4532 cat "conftest.in" "conftest.in" >"conftest.tmp" 4533 mv "conftest.tmp" "conftest.in" 4534 cp "conftest.in" "conftest.nl" 4535 $as_echo 'GREP' >> "conftest.nl" 4536 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4538 as_fn_arith $ac_count + 1 && ac_count=$as_val 4539 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4540 # Best one so far, save it but keep looking for a better one 4541 ac_cv_path_GREP="$ac_path_GREP" 4542 ac_path_GREP_max=$ac_count 4543 fi 4544 # 10*(2^10) chars as input seems more than enough 4545 test $ac_count -gt 10 && break 4546 done 4547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4548esac 4549 4550 $ac_path_GREP_found && break 3 4551 done 4552 done 4553 done 4554IFS=$as_save_IFS 4555 if test -z "$ac_cv_path_GREP"; then 4556 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4557 fi 4558else 4559 ac_cv_path_GREP=$GREP 4560fi 4561 4562fi 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4564$as_echo "$ac_cv_path_GREP" >&6; } 4565 GREP="$ac_cv_path_GREP" 4566 4567 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4569$as_echo_n "checking for egrep... " >&6; } 4570if test "${ac_cv_path_EGREP+set}" = set; then : 4571 $as_echo_n "(cached) " >&6 4572else 4573 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4574 then ac_cv_path_EGREP="$GREP -E" 4575 else 4576 if test -z "$EGREP"; then 4577 ac_path_EGREP_found=false 4578 # Loop through the user's path and test for each of PROGNAME-LIST 4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4581do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_prog in egrep; do 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4587 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4588# Check for GNU ac_path_EGREP and select it if it is found. 4589 # Check for GNU $ac_path_EGREP 4590case `"$ac_path_EGREP" --version 2>&1` in 4591*GNU*) 4592 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4593*) 4594 ac_count=0 4595 $as_echo_n 0123456789 >"conftest.in" 4596 while : 4597 do 4598 cat "conftest.in" "conftest.in" >"conftest.tmp" 4599 mv "conftest.tmp" "conftest.in" 4600 cp "conftest.in" "conftest.nl" 4601 $as_echo 'EGREP' >> "conftest.nl" 4602 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4604 as_fn_arith $ac_count + 1 && ac_count=$as_val 4605 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4606 # Best one so far, save it but keep looking for a better one 4607 ac_cv_path_EGREP="$ac_path_EGREP" 4608 ac_path_EGREP_max=$ac_count 4609 fi 4610 # 10*(2^10) chars as input seems more than enough 4611 test $ac_count -gt 10 && break 4612 done 4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4614esac 4615 4616 $ac_path_EGREP_found && break 3 4617 done 4618 done 4619 done 4620IFS=$as_save_IFS 4621 if test -z "$ac_cv_path_EGREP"; then 4622 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4623 fi 4624else 4625 ac_cv_path_EGREP=$EGREP 4626fi 4627 4628 fi 4629fi 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4631$as_echo "$ac_cv_path_EGREP" >&6; } 4632 EGREP="$ac_cv_path_EGREP" 4633 4634 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4636$as_echo_n "checking for ANSI C header files... " >&6; } 4637if test "${ac_cv_header_stdc+set}" = set; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641/* end confdefs.h. */ 4642#include <stdlib.h> 4643#include <stdarg.h> 4644#include <string.h> 4645#include <float.h> 4646 4647int 4648main () 4649{ 4650 4651 ; 4652 return 0; 4653} 4654_ACEOF 4655if ac_fn_c_try_compile "$LINENO"; then : 4656 ac_cv_header_stdc=yes 4657else 4658 ac_cv_header_stdc=no 4659fi 4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4661 4662if test $ac_cv_header_stdc = yes; then 4663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666#include <string.h> 4667 4668_ACEOF 4669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4670 $EGREP "memchr" >/dev/null 2>&1; then : 4671 4672else 4673 ac_cv_header_stdc=no 4674fi 4675rm -f conftest* 4676 4677fi 4678 4679if test $ac_cv_header_stdc = yes; then 4680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4682/* end confdefs.h. */ 4683#include <stdlib.h> 4684 4685_ACEOF 4686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4687 $EGREP "free" >/dev/null 2>&1; then : 4688 4689else 4690 ac_cv_header_stdc=no 4691fi 4692rm -f conftest* 4693 4694fi 4695 4696if test $ac_cv_header_stdc = yes; then 4697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4698 if test "$cross_compiling" = yes; then : 4699 : 4700else 4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702/* end confdefs.h. */ 4703#include <ctype.h> 4704#include <stdlib.h> 4705#if ((' ' & 0x0FF) == 0x020) 4706# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4707# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4708#else 4709# define ISLOWER(c) \ 4710 (('a' <= (c) && (c) <= 'i') \ 4711 || ('j' <= (c) && (c) <= 'r') \ 4712 || ('s' <= (c) && (c) <= 'z')) 4713# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4714#endif 4715 4716#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4717int 4718main () 4719{ 4720 int i; 4721 for (i = 0; i < 256; i++) 4722 if (XOR (islower (i), ISLOWER (i)) 4723 || toupper (i) != TOUPPER (i)) 4724 return 2; 4725 return 0; 4726} 4727_ACEOF 4728if ac_fn_c_try_run "$LINENO"; then : 4729 4730else 4731 ac_cv_header_stdc=no 4732fi 4733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4734 conftest.$ac_objext conftest.beam conftest.$ac_ext 4735fi 4736 4737fi 4738fi 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4740$as_echo "$ac_cv_header_stdc" >&6; } 4741if test $ac_cv_header_stdc = yes; then 4742 4743$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4744 4745fi 4746 4747# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4748for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4749 inttypes.h stdint.h unistd.h 4750do : 4751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4752ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4753" 4754eval as_val=\$$as_ac_Header 4755 if test "x$as_val" = x""yes; then : 4756 cat >>confdefs.h <<_ACEOF 4757#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4758_ACEOF 4759 4760fi 4761 4762done 4763 4764 4765 4766 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4767if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4768 MINIX=yes 4769else 4770 MINIX= 4771fi 4772 4773 4774 if test "$MINIX" = yes; then 4775 4776$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4777 4778 4779$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4780 4781 4782$as_echo "#define _MINIX 1" >>confdefs.h 4783 4784 fi 4785 4786 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4788$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4789if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793/* end confdefs.h. */ 4794 4795# define __EXTENSIONS__ 1 4796 $ac_includes_default 4797int 4798main () 4799{ 4800 4801 ; 4802 return 0; 4803} 4804_ACEOF 4805if ac_fn_c_try_compile "$LINENO"; then : 4806 ac_cv_safe_to_define___extensions__=yes 4807else 4808 ac_cv_safe_to_define___extensions__=no 4809fi 4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4811fi 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4813$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4814 test $ac_cv_safe_to_define___extensions__ = yes && 4815 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4816 4817 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4818 4819 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4820 4821 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4822 4823 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4824 4825 4826 4827 4828 4829 4830case `pwd` in 4831 *\ * | *\ *) 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4833$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4834esac 4835 4836 4837 4838macro_version='2.2.7a' 4839macro_revision='1.3134' 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853ltmain="$ac_aux_dir/ltmain.sh" 4854 4855# Backslashify metacharacters that are still active within 4856# double-quoted strings. 4857sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4858 4859# Same as above, but do not quote variable references. 4860double_quote_subst='s/\(["`\\]\)/\\\1/g' 4861 4862# Sed substitution to delay expansion of an escaped shell variable in a 4863# double_quote_subst'ed string. 4864delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4865 4866# Sed substitution to delay expansion of an escaped single quote. 4867delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4868 4869# Sed substitution to avoid accidental globbing in evaled expressions 4870no_glob_subst='s/\*/\\\*/g' 4871 4872ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4873ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4874ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4875 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4877$as_echo_n "checking how to print strings... " >&6; } 4878# Test print first, because it will be a builtin if present. 4879if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4880 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4881 ECHO='print -r --' 4882elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4883 ECHO='printf %s\n' 4884else 4885 # Use this function as a fallback that always works. 4886 func_fallback_echo () 4887 { 4888 eval 'cat <<_LTECHO_EOF 4889$1 4890_LTECHO_EOF' 4891 } 4892 ECHO='func_fallback_echo' 4893fi 4894 4895# func_echo_all arg... 4896# Invoke $ECHO with all args, space-separated. 4897func_echo_all () 4898{ 4899 $ECHO "" 4900} 4901 4902case "$ECHO" in 4903 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4904$as_echo "printf" >&6; } ;; 4905 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4906$as_echo "print -r" >&6; } ;; 4907 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4908$as_echo "cat" >&6; } ;; 4909esac 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4925$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4926if test "${ac_cv_path_SED+set}" = set; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4930 for ac_i in 1 2 3 4 5 6 7; do 4931 ac_script="$ac_script$as_nl$ac_script" 4932 done 4933 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4934 { ac_script=; unset ac_script;} 4935 if test -z "$SED"; then 4936 ac_path_SED_found=false 4937 # Loop through the user's path and test for each of PROGNAME-LIST 4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4939for as_dir in $PATH 4940do 4941 IFS=$as_save_IFS 4942 test -z "$as_dir" && as_dir=. 4943 for ac_prog in sed gsed; do 4944 for ac_exec_ext in '' $ac_executable_extensions; do 4945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4946 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4947# Check for GNU ac_path_SED and select it if it is found. 4948 # Check for GNU $ac_path_SED 4949case `"$ac_path_SED" --version 2>&1` in 4950*GNU*) 4951 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4952*) 4953 ac_count=0 4954 $as_echo_n 0123456789 >"conftest.in" 4955 while : 4956 do 4957 cat "conftest.in" "conftest.in" >"conftest.tmp" 4958 mv "conftest.tmp" "conftest.in" 4959 cp "conftest.in" "conftest.nl" 4960 $as_echo '' >> "conftest.nl" 4961 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4963 as_fn_arith $ac_count + 1 && ac_count=$as_val 4964 if test $ac_count -gt ${ac_path_SED_max-0}; then 4965 # Best one so far, save it but keep looking for a better one 4966 ac_cv_path_SED="$ac_path_SED" 4967 ac_path_SED_max=$ac_count 4968 fi 4969 # 10*(2^10) chars as input seems more than enough 4970 test $ac_count -gt 10 && break 4971 done 4972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4973esac 4974 4975 $ac_path_SED_found && break 3 4976 done 4977 done 4978 done 4979IFS=$as_save_IFS 4980 if test -z "$ac_cv_path_SED"; then 4981 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4982 fi 4983else 4984 ac_cv_path_SED=$SED 4985fi 4986 4987fi 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4989$as_echo "$ac_cv_path_SED" >&6; } 4990 SED="$ac_cv_path_SED" 4991 rm -f conftest.sed 4992 4993test -z "$SED" && SED=sed 4994Xsed="$SED -e 1s/^X//" 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5007$as_echo_n "checking for fgrep... " >&6; } 5008if test "${ac_cv_path_FGREP+set}" = set; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5012 then ac_cv_path_FGREP="$GREP -F" 5013 else 5014 if test -z "$FGREP"; then 5015 ac_path_FGREP_found=false 5016 # Loop through the user's path and test for each of PROGNAME-LIST 5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5019do 5020 IFS=$as_save_IFS 5021 test -z "$as_dir" && as_dir=. 5022 for ac_prog in fgrep; do 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5025 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5026# Check for GNU ac_path_FGREP and select it if it is found. 5027 # Check for GNU $ac_path_FGREP 5028case `"$ac_path_FGREP" --version 2>&1` in 5029*GNU*) 5030 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5031*) 5032 ac_count=0 5033 $as_echo_n 0123456789 >"conftest.in" 5034 while : 5035 do 5036 cat "conftest.in" "conftest.in" >"conftest.tmp" 5037 mv "conftest.tmp" "conftest.in" 5038 cp "conftest.in" "conftest.nl" 5039 $as_echo 'FGREP' >> "conftest.nl" 5040 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5042 as_fn_arith $ac_count + 1 && ac_count=$as_val 5043 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5044 # Best one so far, save it but keep looking for a better one 5045 ac_cv_path_FGREP="$ac_path_FGREP" 5046 ac_path_FGREP_max=$ac_count 5047 fi 5048 # 10*(2^10) chars as input seems more than enough 5049 test $ac_count -gt 10 && break 5050 done 5051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5052esac 5053 5054 $ac_path_FGREP_found && break 3 5055 done 5056 done 5057 done 5058IFS=$as_save_IFS 5059 if test -z "$ac_cv_path_FGREP"; then 5060 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5061 fi 5062else 5063 ac_cv_path_FGREP=$FGREP 5064fi 5065 5066 fi 5067fi 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5069$as_echo "$ac_cv_path_FGREP" >&6; } 5070 FGREP="$ac_cv_path_FGREP" 5071 5072 5073test -z "$GREP" && GREP=grep 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093# Check whether --with-gnu-ld was given. 5094if test "${with_gnu_ld+set}" = set; then : 5095 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5096else 5097 with_gnu_ld=no 5098fi 5099 5100ac_prog=ld 5101if test "$GCC" = yes; then 5102 # Check if gcc -print-prog-name=ld gives a path. 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5104$as_echo_n "checking for ld used by $CC... " >&6; } 5105 case $host in 5106 *-*-mingw*) 5107 # gcc leaves a trailing carriage return which upsets mingw 5108 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5109 *) 5110 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5111 esac 5112 case $ac_prog in 5113 # Accept absolute paths. 5114 [\\/]* | ?:[\\/]*) 5115 re_direlt='/[^/][^/]*/\.\./' 5116 # Canonicalize the pathname of ld 5117 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5118 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5119 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5120 done 5121 test -z "$LD" && LD="$ac_prog" 5122 ;; 5123 "") 5124 # If it fails, then pretend we aren't using GCC. 5125 ac_prog=ld 5126 ;; 5127 *) 5128 # If it is relative, then search for the first ld in PATH. 5129 with_gnu_ld=unknown 5130 ;; 5131 esac 5132elif test "$with_gnu_ld" = yes; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5134$as_echo_n "checking for GNU ld... " >&6; } 5135else 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5137$as_echo_n "checking for non-GNU ld... " >&6; } 5138fi 5139if test "${lt_cv_path_LD+set}" = set; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 if test -z "$LD"; then 5143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5144 for ac_dir in $PATH; do 5145 IFS="$lt_save_ifs" 5146 test -z "$ac_dir" && ac_dir=. 5147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5148 lt_cv_path_LD="$ac_dir/$ac_prog" 5149 # Check to see if the program is GNU ld. I'd rather use --version, 5150 # but apparently some variants of GNU ld only accept -v. 5151 # Break only if it was the GNU/non-GNU ld that we prefer. 5152 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5153 *GNU* | *'with BFD'*) 5154 test "$with_gnu_ld" != no && break 5155 ;; 5156 *) 5157 test "$with_gnu_ld" != yes && break 5158 ;; 5159 esac 5160 fi 5161 done 5162 IFS="$lt_save_ifs" 5163else 5164 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5165fi 5166fi 5167 5168LD="$lt_cv_path_LD" 5169if test -n "$LD"; then 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5171$as_echo "$LD" >&6; } 5172else 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5174$as_echo "no" >&6; } 5175fi 5176test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5178$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5179if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5183case `$LD -v 2>&1 </dev/null` in 5184*GNU* | *'with BFD'*) 5185 lt_cv_prog_gnu_ld=yes 5186 ;; 5187*) 5188 lt_cv_prog_gnu_ld=no 5189 ;; 5190esac 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5193$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5194with_gnu_ld=$lt_cv_prog_gnu_ld 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5205$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5206if test "${lt_cv_path_NM+set}" = set; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 if test -n "$NM"; then 5210 # Let the user override the test. 5211 lt_cv_path_NM="$NM" 5212else 5213 lt_nm_to_check="${ac_tool_prefix}nm" 5214 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5215 lt_nm_to_check="$lt_nm_to_check nm" 5216 fi 5217 for lt_tmp_nm in $lt_nm_to_check; do 5218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5219 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5220 IFS="$lt_save_ifs" 5221 test -z "$ac_dir" && ac_dir=. 5222 tmp_nm="$ac_dir/$lt_tmp_nm" 5223 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5224 # Check to see if the nm accepts a BSD-compat flag. 5225 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5226 # nm: unknown option "B" ignored 5227 # Tru64's nm complains that /dev/null is an invalid object file 5228 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5229 */dev/null* | *'Invalid file or object type'*) 5230 lt_cv_path_NM="$tmp_nm -B" 5231 break 5232 ;; 5233 *) 5234 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5235 */dev/null*) 5236 lt_cv_path_NM="$tmp_nm -p" 5237 break 5238 ;; 5239 *) 5240 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5241 continue # so that we can try to find one that supports BSD flags 5242 ;; 5243 esac 5244 ;; 5245 esac 5246 fi 5247 done 5248 IFS="$lt_save_ifs" 5249 done 5250 : ${lt_cv_path_NM=no} 5251fi 5252fi 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5254$as_echo "$lt_cv_path_NM" >&6; } 5255if test "$lt_cv_path_NM" != "no"; then 5256 NM="$lt_cv_path_NM" 5257else 5258 # Didn't find any BSD compatible name lister, look for dumpbin. 5259 if test -n "$DUMPBIN"; then : 5260 # Let the user override the test. 5261 else 5262 if test -n "$ac_tool_prefix"; then 5263 for ac_prog in dumpbin "link -dump" 5264 do 5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5266set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5268$as_echo_n "checking for $ac_word... " >&6; } 5269if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5270 $as_echo_n "(cached) " >&6 5271else 5272 if test -n "$DUMPBIN"; then 5273 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5274else 5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5276for as_dir in $PATH 5277do 5278 IFS=$as_save_IFS 5279 test -z "$as_dir" && as_dir=. 5280 for ac_exec_ext in '' $ac_executable_extensions; do 5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5282 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5284 break 2 5285 fi 5286done 5287 done 5288IFS=$as_save_IFS 5289 5290fi 5291fi 5292DUMPBIN=$ac_cv_prog_DUMPBIN 5293if test -n "$DUMPBIN"; then 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5295$as_echo "$DUMPBIN" >&6; } 5296else 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5298$as_echo "no" >&6; } 5299fi 5300 5301 5302 test -n "$DUMPBIN" && break 5303 done 5304fi 5305if test -z "$DUMPBIN"; then 5306 ac_ct_DUMPBIN=$DUMPBIN 5307 for ac_prog in dumpbin "link -dump" 5308do 5309 # Extract the first word of "$ac_prog", so it can be a program name with args. 5310set dummy $ac_prog; ac_word=$2 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5312$as_echo_n "checking for $ac_word... " >&6; } 5313if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5314 $as_echo_n "(cached) " >&6 5315else 5316 if test -n "$ac_ct_DUMPBIN"; then 5317 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5318else 5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5320for as_dir in $PATH 5321do 5322 IFS=$as_save_IFS 5323 test -z "$as_dir" && as_dir=. 5324 for ac_exec_ext in '' $ac_executable_extensions; do 5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5326 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5328 break 2 5329 fi 5330done 5331 done 5332IFS=$as_save_IFS 5333 5334fi 5335fi 5336ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5337if test -n "$ac_ct_DUMPBIN"; then 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5339$as_echo "$ac_ct_DUMPBIN" >&6; } 5340else 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5342$as_echo "no" >&6; } 5343fi 5344 5345 5346 test -n "$ac_ct_DUMPBIN" && break 5347done 5348 5349 if test "x$ac_ct_DUMPBIN" = x; then 5350 DUMPBIN=":" 5351 else 5352 case $cross_compiling:$ac_tool_warned in 5353yes:) 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5356ac_tool_warned=yes ;; 5357esac 5358 DUMPBIN=$ac_ct_DUMPBIN 5359 fi 5360fi 5361 5362 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5363 *COFF*) 5364 DUMPBIN="$DUMPBIN -symbols" 5365 ;; 5366 *) 5367 DUMPBIN=: 5368 ;; 5369 esac 5370 fi 5371 5372 if test "$DUMPBIN" != ":"; then 5373 NM="$DUMPBIN" 5374 fi 5375fi 5376test -z "$NM" && NM=nm 5377 5378 5379 5380 5381 5382 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5384$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5385if test "${lt_cv_nm_interface+set}" = set; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 lt_cv_nm_interface="BSD nm" 5389 echo "int some_variable = 0;" > conftest.$ac_ext 5390 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5391 (eval "$ac_compile" 2>conftest.err) 5392 cat conftest.err >&5 5393 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5394 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5395 cat conftest.err >&5 5396 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5397 cat conftest.out >&5 5398 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5399 lt_cv_nm_interface="MS dumpbin" 5400 fi 5401 rm -f conftest* 5402fi 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5404$as_echo "$lt_cv_nm_interface" >&6; } 5405 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5407$as_echo_n "checking whether ln -s works... " >&6; } 5408LN_S=$as_ln_s 5409if test "$LN_S" = "ln -s"; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5411$as_echo "yes" >&6; } 5412else 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5414$as_echo "no, using $LN_S" >&6; } 5415fi 5416 5417# find the maximum length of command line arguments 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5419$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5420if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 i=0 5424 teststring="ABCD" 5425 5426 case $build_os in 5427 msdosdjgpp*) 5428 # On DJGPP, this test can blow up pretty badly due to problems in libc 5429 # (any single argument exceeding 2000 bytes causes a buffer overrun 5430 # during glob expansion). Even if it were fixed, the result of this 5431 # check would be larger than it should be. 5432 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5433 ;; 5434 5435 gnu*) 5436 # Under GNU Hurd, this test is not required because there is 5437 # no limit to the length of command line arguments. 5438 # Libtool will interpret -1 as no limit whatsoever 5439 lt_cv_sys_max_cmd_len=-1; 5440 ;; 5441 5442 cygwin* | mingw* | cegcc*) 5443 # On Win9x/ME, this test blows up -- it succeeds, but takes 5444 # about 5 minutes as the teststring grows exponentially. 5445 # Worse, since 9x/ME are not pre-emptively multitasking, 5446 # you end up with a "frozen" computer, even though with patience 5447 # the test eventually succeeds (with a max line length of 256k). 5448 # Instead, let's just punt: use the minimum linelength reported by 5449 # all of the supported platforms: 8192 (on NT/2K/XP). 5450 lt_cv_sys_max_cmd_len=8192; 5451 ;; 5452 5453 mint*) 5454 # On MiNT this can take a long time and run out of memory. 5455 lt_cv_sys_max_cmd_len=8192; 5456 ;; 5457 5458 amigaos*) 5459 # On AmigaOS with pdksh, this test takes hours, literally. 5460 # So we just punt and use a minimum line length of 8192. 5461 lt_cv_sys_max_cmd_len=8192; 5462 ;; 5463 5464 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5465 # This has been around since 386BSD, at least. Likely further. 5466 if test -x /sbin/sysctl; then 5467 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5468 elif test -x /usr/sbin/sysctl; then 5469 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5470 else 5471 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5472 fi 5473 # And add a safety zone 5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5476 ;; 5477 5478 interix*) 5479 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5480 lt_cv_sys_max_cmd_len=196608 5481 ;; 5482 5483 osf*) 5484 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5485 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5486 # nice to cause kernel panics so lets avoid the loop below. 5487 # First set a reasonable default. 5488 lt_cv_sys_max_cmd_len=16384 5489 # 5490 if test -x /sbin/sysconfig; then 5491 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5492 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5493 esac 5494 fi 5495 ;; 5496 sco3.2v5*) 5497 lt_cv_sys_max_cmd_len=102400 5498 ;; 5499 sysv5* | sco5v6* | sysv4.2uw2*) 5500 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5501 if test -n "$kargmax"; then 5502 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5503 else 5504 lt_cv_sys_max_cmd_len=32768 5505 fi 5506 ;; 5507 *) 5508 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5509 if test -n "$lt_cv_sys_max_cmd_len"; then 5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5512 else 5513 # Make teststring a little bigger before we do anything with it. 5514 # a 1K string should be a reasonable start. 5515 for i in 1 2 3 4 5 6 7 8 ; do 5516 teststring=$teststring$teststring 5517 done 5518 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5519 # If test is not a shell built-in, we'll probably end up computing a 5520 # maximum length that is only half of the actual maximum length, but 5521 # we can't tell. 5522 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5523 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5524 test $i != 17 # 1/2 MB should be enough 5525 do 5526 i=`expr $i + 1` 5527 teststring=$teststring$teststring 5528 done 5529 # Only check the string length outside the loop. 5530 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5531 teststring= 5532 # Add a significant safety factor because C++ compilers can tack on 5533 # massive amounts of additional arguments before passing them to the 5534 # linker. It appears as though 1/2 is a usable value. 5535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5536 fi 5537 ;; 5538 esac 5539 5540fi 5541 5542if test -n $lt_cv_sys_max_cmd_len ; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5544$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5547$as_echo "none" >&6; } 5548fi 5549max_cmd_len=$lt_cv_sys_max_cmd_len 5550 5551 5552 5553 5554 5555 5556: ${CP="cp -f"} 5557: ${MV="mv -f"} 5558: ${RM="rm -f"} 5559 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5561$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5562# Try some XSI features 5563xsi_shell=no 5564( _lt_dummy="a/b/c" 5565 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5566 = c,a/b,, \ 5567 && eval 'test $(( 1 + 1 )) -eq 2 \ 5568 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5569 && xsi_shell=yes 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5571$as_echo "$xsi_shell" >&6; } 5572 5573 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5575$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5576lt_shell_append=no 5577( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5578 >/dev/null 2>&1 \ 5579 && lt_shell_append=yes 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5581$as_echo "$lt_shell_append" >&6; } 5582 5583 5584if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5585 lt_unset=unset 5586else 5587 lt_unset=false 5588fi 5589 5590 5591 5592 5593 5594# test EBCDIC or ASCII 5595case `echo X|tr X '\101'` in 5596 A) # ASCII based system 5597 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5598 lt_SP2NL='tr \040 \012' 5599 lt_NL2SP='tr \015\012 \040\040' 5600 ;; 5601 *) # EBCDIC based system 5602 lt_SP2NL='tr \100 \n' 5603 lt_NL2SP='tr \r\n \100\100' 5604 ;; 5605esac 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5616$as_echo_n "checking for $LD option to reload object files... " >&6; } 5617if test "${lt_cv_ld_reload_flag+set}" = set; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 lt_cv_ld_reload_flag='-r' 5621fi 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5623$as_echo "$lt_cv_ld_reload_flag" >&6; } 5624reload_flag=$lt_cv_ld_reload_flag 5625case $reload_flag in 5626"" | " "*) ;; 5627*) reload_flag=" $reload_flag" ;; 5628esac 5629reload_cmds='$LD$reload_flag -o $output$reload_objs' 5630case $host_os in 5631 darwin*) 5632 if test "$GCC" = yes; then 5633 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5634 else 5635 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5636 fi 5637 ;; 5638esac 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648if test -n "$ac_tool_prefix"; then 5649 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5650set dummy ${ac_tool_prefix}objdump; ac_word=$2 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5652$as_echo_n "checking for $ac_word... " >&6; } 5653if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 if test -n "$OBJDUMP"; then 5657 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5658else 5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5660for as_dir in $PATH 5661do 5662 IFS=$as_save_IFS 5663 test -z "$as_dir" && as_dir=. 5664 for ac_exec_ext in '' $ac_executable_extensions; do 5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5666 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5668 break 2 5669 fi 5670done 5671 done 5672IFS=$as_save_IFS 5673 5674fi 5675fi 5676OBJDUMP=$ac_cv_prog_OBJDUMP 5677if test -n "$OBJDUMP"; then 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5679$as_echo "$OBJDUMP" >&6; } 5680else 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5682$as_echo "no" >&6; } 5683fi 5684 5685 5686fi 5687if test -z "$ac_cv_prog_OBJDUMP"; then 5688 ac_ct_OBJDUMP=$OBJDUMP 5689 # Extract the first word of "objdump", so it can be a program name with args. 5690set dummy objdump; ac_word=$2 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5692$as_echo_n "checking for $ac_word... " >&6; } 5693if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 if test -n "$ac_ct_OBJDUMP"; then 5697 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5698else 5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5700for as_dir in $PATH 5701do 5702 IFS=$as_save_IFS 5703 test -z "$as_dir" && as_dir=. 5704 for ac_exec_ext in '' $ac_executable_extensions; do 5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5706 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5708 break 2 5709 fi 5710done 5711 done 5712IFS=$as_save_IFS 5713 5714fi 5715fi 5716ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5717if test -n "$ac_ct_OBJDUMP"; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5719$as_echo "$ac_ct_OBJDUMP" >&6; } 5720else 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5722$as_echo "no" >&6; } 5723fi 5724 5725 if test "x$ac_ct_OBJDUMP" = x; then 5726 OBJDUMP="false" 5727 else 5728 case $cross_compiling:$ac_tool_warned in 5729yes:) 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5732ac_tool_warned=yes ;; 5733esac 5734 OBJDUMP=$ac_ct_OBJDUMP 5735 fi 5736else 5737 OBJDUMP="$ac_cv_prog_OBJDUMP" 5738fi 5739 5740test -z "$OBJDUMP" && OBJDUMP=objdump 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5751$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5752if test "${lt_cv_deplibs_check_method+set}" = set; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 lt_cv_file_magic_cmd='$MAGIC_CMD' 5756lt_cv_file_magic_test_file= 5757lt_cv_deplibs_check_method='unknown' 5758# Need to set the preceding variable on all platforms that support 5759# interlibrary dependencies. 5760# 'none' -- dependencies not supported. 5761# `unknown' -- same as none, but documents that we really don't know. 5762# 'pass_all' -- all dependencies passed with no checks. 5763# 'test_compile' -- check by making test program. 5764# 'file_magic [[regex]]' -- check by looking for files in library path 5765# which responds to the $file_magic_cmd with a given extended regex. 5766# If you have `file' or equivalent on your system and you're not sure 5767# whether `pass_all' will *always* work, you probably want this one. 5768 5769case $host_os in 5770aix[4-9]*) 5771 lt_cv_deplibs_check_method=pass_all 5772 ;; 5773 5774beos*) 5775 lt_cv_deplibs_check_method=pass_all 5776 ;; 5777 5778bsdi[45]*) 5779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5780 lt_cv_file_magic_cmd='/usr/bin/file -L' 5781 lt_cv_file_magic_test_file=/shlib/libc.so 5782 ;; 5783 5784cygwin*) 5785 # func_win32_libid is a shell function defined in ltmain.sh 5786 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5787 lt_cv_file_magic_cmd='func_win32_libid' 5788 ;; 5789 5790mingw* | pw32*) 5791 # Base MSYS/MinGW do not provide the 'file' command needed by 5792 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5793 # unless we find 'file', for example because we are cross-compiling. 5794 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5795 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5797 lt_cv_file_magic_cmd='func_win32_libid' 5798 else 5799 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5800 lt_cv_file_magic_cmd='$OBJDUMP -f' 5801 fi 5802 ;; 5803 5804cegcc*) 5805 # use the weaker test based on 'objdump'. See mingw*. 5806 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5807 lt_cv_file_magic_cmd='$OBJDUMP -f' 5808 ;; 5809 5810darwin* | rhapsody*) 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813 5814freebsd* | dragonfly*) 5815 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5816 case $host_cpu in 5817 i*86 ) 5818 # Not sure whether the presence of OpenBSD here was a mistake. 5819 # Let's accept both of them until this is cleared up. 5820 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5821 lt_cv_file_magic_cmd=/usr/bin/file 5822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5823 ;; 5824 esac 5825 else 5826 lt_cv_deplibs_check_method=pass_all 5827 fi 5828 ;; 5829 5830gnu*) 5831 lt_cv_deplibs_check_method=pass_all 5832 ;; 5833 5834haiku*) 5835 lt_cv_deplibs_check_method=pass_all 5836 ;; 5837 5838hpux10.20* | hpux11*) 5839 lt_cv_file_magic_cmd=/usr/bin/file 5840 case $host_cpu in 5841 ia64*) 5842 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5843 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5844 ;; 5845 hppa*64*) 5846 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]' 5847 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5848 ;; 5849 *) 5850 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5851 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5852 ;; 5853 esac 5854 ;; 5855 5856interix[3-9]*) 5857 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5859 ;; 5860 5861irix5* | irix6* | nonstopux*) 5862 case $LD in 5863 *-32|*"-32 ") libmagic=32-bit;; 5864 *-n32|*"-n32 ") libmagic=N32;; 5865 *-64|*"-64 ") libmagic=64-bit;; 5866 *) libmagic=never-match;; 5867 esac 5868 lt_cv_deplibs_check_method=pass_all 5869 ;; 5870 5871# This must be Linux ELF. 5872linux* | k*bsd*-gnu | kopensolaris*-gnu) 5873 lt_cv_deplibs_check_method=pass_all 5874 ;; 5875 5876netbsd*) 5877 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5879 else 5880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5881 fi 5882 ;; 5883 5884newos6*) 5885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5886 lt_cv_file_magic_cmd=/usr/bin/file 5887 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5888 ;; 5889 5890*nto* | *qnx*) 5891 lt_cv_deplibs_check_method=pass_all 5892 ;; 5893 5894openbsd*) 5895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5897 else 5898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5899 fi 5900 ;; 5901 5902osf3* | osf4* | osf5*) 5903 lt_cv_deplibs_check_method=pass_all 5904 ;; 5905 5906rdos*) 5907 lt_cv_deplibs_check_method=pass_all 5908 ;; 5909 5910solaris*) 5911 lt_cv_deplibs_check_method=pass_all 5912 ;; 5913 5914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5915 lt_cv_deplibs_check_method=pass_all 5916 ;; 5917 5918sysv4 | sysv4.3*) 5919 case $host_vendor in 5920 motorola) 5921 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]' 5922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5923 ;; 5924 ncr) 5925 lt_cv_deplibs_check_method=pass_all 5926 ;; 5927 sequent) 5928 lt_cv_file_magic_cmd='/bin/file' 5929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5930 ;; 5931 sni) 5932 lt_cv_file_magic_cmd='/bin/file' 5933 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5934 lt_cv_file_magic_test_file=/lib/libc.so 5935 ;; 5936 siemens) 5937 lt_cv_deplibs_check_method=pass_all 5938 ;; 5939 pc) 5940 lt_cv_deplibs_check_method=pass_all 5941 ;; 5942 esac 5943 ;; 5944 5945tpf*) 5946 lt_cv_deplibs_check_method=pass_all 5947 ;; 5948esac 5949 5950fi 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5952$as_echo "$lt_cv_deplibs_check_method" >&6; } 5953file_magic_cmd=$lt_cv_file_magic_cmd 5954deplibs_check_method=$lt_cv_deplibs_check_method 5955test -z "$deplibs_check_method" && deplibs_check_method=unknown 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968if test -n "$ac_tool_prefix"; then 5969 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5970set dummy ${ac_tool_prefix}ar; ac_word=$2 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5972$as_echo_n "checking for $ac_word... " >&6; } 5973if test "${ac_cv_prog_AR+set}" = set; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 if test -n "$AR"; then 5977 ac_cv_prog_AR="$AR" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5986 ac_cv_prog_AR="${ac_tool_prefix}ar" 5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991 done 5992IFS=$as_save_IFS 5993 5994fi 5995fi 5996AR=$ac_cv_prog_AR 5997if test -n "$AR"; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5999$as_echo "$AR" >&6; } 6000else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6002$as_echo "no" >&6; } 6003fi 6004 6005 6006fi 6007if test -z "$ac_cv_prog_AR"; then 6008 ac_ct_AR=$AR 6009 # Extract the first word of "ar", so it can be a program name with args. 6010set dummy ar; ac_word=$2 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6012$as_echo_n "checking for $ac_word... " >&6; } 6013if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6014 $as_echo_n "(cached) " >&6 6015else 6016 if test -n "$ac_ct_AR"; then 6017 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6018else 6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6020for as_dir in $PATH 6021do 6022 IFS=$as_save_IFS 6023 test -z "$as_dir" && as_dir=. 6024 for ac_exec_ext in '' $ac_executable_extensions; do 6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6026 ac_cv_prog_ac_ct_AR="ar" 6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6028 break 2 6029 fi 6030done 6031 done 6032IFS=$as_save_IFS 6033 6034fi 6035fi 6036ac_ct_AR=$ac_cv_prog_ac_ct_AR 6037if test -n "$ac_ct_AR"; then 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6039$as_echo "$ac_ct_AR" >&6; } 6040else 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6042$as_echo "no" >&6; } 6043fi 6044 6045 if test "x$ac_ct_AR" = x; then 6046 AR="false" 6047 else 6048 case $cross_compiling:$ac_tool_warned in 6049yes:) 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6052ac_tool_warned=yes ;; 6053esac 6054 AR=$ac_ct_AR 6055 fi 6056else 6057 AR="$ac_cv_prog_AR" 6058fi 6059 6060test -z "$AR" && AR=ar 6061test -z "$AR_FLAGS" && AR_FLAGS=cru 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073if test -n "$ac_tool_prefix"; then 6074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6075set dummy ${ac_tool_prefix}strip; ac_word=$2 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6077$as_echo_n "checking for $ac_word... " >&6; } 6078if test "${ac_cv_prog_STRIP+set}" = set; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 if test -n "$STRIP"; then 6082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6083else 6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085for as_dir in $PATH 6086do 6087 IFS=$as_save_IFS 6088 test -z "$as_dir" && as_dir=. 6089 for ac_exec_ext in '' $ac_executable_extensions; do 6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6091 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6093 break 2 6094 fi 6095done 6096 done 6097IFS=$as_save_IFS 6098 6099fi 6100fi 6101STRIP=$ac_cv_prog_STRIP 6102if test -n "$STRIP"; then 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6104$as_echo "$STRIP" >&6; } 6105else 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6107$as_echo "no" >&6; } 6108fi 6109 6110 6111fi 6112if test -z "$ac_cv_prog_STRIP"; then 6113 ac_ct_STRIP=$STRIP 6114 # Extract the first word of "strip", so it can be a program name with args. 6115set dummy strip; ac_word=$2 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6117$as_echo_n "checking for $ac_word... " >&6; } 6118if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 if test -n "$ac_ct_STRIP"; then 6122 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6123else 6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6125for as_dir in $PATH 6126do 6127 IFS=$as_save_IFS 6128 test -z "$as_dir" && as_dir=. 6129 for ac_exec_ext in '' $ac_executable_extensions; do 6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6131 ac_cv_prog_ac_ct_STRIP="strip" 6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6133 break 2 6134 fi 6135done 6136 done 6137IFS=$as_save_IFS 6138 6139fi 6140fi 6141ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6142if test -n "$ac_ct_STRIP"; then 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6144$as_echo "$ac_ct_STRIP" >&6; } 6145else 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6147$as_echo "no" >&6; } 6148fi 6149 6150 if test "x$ac_ct_STRIP" = x; then 6151 STRIP=":" 6152 else 6153 case $cross_compiling:$ac_tool_warned in 6154yes:) 6155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6157ac_tool_warned=yes ;; 6158esac 6159 STRIP=$ac_ct_STRIP 6160 fi 6161else 6162 STRIP="$ac_cv_prog_STRIP" 6163fi 6164 6165test -z "$STRIP" && STRIP=: 6166 6167 6168 6169 6170 6171 6172if test -n "$ac_tool_prefix"; then 6173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6174set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6176$as_echo_n "checking for $ac_word... " >&6; } 6177if test "${ac_cv_prog_RANLIB+set}" = set; then : 6178 $as_echo_n "(cached) " >&6 6179else 6180 if test -n "$RANLIB"; then 6181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6182else 6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6184for as_dir in $PATH 6185do 6186 IFS=$as_save_IFS 6187 test -z "$as_dir" && as_dir=. 6188 for ac_exec_ext in '' $ac_executable_extensions; do 6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6192 break 2 6193 fi 6194done 6195 done 6196IFS=$as_save_IFS 6197 6198fi 6199fi 6200RANLIB=$ac_cv_prog_RANLIB 6201if test -n "$RANLIB"; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6203$as_echo "$RANLIB" >&6; } 6204else 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6206$as_echo "no" >&6; } 6207fi 6208 6209 6210fi 6211if test -z "$ac_cv_prog_RANLIB"; then 6212 ac_ct_RANLIB=$RANLIB 6213 # Extract the first word of "ranlib", so it can be a program name with args. 6214set dummy ranlib; ac_word=$2 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6216$as_echo_n "checking for $ac_word... " >&6; } 6217if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 if test -n "$ac_ct_RANLIB"; then 6221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6222else 6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6224for as_dir in $PATH 6225do 6226 IFS=$as_save_IFS 6227 test -z "$as_dir" && as_dir=. 6228 for ac_exec_ext in '' $ac_executable_extensions; do 6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6230 ac_cv_prog_ac_ct_RANLIB="ranlib" 6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6232 break 2 6233 fi 6234done 6235 done 6236IFS=$as_save_IFS 6237 6238fi 6239fi 6240ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6241if test -n "$ac_ct_RANLIB"; then 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6243$as_echo "$ac_ct_RANLIB" >&6; } 6244else 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6246$as_echo "no" >&6; } 6247fi 6248 6249 if test "x$ac_ct_RANLIB" = x; then 6250 RANLIB=":" 6251 else 6252 case $cross_compiling:$ac_tool_warned in 6253yes:) 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6256ac_tool_warned=yes ;; 6257esac 6258 RANLIB=$ac_ct_RANLIB 6259 fi 6260else 6261 RANLIB="$ac_cv_prog_RANLIB" 6262fi 6263 6264test -z "$RANLIB" && RANLIB=: 6265 6266 6267 6268 6269 6270 6271# Determine commands to create old-style static archives. 6272old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6273old_postinstall_cmds='chmod 644 $oldlib' 6274old_postuninstall_cmds= 6275 6276if test -n "$RANLIB"; then 6277 case $host_os in 6278 openbsd*) 6279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6280 ;; 6281 *) 6282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6283 ;; 6284 esac 6285 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6286fi 6287 6288case $host_os in 6289 darwin*) 6290 lock_old_archive_extraction=yes ;; 6291 *) 6292 lock_old_archive_extraction=no ;; 6293esac 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333# If no C compiler was specified, use CC. 6334LTCC=${LTCC-"$CC"} 6335 6336# If no C compiler flags were specified, use CFLAGS. 6337LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6338 6339# Allow CC to be a program name with arguments. 6340compiler=$CC 6341 6342 6343# Check for command to grab the raw symbol name followed by C symbol from nm. 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6345$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6346if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 6350# These are sane defaults that work on at least a few old systems. 6351# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6352 6353# Character class describing NM global symbol codes. 6354symcode='[BCDEGRST]' 6355 6356# Regexp to match symbols that can be accessed directly from C. 6357sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6358 6359# Define system-specific variables. 6360case $host_os in 6361aix*) 6362 symcode='[BCDT]' 6363 ;; 6364cygwin* | mingw* | pw32* | cegcc*) 6365 symcode='[ABCDGISTW]' 6366 ;; 6367hpux*) 6368 if test "$host_cpu" = ia64; then 6369 symcode='[ABCDEGRST]' 6370 fi 6371 ;; 6372irix* | nonstopux*) 6373 symcode='[BCDEGRST]' 6374 ;; 6375osf*) 6376 symcode='[BCDEGQRST]' 6377 ;; 6378solaris*) 6379 symcode='[BDRT]' 6380 ;; 6381sco3.2v5*) 6382 symcode='[DT]' 6383 ;; 6384sysv4.2uw2*) 6385 symcode='[DT]' 6386 ;; 6387sysv5* | sco5v6* | unixware* | OpenUNIX*) 6388 symcode='[ABDT]' 6389 ;; 6390sysv4) 6391 symcode='[DFNSTU]' 6392 ;; 6393esac 6394 6395# If we're using GNU nm, then use its standard symbol codes. 6396case `$NM -V 2>&1` in 6397*GNU* | *'with BFD'*) 6398 symcode='[ABCDGIRSTW]' ;; 6399esac 6400 6401# Transform an extracted symbol line into a proper C declaration. 6402# Some systems (esp. on ia64) link data and code symbols differently, 6403# so use this general approach. 6404lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6405 6406# Transform an extracted symbol line into symbol name and symbol address 6407lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6408lt_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'" 6409 6410# Handle CRLF in mingw tool chain 6411opt_cr= 6412case $build_os in 6413mingw*) 6414 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6415 ;; 6416esac 6417 6418# Try without a prefix underscore, then with it. 6419for ac_symprfx in "" "_"; do 6420 6421 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6422 symxfrm="\\1 $ac_symprfx\\2 \\2" 6423 6424 # Write the raw and C identifiers. 6425 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6426 # Fake it for dumpbin and say T for any non-static function 6427 # and D for any global variable. 6428 # Also find C++ and __fastcall symbols from MSVC++, 6429 # which start with @ or ?. 6430 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6431" {last_section=section; section=\$ 3};"\ 6432" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6433" \$ 0!~/External *\|/{next};"\ 6434" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6435" {if(hide[section]) next};"\ 6436" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6437" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6438" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6439" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6440" ' prfx=^$ac_symprfx" 6441 else 6442 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6443 fi 6444 6445 # Check to see that the pipe works correctly. 6446 pipe_works=no 6447 6448 rm -f conftest* 6449 cat > conftest.$ac_ext <<_LT_EOF 6450#ifdef __cplusplus 6451extern "C" { 6452#endif 6453char nm_test_var; 6454void nm_test_func(void); 6455void nm_test_func(void){} 6456#ifdef __cplusplus 6457} 6458#endif 6459int main(){nm_test_var='a';nm_test_func();return(0);} 6460_LT_EOF 6461 6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6463 (eval $ac_compile) 2>&5 6464 ac_status=$? 6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6466 test $ac_status = 0; }; then 6467 # Now try to grab the symbols. 6468 nlist=conftest.nm 6469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6470 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6471 ac_status=$? 6472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6473 test $ac_status = 0; } && test -s "$nlist"; then 6474 # Try sorting and uniquifying the output. 6475 if sort "$nlist" | uniq > "$nlist"T; then 6476 mv -f "$nlist"T "$nlist" 6477 else 6478 rm -f "$nlist"T 6479 fi 6480 6481 # Make sure that we snagged all the symbols we need. 6482 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6483 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6484 cat <<_LT_EOF > conftest.$ac_ext 6485#ifdef __cplusplus 6486extern "C" { 6487#endif 6488 6489_LT_EOF 6490 # Now generate the symbol file. 6491 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6492 6493 cat <<_LT_EOF >> conftest.$ac_ext 6494 6495/* The mapping between symbol names and symbols. */ 6496const struct { 6497 const char *name; 6498 void *address; 6499} 6500lt__PROGRAM__LTX_preloaded_symbols[] = 6501{ 6502 { "@PROGRAM@", (void *) 0 }, 6503_LT_EOF 6504 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6505 cat <<\_LT_EOF >> conftest.$ac_ext 6506 {0, (void *) 0} 6507}; 6508 6509/* This works around a problem in FreeBSD linker */ 6510#ifdef FREEBSD_WORKAROUND 6511static const void *lt_preloaded_setup() { 6512 return lt__PROGRAM__LTX_preloaded_symbols; 6513} 6514#endif 6515 6516#ifdef __cplusplus 6517} 6518#endif 6519_LT_EOF 6520 # Now try linking the two files. 6521 mv conftest.$ac_objext conftstm.$ac_objext 6522 lt_save_LIBS="$LIBS" 6523 lt_save_CFLAGS="$CFLAGS" 6524 LIBS="conftstm.$ac_objext" 6525 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6527 (eval $ac_link) 2>&5 6528 ac_status=$? 6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6530 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6531 pipe_works=yes 6532 fi 6533 LIBS="$lt_save_LIBS" 6534 CFLAGS="$lt_save_CFLAGS" 6535 else 6536 echo "cannot find nm_test_func in $nlist" >&5 6537 fi 6538 else 6539 echo "cannot find nm_test_var in $nlist" >&5 6540 fi 6541 else 6542 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6543 fi 6544 else 6545 echo "$progname: failed program was:" >&5 6546 cat conftest.$ac_ext >&5 6547 fi 6548 rm -rf conftest* conftst* 6549 6550 # Do not use the global_symbol_pipe unless it works. 6551 if test "$pipe_works" = yes; then 6552 break 6553 else 6554 lt_cv_sys_global_symbol_pipe= 6555 fi 6556done 6557 6558fi 6559 6560if test -z "$lt_cv_sys_global_symbol_pipe"; then 6561 lt_cv_sys_global_symbol_to_cdecl= 6562fi 6563if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6565$as_echo "failed" >&6; } 6566else 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6568$as_echo "ok" >&6; } 6569fi 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592# Check whether --enable-libtool-lock was given. 6593if test "${enable_libtool_lock+set}" = set; then : 6594 enableval=$enable_libtool_lock; 6595fi 6596 6597test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6598 6599# Some flags need to be propagated to the compiler or linker for good 6600# libtool support. 6601case $host in 6602ia64-*-hpux*) 6603 # Find out which ABI we are using. 6604 echo 'int i;' > conftest.$ac_ext 6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6606 (eval $ac_compile) 2>&5 6607 ac_status=$? 6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6609 test $ac_status = 0; }; then 6610 case `/usr/bin/file conftest.$ac_objext` in 6611 *ELF-32*) 6612 HPUX_IA64_MODE="32" 6613 ;; 6614 *ELF-64*) 6615 HPUX_IA64_MODE="64" 6616 ;; 6617 esac 6618 fi 6619 rm -rf conftest* 6620 ;; 6621*-*-irix6*) 6622 # Find out which ABI we are using. 6623 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6625 (eval $ac_compile) 2>&5 6626 ac_status=$? 6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6628 test $ac_status = 0; }; then 6629 if test "$lt_cv_prog_gnu_ld" = yes; then 6630 case `/usr/bin/file conftest.$ac_objext` in 6631 *32-bit*) 6632 LD="${LD-ld} -melf32bsmip" 6633 ;; 6634 *N32*) 6635 LD="${LD-ld} -melf32bmipn32" 6636 ;; 6637 *64-bit*) 6638 LD="${LD-ld} -melf64bmip" 6639 ;; 6640 esac 6641 else 6642 case `/usr/bin/file conftest.$ac_objext` in 6643 *32-bit*) 6644 LD="${LD-ld} -32" 6645 ;; 6646 *N32*) 6647 LD="${LD-ld} -n32" 6648 ;; 6649 *64-bit*) 6650 LD="${LD-ld} -64" 6651 ;; 6652 esac 6653 fi 6654 fi 6655 rm -rf conftest* 6656 ;; 6657 6658x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6659s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6660 # Find out which ABI we are using. 6661 echo 'int i;' > conftest.$ac_ext 6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6663 (eval $ac_compile) 2>&5 6664 ac_status=$? 6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6666 test $ac_status = 0; }; then 6667 case `/usr/bin/file conftest.o` in 6668 *32-bit*) 6669 case $host in 6670 x86_64-*kfreebsd*-gnu) 6671 LD="${LD-ld} -m elf_i386_fbsd" 6672 ;; 6673 x86_64-*linux*) 6674 case `/usr/bin/file conftest.o` in 6675 *x86-64*) 6676 LD="${LD-ld} -m elf32_x86_64" 6677 ;; 6678 *) 6679 LD="${LD-ld} -m elf_i386" 6680 ;; 6681 esac 6682 ;; 6683 powerpc64le-*linux*) 6684 LD="${LD-ld} -m elf32lppclinux" 6685 ;; 6686 powerpc64-*linux*) 6687 LD="${LD-ld} -m elf32ppclinux" 6688 ;; 6689 s390x-*linux*) 6690 LD="${LD-ld} -m elf_s390" 6691 ;; 6692 sparc64-*linux*) 6693 LD="${LD-ld} -m elf32_sparc" 6694 ;; 6695 esac 6696 ;; 6697 *64-bit*) 6698 case $host in 6699 x86_64-*kfreebsd*-gnu) 6700 LD="${LD-ld} -m elf_x86_64_fbsd" 6701 ;; 6702 x86_64-*linux*) 6703 LD="${LD-ld} -m elf_x86_64" 6704 ;; 6705 powerpcle-*linux*) 6706 LD="${LD-ld} -m elf64lppc" 6707 ;; 6708 powerpc-*linux*) 6709 LD="${LD-ld} -m elf64ppc" 6710 ;; 6711 s390*-*linux*|s390*-*tpf*) 6712 LD="${LD-ld} -m elf64_s390" 6713 ;; 6714 sparc*-*linux*) 6715 LD="${LD-ld} -m elf64_sparc" 6716 ;; 6717 esac 6718 ;; 6719 esac 6720 fi 6721 rm -rf conftest* 6722 ;; 6723 6724*-*-sco3.2v5*) 6725 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6726 SAVE_CFLAGS="$CFLAGS" 6727 CFLAGS="$CFLAGS -belf" 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6729$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6730if test "${lt_cv_cc_needs_belf+set}" = set; then : 6731 $as_echo_n "(cached) " >&6 6732else 6733 ac_ext=c 6734ac_cpp='$CPP $CPPFLAGS' 6735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6737ac_compiler_gnu=$ac_cv_c_compiler_gnu 6738 6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6740/* end confdefs.h. */ 6741 6742int 6743main () 6744{ 6745 6746 ; 6747 return 0; 6748} 6749_ACEOF 6750if ac_fn_c_try_link "$LINENO"; then : 6751 lt_cv_cc_needs_belf=yes 6752else 6753 lt_cv_cc_needs_belf=no 6754fi 6755rm -f core conftest.err conftest.$ac_objext \ 6756 conftest$ac_exeext conftest.$ac_ext 6757 ac_ext=c 6758ac_cpp='$CPP $CPPFLAGS' 6759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6761ac_compiler_gnu=$ac_cv_c_compiler_gnu 6762 6763fi 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6765$as_echo "$lt_cv_cc_needs_belf" >&6; } 6766 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6767 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6768 CFLAGS="$SAVE_CFLAGS" 6769 fi 6770 ;; 6771sparc*-*solaris*) 6772 # Find out which ABI we are using. 6773 echo 'int i;' > conftest.$ac_ext 6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6775 (eval $ac_compile) 2>&5 6776 ac_status=$? 6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6778 test $ac_status = 0; }; then 6779 case `/usr/bin/file conftest.o` in 6780 *64-bit*) 6781 case $lt_cv_prog_gnu_ld in 6782 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6783 *) 6784 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6785 LD="${LD-ld} -64" 6786 fi 6787 ;; 6788 esac 6789 ;; 6790 esac 6791 fi 6792 rm -rf conftest* 6793 ;; 6794esac 6795 6796need_locks="$enable_libtool_lock" 6797 6798 6799 case $host_os in 6800 rhapsody* | darwin*) 6801 if test -n "$ac_tool_prefix"; then 6802 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6803set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6805$as_echo_n "checking for $ac_word... " >&6; } 6806if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 if test -n "$DSYMUTIL"; then 6810 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6811else 6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6813for as_dir in $PATH 6814do 6815 IFS=$as_save_IFS 6816 test -z "$as_dir" && as_dir=. 6817 for ac_exec_ext in '' $ac_executable_extensions; do 6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6819 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6821 break 2 6822 fi 6823done 6824 done 6825IFS=$as_save_IFS 6826 6827fi 6828fi 6829DSYMUTIL=$ac_cv_prog_DSYMUTIL 6830if test -n "$DSYMUTIL"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6832$as_echo "$DSYMUTIL" >&6; } 6833else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6835$as_echo "no" >&6; } 6836fi 6837 6838 6839fi 6840if test -z "$ac_cv_prog_DSYMUTIL"; then 6841 ac_ct_DSYMUTIL=$DSYMUTIL 6842 # Extract the first word of "dsymutil", so it can be a program name with args. 6843set dummy dsymutil; ac_word=$2 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6845$as_echo_n "checking for $ac_word... " >&6; } 6846if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 if test -n "$ac_ct_DSYMUTIL"; then 6850 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6851else 6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6853for as_dir in $PATH 6854do 6855 IFS=$as_save_IFS 6856 test -z "$as_dir" && as_dir=. 6857 for ac_exec_ext in '' $ac_executable_extensions; do 6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6859 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6861 break 2 6862 fi 6863done 6864 done 6865IFS=$as_save_IFS 6866 6867fi 6868fi 6869ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6870if test -n "$ac_ct_DSYMUTIL"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6872$as_echo "$ac_ct_DSYMUTIL" >&6; } 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877 6878 if test "x$ac_ct_DSYMUTIL" = x; then 6879 DSYMUTIL=":" 6880 else 6881 case $cross_compiling:$ac_tool_warned in 6882yes:) 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6885ac_tool_warned=yes ;; 6886esac 6887 DSYMUTIL=$ac_ct_DSYMUTIL 6888 fi 6889else 6890 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6891fi 6892 6893 if test -n "$ac_tool_prefix"; then 6894 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6895set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6897$as_echo_n "checking for $ac_word... " >&6; } 6898if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 if test -n "$NMEDIT"; then 6902 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6903else 6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6911 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915done 6916 done 6917IFS=$as_save_IFS 6918 6919fi 6920fi 6921NMEDIT=$ac_cv_prog_NMEDIT 6922if test -n "$NMEDIT"; then 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6924$as_echo "$NMEDIT" >&6; } 6925else 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6927$as_echo "no" >&6; } 6928fi 6929 6930 6931fi 6932if test -z "$ac_cv_prog_NMEDIT"; then 6933 ac_ct_NMEDIT=$NMEDIT 6934 # Extract the first word of "nmedit", so it can be a program name with args. 6935set dummy nmedit; ac_word=$2 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6937$as_echo_n "checking for $ac_word... " >&6; } 6938if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 if test -n "$ac_ct_NMEDIT"; then 6942 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6943else 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6951 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956 done 6957IFS=$as_save_IFS 6958 6959fi 6960fi 6961ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6962if test -n "$ac_ct_NMEDIT"; then 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6964$as_echo "$ac_ct_NMEDIT" >&6; } 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 if test "x$ac_ct_NMEDIT" = x; then 6971 NMEDIT=":" 6972 else 6973 case $cross_compiling:$ac_tool_warned in 6974yes:) 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6977ac_tool_warned=yes ;; 6978esac 6979 NMEDIT=$ac_ct_NMEDIT 6980 fi 6981else 6982 NMEDIT="$ac_cv_prog_NMEDIT" 6983fi 6984 6985 if test -n "$ac_tool_prefix"; then 6986 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6987set dummy ${ac_tool_prefix}lipo; ac_word=$2 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6989$as_echo_n "checking for $ac_word... " >&6; } 6990if test "${ac_cv_prog_LIPO+set}" = set; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 if test -n "$LIPO"; then 6994 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6995else 6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6997for as_dir in $PATH 6998do 6999 IFS=$as_save_IFS 7000 test -z "$as_dir" && as_dir=. 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7003 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7005 break 2 7006 fi 7007done 7008 done 7009IFS=$as_save_IFS 7010 7011fi 7012fi 7013LIPO=$ac_cv_prog_LIPO 7014if test -n "$LIPO"; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7016$as_echo "$LIPO" >&6; } 7017else 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7019$as_echo "no" >&6; } 7020fi 7021 7022 7023fi 7024if test -z "$ac_cv_prog_LIPO"; then 7025 ac_ct_LIPO=$LIPO 7026 # Extract the first word of "lipo", so it can be a program name with args. 7027set dummy lipo; ac_word=$2 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7029$as_echo_n "checking for $ac_word... " >&6; } 7030if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 if test -n "$ac_ct_LIPO"; then 7034 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7035else 7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037for as_dir in $PATH 7038do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7043 ac_cv_prog_ac_ct_LIPO="lipo" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047done 7048 done 7049IFS=$as_save_IFS 7050 7051fi 7052fi 7053ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7054if test -n "$ac_ct_LIPO"; then 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7056$as_echo "$ac_ct_LIPO" >&6; } 7057else 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7059$as_echo "no" >&6; } 7060fi 7061 7062 if test "x$ac_ct_LIPO" = x; then 7063 LIPO=":" 7064 else 7065 case $cross_compiling:$ac_tool_warned in 7066yes:) 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7069ac_tool_warned=yes ;; 7070esac 7071 LIPO=$ac_ct_LIPO 7072 fi 7073else 7074 LIPO="$ac_cv_prog_LIPO" 7075fi 7076 7077 if test -n "$ac_tool_prefix"; then 7078 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7079set dummy ${ac_tool_prefix}otool; ac_word=$2 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7081$as_echo_n "checking for $ac_word... " >&6; } 7082if test "${ac_cv_prog_OTOOL+set}" = set; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 if test -n "$OTOOL"; then 7086 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7087else 7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7089for as_dir in $PATH 7090do 7091 IFS=$as_save_IFS 7092 test -z "$as_dir" && as_dir=. 7093 for ac_exec_ext in '' $ac_executable_extensions; do 7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7095 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7097 break 2 7098 fi 7099done 7100 done 7101IFS=$as_save_IFS 7102 7103fi 7104fi 7105OTOOL=$ac_cv_prog_OTOOL 7106if test -n "$OTOOL"; then 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7108$as_echo "$OTOOL" >&6; } 7109else 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7111$as_echo "no" >&6; } 7112fi 7113 7114 7115fi 7116if test -z "$ac_cv_prog_OTOOL"; then 7117 ac_ct_OTOOL=$OTOOL 7118 # Extract the first word of "otool", so it can be a program name with args. 7119set dummy otool; ac_word=$2 7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7121$as_echo_n "checking for $ac_word... " >&6; } 7122if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7123 $as_echo_n "(cached) " >&6 7124else 7125 if test -n "$ac_ct_OTOOL"; then 7126 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7127else 7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7129for as_dir in $PATH 7130do 7131 IFS=$as_save_IFS 7132 test -z "$as_dir" && as_dir=. 7133 for ac_exec_ext in '' $ac_executable_extensions; do 7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7135 ac_cv_prog_ac_ct_OTOOL="otool" 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7137 break 2 7138 fi 7139done 7140 done 7141IFS=$as_save_IFS 7142 7143fi 7144fi 7145ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7146if test -n "$ac_ct_OTOOL"; then 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7148$as_echo "$ac_ct_OTOOL" >&6; } 7149else 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7151$as_echo "no" >&6; } 7152fi 7153 7154 if test "x$ac_ct_OTOOL" = x; then 7155 OTOOL=":" 7156 else 7157 case $cross_compiling:$ac_tool_warned in 7158yes:) 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7161ac_tool_warned=yes ;; 7162esac 7163 OTOOL=$ac_ct_OTOOL 7164 fi 7165else 7166 OTOOL="$ac_cv_prog_OTOOL" 7167fi 7168 7169 if test -n "$ac_tool_prefix"; then 7170 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7171set dummy ${ac_tool_prefix}otool64; ac_word=$2 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7173$as_echo_n "checking for $ac_word... " >&6; } 7174if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 if test -n "$OTOOL64"; then 7178 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7179else 7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7181for as_dir in $PATH 7182do 7183 IFS=$as_save_IFS 7184 test -z "$as_dir" && as_dir=. 7185 for ac_exec_ext in '' $ac_executable_extensions; do 7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7187 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7189 break 2 7190 fi 7191done 7192 done 7193IFS=$as_save_IFS 7194 7195fi 7196fi 7197OTOOL64=$ac_cv_prog_OTOOL64 7198if test -n "$OTOOL64"; then 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7200$as_echo "$OTOOL64" >&6; } 7201else 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7203$as_echo "no" >&6; } 7204fi 7205 7206 7207fi 7208if test -z "$ac_cv_prog_OTOOL64"; then 7209 ac_ct_OTOOL64=$OTOOL64 7210 # Extract the first word of "otool64", so it can be a program name with args. 7211set dummy otool64; ac_word=$2 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7213$as_echo_n "checking for $ac_word... " >&6; } 7214if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 if test -n "$ac_ct_OTOOL64"; then 7218 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7219else 7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7221for as_dir in $PATH 7222do 7223 IFS=$as_save_IFS 7224 test -z "$as_dir" && as_dir=. 7225 for ac_exec_ext in '' $ac_executable_extensions; do 7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7227 ac_cv_prog_ac_ct_OTOOL64="otool64" 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7229 break 2 7230 fi 7231done 7232 done 7233IFS=$as_save_IFS 7234 7235fi 7236fi 7237ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7238if test -n "$ac_ct_OTOOL64"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7240$as_echo "$ac_ct_OTOOL64" >&6; } 7241else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243$as_echo "no" >&6; } 7244fi 7245 7246 if test "x$ac_ct_OTOOL64" = x; then 7247 OTOOL64=":" 7248 else 7249 case $cross_compiling:$ac_tool_warned in 7250yes:) 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7253ac_tool_warned=yes ;; 7254esac 7255 OTOOL64=$ac_ct_OTOOL64 7256 fi 7257else 7258 OTOOL64="$ac_cv_prog_OTOOL64" 7259fi 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7288$as_echo_n "checking for -single_module linker flag... " >&6; } 7289if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 lt_cv_apple_cc_single_mod=no 7293 if test -z "${LT_MULTI_MODULE}"; then 7294 # By default we will add the -single_module flag. You can override 7295 # by either setting the environment variable LT_MULTI_MODULE 7296 # non-empty at configure time, or by adding -multi_module to the 7297 # link flags. 7298 rm -rf libconftest.dylib* 7299 echo "int foo(void){return 1;}" > conftest.c 7300 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7301-dynamiclib -Wl,-single_module conftest.c" >&5 7302 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7303 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7304 _lt_result=$? 7305 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7306 lt_cv_apple_cc_single_mod=yes 7307 else 7308 cat conftest.err >&5 7309 fi 7310 rm -rf libconftest.dylib* 7311 rm -f conftest.* 7312 fi 7313fi 7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7315$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7317$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7318if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7319 $as_echo_n "(cached) " >&6 7320else 7321 lt_cv_ld_exported_symbols_list=no 7322 save_LDFLAGS=$LDFLAGS 7323 echo "_main" > conftest.sym 7324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326/* end confdefs.h. */ 7327 7328int 7329main () 7330{ 7331 7332 ; 7333 return 0; 7334} 7335_ACEOF 7336if ac_fn_c_try_link "$LINENO"; then : 7337 lt_cv_ld_exported_symbols_list=yes 7338else 7339 lt_cv_ld_exported_symbols_list=no 7340fi 7341rm -f core conftest.err conftest.$ac_objext \ 7342 conftest$ac_exeext conftest.$ac_ext 7343 LDFLAGS="$save_LDFLAGS" 7344 7345fi 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7347$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7349$as_echo_n "checking for -force_load linker flag... " >&6; } 7350if test "${lt_cv_ld_force_load+set}" = set; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 lt_cv_ld_force_load=no 7354 cat > conftest.c << _LT_EOF 7355int forced_loaded() { return 2;} 7356_LT_EOF 7357 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7358 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7359 echo "$AR cru libconftest.a conftest.o" >&5 7360 $AR cru libconftest.a conftest.o 2>&5 7361 cat > conftest.c << _LT_EOF 7362int main() { return 0;} 7363_LT_EOF 7364 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7365 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7366 _lt_result=$? 7367 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7368 lt_cv_ld_force_load=yes 7369 else 7370 cat conftest.err >&5 7371 fi 7372 rm -f conftest.err libconftest.a conftest conftest.c 7373 rm -rf conftest.dSYM 7374 7375fi 7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7377$as_echo "$lt_cv_ld_force_load" >&6; } 7378 case $host_os in 7379 rhapsody* | darwin1.[012]) 7380 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7381 darwin1.*) 7382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7383 darwin*) # darwin 5.x on 7384 # if running on 10.5 or later, the deployment target defaults 7385 # to the OS version, if on x86, and 10.4, the deployment 7386 # target defaults to 10.4. Don't you love it? 7387 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7388 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7390 10.[012][,.]*) 7391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7392 10.*) 7393 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7394 esac 7395 ;; 7396 esac 7397 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7398 _lt_dar_single_mod='$single_module' 7399 fi 7400 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7401 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7402 else 7403 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7404 fi 7405 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7406 _lt_dsymutil='~$DSYMUTIL $lib || :' 7407 else 7408 _lt_dsymutil= 7409 fi 7410 ;; 7411 esac 7412 7413for ac_header in dlfcn.h 7414do : 7415 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7416" 7417if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7418 cat >>confdefs.h <<_ACEOF 7419#define HAVE_DLFCN_H 1 7420_ACEOF 7421 7422fi 7423 7424done 7425 7426 7427 7428 7429 7430# Set options 7431 7432 7433 7434 enable_dlopen=no 7435 7436 7437 enable_win32_dll=no 7438 7439 7440 # Check whether --enable-shared was given. 7441if test "${enable_shared+set}" = set; then : 7442 enableval=$enable_shared; p=${PACKAGE-default} 7443 case $enableval in 7444 yes) enable_shared=yes ;; 7445 no) enable_shared=no ;; 7446 *) 7447 enable_shared=no 7448 # Look at the argument we got. We use all the common list separators. 7449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7450 for pkg in $enableval; do 7451 IFS="$lt_save_ifs" 7452 if test "X$pkg" = "X$p"; then 7453 enable_shared=yes 7454 fi 7455 done 7456 IFS="$lt_save_ifs" 7457 ;; 7458 esac 7459else 7460 enable_shared=yes 7461fi 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 # Check whether --enable-static was given. 7472if test "${enable_static+set}" = set; then : 7473 enableval=$enable_static; p=${PACKAGE-default} 7474 case $enableval in 7475 yes) enable_static=yes ;; 7476 no) enable_static=no ;; 7477 *) 7478 enable_static=no 7479 # Look at the argument we got. We use all the common list separators. 7480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7481 for pkg in $enableval; do 7482 IFS="$lt_save_ifs" 7483 if test "X$pkg" = "X$p"; then 7484 enable_static=yes 7485 fi 7486 done 7487 IFS="$lt_save_ifs" 7488 ;; 7489 esac 7490else 7491 enable_static=yes 7492fi 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503# Check whether --with-pic was given. 7504if test "${with_pic+set}" = set; then : 7505 withval=$with_pic; pic_mode="$withval" 7506else 7507 pic_mode=default 7508fi 7509 7510 7511test -z "$pic_mode" && pic_mode=default 7512 7513 7514 7515 7516 7517 7518 7519 # Check whether --enable-fast-install was given. 7520if test "${enable_fast_install+set}" = set; then : 7521 enableval=$enable_fast_install; p=${PACKAGE-default} 7522 case $enableval in 7523 yes) enable_fast_install=yes ;; 7524 no) enable_fast_install=no ;; 7525 *) 7526 enable_fast_install=no 7527 # Look at the argument we got. We use all the common list separators. 7528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7529 for pkg in $enableval; do 7530 IFS="$lt_save_ifs" 7531 if test "X$pkg" = "X$p"; then 7532 enable_fast_install=yes 7533 fi 7534 done 7535 IFS="$lt_save_ifs" 7536 ;; 7537 esac 7538else 7539 enable_fast_install=yes 7540fi 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552# This can be used to rebuild libtool when needed 7553LIBTOOL_DEPS="$ltmain" 7554 7555# Always use our own libtool. 7556LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583test -z "$LN_S" && LN_S="ln -s" 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598if test -n "${ZSH_VERSION+set}" ; then 7599 setopt NO_GLOB_SUBST 7600fi 7601 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7603$as_echo_n "checking for objdir... " >&6; } 7604if test "${lt_cv_objdir+set}" = set; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 rm -f .libs 2>/dev/null 7608mkdir .libs 2>/dev/null 7609if test -d .libs; then 7610 lt_cv_objdir=.libs 7611else 7612 # MS-DOS does not allow filenames that begin with a dot. 7613 lt_cv_objdir=_libs 7614fi 7615rmdir .libs 2>/dev/null 7616fi 7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7618$as_echo "$lt_cv_objdir" >&6; } 7619objdir=$lt_cv_objdir 7620 7621 7622 7623 7624 7625cat >>confdefs.h <<_ACEOF 7626#define LT_OBJDIR "$lt_cv_objdir/" 7627_ACEOF 7628 7629 7630 7631 7632case $host_os in 7633aix3*) 7634 # AIX sometimes has problems with the GCC collect2 program. For some 7635 # reason, if we set the COLLECT_NAMES environment variable, the problems 7636 # vanish in a puff of smoke. 7637 if test "X${COLLECT_NAMES+set}" != Xset; then 7638 COLLECT_NAMES= 7639 export COLLECT_NAMES 7640 fi 7641 ;; 7642esac 7643 7644# Global variables: 7645ofile=libtool 7646can_build_shared=yes 7647 7648# All known linkers require a `.a' archive for static linking (except MSVC, 7649# which needs '.lib'). 7650libext=a 7651 7652with_gnu_ld="$lt_cv_prog_gnu_ld" 7653 7654old_CC="$CC" 7655old_CFLAGS="$CFLAGS" 7656 7657# Set sane defaults for various variables 7658test -z "$CC" && CC=cc 7659test -z "$LTCC" && LTCC=$CC 7660test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7661test -z "$LD" && LD=ld 7662test -z "$ac_objext" && ac_objext=o 7663 7664for cc_temp in $compiler""; do 7665 case $cc_temp in 7666 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7667 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7668 \-*) ;; 7669 *) break;; 7670 esac 7671done 7672cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7673 7674 7675# Only perform the check for file, if the check method requires it 7676test -z "$MAGIC_CMD" && MAGIC_CMD=file 7677case $deplibs_check_method in 7678file_magic*) 7679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7681$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7682if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7683 $as_echo_n "(cached) " >&6 7684else 7685 case $MAGIC_CMD in 7686[\\/*] | ?:[\\/]*) 7687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7688 ;; 7689*) 7690 lt_save_MAGIC_CMD="$MAGIC_CMD" 7691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7692 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7693 for ac_dir in $ac_dummy; do 7694 IFS="$lt_save_ifs" 7695 test -z "$ac_dir" && ac_dir=. 7696 if test -f $ac_dir/${ac_tool_prefix}file; then 7697 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7698 if test -n "$file_magic_test_file"; then 7699 case $deplibs_check_method in 7700 "file_magic "*) 7701 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7703 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7704 $EGREP "$file_magic_regex" > /dev/null; then 7705 : 7706 else 7707 cat <<_LT_EOF 1>&2 7708 7709*** Warning: the command libtool uses to detect shared libraries, 7710*** $file_magic_cmd, produces output that libtool cannot recognize. 7711*** The result is that libtool may fail to recognize shared libraries 7712*** as such. This will affect the creation of libtool libraries that 7713*** depend on shared libraries, but programs linked with such libtool 7714*** libraries will work regardless of this problem. Nevertheless, you 7715*** may want to report the problem to your system manager and/or to 7716*** bug-libtool@gnu.org 7717 7718_LT_EOF 7719 fi ;; 7720 esac 7721 fi 7722 break 7723 fi 7724 done 7725 IFS="$lt_save_ifs" 7726 MAGIC_CMD="$lt_save_MAGIC_CMD" 7727 ;; 7728esac 7729fi 7730 7731MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7732if test -n "$MAGIC_CMD"; then 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7734$as_echo "$MAGIC_CMD" >&6; } 7735else 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7737$as_echo "no" >&6; } 7738fi 7739 7740 7741 7742 7743 7744if test -z "$lt_cv_path_MAGIC_CMD"; then 7745 if test -n "$ac_tool_prefix"; then 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7747$as_echo_n "checking for file... " >&6; } 7748if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7749 $as_echo_n "(cached) " >&6 7750else 7751 case $MAGIC_CMD in 7752[\\/*] | ?:[\\/]*) 7753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7754 ;; 7755*) 7756 lt_save_MAGIC_CMD="$MAGIC_CMD" 7757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7759 for ac_dir in $ac_dummy; do 7760 IFS="$lt_save_ifs" 7761 test -z "$ac_dir" && ac_dir=. 7762 if test -f $ac_dir/file; then 7763 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7764 if test -n "$file_magic_test_file"; then 7765 case $deplibs_check_method in 7766 "file_magic "*) 7767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7770 $EGREP "$file_magic_regex" > /dev/null; then 7771 : 7772 else 7773 cat <<_LT_EOF 1>&2 7774 7775*** Warning: the command libtool uses to detect shared libraries, 7776*** $file_magic_cmd, produces output that libtool cannot recognize. 7777*** The result is that libtool may fail to recognize shared libraries 7778*** as such. This will affect the creation of libtool libraries that 7779*** depend on shared libraries, but programs linked with such libtool 7780*** libraries will work regardless of this problem. Nevertheless, you 7781*** may want to report the problem to your system manager and/or to 7782*** bug-libtool@gnu.org 7783 7784_LT_EOF 7785 fi ;; 7786 esac 7787 fi 7788 break 7789 fi 7790 done 7791 IFS="$lt_save_ifs" 7792 MAGIC_CMD="$lt_save_MAGIC_CMD" 7793 ;; 7794esac 7795fi 7796 7797MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7798if test -n "$MAGIC_CMD"; then 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7800$as_echo "$MAGIC_CMD" >&6; } 7801else 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7803$as_echo "no" >&6; } 7804fi 7805 7806 7807 else 7808 MAGIC_CMD=: 7809 fi 7810fi 7811 7812 fi 7813 ;; 7814esac 7815 7816# Use C for the default configuration in the libtool script 7817 7818lt_save_CC="$CC" 7819ac_ext=c 7820ac_cpp='$CPP $CPPFLAGS' 7821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7823ac_compiler_gnu=$ac_cv_c_compiler_gnu 7824 7825 7826# Source file extension for C test sources. 7827ac_ext=c 7828 7829# Object file extension for compiled C test sources. 7830objext=o 7831objext=$objext 7832 7833# Code to be used in simple compile tests 7834lt_simple_compile_test_code="int some_variable = 0;" 7835 7836# Code to be used in simple link tests 7837lt_simple_link_test_code='int main(){return(0);}' 7838 7839 7840 7841 7842 7843 7844 7845# If no C compiler was specified, use CC. 7846LTCC=${LTCC-"$CC"} 7847 7848# If no C compiler flags were specified, use CFLAGS. 7849LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7850 7851# Allow CC to be a program name with arguments. 7852compiler=$CC 7853 7854# Save the default compiler, since it gets overwritten when the other 7855# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7856compiler_DEFAULT=$CC 7857 7858# save warnings/boilerplate of simple test code 7859ac_outfile=conftest.$ac_objext 7860echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7861eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7862_lt_compiler_boilerplate=`cat conftest.err` 7863$RM conftest* 7864 7865ac_outfile=conftest.$ac_objext 7866echo "$lt_simple_link_test_code" >conftest.$ac_ext 7867eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7868_lt_linker_boilerplate=`cat conftest.err` 7869$RM -r conftest* 7870 7871 7872## CAVEAT EMPTOR: 7873## There is no encapsulation within the following macros, do not change 7874## the running order or otherwise move them around unless you know exactly 7875## what you are doing... 7876if test -n "$compiler"; then 7877 7878lt_prog_compiler_no_builtin_flag= 7879 7880if test "$GCC" = yes; then 7881 case $cc_basename in 7882 nvcc*) 7883 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7884 *) 7885 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7886 esac 7887 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7889$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7890if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7891 $as_echo_n "(cached) " >&6 7892else 7893 lt_cv_prog_compiler_rtti_exceptions=no 7894 ac_outfile=conftest.$ac_objext 7895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7896 lt_compiler_flag="-fno-rtti -fno-exceptions" 7897 # Insert the option either (1) after the last *FLAGS variable, or 7898 # (2) before a word containing "conftest.", or (3) at the end. 7899 # Note that $ac_compile itself does not contain backslashes and begins 7900 # with a dollar sign (not a hyphen), so the echo should work correctly. 7901 # The option is referenced via a variable to avoid confusing sed. 7902 lt_compile=`echo "$ac_compile" | $SED \ 7903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7905 -e 's:$: $lt_compiler_flag:'` 7906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7907 (eval "$lt_compile" 2>conftest.err) 7908 ac_status=$? 7909 cat conftest.err >&5 7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7911 if (exit $ac_status) && test -s "$ac_outfile"; then 7912 # The compiler can only warn and ignore the option if not recognized 7913 # So say no if there are warnings other than the usual output. 7914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7917 lt_cv_prog_compiler_rtti_exceptions=yes 7918 fi 7919 fi 7920 $RM conftest* 7921 7922fi 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7924$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7925 7926if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7927 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7928else 7929 : 7930fi 7931 7932fi 7933 7934 7935 7936 7937 7938 7939 lt_prog_compiler_wl= 7940lt_prog_compiler_pic= 7941lt_prog_compiler_static= 7942 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7944$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7945 7946 if test "$GCC" = yes; then 7947 lt_prog_compiler_wl='-Wl,' 7948 lt_prog_compiler_static='-static' 7949 7950 case $host_os in 7951 aix*) 7952 # All AIX code is PIC. 7953 if test "$host_cpu" = ia64; then 7954 # AIX 5 now supports IA64 processor 7955 lt_prog_compiler_static='-Bstatic' 7956 fi 7957 lt_prog_compiler_pic='-fPIC' 7958 ;; 7959 7960 amigaos*) 7961 case $host_cpu in 7962 powerpc) 7963 # see comment about AmigaOS4 .so support 7964 lt_prog_compiler_pic='-fPIC' 7965 ;; 7966 m68k) 7967 # FIXME: we need at least 68020 code to build shared libraries, but 7968 # adding the `-m68020' flag to GCC prevents building anything better, 7969 # like `-m68040'. 7970 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7971 ;; 7972 esac 7973 ;; 7974 7975 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7976 # PIC is the default for these OSes. 7977 ;; 7978 7979 mingw* | cygwin* | pw32* | os2* | cegcc*) 7980 # This hack is so that the source file can tell whether it is being 7981 # built for inclusion in a dll (and should export symbols for example). 7982 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7983 # (--disable-auto-import) libraries 7984 lt_prog_compiler_pic='-DDLL_EXPORT' 7985 ;; 7986 7987 darwin* | rhapsody*) 7988 # PIC is the default on this platform 7989 # Common symbols not allowed in MH_DYLIB files 7990 lt_prog_compiler_pic='-fno-common' 7991 ;; 7992 7993 haiku*) 7994 # PIC is the default for Haiku. 7995 # The "-static" flag exists, but is broken. 7996 lt_prog_compiler_static= 7997 ;; 7998 7999 hpux*) 8000 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8001 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8002 # sets the default TLS model and affects inlining. 8003 case $host_cpu in 8004 hppa*64*) 8005 # +Z the default 8006 ;; 8007 *) 8008 lt_prog_compiler_pic='-fPIC' 8009 ;; 8010 esac 8011 ;; 8012 8013 interix[3-9]*) 8014 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8015 # Instead, we relocate shared libraries at runtime. 8016 ;; 8017 8018 msdosdjgpp*) 8019 # Just because we use GCC doesn't mean we suddenly get shared libraries 8020 # on systems that don't support them. 8021 lt_prog_compiler_can_build_shared=no 8022 enable_shared=no 8023 ;; 8024 8025 *nto* | *qnx*) 8026 # QNX uses GNU C++, but need to define -shared option too, otherwise 8027 # it will coredump. 8028 lt_prog_compiler_pic='-fPIC -shared' 8029 ;; 8030 8031 sysv4*MP*) 8032 if test -d /usr/nec; then 8033 lt_prog_compiler_pic=-Kconform_pic 8034 fi 8035 ;; 8036 8037 *) 8038 lt_prog_compiler_pic='-fPIC' 8039 ;; 8040 esac 8041 8042 case $cc_basename in 8043 nvcc*) # Cuda Compiler Driver 2.2 8044 lt_prog_compiler_wl='-Xlinker ' 8045 lt_prog_compiler_pic='-Xcompiler -fPIC' 8046 ;; 8047 esac 8048 else 8049 # PORTME Check for flag to pass linker flags through the system compiler. 8050 case $host_os in 8051 aix*) 8052 lt_prog_compiler_wl='-Wl,' 8053 if test "$host_cpu" = ia64; then 8054 # AIX 5 now supports IA64 processor 8055 lt_prog_compiler_static='-Bstatic' 8056 else 8057 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8058 fi 8059 ;; 8060 8061 mingw* | cygwin* | pw32* | os2* | cegcc*) 8062 # This hack is so that the source file can tell whether it is being 8063 # built for inclusion in a dll (and should export symbols for example). 8064 lt_prog_compiler_pic='-DDLL_EXPORT' 8065 ;; 8066 8067 hpux9* | hpux10* | hpux11*) 8068 lt_prog_compiler_wl='-Wl,' 8069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8070 # not for PA HP-UX. 8071 case $host_cpu in 8072 hppa*64*|ia64*) 8073 # +Z the default 8074 ;; 8075 *) 8076 lt_prog_compiler_pic='+Z' 8077 ;; 8078 esac 8079 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8080 lt_prog_compiler_static='${wl}-a ${wl}archive' 8081 ;; 8082 8083 irix5* | irix6* | nonstopux*) 8084 lt_prog_compiler_wl='-Wl,' 8085 # PIC (with -KPIC) is the default. 8086 lt_prog_compiler_static='-non_shared' 8087 ;; 8088 8089 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8090 case $cc_basename in 8091 # old Intel for x86_64 which still supported -KPIC. 8092 ecc*) 8093 lt_prog_compiler_wl='-Wl,' 8094 lt_prog_compiler_pic='-KPIC' 8095 lt_prog_compiler_static='-static' 8096 ;; 8097 # icc used to be incompatible with GCC. 8098 # ICC 10 doesn't accept -KPIC any more. 8099 icc* | ifort*) 8100 lt_prog_compiler_wl='-Wl,' 8101 lt_prog_compiler_pic='-fPIC' 8102 lt_prog_compiler_static='-static' 8103 ;; 8104 # Lahey Fortran 8.1. 8105 lf95*) 8106 lt_prog_compiler_wl='-Wl,' 8107 lt_prog_compiler_pic='--shared' 8108 lt_prog_compiler_static='--static' 8109 ;; 8110 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8111 # Portland Group compilers (*not* the Pentium gcc compiler, 8112 # which looks to be a dead project) 8113 lt_prog_compiler_wl='-Wl,' 8114 lt_prog_compiler_pic='-fpic' 8115 lt_prog_compiler_static='-Bstatic' 8116 ;; 8117 ccc*) 8118 lt_prog_compiler_wl='-Wl,' 8119 # All Alpha code is PIC. 8120 lt_prog_compiler_static='-non_shared' 8121 ;; 8122 xl* | bgxl* | bgf* | mpixl*) 8123 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8124 lt_prog_compiler_wl='-Wl,' 8125 lt_prog_compiler_pic='-qpic' 8126 lt_prog_compiler_static='-qstaticlink' 8127 ;; 8128 *) 8129 case `$CC -V 2>&1 | sed 5q` in 8130 *Sun\ F* | *Sun*Fortran*) 8131 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8132 lt_prog_compiler_pic='-KPIC' 8133 lt_prog_compiler_static='-Bstatic' 8134 lt_prog_compiler_wl='' 8135 ;; 8136 *Sun\ C*) 8137 # Sun C 5.9 8138 lt_prog_compiler_pic='-KPIC' 8139 lt_prog_compiler_static='-Bstatic' 8140 lt_prog_compiler_wl='-Wl,' 8141 ;; 8142 esac 8143 ;; 8144 esac 8145 ;; 8146 8147 newsos6) 8148 lt_prog_compiler_pic='-KPIC' 8149 lt_prog_compiler_static='-Bstatic' 8150 ;; 8151 8152 *nto* | *qnx*) 8153 # QNX uses GNU C++, but need to define -shared option too, otherwise 8154 # it will coredump. 8155 lt_prog_compiler_pic='-fPIC -shared' 8156 ;; 8157 8158 osf3* | osf4* | osf5*) 8159 lt_prog_compiler_wl='-Wl,' 8160 # All OSF/1 code is PIC. 8161 lt_prog_compiler_static='-non_shared' 8162 ;; 8163 8164 rdos*) 8165 lt_prog_compiler_static='-non_shared' 8166 ;; 8167 8168 solaris*) 8169 lt_prog_compiler_pic='-KPIC' 8170 lt_prog_compiler_static='-Bstatic' 8171 case $cc_basename in 8172 f77* | f90* | f95*) 8173 lt_prog_compiler_wl='-Qoption ld ';; 8174 *) 8175 lt_prog_compiler_wl='-Wl,';; 8176 esac 8177 ;; 8178 8179 sunos4*) 8180 lt_prog_compiler_wl='-Qoption ld ' 8181 lt_prog_compiler_pic='-PIC' 8182 lt_prog_compiler_static='-Bstatic' 8183 ;; 8184 8185 sysv4 | sysv4.2uw2* | sysv4.3*) 8186 lt_prog_compiler_wl='-Wl,' 8187 lt_prog_compiler_pic='-KPIC' 8188 lt_prog_compiler_static='-Bstatic' 8189 ;; 8190 8191 sysv4*MP*) 8192 if test -d /usr/nec ;then 8193 lt_prog_compiler_pic='-Kconform_pic' 8194 lt_prog_compiler_static='-Bstatic' 8195 fi 8196 ;; 8197 8198 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8199 lt_prog_compiler_wl='-Wl,' 8200 lt_prog_compiler_pic='-KPIC' 8201 lt_prog_compiler_static='-Bstatic' 8202 ;; 8203 8204 unicos*) 8205 lt_prog_compiler_wl='-Wl,' 8206 lt_prog_compiler_can_build_shared=no 8207 ;; 8208 8209 uts4*) 8210 lt_prog_compiler_pic='-pic' 8211 lt_prog_compiler_static='-Bstatic' 8212 ;; 8213 8214 *) 8215 lt_prog_compiler_can_build_shared=no 8216 ;; 8217 esac 8218 fi 8219 8220case $host_os in 8221 # For platforms which do not support PIC, -DPIC is meaningless: 8222 *djgpp*) 8223 lt_prog_compiler_pic= 8224 ;; 8225 *) 8226 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8227 ;; 8228esac 8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8230$as_echo "$lt_prog_compiler_pic" >&6; } 8231 8232 8233 8234 8235 8236 8237# 8238# Check to make sure the PIC flag actually works. 8239# 8240if test -n "$lt_prog_compiler_pic"; then 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8242$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8243if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8244 $as_echo_n "(cached) " >&6 8245else 8246 lt_cv_prog_compiler_pic_works=no 8247 ac_outfile=conftest.$ac_objext 8248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8249 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8250 # Insert the option either (1) after the last *FLAGS variable, or 8251 # (2) before a word containing "conftest.", or (3) at the end. 8252 # Note that $ac_compile itself does not contain backslashes and begins 8253 # with a dollar sign (not a hyphen), so the echo should work correctly. 8254 # The option is referenced via a variable to avoid confusing sed. 8255 lt_compile=`echo "$ac_compile" | $SED \ 8256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8258 -e 's:$: $lt_compiler_flag:'` 8259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8260 (eval "$lt_compile" 2>conftest.err) 8261 ac_status=$? 8262 cat conftest.err >&5 8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8264 if (exit $ac_status) && test -s "$ac_outfile"; then 8265 # The compiler can only warn and ignore the option if not recognized 8266 # So say no if there are warnings other than the usual output. 8267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8270 lt_cv_prog_compiler_pic_works=yes 8271 fi 8272 fi 8273 $RM conftest* 8274 8275fi 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8277$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8278 8279if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8280 case $lt_prog_compiler_pic in 8281 "" | " "*) ;; 8282 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8283 esac 8284else 8285 lt_prog_compiler_pic= 8286 lt_prog_compiler_can_build_shared=no 8287fi 8288 8289fi 8290 8291 8292 8293 8294 8295 8296# 8297# Check to make sure the static flag actually works. 8298# 8299wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8301$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8302if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 lt_cv_prog_compiler_static_works=no 8306 save_LDFLAGS="$LDFLAGS" 8307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8308 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8310 # The linker can only warn and ignore the option if not recognized 8311 # So say no if there are warnings 8312 if test -s conftest.err; then 8313 # Append any errors to the config.log. 8314 cat conftest.err 1>&5 8315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8317 if diff conftest.exp conftest.er2 >/dev/null; then 8318 lt_cv_prog_compiler_static_works=yes 8319 fi 8320 else 8321 lt_cv_prog_compiler_static_works=yes 8322 fi 8323 fi 8324 $RM -r conftest* 8325 LDFLAGS="$save_LDFLAGS" 8326 8327fi 8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8329$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8330 8331if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8332 : 8333else 8334 lt_prog_compiler_static= 8335fi 8336 8337 8338 8339 8340 8341 8342 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8344$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8345if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8346 $as_echo_n "(cached) " >&6 8347else 8348 lt_cv_prog_compiler_c_o=no 8349 $RM -r conftest 2>/dev/null 8350 mkdir conftest 8351 cd conftest 8352 mkdir out 8353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8354 8355 lt_compiler_flag="-o out/conftest2.$ac_objext" 8356 # Insert the option either (1) after the last *FLAGS variable, or 8357 # (2) before a word containing "conftest.", or (3) at the end. 8358 # Note that $ac_compile itself does not contain backslashes and begins 8359 # with a dollar sign (not a hyphen), so the echo should work correctly. 8360 lt_compile=`echo "$ac_compile" | $SED \ 8361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8363 -e 's:$: $lt_compiler_flag:'` 8364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8365 (eval "$lt_compile" 2>out/conftest.err) 8366 ac_status=$? 8367 cat out/conftest.err >&5 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8369 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8370 then 8371 # The compiler can only warn and ignore the option if not recognized 8372 # So say no if there are warnings 8373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8376 lt_cv_prog_compiler_c_o=yes 8377 fi 8378 fi 8379 chmod u+w . 2>&5 8380 $RM conftest* 8381 # SGI C++ compiler will create directory out/ii_files/ for 8382 # template instantiation 8383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8384 $RM out/* && rmdir out 8385 cd .. 8386 $RM -r conftest 8387 $RM conftest* 8388 8389fi 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8391$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8392 8393 8394 8395 8396 8397 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8399$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8400if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 lt_cv_prog_compiler_c_o=no 8404 $RM -r conftest 2>/dev/null 8405 mkdir conftest 8406 cd conftest 8407 mkdir out 8408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8409 8410 lt_compiler_flag="-o out/conftest2.$ac_objext" 8411 # Insert the option either (1) after the last *FLAGS variable, or 8412 # (2) before a word containing "conftest.", or (3) at the end. 8413 # Note that $ac_compile itself does not contain backslashes and begins 8414 # with a dollar sign (not a hyphen), so the echo should work correctly. 8415 lt_compile=`echo "$ac_compile" | $SED \ 8416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8418 -e 's:$: $lt_compiler_flag:'` 8419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8420 (eval "$lt_compile" 2>out/conftest.err) 8421 ac_status=$? 8422 cat out/conftest.err >&5 8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8424 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8425 then 8426 # The compiler can only warn and ignore the option if not recognized 8427 # So say no if there are warnings 8428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8431 lt_cv_prog_compiler_c_o=yes 8432 fi 8433 fi 8434 chmod u+w . 2>&5 8435 $RM conftest* 8436 # SGI C++ compiler will create directory out/ii_files/ for 8437 # template instantiation 8438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8439 $RM out/* && rmdir out 8440 cd .. 8441 $RM -r conftest 8442 $RM conftest* 8443 8444fi 8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8446$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8447 8448 8449 8450 8451hard_links="nottested" 8452if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8453 # do not overwrite the value of need_locks provided by the user 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8455$as_echo_n "checking if we can lock with hard links... " >&6; } 8456 hard_links=yes 8457 $RM conftest* 8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8459 touch conftest.a 8460 ln conftest.a conftest.b 2>&5 || hard_links=no 8461 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8463$as_echo "$hard_links" >&6; } 8464 if test "$hard_links" = no; then 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8466$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8467 need_locks=warn 8468 fi 8469else 8470 need_locks=no 8471fi 8472 8473 8474 8475 8476 8477 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8479$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8480 8481 runpath_var= 8482 allow_undefined_flag= 8483 always_export_symbols=no 8484 archive_cmds= 8485 archive_expsym_cmds= 8486 compiler_needs_object=no 8487 enable_shared_with_static_runtimes=no 8488 export_dynamic_flag_spec= 8489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8490 hardcode_automatic=no 8491 hardcode_direct=no 8492 hardcode_direct_absolute=no 8493 hardcode_libdir_flag_spec= 8494 hardcode_libdir_flag_spec_ld= 8495 hardcode_libdir_separator= 8496 hardcode_minus_L=no 8497 hardcode_shlibpath_var=unsupported 8498 inherit_rpath=no 8499 link_all_deplibs=unknown 8500 module_cmds= 8501 module_expsym_cmds= 8502 old_archive_from_new_cmds= 8503 old_archive_from_expsyms_cmds= 8504 thread_safe_flag_spec= 8505 whole_archive_flag_spec= 8506 # include_expsyms should be a list of space-separated symbols to be *always* 8507 # included in the symbol list 8508 include_expsyms= 8509 # exclude_expsyms can be an extended regexp of symbols to exclude 8510 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8511 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8512 # as well as any symbol that contains `d'. 8513 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8514 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8515 # platforms (ab)use it in PIC code, but their linkers get confused if 8516 # the symbol is explicitly referenced. Since portable code cannot 8517 # rely on this symbol name, it's probably fine to never include it in 8518 # preloaded symbol tables. 8519 # Exclude shared library initialization/finalization symbols. 8520 extract_expsyms_cmds= 8521 8522 case $host_os in 8523 cygwin* | mingw* | pw32* | cegcc*) 8524 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8525 # When not using gcc, we currently assume that we are using 8526 # Microsoft Visual C++. 8527 if test "$GCC" != yes; then 8528 with_gnu_ld=no 8529 fi 8530 ;; 8531 interix*) 8532 # we just hope/assume this is gcc and not c89 (= MSVC++) 8533 with_gnu_ld=yes 8534 ;; 8535 openbsd*) 8536 with_gnu_ld=no 8537 ;; 8538 esac 8539 8540 ld_shlibs=yes 8541 8542 # On some targets, GNU ld is compatible enough with the native linker 8543 # that we're better off using the native interface for both. 8544 lt_use_gnu_ld_interface=no 8545 if test "$with_gnu_ld" = yes; then 8546 case $host_os in 8547 aix*) 8548 # The AIX port of GNU ld has always aspired to compatibility 8549 # with the native linker. However, as the warning in the GNU ld 8550 # block says, versions before 2.19.5* couldn't really create working 8551 # shared libraries, regardless of the interface used. 8552 case `$LD -v 2>&1` in 8553 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8554 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8555 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8556 *) 8557 lt_use_gnu_ld_interface=yes 8558 ;; 8559 esac 8560 ;; 8561 *) 8562 lt_use_gnu_ld_interface=yes 8563 ;; 8564 esac 8565 fi 8566 8567 if test "$lt_use_gnu_ld_interface" = yes; then 8568 # If archive_cmds runs LD, not CC, wlarc should be empty 8569 wlarc='${wl}' 8570 8571 # Set some defaults for GNU ld with shared library support. These 8572 # are reset later if shared libraries are not supported. Putting them 8573 # here allows them to be overridden if necessary. 8574 runpath_var=LD_RUN_PATH 8575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8576 export_dynamic_flag_spec='${wl}--export-dynamic' 8577 # ancient GNU ld didn't support --whole-archive et. al. 8578 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8579 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8580 else 8581 whole_archive_flag_spec= 8582 fi 8583 supports_anon_versioning=no 8584 case `$LD -v 2>&1` in 8585 *GNU\ gold*) supports_anon_versioning=yes ;; 8586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8589 *\ 2.11.*) ;; # other 2.11 versions 8590 *) supports_anon_versioning=yes ;; 8591 esac 8592 8593 # See if GNU ld supports shared libraries. 8594 case $host_os in 8595 aix[3-9]*) 8596 # On AIX/PPC, the GNU linker is very broken 8597 if test "$host_cpu" != ia64; then 8598 ld_shlibs=no 8599 cat <<_LT_EOF 1>&2 8600 8601*** Warning: the GNU linker, at least up to release 2.19, is reported 8602*** to be unable to reliably create shared libraries on AIX. 8603*** Therefore, libtool is disabling shared libraries support. If you 8604*** really care for shared libraries, you may want to install binutils 8605*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8606*** You will then need to restart the configuration process. 8607 8608_LT_EOF 8609 fi 8610 ;; 8611 8612 amigaos*) 8613 case $host_cpu in 8614 powerpc) 8615 # see comment about AmigaOS4 .so support 8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8617 archive_expsym_cmds='' 8618 ;; 8619 m68k) 8620 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)' 8621 hardcode_libdir_flag_spec='-L$libdir' 8622 hardcode_minus_L=yes 8623 ;; 8624 esac 8625 ;; 8626 8627 beos*) 8628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8629 allow_undefined_flag=unsupported 8630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8631 # support --undefined. This deserves some investigation. FIXME 8632 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8633 else 8634 ld_shlibs=no 8635 fi 8636 ;; 8637 8638 cygwin* | mingw* | pw32* | cegcc*) 8639 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8640 # as there is no search path for DLLs. 8641 hardcode_libdir_flag_spec='-L$libdir' 8642 export_dynamic_flag_spec='${wl}--export-all-symbols' 8643 allow_undefined_flag=unsupported 8644 always_export_symbols=no 8645 enable_shared_with_static_runtimes=yes 8646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8647 8648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8650 # If the export-symbols file already is a .def file (1st line 8651 # is EXPORTS), use it as is; otherwise, prepend... 8652 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8653 cp $export_symbols $output_objdir/$soname.def; 8654 else 8655 echo EXPORTS > $output_objdir/$soname.def; 8656 cat $export_symbols >> $output_objdir/$soname.def; 8657 fi~ 8658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8659 else 8660 ld_shlibs=no 8661 fi 8662 ;; 8663 8664 haiku*) 8665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8666 link_all_deplibs=yes 8667 ;; 8668 8669 interix[3-9]*) 8670 hardcode_direct=no 8671 hardcode_shlibpath_var=no 8672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8673 export_dynamic_flag_spec='${wl}-E' 8674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8675 # Instead, shared libraries are loaded at an image base (0x10000000 by 8676 # default) and relocated if they conflict, which is a slow very memory 8677 # consuming and fragmenting process. To avoid this, we pick a random, 8678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8679 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8681 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' 8682 ;; 8683 8684 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8685 tmp_diet=no 8686 if test "$host_os" = linux-dietlibc; then 8687 case $cc_basename in 8688 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8689 esac 8690 fi 8691 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8692 && test "$tmp_diet" = no 8693 then 8694 tmp_addflag=' $pic_flag' 8695 tmp_sharedflag='-shared' 8696 case $cc_basename,$host_cpu in 8697 pgcc*) # Portland Group C compiler 8698 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' 8699 tmp_addflag=' $pic_flag' 8700 ;; 8701 pgf77* | pgf90* | pgf95* | pgfortran*) 8702 # Portland Group f77 and f90 compilers 8703 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' 8704 tmp_addflag=' $pic_flag -Mnomain' ;; 8705 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8706 tmp_addflag=' -i_dynamic' ;; 8707 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8708 tmp_addflag=' -i_dynamic -nofor_main' ;; 8709 ifc* | ifort*) # Intel Fortran compiler 8710 tmp_addflag=' -nofor_main' ;; 8711 lf95*) # Lahey Fortran 8.1 8712 whole_archive_flag_spec= 8713 tmp_sharedflag='--shared' ;; 8714 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8715 tmp_sharedflag='-qmkshrobj' 8716 tmp_addflag= ;; 8717 nvcc*) # Cuda Compiler Driver 2.2 8718 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' 8719 compiler_needs_object=yes 8720 ;; 8721 esac 8722 case `$CC -V 2>&1 | sed 5q` in 8723 *Sun\ C*) # Sun C 5.9 8724 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' 8725 compiler_needs_object=yes 8726 tmp_sharedflag='-G' ;; 8727 *Sun\ F*) # Sun Fortran 8.3 8728 tmp_sharedflag='-G' ;; 8729 esac 8730 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8731 8732 if test "x$supports_anon_versioning" = xyes; then 8733 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8735 echo "local: *; };" >> $output_objdir/$libname.ver~ 8736 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8737 fi 8738 8739 case $cc_basename in 8740 xlf* | bgf* | bgxlf* | mpixlf*) 8741 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8742 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8743 hardcode_libdir_flag_spec= 8744 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8745 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8746 if test "x$supports_anon_versioning" = xyes; then 8747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8749 echo "local: *; };" >> $output_objdir/$libname.ver~ 8750 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8751 fi 8752 ;; 8753 esac 8754 else 8755 ld_shlibs=no 8756 fi 8757 ;; 8758 8759 netbsd*) 8760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8761 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8762 wlarc= 8763 else 8764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8766 fi 8767 ;; 8768 8769 solaris*) 8770 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8771 ld_shlibs=no 8772 cat <<_LT_EOF 1>&2 8773 8774*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8775*** create shared libraries on Solaris systems. Therefore, libtool 8776*** is disabling shared libraries support. We urge you to upgrade GNU 8777*** binutils to release 2.9.1 or newer. Another option is to modify 8778*** your PATH or compiler configuration so that the native linker is 8779*** used, and then restart. 8780 8781_LT_EOF 8782 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8785 else 8786 ld_shlibs=no 8787 fi 8788 ;; 8789 8790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8791 case `$LD -v 2>&1` in 8792 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8793 ld_shlibs=no 8794 cat <<_LT_EOF 1>&2 8795 8796*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8797*** reliably create shared libraries on SCO systems. Therefore, libtool 8798*** is disabling shared libraries support. We urge you to upgrade GNU 8799*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8800*** your PATH or compiler configuration so that the native linker is 8801*** used, and then restart. 8802 8803_LT_EOF 8804 ;; 8805 *) 8806 # For security reasons, it is highly recommended that you always 8807 # use absolute paths for naming shared libraries, and exclude the 8808 # DT_RUNPATH tag from executables and libraries. But doing so 8809 # requires that you compile everything twice, which is a pain. 8810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8814 else 8815 ld_shlibs=no 8816 fi 8817 ;; 8818 esac 8819 ;; 8820 8821 sunos4*) 8822 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8823 wlarc= 8824 hardcode_direct=yes 8825 hardcode_shlibpath_var=no 8826 ;; 8827 8828 *) 8829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8832 else 8833 ld_shlibs=no 8834 fi 8835 ;; 8836 esac 8837 8838 if test "$ld_shlibs" = no; then 8839 runpath_var= 8840 hardcode_libdir_flag_spec= 8841 export_dynamic_flag_spec= 8842 whole_archive_flag_spec= 8843 fi 8844 else 8845 # PORTME fill in a description of your system's linker (not GNU ld) 8846 case $host_os in 8847 aix3*) 8848 allow_undefined_flag=unsupported 8849 always_export_symbols=yes 8850 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' 8851 # Note: this linker hardcodes the directories in LIBPATH if there 8852 # are no directories specified by -L. 8853 hardcode_minus_L=yes 8854 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8855 # Neither direct hardcoding nor static linking is supported with a 8856 # broken collect2. 8857 hardcode_direct=unsupported 8858 fi 8859 ;; 8860 8861 aix[4-9]*) 8862 if test "$host_cpu" = ia64; then 8863 # On IA64, the linker does run time linking by default, so we don't 8864 # have to do anything special. 8865 aix_use_runtimelinking=no 8866 exp_sym_flag='-Bexport' 8867 no_entry_flag="" 8868 else 8869 # If we're using GNU nm, then we don't want the "-C" option. 8870 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8871 # Also, AIX nm treats weak defined symbols like other global 8872 # defined symbols, whereas GNU nm marks them as "W". 8873 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8874 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' 8875 else 8876 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' 8877 fi 8878 aix_use_runtimelinking=no 8879 8880 # Test if we are trying to use run time linking or normal 8881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8882 # need to do runtime linking. 8883 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8884 for ld_flag in $LDFLAGS; do 8885 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8886 aix_use_runtimelinking=yes 8887 break 8888 fi 8889 done 8890 ;; 8891 esac 8892 8893 exp_sym_flag='-bexport' 8894 no_entry_flag='-bnoentry' 8895 fi 8896 8897 # When large executables or shared objects are built, AIX ld can 8898 # have problems creating the table of contents. If linking a library 8899 # or program results in "error TOC overflow" add -mminimal-toc to 8900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8902 8903 archive_cmds='' 8904 hardcode_direct=yes 8905 hardcode_direct_absolute=yes 8906 hardcode_libdir_separator=':' 8907 link_all_deplibs=yes 8908 file_list_spec='${wl}-f,' 8909 8910 if test "$GCC" = yes; then 8911 case $host_os in aix4.[012]|aix4.[012].*) 8912 # We only want to do this on AIX 4.2 and lower, the check 8913 # below for broken collect2 doesn't work under 4.3+ 8914 collect2name=`${CC} -print-prog-name=collect2` 8915 if test -f "$collect2name" && 8916 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8917 then 8918 # We have reworked collect2 8919 : 8920 else 8921 # We have old collect2 8922 hardcode_direct=unsupported 8923 # It fails to find uninstalled libraries when the uninstalled 8924 # path is not listed in the libpath. Setting hardcode_minus_L 8925 # to unsupported forces relinking 8926 hardcode_minus_L=yes 8927 hardcode_libdir_flag_spec='-L$libdir' 8928 hardcode_libdir_separator= 8929 fi 8930 ;; 8931 esac 8932 shared_flag='-shared' 8933 if test "$aix_use_runtimelinking" = yes; then 8934 shared_flag="$shared_flag "'${wl}-G' 8935 fi 8936 else 8937 # not using gcc 8938 if test "$host_cpu" = ia64; then 8939 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8940 # chokes on -Wl,-G. The following line is correct: 8941 shared_flag='-G' 8942 else 8943 if test "$aix_use_runtimelinking" = yes; then 8944 shared_flag='${wl}-G' 8945 else 8946 shared_flag='${wl}-bM:SRE' 8947 fi 8948 fi 8949 fi 8950 8951 export_dynamic_flag_spec='${wl}-bexpall' 8952 # It seems that -bexpall does not export symbols beginning with 8953 # underscore (_), so it is better to generate a list of symbols to export. 8954 always_export_symbols=yes 8955 if test "$aix_use_runtimelinking" = yes; then 8956 # Warning - without using the other runtime loading flags (-brtl), 8957 # -berok will link without error, but may produce a broken library. 8958 allow_undefined_flag='-berok' 8959 # Determine the default libpath from the value encoded in an 8960 # empty executable. 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963 8964int 8965main () 8966{ 8967 8968 ; 8969 return 0; 8970} 8971_ACEOF 8972if ac_fn_c_try_link "$LINENO"; then : 8973 8974lt_aix_libpath_sed=' 8975 /Import File Strings/,/^$/ { 8976 /^0/ { 8977 s/^0 *\(.*\)$/\1/ 8978 p 8979 } 8980 }' 8981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8982# Check for a 64-bit object if we didn't find anything. 8983if test -z "$aix_libpath"; then 8984 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8985fi 8986fi 8987rm -f core conftest.err conftest.$ac_objext \ 8988 conftest$ac_exeext conftest.$ac_ext 8989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8990 8991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8992 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" 8993 else 8994 if test "$host_cpu" = ia64; then 8995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8996 allow_undefined_flag="-z nodefs" 8997 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" 8998 else 8999 # Determine the default libpath from the value encoded in an 9000 # empty executable. 9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9002/* end confdefs.h. */ 9003 9004int 9005main () 9006{ 9007 9008 ; 9009 return 0; 9010} 9011_ACEOF 9012if ac_fn_c_try_link "$LINENO"; then : 9013 9014lt_aix_libpath_sed=' 9015 /Import File Strings/,/^$/ { 9016 /^0/ { 9017 s/^0 *\(.*\)$/\1/ 9018 p 9019 } 9020 }' 9021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9022# Check for a 64-bit object if we didn't find anything. 9023if test -z "$aix_libpath"; then 9024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9025fi 9026fi 9027rm -f core conftest.err conftest.$ac_objext \ 9028 conftest$ac_exeext conftest.$ac_ext 9029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9030 9031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9032 # Warning - without using the other run time loading flags, 9033 # -berok will link without error, but may produce a broken library. 9034 no_undefined_flag=' ${wl}-bernotok' 9035 allow_undefined_flag=' ${wl}-berok' 9036 if test "$with_gnu_ld" = yes; then 9037 # We only use this code for GNU lds that support --whole-archive. 9038 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9039 else 9040 # Exported symbols can be pulled into shared objects from archives 9041 whole_archive_flag_spec='$convenience' 9042 fi 9043 archive_cmds_need_lc=yes 9044 # This is similar to how AIX traditionally builds its shared libraries. 9045 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' 9046 fi 9047 fi 9048 ;; 9049 9050 amigaos*) 9051 case $host_cpu in 9052 powerpc) 9053 # see comment about AmigaOS4 .so support 9054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9055 archive_expsym_cmds='' 9056 ;; 9057 m68k) 9058 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)' 9059 hardcode_libdir_flag_spec='-L$libdir' 9060 hardcode_minus_L=yes 9061 ;; 9062 esac 9063 ;; 9064 9065 bsdi[45]*) 9066 export_dynamic_flag_spec=-rdynamic 9067 ;; 9068 9069 cygwin* | mingw* | pw32* | cegcc*) 9070 # When not using gcc, we currently assume that we are using 9071 # Microsoft Visual C++. 9072 # hardcode_libdir_flag_spec is actually meaningless, as there is 9073 # no search path for DLLs. 9074 hardcode_libdir_flag_spec=' ' 9075 allow_undefined_flag=unsupported 9076 # Tell ltmain to make .lib files, not .a files. 9077 libext=lib 9078 # Tell ltmain to make .dll files, not .so files. 9079 shrext_cmds=".dll" 9080 # FIXME: Setting linknames here is a bad hack. 9081 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9082 # The linker will automatically build a .lib file if we build a DLL. 9083 old_archive_from_new_cmds='true' 9084 # FIXME: Should let the user specify the lib program. 9085 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9086 fix_srcfile_path='`cygpath -w "$srcfile"`' 9087 enable_shared_with_static_runtimes=yes 9088 ;; 9089 9090 darwin* | rhapsody*) 9091 9092 9093 archive_cmds_need_lc=no 9094 hardcode_direct=no 9095 hardcode_automatic=yes 9096 hardcode_shlibpath_var=unsupported 9097 if test "$lt_cv_ld_force_load" = "yes"; then 9098 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\"`' 9099 else 9100 whole_archive_flag_spec='' 9101 fi 9102 link_all_deplibs=yes 9103 allow_undefined_flag="$_lt_dar_allow_undefined" 9104 case $cc_basename in 9105 ifort*) _lt_dar_can_shared=yes ;; 9106 *) _lt_dar_can_shared=$GCC ;; 9107 esac 9108 if test "$_lt_dar_can_shared" = "yes"; then 9109 output_verbose_link_cmd=func_echo_all 9110 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9111 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9112 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}" 9113 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}" 9114 9115 else 9116 ld_shlibs=no 9117 fi 9118 9119 ;; 9120 9121 dgux*) 9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9123 hardcode_libdir_flag_spec='-L$libdir' 9124 hardcode_shlibpath_var=no 9125 ;; 9126 9127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9128 # support. Future versions do this automatically, but an explicit c++rt0.o 9129 # does not break anything, and helps significantly (at the cost of a little 9130 # extra space). 9131 freebsd2.2*) 9132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9133 hardcode_libdir_flag_spec='-R$libdir' 9134 hardcode_direct=yes 9135 hardcode_shlibpath_var=no 9136 ;; 9137 9138 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9139 freebsd2.*) 9140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9141 hardcode_direct=yes 9142 hardcode_minus_L=yes 9143 hardcode_shlibpath_var=no 9144 ;; 9145 9146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9147 freebsd* | dragonfly*) 9148 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9149 hardcode_libdir_flag_spec='-R$libdir' 9150 hardcode_direct=yes 9151 hardcode_shlibpath_var=no 9152 ;; 9153 9154 hpux9*) 9155 if test "$GCC" = yes; then 9156 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' 9157 else 9158 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' 9159 fi 9160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9161 hardcode_libdir_separator=: 9162 hardcode_direct=yes 9163 9164 # hardcode_minus_L: Not really in the search PATH, 9165 # but as the default location of the library. 9166 hardcode_minus_L=yes 9167 export_dynamic_flag_spec='${wl}-E' 9168 ;; 9169 9170 hpux10*) 9171 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9173 else 9174 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9175 fi 9176 if test "$with_gnu_ld" = no; then 9177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9178 hardcode_libdir_flag_spec_ld='+b $libdir' 9179 hardcode_libdir_separator=: 9180 hardcode_direct=yes 9181 hardcode_direct_absolute=yes 9182 export_dynamic_flag_spec='${wl}-E' 9183 # hardcode_minus_L: Not really in the search PATH, 9184 # but as the default location of the library. 9185 hardcode_minus_L=yes 9186 fi 9187 ;; 9188 9189 hpux11*) 9190 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9191 case $host_cpu in 9192 hppa*64*) 9193 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9194 ;; 9195 ia64*) 9196 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9197 ;; 9198 *) 9199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9200 ;; 9201 esac 9202 else 9203 case $host_cpu in 9204 hppa*64*) 9205 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9206 ;; 9207 ia64*) 9208 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9209 ;; 9210 *) 9211 9212 # Older versions of the 11.00 compiler do not understand -b yet 9213 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9215$as_echo_n "checking if $CC understands -b... " >&6; } 9216if test "${lt_cv_prog_compiler__b+set}" = set; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 lt_cv_prog_compiler__b=no 9220 save_LDFLAGS="$LDFLAGS" 9221 LDFLAGS="$LDFLAGS -b" 9222 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9224 # The linker can only warn and ignore the option if not recognized 9225 # So say no if there are warnings 9226 if test -s conftest.err; then 9227 # Append any errors to the config.log. 9228 cat conftest.err 1>&5 9229 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9231 if diff conftest.exp conftest.er2 >/dev/null; then 9232 lt_cv_prog_compiler__b=yes 9233 fi 9234 else 9235 lt_cv_prog_compiler__b=yes 9236 fi 9237 fi 9238 $RM -r conftest* 9239 LDFLAGS="$save_LDFLAGS" 9240 9241fi 9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9243$as_echo "$lt_cv_prog_compiler__b" >&6; } 9244 9245if test x"$lt_cv_prog_compiler__b" = xyes; then 9246 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9247else 9248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9249fi 9250 9251 ;; 9252 esac 9253 fi 9254 if test "$with_gnu_ld" = no; then 9255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9256 hardcode_libdir_separator=: 9257 9258 case $host_cpu in 9259 hppa*64*|ia64*) 9260 hardcode_direct=no 9261 hardcode_shlibpath_var=no 9262 ;; 9263 *) 9264 hardcode_direct=yes 9265 hardcode_direct_absolute=yes 9266 export_dynamic_flag_spec='${wl}-E' 9267 9268 # hardcode_minus_L: Not really in the search PATH, 9269 # but as the default location of the library. 9270 hardcode_minus_L=yes 9271 ;; 9272 esac 9273 fi 9274 ;; 9275 9276 irix5* | irix6* | nonstopux*) 9277 if test "$GCC" = yes; then 9278 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' 9279 # Try to use the -exported_symbol ld option, if it does not 9280 # work, assume that -exports_file does not work either and 9281 # implicitly export all symbols. 9282 save_LDFLAGS="$LDFLAGS" 9283 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285/* end confdefs.h. */ 9286int foo(void) {} 9287_ACEOF 9288if ac_fn_c_try_link "$LINENO"; then : 9289 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' 9290 9291fi 9292rm -f core conftest.err conftest.$ac_objext \ 9293 conftest$ac_exeext conftest.$ac_ext 9294 LDFLAGS="$save_LDFLAGS" 9295 else 9296 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' 9297 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' 9298 fi 9299 archive_cmds_need_lc='no' 9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9301 hardcode_libdir_separator=: 9302 inherit_rpath=yes 9303 link_all_deplibs=yes 9304 ;; 9305 9306 netbsd*) 9307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9309 else 9310 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9311 fi 9312 hardcode_libdir_flag_spec='-R$libdir' 9313 hardcode_direct=yes 9314 hardcode_shlibpath_var=no 9315 ;; 9316 9317 newsos6) 9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9319 hardcode_direct=yes 9320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9321 hardcode_libdir_separator=: 9322 hardcode_shlibpath_var=no 9323 ;; 9324 9325 *nto* | *qnx*) 9326 ;; 9327 9328 openbsd*) 9329 if test -f /usr/libexec/ld.so; then 9330 hardcode_direct=yes 9331 hardcode_shlibpath_var=no 9332 hardcode_direct_absolute=yes 9333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9335 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9337 export_dynamic_flag_spec='${wl}-E' 9338 else 9339 case $host_os in 9340 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9342 hardcode_libdir_flag_spec='-R$libdir' 9343 ;; 9344 *) 9345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9347 ;; 9348 esac 9349 fi 9350 else 9351 ld_shlibs=no 9352 fi 9353 ;; 9354 9355 os2*) 9356 hardcode_libdir_flag_spec='-L$libdir' 9357 hardcode_minus_L=yes 9358 allow_undefined_flag=unsupported 9359 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' 9360 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9361 ;; 9362 9363 osf3*) 9364 if test "$GCC" = yes; then 9365 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9366 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' 9367 else 9368 allow_undefined_flag=' -expect_unresolved \*' 9369 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' 9370 fi 9371 archive_cmds_need_lc='no' 9372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9373 hardcode_libdir_separator=: 9374 ;; 9375 9376 osf4* | osf5*) # as osf3* with the addition of -msym flag 9377 if test "$GCC" = yes; then 9378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9379 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' 9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9381 else 9382 allow_undefined_flag=' -expect_unresolved \*' 9383 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' 9384 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~ 9385 $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' 9386 9387 # Both c and cxx compiler support -rpath directly 9388 hardcode_libdir_flag_spec='-rpath $libdir' 9389 fi 9390 archive_cmds_need_lc='no' 9391 hardcode_libdir_separator=: 9392 ;; 9393 9394 solaris*) 9395 no_undefined_flag=' -z defs' 9396 if test "$GCC" = yes; then 9397 wlarc='${wl}' 9398 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9400 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9401 else 9402 case `$CC -V 2>&1` in 9403 *"Compilers 5.0"*) 9404 wlarc='' 9405 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9406 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9407 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9408 ;; 9409 *) 9410 wlarc='${wl}' 9411 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9413 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9414 ;; 9415 esac 9416 fi 9417 hardcode_libdir_flag_spec='-R$libdir' 9418 hardcode_shlibpath_var=no 9419 case $host_os in 9420 solaris2.[0-5] | solaris2.[0-5].*) ;; 9421 *) 9422 # The compiler driver will combine and reorder linker options, 9423 # but understands `-z linker_flag'. GCC discards it without `$wl', 9424 # but is careful enough not to reorder. 9425 # Supported since Solaris 2.6 (maybe 2.5.1?) 9426 if test "$GCC" = yes; then 9427 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9428 else 9429 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9430 fi 9431 ;; 9432 esac 9433 link_all_deplibs=yes 9434 ;; 9435 9436 sunos4*) 9437 if test "x$host_vendor" = xsequent; then 9438 # Use $CC to link under sequent, because it throws in some extra .o 9439 # files that make .init and .fini sections work. 9440 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9441 else 9442 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9443 fi 9444 hardcode_libdir_flag_spec='-L$libdir' 9445 hardcode_direct=yes 9446 hardcode_minus_L=yes 9447 hardcode_shlibpath_var=no 9448 ;; 9449 9450 sysv4) 9451 case $host_vendor in 9452 sni) 9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9454 hardcode_direct=yes # is this really true??? 9455 ;; 9456 siemens) 9457 ## LD is ld it makes a PLAMLIB 9458 ## CC just makes a GrossModule. 9459 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9460 reload_cmds='$CC -r -o $output$reload_objs' 9461 hardcode_direct=no 9462 ;; 9463 motorola) 9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9465 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9466 ;; 9467 esac 9468 runpath_var='LD_RUN_PATH' 9469 hardcode_shlibpath_var=no 9470 ;; 9471 9472 sysv4.3*) 9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9474 hardcode_shlibpath_var=no 9475 export_dynamic_flag_spec='-Bexport' 9476 ;; 9477 9478 sysv4*MP*) 9479 if test -d /usr/nec; then 9480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9481 hardcode_shlibpath_var=no 9482 runpath_var=LD_RUN_PATH 9483 hardcode_runpath_var=yes 9484 ld_shlibs=yes 9485 fi 9486 ;; 9487 9488 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9489 no_undefined_flag='${wl}-z,text' 9490 archive_cmds_need_lc=no 9491 hardcode_shlibpath_var=no 9492 runpath_var='LD_RUN_PATH' 9493 9494 if test "$GCC" = yes; then 9495 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9497 else 9498 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9500 fi 9501 ;; 9502 9503 sysv5* | sco3.2v5* | sco5v6*) 9504 # Note: We can NOT use -z defs as we might desire, because we do not 9505 # link with -lc, and that would cause any symbols used from libc to 9506 # always be unresolved, which means just about no library would 9507 # ever link correctly. If we're not using GNU ld we use -z text 9508 # though, which does catch some bad symbols but isn't as heavy-handed 9509 # as -z defs. 9510 no_undefined_flag='${wl}-z,text' 9511 allow_undefined_flag='${wl}-z,nodefs' 9512 archive_cmds_need_lc=no 9513 hardcode_shlibpath_var=no 9514 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9515 hardcode_libdir_separator=':' 9516 link_all_deplibs=yes 9517 export_dynamic_flag_spec='${wl}-Bexport' 9518 runpath_var='LD_RUN_PATH' 9519 9520 if test "$GCC" = yes; then 9521 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9522 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9523 else 9524 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9525 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9526 fi 9527 ;; 9528 9529 uts4*) 9530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9531 hardcode_libdir_flag_spec='-L$libdir' 9532 hardcode_shlibpath_var=no 9533 ;; 9534 9535 *) 9536 ld_shlibs=no 9537 ;; 9538 esac 9539 9540 if test x$host_vendor = xsni; then 9541 case $host in 9542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9543 export_dynamic_flag_spec='${wl}-Blargedynsym' 9544 ;; 9545 esac 9546 fi 9547 fi 9548 9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9550$as_echo "$ld_shlibs" >&6; } 9551test "$ld_shlibs" = no && can_build_shared=no 9552 9553with_gnu_ld=$with_gnu_ld 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569# 9570# Do we need to explicitly link libc? 9571# 9572case "x$archive_cmds_need_lc" in 9573x|xyes) 9574 # Assume -lc should be added 9575 archive_cmds_need_lc=yes 9576 9577 if test "$enable_shared" = yes && test "$GCC" = yes; then 9578 case $archive_cmds in 9579 *'~'*) 9580 # FIXME: we may have to deal with multi-command sequences. 9581 ;; 9582 '$CC '*) 9583 # Test whether the compiler implicitly links with -lc since on some 9584 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9585 # to ld, don't add -lc before -lgcc. 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9587$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9588if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9589 $as_echo_n "(cached) " >&6 9590else 9591 $RM conftest* 9592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9593 9594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9595 (eval $ac_compile) 2>&5 9596 ac_status=$? 9597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9598 test $ac_status = 0; } 2>conftest.err; then 9599 soname=conftest 9600 lib=conftest 9601 libobjs=conftest.$ac_objext 9602 deplibs= 9603 wl=$lt_prog_compiler_wl 9604 pic_flag=$lt_prog_compiler_pic 9605 compiler_flags=-v 9606 linker_flags=-v 9607 verstring= 9608 output_objdir=. 9609 libname=conftest 9610 lt_save_allow_undefined_flag=$allow_undefined_flag 9611 allow_undefined_flag= 9612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9613 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9614 ac_status=$? 9615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9616 test $ac_status = 0; } 9617 then 9618 lt_cv_archive_cmds_need_lc=no 9619 else 9620 lt_cv_archive_cmds_need_lc=yes 9621 fi 9622 allow_undefined_flag=$lt_save_allow_undefined_flag 9623 else 9624 cat conftest.err 1>&5 9625 fi 9626 $RM conftest* 9627 9628fi 9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9630$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9631 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9632 ;; 9633 esac 9634 fi 9635 ;; 9636esac 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9795$as_echo_n "checking dynamic linker characteristics... " >&6; } 9796 9797if test "$GCC" = yes; then 9798 case $host_os in 9799 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9800 *) lt_awk_arg="/^libraries:/" ;; 9801 esac 9802 case $host_os in 9803 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9804 *) lt_sed_strip_eq="s,=/,/,g" ;; 9805 esac 9806 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9807 case $lt_search_path_spec in 9808 *\;*) 9809 # if the path contains ";" then we assume it to be the separator 9810 # otherwise default to the standard path separator (i.e. ":") - it is 9811 # assumed that no part of a normal pathname contains ";" but that should 9812 # okay in the real world where ";" in dirpaths is itself problematic. 9813 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9814 ;; 9815 *) 9816 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9817 ;; 9818 esac 9819 # Ok, now we have the path, separated by spaces, we can step through it 9820 # and add multilib dir if necessary. 9821 lt_tmp_lt_search_path_spec= 9822 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9823 for lt_sys_path in $lt_search_path_spec; do 9824 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9825 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9826 else 9827 test -d "$lt_sys_path" && \ 9828 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9829 fi 9830 done 9831 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9832BEGIN {RS=" "; FS="/|\n";} { 9833 lt_foo=""; 9834 lt_count=0; 9835 for (lt_i = NF; lt_i > 0; lt_i--) { 9836 if ($lt_i != "" && $lt_i != ".") { 9837 if ($lt_i == "..") { 9838 lt_count++; 9839 } else { 9840 if (lt_count == 0) { 9841 lt_foo="/" $lt_i lt_foo; 9842 } else { 9843 lt_count--; 9844 } 9845 } 9846 } 9847 } 9848 if (lt_foo != "") { lt_freq[lt_foo]++; } 9849 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9850}'` 9851 # AWK program above erroneously prepends '/' to C:/dos/paths 9852 # for these hosts. 9853 case $host_os in 9854 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9855 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9856 esac 9857 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9858else 9859 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9860fi 9861library_names_spec= 9862libname_spec='lib$name' 9863soname_spec= 9864shrext_cmds=".so" 9865postinstall_cmds= 9866postuninstall_cmds= 9867finish_cmds= 9868finish_eval= 9869shlibpath_var= 9870shlibpath_overrides_runpath=unknown 9871version_type=none 9872dynamic_linker="$host_os ld.so" 9873sys_lib_dlsearch_path_spec="/lib /usr/lib" 9874need_lib_prefix=unknown 9875hardcode_into_libs=no 9876 9877# when you set need_version to no, make sure it does not cause -set_version 9878# flags to be left without arguments 9879need_version=unknown 9880 9881case $host_os in 9882aix3*) 9883 version_type=linux 9884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9885 shlibpath_var=LIBPATH 9886 9887 # AIX 3 has no versioning support, so we append a major version to the name. 9888 soname_spec='${libname}${release}${shared_ext}$major' 9889 ;; 9890 9891aix[4-9]*) 9892 version_type=linux 9893 need_lib_prefix=no 9894 need_version=no 9895 hardcode_into_libs=yes 9896 if test "$host_cpu" = ia64; then 9897 # AIX 5 supports IA64 9898 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9899 shlibpath_var=LD_LIBRARY_PATH 9900 else 9901 # With GCC up to 2.95.x, collect2 would create an import file 9902 # for dependence libraries. The import file would start with 9903 # the line `#! .'. This would cause the generated library to 9904 # depend on `.', always an invalid library. This was fixed in 9905 # development snapshots of GCC prior to 3.0. 9906 case $host_os in 9907 aix4 | aix4.[01] | aix4.[01].*) 9908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9909 echo ' yes ' 9910 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9911 : 9912 else 9913 can_build_shared=no 9914 fi 9915 ;; 9916 esac 9917 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9918 # soname into executable. Probably we can add versioning support to 9919 # collect2, so additional links can be useful in future. 9920 if test "$aix_use_runtimelinking" = yes; then 9921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9922 # instead of lib<name>.a to let people know that these are not 9923 # typical AIX shared libraries. 9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9925 else 9926 # We preserve .a as extension for shared libraries through AIX4.2 9927 # and later when we are not doing run time linking. 9928 library_names_spec='${libname}${release}.a $libname.a' 9929 soname_spec='${libname}${release}${shared_ext}$major' 9930 fi 9931 shlibpath_var=LIBPATH 9932 fi 9933 ;; 9934 9935amigaos*) 9936 case $host_cpu in 9937 powerpc) 9938 # Since July 2007 AmigaOS4 officially supports .so libraries. 9939 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9941 ;; 9942 m68k) 9943 library_names_spec='$libname.ixlibrary $libname.a' 9944 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9945 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' 9946 ;; 9947 esac 9948 ;; 9949 9950beos*) 9951 library_names_spec='${libname}${shared_ext}' 9952 dynamic_linker="$host_os ld.so" 9953 shlibpath_var=LIBRARY_PATH 9954 ;; 9955 9956bsdi[45]*) 9957 version_type=linux 9958 need_version=no 9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9960 soname_spec='${libname}${release}${shared_ext}$major' 9961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9962 shlibpath_var=LD_LIBRARY_PATH 9963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9965 # the default ld.so.conf also contains /usr/contrib/lib and 9966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9967 # libtool to hard-code these into programs 9968 ;; 9969 9970cygwin* | mingw* | pw32* | cegcc*) 9971 version_type=windows 9972 shrext_cmds=".dll" 9973 need_version=no 9974 need_lib_prefix=no 9975 9976 case $GCC,$host_os in 9977 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9978 library_names_spec='$libname.dll.a' 9979 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9980 postinstall_cmds='base_file=`basename \${file}`~ 9981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9982 dldir=$destdir/`dirname \$dlpath`~ 9983 test -d \$dldir || mkdir -p \$dldir~ 9984 $install_prog $dir/$dlname \$dldir/$dlname~ 9985 chmod a+x \$dldir/$dlname~ 9986 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9987 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9988 fi' 9989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9990 dlpath=$dir/\$dldll~ 9991 $RM \$dlpath' 9992 shlibpath_overrides_runpath=yes 9993 9994 case $host_os in 9995 cygwin*) 9996 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9998 9999 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10000 ;; 10001 mingw* | cegcc*) 10002 # MinGW DLLs use traditional 'lib' prefix 10003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10004 ;; 10005 pw32*) 10006 # pw32 DLLs use 'pw' prefix rather than 'lib' 10007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10008 ;; 10009 esac 10010 ;; 10011 10012 *) 10013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10014 ;; 10015 esac 10016 dynamic_linker='Win32 ld.exe' 10017 # FIXME: first we should search . and the directory the executable is in 10018 shlibpath_var=PATH 10019 ;; 10020 10021darwin* | rhapsody*) 10022 dynamic_linker="$host_os dyld" 10023 version_type=darwin 10024 need_lib_prefix=no 10025 need_version=no 10026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10027 soname_spec='${libname}${release}${major}$shared_ext' 10028 shlibpath_overrides_runpath=yes 10029 shlibpath_var=DYLD_LIBRARY_PATH 10030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10031 10032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10034 ;; 10035 10036dgux*) 10037 version_type=linux 10038 need_lib_prefix=no 10039 need_version=no 10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10041 soname_spec='${libname}${release}${shared_ext}$major' 10042 shlibpath_var=LD_LIBRARY_PATH 10043 ;; 10044 10045freebsd* | dragonfly*) 10046 # DragonFly does not have aout. When/if they implement a new 10047 # versioning mechanism, adjust this. 10048 if test -x /usr/bin/objformat; then 10049 objformat=`/usr/bin/objformat` 10050 else 10051 case $host_os in 10052 freebsd[23].*) objformat=aout ;; 10053 *) objformat=elf ;; 10054 esac 10055 fi 10056 version_type=freebsd-$objformat 10057 case $version_type in 10058 freebsd-elf*) 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10060 need_version=no 10061 need_lib_prefix=no 10062 ;; 10063 freebsd-*) 10064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10065 need_version=yes 10066 ;; 10067 esac 10068 shlibpath_var=LD_LIBRARY_PATH 10069 case $host_os in 10070 freebsd2.*) 10071 shlibpath_overrides_runpath=yes 10072 ;; 10073 freebsd3.[01]* | freebsdelf3.[01]*) 10074 shlibpath_overrides_runpath=yes 10075 hardcode_into_libs=yes 10076 ;; 10077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10079 shlibpath_overrides_runpath=no 10080 hardcode_into_libs=yes 10081 ;; 10082 *) # from 4.6 on, and DragonFly 10083 shlibpath_overrides_runpath=yes 10084 hardcode_into_libs=yes 10085 ;; 10086 esac 10087 ;; 10088 10089gnu*) 10090 version_type=linux 10091 need_lib_prefix=no 10092 need_version=no 10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10094 soname_spec='${libname}${release}${shared_ext}$major' 10095 shlibpath_var=LD_LIBRARY_PATH 10096 hardcode_into_libs=yes 10097 ;; 10098 10099haiku*) 10100 version_type=linux 10101 need_lib_prefix=no 10102 need_version=no 10103 dynamic_linker="$host_os runtime_loader" 10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10105 soname_spec='${libname}${release}${shared_ext}$major' 10106 shlibpath_var=LIBRARY_PATH 10107 shlibpath_overrides_runpath=yes 10108 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10109 hardcode_into_libs=yes 10110 ;; 10111 10112hpux9* | hpux10* | hpux11*) 10113 # Give a soname corresponding to the major version so that dld.sl refuses to 10114 # link against other versions. 10115 version_type=sunos 10116 need_lib_prefix=no 10117 need_version=no 10118 case $host_cpu in 10119 ia64*) 10120 shrext_cmds='.so' 10121 hardcode_into_libs=yes 10122 dynamic_linker="$host_os dld.so" 10123 shlibpath_var=LD_LIBRARY_PATH 10124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10126 soname_spec='${libname}${release}${shared_ext}$major' 10127 if test "X$HPUX_IA64_MODE" = X32; then 10128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10129 else 10130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10131 fi 10132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10133 ;; 10134 hppa*64*) 10135 shrext_cmds='.sl' 10136 hardcode_into_libs=yes 10137 dynamic_linker="$host_os dld.sl" 10138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10141 soname_spec='${libname}${release}${shared_ext}$major' 10142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10144 ;; 10145 *) 10146 shrext_cmds='.sl' 10147 dynamic_linker="$host_os dld.sl" 10148 shlibpath_var=SHLIB_PATH 10149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10151 soname_spec='${libname}${release}${shared_ext}$major' 10152 ;; 10153 esac 10154 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10155 postinstall_cmds='chmod 555 $lib' 10156 # or fails outright, so override atomically: 10157 install_override_mode=555 10158 ;; 10159 10160interix[3-9]*) 10161 version_type=linux 10162 need_lib_prefix=no 10163 need_version=no 10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10165 soname_spec='${libname}${release}${shared_ext}$major' 10166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10167 shlibpath_var=LD_LIBRARY_PATH 10168 shlibpath_overrides_runpath=no 10169 hardcode_into_libs=yes 10170 ;; 10171 10172irix5* | irix6* | nonstopux*) 10173 case $host_os in 10174 nonstopux*) version_type=nonstopux ;; 10175 *) 10176 if test "$lt_cv_prog_gnu_ld" = yes; then 10177 version_type=linux 10178 else 10179 version_type=irix 10180 fi ;; 10181 esac 10182 need_lib_prefix=no 10183 need_version=no 10184 soname_spec='${libname}${release}${shared_ext}$major' 10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10186 case $host_os in 10187 irix5* | nonstopux*) 10188 libsuff= shlibsuff= 10189 ;; 10190 *) 10191 case $LD in # libtool.m4 will add one of these switches to LD 10192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10193 libsuff= shlibsuff= libmagic=32-bit;; 10194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10195 libsuff=32 shlibsuff=N32 libmagic=N32;; 10196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10197 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10198 *) libsuff= shlibsuff= libmagic=never-match;; 10199 esac 10200 ;; 10201 esac 10202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10203 shlibpath_overrides_runpath=no 10204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10206 hardcode_into_libs=yes 10207 ;; 10208 10209# No shared lib support for Linux oldld, aout, or coff. 10210linux*oldld* | linux*aout* | linux*coff*) 10211 dynamic_linker=no 10212 ;; 10213 10214# This must be Linux ELF. 10215linux* | k*bsd*-gnu | kopensolaris*-gnu) 10216 version_type=linux 10217 need_lib_prefix=no 10218 need_version=no 10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10220 soname_spec='${libname}${release}${shared_ext}$major' 10221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10222 shlibpath_var=LD_LIBRARY_PATH 10223 shlibpath_overrides_runpath=no 10224 10225 # Some binutils ld are patched to set DT_RUNPATH 10226 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10227 $as_echo_n "(cached) " >&6 10228else 10229 lt_cv_shlibpath_overrides_runpath=no 10230 save_LDFLAGS=$LDFLAGS 10231 save_libdir=$libdir 10232 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10233 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235/* end confdefs.h. */ 10236 10237int 10238main () 10239{ 10240 10241 ; 10242 return 0; 10243} 10244_ACEOF 10245if ac_fn_c_try_link "$LINENO"; then : 10246 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10247 lt_cv_shlibpath_overrides_runpath=yes 10248fi 10249fi 10250rm -f core conftest.err conftest.$ac_objext \ 10251 conftest$ac_exeext conftest.$ac_ext 10252 LDFLAGS=$save_LDFLAGS 10253 libdir=$save_libdir 10254 10255fi 10256 10257 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10258 10259 # This implies no fast_install, which is unacceptable. 10260 # Some rework will be needed to allow for fast_install 10261 # before this can be enabled. 10262 hardcode_into_libs=yes 10263 10264 # Append ld.so.conf contents to the search path 10265 if test -f /etc/ld.so.conf; then 10266 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' ' '` 10267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10268 fi 10269 10270 # We used to test for /lib/ld.so.1 and disable shared libraries on 10271 # powerpc, because MkLinux only supported shared libraries with the 10272 # GNU dynamic linker. Since this was broken with cross compilers, 10273 # most powerpc-linux boxes support dynamic linking these days and 10274 # people can always --disable-shared, the test was removed, and we 10275 # assume the GNU/Linux dynamic linker is in use. 10276 dynamic_linker='GNU/Linux ld.so' 10277 ;; 10278 10279netbsd*) 10280 version_type=sunos 10281 need_lib_prefix=no 10282 need_version=no 10283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10286 dynamic_linker='NetBSD (a.out) ld.so' 10287 else 10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10289 soname_spec='${libname}${release}${shared_ext}$major' 10290 dynamic_linker='NetBSD ld.elf_so' 10291 fi 10292 shlibpath_var=LD_LIBRARY_PATH 10293 shlibpath_overrides_runpath=yes 10294 hardcode_into_libs=yes 10295 ;; 10296 10297newsos6) 10298 version_type=linux 10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10300 shlibpath_var=LD_LIBRARY_PATH 10301 shlibpath_overrides_runpath=yes 10302 ;; 10303 10304*nto* | *qnx*) 10305 version_type=qnx 10306 need_lib_prefix=no 10307 need_version=no 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10309 soname_spec='${libname}${release}${shared_ext}$major' 10310 shlibpath_var=LD_LIBRARY_PATH 10311 shlibpath_overrides_runpath=no 10312 hardcode_into_libs=yes 10313 dynamic_linker='ldqnx.so' 10314 ;; 10315 10316openbsd*) 10317 version_type=sunos 10318 sys_lib_dlsearch_path_spec="/usr/lib" 10319 need_lib_prefix=no 10320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10321 case $host_os in 10322 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10323 *) need_version=no ;; 10324 esac 10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10327 shlibpath_var=LD_LIBRARY_PATH 10328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10329 case $host_os in 10330 openbsd2.[89] | openbsd2.[89].*) 10331 shlibpath_overrides_runpath=no 10332 ;; 10333 *) 10334 shlibpath_overrides_runpath=yes 10335 ;; 10336 esac 10337 else 10338 shlibpath_overrides_runpath=yes 10339 fi 10340 ;; 10341 10342os2*) 10343 libname_spec='$name' 10344 shrext_cmds=".dll" 10345 need_lib_prefix=no 10346 library_names_spec='$libname${shared_ext} $libname.a' 10347 dynamic_linker='OS/2 ld.exe' 10348 shlibpath_var=LIBPATH 10349 ;; 10350 10351osf3* | osf4* | osf5*) 10352 version_type=osf 10353 need_lib_prefix=no 10354 need_version=no 10355 soname_spec='${libname}${release}${shared_ext}$major' 10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10357 shlibpath_var=LD_LIBRARY_PATH 10358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10360 ;; 10361 10362rdos*) 10363 dynamic_linker=no 10364 ;; 10365 10366solaris*) 10367 version_type=linux 10368 need_lib_prefix=no 10369 need_version=no 10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10371 soname_spec='${libname}${release}${shared_ext}$major' 10372 shlibpath_var=LD_LIBRARY_PATH 10373 shlibpath_overrides_runpath=yes 10374 hardcode_into_libs=yes 10375 # ldd complains unless libraries are executable 10376 postinstall_cmds='chmod +x $lib' 10377 ;; 10378 10379sunos4*) 10380 version_type=sunos 10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10383 shlibpath_var=LD_LIBRARY_PATH 10384 shlibpath_overrides_runpath=yes 10385 if test "$with_gnu_ld" = yes; then 10386 need_lib_prefix=no 10387 fi 10388 need_version=yes 10389 ;; 10390 10391sysv4 | sysv4.3*) 10392 version_type=linux 10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 shlibpath_var=LD_LIBRARY_PATH 10396 case $host_vendor in 10397 sni) 10398 shlibpath_overrides_runpath=no 10399 need_lib_prefix=no 10400 runpath_var=LD_RUN_PATH 10401 ;; 10402 siemens) 10403 need_lib_prefix=no 10404 ;; 10405 motorola) 10406 need_lib_prefix=no 10407 need_version=no 10408 shlibpath_overrides_runpath=no 10409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10410 ;; 10411 esac 10412 ;; 10413 10414sysv4*MP*) 10415 if test -d /usr/nec ;then 10416 version_type=linux 10417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10418 soname_spec='$libname${shared_ext}.$major' 10419 shlibpath_var=LD_LIBRARY_PATH 10420 fi 10421 ;; 10422 10423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10424 version_type=freebsd-elf 10425 need_lib_prefix=no 10426 need_version=no 10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10428 soname_spec='${libname}${release}${shared_ext}$major' 10429 shlibpath_var=LD_LIBRARY_PATH 10430 shlibpath_overrides_runpath=yes 10431 hardcode_into_libs=yes 10432 if test "$with_gnu_ld" = yes; then 10433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10434 else 10435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10436 case $host_os in 10437 sco3.2v5*) 10438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10439 ;; 10440 esac 10441 fi 10442 sys_lib_dlsearch_path_spec='/usr/lib' 10443 ;; 10444 10445tpf*) 10446 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10447 version_type=linux 10448 need_lib_prefix=no 10449 need_version=no 10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10451 shlibpath_var=LD_LIBRARY_PATH 10452 shlibpath_overrides_runpath=no 10453 hardcode_into_libs=yes 10454 ;; 10455 10456uts4*) 10457 version_type=linux 10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10459 soname_spec='${libname}${release}${shared_ext}$major' 10460 shlibpath_var=LD_LIBRARY_PATH 10461 ;; 10462 10463*) 10464 dynamic_linker=no 10465 ;; 10466esac 10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10468$as_echo "$dynamic_linker" >&6; } 10469test "$dynamic_linker" = no && can_build_shared=no 10470 10471variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10472if test "$GCC" = yes; then 10473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10474fi 10475 10476if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10477 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10478fi 10479if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10481fi 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10575$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10576hardcode_action= 10577if test -n "$hardcode_libdir_flag_spec" || 10578 test -n "$runpath_var" || 10579 test "X$hardcode_automatic" = "Xyes" ; then 10580 10581 # We can hardcode non-existent directories. 10582 if test "$hardcode_direct" != no && 10583 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10584 # have to relink, otherwise we might link with an installed library 10585 # when we should be linking with a yet-to-be-installed one 10586 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10587 test "$hardcode_minus_L" != no; then 10588 # Linking always hardcodes the temporary library directory. 10589 hardcode_action=relink 10590 else 10591 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10592 hardcode_action=immediate 10593 fi 10594else 10595 # We cannot hardcode anything, or else we can only hardcode existing 10596 # directories. 10597 hardcode_action=unsupported 10598fi 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10600$as_echo "$hardcode_action" >&6; } 10601 10602if test "$hardcode_action" = relink || 10603 test "$inherit_rpath" = yes; then 10604 # Fast installation is not supported 10605 enable_fast_install=no 10606elif test "$shlibpath_overrides_runpath" = yes || 10607 test "$enable_shared" = no; then 10608 # Fast installation is not necessary 10609 enable_fast_install=needless 10610fi 10611 10612 10613 10614 10615 10616 10617 if test "x$enable_dlopen" != xyes; then 10618 enable_dlopen=unknown 10619 enable_dlopen_self=unknown 10620 enable_dlopen_self_static=unknown 10621else 10622 lt_cv_dlopen=no 10623 lt_cv_dlopen_libs= 10624 10625 case $host_os in 10626 beos*) 10627 lt_cv_dlopen="load_add_on" 10628 lt_cv_dlopen_libs= 10629 lt_cv_dlopen_self=yes 10630 ;; 10631 10632 mingw* | pw32* | cegcc*) 10633 lt_cv_dlopen="LoadLibrary" 10634 lt_cv_dlopen_libs= 10635 ;; 10636 10637 cygwin*) 10638 lt_cv_dlopen="dlopen" 10639 lt_cv_dlopen_libs= 10640 ;; 10641 10642 darwin*) 10643 # if libdl is installed we need to link against it 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10645$as_echo_n "checking for dlopen in -ldl... " >&6; } 10646if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10647 $as_echo_n "(cached) " >&6 10648else 10649 ac_check_lib_save_LIBS=$LIBS 10650LIBS="-ldl $LIBS" 10651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10652/* end confdefs.h. */ 10653 10654/* Override any GCC internal prototype to avoid an error. 10655 Use char because int might match the return type of a GCC 10656 builtin and then its argument prototype would still apply. */ 10657#ifdef __cplusplus 10658extern "C" 10659#endif 10660char dlopen (); 10661int 10662main () 10663{ 10664return dlopen (); 10665 ; 10666 return 0; 10667} 10668_ACEOF 10669if ac_fn_c_try_link "$LINENO"; then : 10670 ac_cv_lib_dl_dlopen=yes 10671else 10672 ac_cv_lib_dl_dlopen=no 10673fi 10674rm -f core conftest.err conftest.$ac_objext \ 10675 conftest$ac_exeext conftest.$ac_ext 10676LIBS=$ac_check_lib_save_LIBS 10677fi 10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10679$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10680if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10682else 10683 10684 lt_cv_dlopen="dyld" 10685 lt_cv_dlopen_libs= 10686 lt_cv_dlopen_self=yes 10687 10688fi 10689 10690 ;; 10691 10692 *) 10693 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10694if test "x$ac_cv_func_shl_load" = x""yes; then : 10695 lt_cv_dlopen="shl_load" 10696else 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10698$as_echo_n "checking for shl_load in -ldld... " >&6; } 10699if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10700 $as_echo_n "(cached) " >&6 10701else 10702 ac_check_lib_save_LIBS=$LIBS 10703LIBS="-ldld $LIBS" 10704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10705/* end confdefs.h. */ 10706 10707/* Override any GCC internal prototype to avoid an error. 10708 Use char because int might match the return type of a GCC 10709 builtin and then its argument prototype would still apply. */ 10710#ifdef __cplusplus 10711extern "C" 10712#endif 10713char shl_load (); 10714int 10715main () 10716{ 10717return shl_load (); 10718 ; 10719 return 0; 10720} 10721_ACEOF 10722if ac_fn_c_try_link "$LINENO"; then : 10723 ac_cv_lib_dld_shl_load=yes 10724else 10725 ac_cv_lib_dld_shl_load=no 10726fi 10727rm -f core conftest.err conftest.$ac_objext \ 10728 conftest$ac_exeext conftest.$ac_ext 10729LIBS=$ac_check_lib_save_LIBS 10730fi 10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10732$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10733if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10734 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10735else 10736 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10737if test "x$ac_cv_func_dlopen" = x""yes; then : 10738 lt_cv_dlopen="dlopen" 10739else 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10741$as_echo_n "checking for dlopen in -ldl... " >&6; } 10742if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10743 $as_echo_n "(cached) " >&6 10744else 10745 ac_check_lib_save_LIBS=$LIBS 10746LIBS="-ldl $LIBS" 10747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748/* end confdefs.h. */ 10749 10750/* Override any GCC internal prototype to avoid an error. 10751 Use char because int might match the return type of a GCC 10752 builtin and then its argument prototype would still apply. */ 10753#ifdef __cplusplus 10754extern "C" 10755#endif 10756char dlopen (); 10757int 10758main () 10759{ 10760return dlopen (); 10761 ; 10762 return 0; 10763} 10764_ACEOF 10765if ac_fn_c_try_link "$LINENO"; then : 10766 ac_cv_lib_dl_dlopen=yes 10767else 10768 ac_cv_lib_dl_dlopen=no 10769fi 10770rm -f core conftest.err conftest.$ac_objext \ 10771 conftest$ac_exeext conftest.$ac_ext 10772LIBS=$ac_check_lib_save_LIBS 10773fi 10774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10775$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10776if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10778else 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10780$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10781if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10782 $as_echo_n "(cached) " >&6 10783else 10784 ac_check_lib_save_LIBS=$LIBS 10785LIBS="-lsvld $LIBS" 10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10787/* end confdefs.h. */ 10788 10789/* Override any GCC internal prototype to avoid an error. 10790 Use char because int might match the return type of a GCC 10791 builtin and then its argument prototype would still apply. */ 10792#ifdef __cplusplus 10793extern "C" 10794#endif 10795char dlopen (); 10796int 10797main () 10798{ 10799return dlopen (); 10800 ; 10801 return 0; 10802} 10803_ACEOF 10804if ac_fn_c_try_link "$LINENO"; then : 10805 ac_cv_lib_svld_dlopen=yes 10806else 10807 ac_cv_lib_svld_dlopen=no 10808fi 10809rm -f core conftest.err conftest.$ac_objext \ 10810 conftest$ac_exeext conftest.$ac_ext 10811LIBS=$ac_check_lib_save_LIBS 10812fi 10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10814$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10815if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10817else 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10819$as_echo_n "checking for dld_link in -ldld... " >&6; } 10820if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10821 $as_echo_n "(cached) " >&6 10822else 10823 ac_check_lib_save_LIBS=$LIBS 10824LIBS="-ldld $LIBS" 10825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10826/* end confdefs.h. */ 10827 10828/* Override any GCC internal prototype to avoid an error. 10829 Use char because int might match the return type of a GCC 10830 builtin and then its argument prototype would still apply. */ 10831#ifdef __cplusplus 10832extern "C" 10833#endif 10834char dld_link (); 10835int 10836main () 10837{ 10838return dld_link (); 10839 ; 10840 return 0; 10841} 10842_ACEOF 10843if ac_fn_c_try_link "$LINENO"; then : 10844 ac_cv_lib_dld_dld_link=yes 10845else 10846 ac_cv_lib_dld_dld_link=no 10847fi 10848rm -f core conftest.err conftest.$ac_objext \ 10849 conftest$ac_exeext conftest.$ac_ext 10850LIBS=$ac_check_lib_save_LIBS 10851fi 10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10853$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10854if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10855 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10856fi 10857 10858 10859fi 10860 10861 10862fi 10863 10864 10865fi 10866 10867 10868fi 10869 10870 10871fi 10872 10873 ;; 10874 esac 10875 10876 if test "x$lt_cv_dlopen" != xno; then 10877 enable_dlopen=yes 10878 else 10879 enable_dlopen=no 10880 fi 10881 10882 case $lt_cv_dlopen in 10883 dlopen) 10884 save_CPPFLAGS="$CPPFLAGS" 10885 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10886 10887 save_LDFLAGS="$LDFLAGS" 10888 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10889 10890 save_LIBS="$LIBS" 10891 LIBS="$lt_cv_dlopen_libs $LIBS" 10892 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10894$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10895if test "${lt_cv_dlopen_self+set}" = set; then : 10896 $as_echo_n "(cached) " >&6 10897else 10898 if test "$cross_compiling" = yes; then : 10899 lt_cv_dlopen_self=cross 10900else 10901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10902 lt_status=$lt_dlunknown 10903 cat > conftest.$ac_ext <<_LT_EOF 10904#line 10904 "configure" 10905#include "confdefs.h" 10906 10907#if HAVE_DLFCN_H 10908#include <dlfcn.h> 10909#endif 10910 10911#include <stdio.h> 10912 10913#ifdef RTLD_GLOBAL 10914# define LT_DLGLOBAL RTLD_GLOBAL 10915#else 10916# ifdef DL_GLOBAL 10917# define LT_DLGLOBAL DL_GLOBAL 10918# else 10919# define LT_DLGLOBAL 0 10920# endif 10921#endif 10922 10923/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10924 find out it does not work in some platform. */ 10925#ifndef LT_DLLAZY_OR_NOW 10926# ifdef RTLD_LAZY 10927# define LT_DLLAZY_OR_NOW RTLD_LAZY 10928# else 10929# ifdef DL_LAZY 10930# define LT_DLLAZY_OR_NOW DL_LAZY 10931# else 10932# ifdef RTLD_NOW 10933# define LT_DLLAZY_OR_NOW RTLD_NOW 10934# else 10935# ifdef DL_NOW 10936# define LT_DLLAZY_OR_NOW DL_NOW 10937# else 10938# define LT_DLLAZY_OR_NOW 0 10939# endif 10940# endif 10941# endif 10942# endif 10943#endif 10944 10945/* When -fvisbility=hidden is used, assume the code has been annotated 10946 correspondingly for the symbols needed. */ 10947#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10948void fnord () __attribute__((visibility("default"))); 10949#endif 10950 10951void fnord () { int i=42; } 10952int main () 10953{ 10954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10955 int status = $lt_dlunknown; 10956 10957 if (self) 10958 { 10959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10960 else 10961 { 10962 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10963 else puts (dlerror ()); 10964 } 10965 /* dlclose (self); */ 10966 } 10967 else 10968 puts (dlerror ()); 10969 10970 return status; 10971} 10972_LT_EOF 10973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10974 (eval $ac_link) 2>&5 10975 ac_status=$? 10976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10977 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10978 (./conftest; exit; ) >&5 2>/dev/null 10979 lt_status=$? 10980 case x$lt_status in 10981 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10982 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10983 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10984 esac 10985 else : 10986 # compilation failed 10987 lt_cv_dlopen_self=no 10988 fi 10989fi 10990rm -fr conftest* 10991 10992 10993fi 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10995$as_echo "$lt_cv_dlopen_self" >&6; } 10996 10997 if test "x$lt_cv_dlopen_self" = xyes; then 10998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11000$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11001if test "${lt_cv_dlopen_self_static+set}" = set; then : 11002 $as_echo_n "(cached) " >&6 11003else 11004 if test "$cross_compiling" = yes; then : 11005 lt_cv_dlopen_self_static=cross 11006else 11007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11008 lt_status=$lt_dlunknown 11009 cat > conftest.$ac_ext <<_LT_EOF 11010#line 11010 "configure" 11011#include "confdefs.h" 11012 11013#if HAVE_DLFCN_H 11014#include <dlfcn.h> 11015#endif 11016 11017#include <stdio.h> 11018 11019#ifdef RTLD_GLOBAL 11020# define LT_DLGLOBAL RTLD_GLOBAL 11021#else 11022# ifdef DL_GLOBAL 11023# define LT_DLGLOBAL DL_GLOBAL 11024# else 11025# define LT_DLGLOBAL 0 11026# endif 11027#endif 11028 11029/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11030 find out it does not work in some platform. */ 11031#ifndef LT_DLLAZY_OR_NOW 11032# ifdef RTLD_LAZY 11033# define LT_DLLAZY_OR_NOW RTLD_LAZY 11034# else 11035# ifdef DL_LAZY 11036# define LT_DLLAZY_OR_NOW DL_LAZY 11037# else 11038# ifdef RTLD_NOW 11039# define LT_DLLAZY_OR_NOW RTLD_NOW 11040# else 11041# ifdef DL_NOW 11042# define LT_DLLAZY_OR_NOW DL_NOW 11043# else 11044# define LT_DLLAZY_OR_NOW 0 11045# endif 11046# endif 11047# endif 11048# endif 11049#endif 11050 11051/* When -fvisbility=hidden is used, assume the code has been annotated 11052 correspondingly for the symbols needed. */ 11053#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11054void fnord () __attribute__((visibility("default"))); 11055#endif 11056 11057void fnord () { int i=42; } 11058int main () 11059{ 11060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11061 int status = $lt_dlunknown; 11062 11063 if (self) 11064 { 11065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11066 else 11067 { 11068 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11069 else puts (dlerror ()); 11070 } 11071 /* dlclose (self); */ 11072 } 11073 else 11074 puts (dlerror ()); 11075 11076 return status; 11077} 11078_LT_EOF 11079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11080 (eval $ac_link) 2>&5 11081 ac_status=$? 11082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11083 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11084 (./conftest; exit; ) >&5 2>/dev/null 11085 lt_status=$? 11086 case x$lt_status in 11087 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11088 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11089 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11090 esac 11091 else : 11092 # compilation failed 11093 lt_cv_dlopen_self_static=no 11094 fi 11095fi 11096rm -fr conftest* 11097 11098 11099fi 11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11101$as_echo "$lt_cv_dlopen_self_static" >&6; } 11102 fi 11103 11104 CPPFLAGS="$save_CPPFLAGS" 11105 LDFLAGS="$save_LDFLAGS" 11106 LIBS="$save_LIBS" 11107 ;; 11108 esac 11109 11110 case $lt_cv_dlopen_self in 11111 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11112 *) enable_dlopen_self=unknown ;; 11113 esac 11114 11115 case $lt_cv_dlopen_self_static in 11116 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11117 *) enable_dlopen_self_static=unknown ;; 11118 esac 11119fi 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137striplib= 11138old_striplib= 11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11140$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11141if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11143 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11145$as_echo "yes" >&6; } 11146else 11147# FIXME - insert some real tests, host_os isn't really good enough 11148 case $host_os in 11149 darwin*) 11150 if test -n "$STRIP" ; then 11151 striplib="$STRIP -x" 11152 old_striplib="$STRIP -S" 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11154$as_echo "yes" >&6; } 11155 else 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11157$as_echo "no" >&6; } 11158 fi 11159 ;; 11160 *) 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11162$as_echo "no" >&6; } 11163 ;; 11164 esac 11165fi 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 # Report which library types will actually be built 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11180$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11182$as_echo "$can_build_shared" >&6; } 11183 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11185$as_echo_n "checking whether to build shared libraries... " >&6; } 11186 test "$can_build_shared" = "no" && enable_shared=no 11187 11188 # On AIX, shared libraries and static libraries use the same namespace, and 11189 # are all built from PIC. 11190 case $host_os in 11191 aix3*) 11192 test "$enable_shared" = yes && enable_static=no 11193 if test -n "$RANLIB"; then 11194 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11195 postinstall_cmds='$RANLIB $lib' 11196 fi 11197 ;; 11198 11199 aix[4-9]*) 11200 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11201 test "$enable_shared" = yes && enable_static=no 11202 fi 11203 ;; 11204 esac 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11206$as_echo "$enable_shared" >&6; } 11207 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11209$as_echo_n "checking whether to build static libraries... " >&6; } 11210 # Make sure either enable_shared or enable_static is yes. 11211 test "$enable_shared" = yes || enable_static=yes 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11213$as_echo "$enable_static" >&6; } 11214 11215 11216 11217 11218fi 11219ac_ext=c 11220ac_cpp='$CPP $CPPFLAGS' 11221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11223ac_compiler_gnu=$ac_cv_c_compiler_gnu 11224 11225CC="$lt_save_CC" 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 ac_config_commands="$ac_config_commands libtool" 11240 11241 11242 11243 11244# Only expand once: 11245 11246 11247 11248# The tests for host and target for $enable_largefile require 11249# canonical names. 11250 11251 11252 11253# As the $enable_largefile decision depends on --enable-plugins we must set it 11254# even in directories otherwise not depending on the $plugins option. 11255 11256 11257 maybe_plugins=no 11258 for ac_header in dlfcn.h 11259do : 11260 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11261" 11262if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 11263 cat >>confdefs.h <<_ACEOF 11264#define HAVE_DLFCN_H 1 11265_ACEOF 11266 maybe_plugins=yes 11267fi 11268 11269done 11270 11271 for ac_header in windows.h 11272do : 11273 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 11274" 11275if test "x$ac_cv_header_windows_h" = x""yes; then : 11276 cat >>confdefs.h <<_ACEOF 11277#define HAVE_WINDOWS_H 1 11278_ACEOF 11279 maybe_plugins=yes 11280fi 11281 11282done 11283 11284 11285 # Check whether --enable-plugins was given. 11286if test "${enable_plugins+set}" = set; then : 11287 enableval=$enable_plugins; case "${enableval}" in 11288 no) plugins=no ;; 11289 *) plugins=yes 11290 if test "$maybe_plugins" != "yes" ; then 11291 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 11292 fi ;; 11293 esac 11294else 11295 plugins=$maybe_plugins 11296 11297fi 11298 11299 if test "$plugins" = "yes"; then 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 11301$as_echo_n "checking for library containing dlopen... " >&6; } 11302if test "${ac_cv_search_dlopen+set}" = set; then : 11303 $as_echo_n "(cached) " >&6 11304else 11305 ac_func_search_save_LIBS=$LIBS 11306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11307/* end confdefs.h. */ 11308 11309/* Override any GCC internal prototype to avoid an error. 11310 Use char because int might match the return type of a GCC 11311 builtin and then its argument prototype would still apply. */ 11312#ifdef __cplusplus 11313extern "C" 11314#endif 11315char dlopen (); 11316int 11317main () 11318{ 11319return dlopen (); 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324for ac_lib in '' dl; do 11325 if test -z "$ac_lib"; then 11326 ac_res="none required" 11327 else 11328 ac_res=-l$ac_lib 11329 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11330 fi 11331 if ac_fn_c_try_link "$LINENO"; then : 11332 ac_cv_search_dlopen=$ac_res 11333fi 11334rm -f core conftest.err conftest.$ac_objext \ 11335 conftest$ac_exeext 11336 if test "${ac_cv_search_dlopen+set}" = set; then : 11337 break 11338fi 11339done 11340if test "${ac_cv_search_dlopen+set}" = set; then : 11341 11342else 11343 ac_cv_search_dlopen=no 11344fi 11345rm conftest.$ac_ext 11346LIBS=$ac_func_search_save_LIBS 11347fi 11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 11349$as_echo "$ac_cv_search_dlopen" >&6; } 11350ac_res=$ac_cv_search_dlopen 11351if test "$ac_res" != no; then : 11352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11353 11354fi 11355 11356 fi 11357 11358 11359case "${host}" in 11360 sparc-*-solaris*|i[3-7]86-*-solaris*) 11361 # On native 32bit sparc and ia32 solaris, large-file and procfs support 11362 # are mutually exclusive; and without procfs support, the bfd/ elf module 11363 # cannot provide certain routines such as elfcore_write_prpsinfo 11364 # or elfcore_write_prstatus. So unless the user explicitly requested 11365 # large-file support through the --enable-largefile switch, disable 11366 # large-file support in favor of procfs support. 11367 test "${target}" = "${host}" -a "x$plugins" = xno \ 11368 && : ${enable_largefile="no"} 11369 ;; 11370esac 11371 11372# Check whether --enable-largefile was given. 11373if test "${enable_largefile+set}" = set; then : 11374 enableval=$enable_largefile; 11375fi 11376 11377if test "$enable_largefile" != no; then 11378 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11380$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11381if test "${ac_cv_sys_largefile_CC+set}" = set; then : 11382 $as_echo_n "(cached) " >&6 11383else 11384 ac_cv_sys_largefile_CC=no 11385 if test "$GCC" != yes; then 11386 ac_save_CC=$CC 11387 while :; do 11388 # IRIX 6.2 and later do not support large files by default, 11389 # so use the C compiler's -n32 option if that helps. 11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11391/* end confdefs.h. */ 11392#include <sys/types.h> 11393 /* Check that off_t can represent 2**63 - 1 correctly. 11394 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11395 since some C++ compilers masquerading as C compilers 11396 incorrectly reject 9223372036854775807. */ 11397#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11398 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11399 && LARGE_OFF_T % 2147483647 == 1) 11400 ? 1 : -1]; 11401int 11402main () 11403{ 11404 11405 ; 11406 return 0; 11407} 11408_ACEOF 11409 if ac_fn_c_try_compile "$LINENO"; then : 11410 break 11411fi 11412rm -f core conftest.err conftest.$ac_objext 11413 CC="$CC -n32" 11414 if ac_fn_c_try_compile "$LINENO"; then : 11415 ac_cv_sys_largefile_CC=' -n32'; break 11416fi 11417rm -f core conftest.err conftest.$ac_objext 11418 break 11419 done 11420 CC=$ac_save_CC 11421 rm -f conftest.$ac_ext 11422 fi 11423fi 11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11425$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11426 if test "$ac_cv_sys_largefile_CC" != no; then 11427 CC=$CC$ac_cv_sys_largefile_CC 11428 fi 11429 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11431$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11432if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 11433 $as_echo_n "(cached) " >&6 11434else 11435 while :; do 11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11437/* end confdefs.h. */ 11438#include <sys/types.h> 11439 /* Check that off_t can represent 2**63 - 1 correctly. 11440 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11441 since some C++ compilers masquerading as C compilers 11442 incorrectly reject 9223372036854775807. */ 11443#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11445 && LARGE_OFF_T % 2147483647 == 1) 11446 ? 1 : -1]; 11447int 11448main () 11449{ 11450 11451 ; 11452 return 0; 11453} 11454_ACEOF 11455if ac_fn_c_try_compile "$LINENO"; then : 11456 ac_cv_sys_file_offset_bits=no; break 11457fi 11458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11460/* end confdefs.h. */ 11461#define _FILE_OFFSET_BITS 64 11462#include <sys/types.h> 11463 /* Check that off_t can represent 2**63 - 1 correctly. 11464 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11465 since some C++ compilers masquerading as C compilers 11466 incorrectly reject 9223372036854775807. */ 11467#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11469 && LARGE_OFF_T % 2147483647 == 1) 11470 ? 1 : -1]; 11471int 11472main () 11473{ 11474 11475 ; 11476 return 0; 11477} 11478_ACEOF 11479if ac_fn_c_try_compile "$LINENO"; then : 11480 ac_cv_sys_file_offset_bits=64; break 11481fi 11482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11483 ac_cv_sys_file_offset_bits=unknown 11484 break 11485done 11486fi 11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11488$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11489case $ac_cv_sys_file_offset_bits in #( 11490 no | unknown) ;; 11491 *) 11492cat >>confdefs.h <<_ACEOF 11493#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11494_ACEOF 11495;; 11496esac 11497rm -rf conftest* 11498 if test $ac_cv_sys_file_offset_bits = unknown; then 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11500$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11501if test "${ac_cv_sys_large_files+set}" = set; then : 11502 $as_echo_n "(cached) " >&6 11503else 11504 while :; do 11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11506/* end confdefs.h. */ 11507#include <sys/types.h> 11508 /* Check that off_t can represent 2**63 - 1 correctly. 11509 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11510 since some C++ compilers masquerading as C compilers 11511 incorrectly reject 9223372036854775807. */ 11512#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11514 && LARGE_OFF_T % 2147483647 == 1) 11515 ? 1 : -1]; 11516int 11517main () 11518{ 11519 11520 ; 11521 return 0; 11522} 11523_ACEOF 11524if ac_fn_c_try_compile "$LINENO"; then : 11525 ac_cv_sys_large_files=no; break 11526fi 11527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11529/* end confdefs.h. */ 11530#define _LARGE_FILES 1 11531#include <sys/types.h> 11532 /* Check that off_t can represent 2**63 - 1 correctly. 11533 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11534 since some C++ compilers masquerading as C compilers 11535 incorrectly reject 9223372036854775807. */ 11536#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11538 && LARGE_OFF_T % 2147483647 == 1) 11539 ? 1 : -1]; 11540int 11541main () 11542{ 11543 11544 ; 11545 return 0; 11546} 11547_ACEOF 11548if ac_fn_c_try_compile "$LINENO"; then : 11549 ac_cv_sys_large_files=1; break 11550fi 11551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11552 ac_cv_sys_large_files=unknown 11553 break 11554done 11555fi 11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11557$as_echo "$ac_cv_sys_large_files" >&6; } 11558case $ac_cv_sys_large_files in #( 11559 no | unknown) ;; 11560 *) 11561cat >>confdefs.h <<_ACEOF 11562#define _LARGE_FILES $ac_cv_sys_large_files 11563_ACEOF 11564;; 11565esac 11566rm -rf conftest* 11567 fi 11568fi 11569 11570 11571 11572for ac_func in setmode 11573do : 11574 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode" 11575if test "x$ac_cv_func_setmode" = x""yes; then : 11576 cat >>confdefs.h <<_ACEOF 11577#define HAVE_SETMODE 1 11578_ACEOF 11579 11580fi 11581done 11582 11583 11584ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr hu" 11585# If we haven't got the data from the intl directory, 11586# assume NLS is disabled. 11587USE_NLS=no 11588LIBINTL= 11589LIBINTL_DEP= 11590INCINTL= 11591XGETTEXT= 11592GMSGFMT= 11593POSUB= 11594 11595if test -f ../intl/config.intl; then 11596 . ../intl/config.intl 11597fi 11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 11599$as_echo_n "checking whether NLS is requested... " >&6; } 11600if test x"$USE_NLS" != xyes; then 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11602$as_echo "no" >&6; } 11603else 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11605$as_echo "yes" >&6; } 11606 11607$as_echo "#define ENABLE_NLS 1" >>confdefs.h 11608 11609 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 11611$as_echo_n "checking for catalogs to be installed... " >&6; } 11612 # Look for .po and .gmo files in the source directory. 11613 CATALOGS= 11614 XLINGUAS= 11615 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 11616 # If there aren't any .gmo files the shell will give us the 11617 # literal string "../path/to/srcdir/po/*.gmo" which has to be 11618 # weeded out. 11619 case "$cat" in *\**) 11620 continue;; 11621 esac 11622 # The quadruple backslash is collapsed to a double backslash 11623 # by the backticks, then collapsed again by the double quotes, 11624 # leaving us with one backslash in the sed expression (right 11625 # before the dot that mustn't act as a wildcard). 11626 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 11627 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 11628 # The user is allowed to set LINGUAS to a list of languages to 11629 # install catalogs for. If it's empty that means "all of them." 11630 if test "x$LINGUAS" = x; then 11631 CATALOGS="$CATALOGS $cat" 11632 XLINGUAS="$XLINGUAS $lang" 11633 else 11634 case "$LINGUAS" in *$lang*) 11635 CATALOGS="$CATALOGS $cat" 11636 XLINGUAS="$XLINGUAS $lang" 11637 ;; 11638 esac 11639 fi 11640 done 11641 LINGUAS="$XLINGUAS" 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 11643$as_echo "$LINGUAS" >&6; } 11644 11645 11646 DATADIRNAME=share 11647 11648 INSTOBJEXT=.mo 11649 11650 GENCAT=gencat 11651 11652 CATOBJEXT=.gmo 11653 11654fi 11655 11656 MKINSTALLDIRS= 11657 if test -n "$ac_aux_dir"; then 11658 case "$ac_aux_dir" in 11659 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 11660 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 11661 esac 11662 fi 11663 if test -z "$MKINSTALLDIRS"; then 11664 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 11665 fi 11666 11667 11668 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 11670$as_echo_n "checking whether NLS is requested... " >&6; } 11671 # Check whether --enable-nls was given. 11672if test "${enable_nls+set}" = set; then : 11673 enableval=$enable_nls; USE_NLS=$enableval 11674else 11675 USE_NLS=yes 11676fi 11677 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11679$as_echo "$USE_NLS" >&6; } 11680 11681 11682 11683 11684 11685 11686# Prepare PATH_SEPARATOR. 11687# The user is always right. 11688if test "${PATH_SEPARATOR+set}" != set; then 11689 echo "#! /bin/sh" >conf$$.sh 11690 echo "exit 0" >>conf$$.sh 11691 chmod +x conf$$.sh 11692 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11693 PATH_SEPARATOR=';' 11694 else 11695 PATH_SEPARATOR=: 11696 fi 11697 rm -f conf$$.sh 11698fi 11699 11700# Find out how to test for executable files. Don't use a zero-byte file, 11701# as systems may use methods other than mode bits to determine executability. 11702cat >conf$$.file <<_ASEOF 11703#! /bin/sh 11704exit 0 11705_ASEOF 11706chmod +x conf$$.file 11707if test -x conf$$.file >/dev/null 2>&1; then 11708 ac_executable_p="test -x" 11709else 11710 ac_executable_p="test -f" 11711fi 11712rm -f conf$$.file 11713 11714# Extract the first word of "msgfmt", so it can be a program name with args. 11715set dummy msgfmt; ac_word=$2 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11717$as_echo_n "checking for $ac_word... " >&6; } 11718if test "${ac_cv_path_MSGFMT+set}" = set; then : 11719 $as_echo_n "(cached) " >&6 11720else 11721 case "$MSGFMT" in 11722 [\\/]* | ?:[\\/]*) 11723 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 11724 ;; 11725 *) 11726 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11727 for ac_dir in $PATH; do 11728 IFS="$ac_save_IFS" 11729 test -z "$ac_dir" && ac_dir=. 11730 for ac_exec_ext in '' $ac_executable_extensions; do 11731 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11732 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 11733 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11734 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 11735 break 2 11736 fi 11737 fi 11738 done 11739 done 11740 IFS="$ac_save_IFS" 11741 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 11742 ;; 11743esac 11744fi 11745MSGFMT="$ac_cv_path_MSGFMT" 11746if test "$MSGFMT" != ":"; then 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11748$as_echo "$MSGFMT" >&6; } 11749else 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11751$as_echo "no" >&6; } 11752fi 11753 11754 # Extract the first word of "gmsgfmt", so it can be a program name with args. 11755set dummy gmsgfmt; ac_word=$2 11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11757$as_echo_n "checking for $ac_word... " >&6; } 11758if test "${ac_cv_path_GMSGFMT+set}" = set; then : 11759 $as_echo_n "(cached) " >&6 11760else 11761 case $GMSGFMT in 11762 [\\/]* | ?:[\\/]*) 11763 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 11764 ;; 11765 *) 11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11767for as_dir in $PATH 11768do 11769 IFS=$as_save_IFS 11770 test -z "$as_dir" && as_dir=. 11771 for ac_exec_ext in '' $ac_executable_extensions; do 11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11773 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11775 break 2 11776 fi 11777done 11778 done 11779IFS=$as_save_IFS 11780 11781 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 11782 ;; 11783esac 11784fi 11785GMSGFMT=$ac_cv_path_GMSGFMT 11786if test -n "$GMSGFMT"; then 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 11788$as_echo "$GMSGFMT" >&6; } 11789else 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11791$as_echo "no" >&6; } 11792fi 11793 11794 11795 11796 11797# Prepare PATH_SEPARATOR. 11798# The user is always right. 11799if test "${PATH_SEPARATOR+set}" != set; then 11800 echo "#! /bin/sh" >conf$$.sh 11801 echo "exit 0" >>conf$$.sh 11802 chmod +x conf$$.sh 11803 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11804 PATH_SEPARATOR=';' 11805 else 11806 PATH_SEPARATOR=: 11807 fi 11808 rm -f conf$$.sh 11809fi 11810 11811# Find out how to test for executable files. Don't use a zero-byte file, 11812# as systems may use methods other than mode bits to determine executability. 11813cat >conf$$.file <<_ASEOF 11814#! /bin/sh 11815exit 0 11816_ASEOF 11817chmod +x conf$$.file 11818if test -x conf$$.file >/dev/null 2>&1; then 11819 ac_executable_p="test -x" 11820else 11821 ac_executable_p="test -f" 11822fi 11823rm -f conf$$.file 11824 11825# Extract the first word of "xgettext", so it can be a program name with args. 11826set dummy xgettext; ac_word=$2 11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11828$as_echo_n "checking for $ac_word... " >&6; } 11829if test "${ac_cv_path_XGETTEXT+set}" = set; then : 11830 $as_echo_n "(cached) " >&6 11831else 11832 case "$XGETTEXT" in 11833 [\\/]* | ?:[\\/]*) 11834 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 11835 ;; 11836 *) 11837 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11838 for ac_dir in $PATH; do 11839 IFS="$ac_save_IFS" 11840 test -z "$ac_dir" && ac_dir=. 11841 for ac_exec_ext in '' $ac_executable_extensions; do 11842 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11843 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 11844 (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 11845 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 11846 break 2 11847 fi 11848 fi 11849 done 11850 done 11851 IFS="$ac_save_IFS" 11852 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 11853 ;; 11854esac 11855fi 11856XGETTEXT="$ac_cv_path_XGETTEXT" 11857if test "$XGETTEXT" != ":"; then 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 11859$as_echo "$XGETTEXT" >&6; } 11860else 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11862$as_echo "no" >&6; } 11863fi 11864 11865 rm -f messages.po 11866 11867 11868# Prepare PATH_SEPARATOR. 11869# The user is always right. 11870if test "${PATH_SEPARATOR+set}" != set; then 11871 echo "#! /bin/sh" >conf$$.sh 11872 echo "exit 0" >>conf$$.sh 11873 chmod +x conf$$.sh 11874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11875 PATH_SEPARATOR=';' 11876 else 11877 PATH_SEPARATOR=: 11878 fi 11879 rm -f conf$$.sh 11880fi 11881 11882# Find out how to test for executable files. Don't use a zero-byte file, 11883# as systems may use methods other than mode bits to determine executability. 11884cat >conf$$.file <<_ASEOF 11885#! /bin/sh 11886exit 0 11887_ASEOF 11888chmod +x conf$$.file 11889if test -x conf$$.file >/dev/null 2>&1; then 11890 ac_executable_p="test -x" 11891else 11892 ac_executable_p="test -f" 11893fi 11894rm -f conf$$.file 11895 11896# Extract the first word of "msgmerge", so it can be a program name with args. 11897set dummy msgmerge; ac_word=$2 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11899$as_echo_n "checking for $ac_word... " >&6; } 11900if test "${ac_cv_path_MSGMERGE+set}" = set; then : 11901 $as_echo_n "(cached) " >&6 11902else 11903 case "$MSGMERGE" in 11904 [\\/]* | ?:[\\/]*) 11905 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 11906 ;; 11907 *) 11908 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11909 for ac_dir in $PATH; do 11910 IFS="$ac_save_IFS" 11911 test -z "$ac_dir" && ac_dir=. 11912 for ac_exec_ext in '' $ac_executable_extensions; do 11913 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11914 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 11915 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 11916 break 2 11917 fi 11918 fi 11919 done 11920 done 11921 IFS="$ac_save_IFS" 11922 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 11923 ;; 11924esac 11925fi 11926MSGMERGE="$ac_cv_path_MSGMERGE" 11927if test "$MSGMERGE" != ":"; then 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 11929$as_echo "$MSGMERGE" >&6; } 11930else 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11932$as_echo "no" >&6; } 11933fi 11934 11935 11936 if test "$GMSGFMT" != ":"; then 11937 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 11938 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11939 : ; 11940 else 11941 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 11943$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 11944 GMSGFMT=":" 11945 fi 11946 fi 11947 11948 if test "$XGETTEXT" != ":"; then 11949 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 11950 (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 11951 : ; 11952 else 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 11954$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 11955 XGETTEXT=":" 11956 fi 11957 rm -f messages.po 11958 fi 11959 11960 ac_config_commands="$ac_config_commands default-1" 11961 11962 11963 11964 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11966$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11967 # Check whether --enable-maintainer-mode was given. 11968if test "${enable_maintainer_mode+set}" = set; then : 11969 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11970else 11971 USE_MAINTAINER_MODE=no 11972fi 11973 11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11975$as_echo "$USE_MAINTAINER_MODE" >&6; } 11976 if test $USE_MAINTAINER_MODE = yes; then 11977 MAINTAINER_MODE_TRUE= 11978 MAINTAINER_MODE_FALSE='#' 11979else 11980 MAINTAINER_MODE_TRUE='#' 11981 MAINTAINER_MODE_FALSE= 11982fi 11983 11984 MAINT=$MAINTAINER_MODE_TRUE 11985 11986 11987 if false; then 11988 GENINSRC_NEVER_TRUE= 11989 GENINSRC_NEVER_FALSE='#' 11990else 11991 GENINSRC_NEVER_TRUE='#' 11992 GENINSRC_NEVER_FALSE= 11993fi 11994 11995 11996 11997for ac_header in sys/gmon_out.h 11998do : 11999 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default" 12000if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then : 12001 cat >>confdefs.h <<_ACEOF 12002#define HAVE_SYS_GMON_OUT_H 1 12003_ACEOF 12004 12005fi 12006 12007done 12008 12009 12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 12011$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } 12012if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then : 12013 $as_echo_n "(cached) " >&6 12014else 12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12016/* end confdefs.h. */ 12017#include <unistd.h> 12018int 12019main () 12020{ 12021extern int getopt (int, char *const*, const char *); 12022 ; 12023 return 0; 12024} 12025_ACEOF 12026if ac_fn_c_try_compile "$LINENO"; then : 12027 gprof_cv_decl_getopt_unistd_h=yes 12028else 12029 gprof_cv_decl_getopt_unistd_h=no 12030fi 12031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12032fi 12033 12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5 12035$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; } 12036if test $gprof_cv_decl_getopt_unistd_h = yes; then 12037 12038$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h 12039 12040fi 12041 12042# Some systems have fabs only in -lm, not in -lc. 12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5 12044$as_echo_n "checking for library containing fabs... " >&6; } 12045if test "${ac_cv_search_fabs+set}" = set; then : 12046 $as_echo_n "(cached) " >&6 12047else 12048 ac_func_search_save_LIBS=$LIBS 12049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12050/* end confdefs.h. */ 12051 12052/* Override any GCC internal prototype to avoid an error. 12053 Use char because int might match the return type of a GCC 12054 builtin and then its argument prototype would still apply. */ 12055#ifdef __cplusplus 12056extern "C" 12057#endif 12058char fabs (); 12059int 12060main () 12061{ 12062return fabs (); 12063 ; 12064 return 0; 12065} 12066_ACEOF 12067for ac_lib in '' m; do 12068 if test -z "$ac_lib"; then 12069 ac_res="none required" 12070 else 12071 ac_res=-l$ac_lib 12072 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12073 fi 12074 if ac_fn_c_try_link "$LINENO"; then : 12075 ac_cv_search_fabs=$ac_res 12076fi 12077rm -f core conftest.err conftest.$ac_objext \ 12078 conftest$ac_exeext 12079 if test "${ac_cv_search_fabs+set}" = set; then : 12080 break 12081fi 12082done 12083if test "${ac_cv_search_fabs+set}" = set; then : 12084 12085else 12086 ac_cv_search_fabs=no 12087fi 12088rm conftest.$ac_ext 12089LIBS=$ac_func_search_save_LIBS 12090fi 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5 12092$as_echo "$ac_cv_search_fabs" >&6; } 12093ac_res=$ac_cv_search_fabs 12094if test "$ac_res" != no; then : 12095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12096 12097fi 12098 12099 12100 12101# Set the 'development' global. 12102. $srcdir/../bfd/development.sh 12103 12104# Default set of GCC warnings to enable. 12105GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12106 12107# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12109/* end confdefs.h. */ 12110__GNUC__ 12111_ACEOF 12112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12113 $EGREP "^[0-3]$" >/dev/null 2>&1; then : 12114 12115else 12116 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 12117fi 12118rm -f conftest* 12119 12120 12121# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12123/* end confdefs.h. */ 12124__GNUC__ 12125_ACEOF 12126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12127 $EGREP "^[0-4]$" >/dev/null 2>&1; then : 12128 12129else 12130 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 12131fi 12132rm -f conftest* 12133 12134 12135# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 12136WARN_WRITE_STRINGS="" 12137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12138/* end confdefs.h. */ 12139__GNUC__ 12140_ACEOF 12141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12142 $EGREP "^[0-3]$" >/dev/null 2>&1; then : 12143 12144else 12145 WARN_WRITE_STRINGS="-Wwrite-strings" 12146fi 12147rm -f conftest* 12148 12149 12150# Check whether --enable-werror was given. 12151if test "${enable_werror+set}" = set; then : 12152 enableval=$enable_werror; case "${enableval}" in 12153 yes | y) ERROR_ON_WARNING="yes" ;; 12154 no | n) ERROR_ON_WARNING="no" ;; 12155 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 12156 esac 12157fi 12158 12159 12160# Disable -Wformat by default when using gcc on mingw 12161case "${host}" in 12162 *-*-mingw32*) 12163 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 12164 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 12165 fi 12166 ;; 12167 *) ;; 12168esac 12169 12170# Enable -Werror by default when using gcc. Turn it off for releases. 12171if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 12172 ERROR_ON_WARNING=yes 12173fi 12174 12175NO_WERROR= 12176if test "${ERROR_ON_WARNING}" = yes ; then 12177 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 12178 NO_WERROR="-Wno-error" 12179fi 12180 12181if test "${GCC}" = yes ; then 12182 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12183fi 12184 12185# Check whether --enable-build-warnings was given. 12186if test "${enable_build_warnings+set}" = set; then : 12187 enableval=$enable_build_warnings; case "${enableval}" in 12188 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; 12189 no) if test "${GCC}" = yes ; then 12190 WARN_CFLAGS="-w" 12191 fi;; 12192 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12193 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; 12194 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12195 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; 12196 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; 12197esac 12198fi 12199 12200 12201if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 12202 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 12203fi 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" 12216 12217cat >confcache <<\_ACEOF 12218# This file is a shell script that caches the results of configure 12219# tests run on this system so they can be shared between configure 12220# scripts and configure runs, see configure's option --config-cache. 12221# It is not useful on other systems. If it contains results you don't 12222# want to keep, you may remove or edit it. 12223# 12224# config.status only pays attention to the cache file if you give it 12225# the --recheck option to rerun configure. 12226# 12227# `ac_cv_env_foo' variables (set or unset) will be overridden when 12228# loading this file, other *unset* `ac_cv_foo' will be assigned the 12229# following values. 12230 12231_ACEOF 12232 12233# The following way of writing the cache mishandles newlines in values, 12234# but we know of no workaround that is simple, portable, and efficient. 12235# So, we kill variables containing newlines. 12236# Ultrix sh set writes to stderr and can't be redirected directly, 12237# and sets the high bit in the cache file unless we assign to the vars. 12238( 12239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12240 eval ac_val=\$$ac_var 12241 case $ac_val in #( 12242 *${as_nl}*) 12243 case $ac_var in #( 12244 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12245$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12246 esac 12247 case $ac_var in #( 12248 _ | IFS | as_nl) ;; #( 12249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12250 *) { eval $ac_var=; unset $ac_var;} ;; 12251 esac ;; 12252 esac 12253 done 12254 12255 (set) 2>&1 | 12256 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12257 *${as_nl}ac_space=\ *) 12258 # `set' does not quote correctly, so add quotes: double-quote 12259 # substitution turns \\\\ into \\, and sed turns \\ into \. 12260 sed -n \ 12261 "s/'/'\\\\''/g; 12262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12263 ;; #( 12264 *) 12265 # `set' quotes correctly as required by POSIX, so do not add quotes. 12266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12267 ;; 12268 esac | 12269 sort 12270) | 12271 sed ' 12272 /^ac_cv_env_/b end 12273 t clear 12274 :clear 12275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12276 t end 12277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12278 :end' >>confcache 12279if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12280 if test -w "$cache_file"; then 12281 test "x$cache_file" != "x/dev/null" && 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12283$as_echo "$as_me: updating cache $cache_file" >&6;} 12284 cat confcache >$cache_file 12285 else 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12287$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12288 fi 12289fi 12290rm -f confcache 12291 12292test "x$prefix" = xNONE && prefix=$ac_default_prefix 12293# Let make expand exec_prefix. 12294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12295 12296DEFS=-DHAVE_CONFIG_H 12297 12298ac_libobjs= 12299ac_ltlibobjs= 12300for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12301 # 1. Remove the extension, and $U if already installed. 12302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12303 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12305 # will be set to the directory where LIBOBJS objects are built. 12306 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12307 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12308done 12309LIBOBJS=$ac_libobjs 12310 12311LTLIBOBJS=$ac_ltlibobjs 12312 12313 12314if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12315 as_fn_error "conditional \"AMDEP\" was never defined. 12316Usually this means the macro was only invoked conditionally." "$LINENO" 5 12317fi 12318if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12319 as_fn_error "conditional \"am__fastdepCC\" was never defined. 12320Usually this means the macro was only invoked conditionally." "$LINENO" 5 12321fi 12322 if test -n "$EXEEXT"; then 12323 am__EXEEXT_TRUE= 12324 am__EXEEXT_FALSE='#' 12325else 12326 am__EXEEXT_TRUE='#' 12327 am__EXEEXT_FALSE= 12328fi 12329 12330if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12331 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 12332Usually this means the macro was only invoked conditionally." "$LINENO" 5 12333fi 12334if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then 12335 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. 12336Usually this means the macro was only invoked conditionally." "$LINENO" 5 12337fi 12338 12339: ${CONFIG_STATUS=./config.status} 12340ac_write_fail=0 12341ac_clean_files_save=$ac_clean_files 12342ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12344$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12345as_write_fail=0 12346cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12347#! $SHELL 12348# Generated by $as_me. 12349# Run this file to recreate the current configuration. 12350# Compiler output produced by configure, useful for debugging 12351# configure, is in config.log if it exists. 12352 12353debug=false 12354ac_cs_recheck=false 12355ac_cs_silent=false 12356 12357SHELL=\${CONFIG_SHELL-$SHELL} 12358export SHELL 12359_ASEOF 12360cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12361## -------------------- ## 12362## M4sh Initialization. ## 12363## -------------------- ## 12364 12365# Be more Bourne compatible 12366DUALCASE=1; export DUALCASE # for MKS sh 12367if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12368 emulate sh 12369 NULLCMD=: 12370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12371 # is contrary to our usage. Disable this feature. 12372 alias -g '${1+"$@"}'='"$@"' 12373 setopt NO_GLOB_SUBST 12374else 12375 case `(set -o) 2>/dev/null` in #( 12376 *posix*) : 12377 set -o posix ;; #( 12378 *) : 12379 ;; 12380esac 12381fi 12382 12383 12384as_nl=' 12385' 12386export as_nl 12387# Printing a long string crashes Solaris 7 /usr/bin/printf. 12388as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12390as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12391# Prefer a ksh shell builtin over an external printf program on Solaris, 12392# but without wasting forks for bash or zsh. 12393if test -z "$BASH_VERSION$ZSH_VERSION" \ 12394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12395 as_echo='print -r --' 12396 as_echo_n='print -rn --' 12397elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12398 as_echo='printf %s\n' 12399 as_echo_n='printf %s' 12400else 12401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12403 as_echo_n='/usr/ucb/echo -n' 12404 else 12405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12406 as_echo_n_body='eval 12407 arg=$1; 12408 case $arg in #( 12409 *"$as_nl"*) 12410 expr "X$arg" : "X\\(.*\\)$as_nl"; 12411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12412 esac; 12413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12414 ' 12415 export as_echo_n_body 12416 as_echo_n='sh -c $as_echo_n_body as_echo' 12417 fi 12418 export as_echo_body 12419 as_echo='sh -c $as_echo_body as_echo' 12420fi 12421 12422# The user is always right. 12423if test "${PATH_SEPARATOR+set}" != set; then 12424 PATH_SEPARATOR=: 12425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12427 PATH_SEPARATOR=';' 12428 } 12429fi 12430 12431 12432# IFS 12433# We need space, tab and new line, in precisely that order. Quoting is 12434# there to prevent editors from complaining about space-tab. 12435# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12436# splitting by setting IFS to empty value.) 12437IFS=" "" $as_nl" 12438 12439# Find who we are. Look in the path if we contain no directory separator. 12440case $0 in #(( 12441 *[\\/]* ) as_myself=$0 ;; 12442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12443for as_dir in $PATH 12444do 12445 IFS=$as_save_IFS 12446 test -z "$as_dir" && as_dir=. 12447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12448 done 12449IFS=$as_save_IFS 12450 12451 ;; 12452esac 12453# We did not find ourselves, most probably we were run as `sh COMMAND' 12454# in which case we are not to be found in the path. 12455if test "x$as_myself" = x; then 12456 as_myself=$0 12457fi 12458if test ! -f "$as_myself"; then 12459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12460 exit 1 12461fi 12462 12463# Unset variables that we do not need and which cause bugs (e.g. in 12464# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12465# suppresses any "Segmentation fault" message there. '((' could 12466# trigger a bug in pdksh 5.2.14. 12467for as_var in BASH_ENV ENV MAIL MAILPATH 12468do eval test x\${$as_var+set} = xset \ 12469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12470done 12471PS1='$ ' 12472PS2='> ' 12473PS4='+ ' 12474 12475# NLS nuisances. 12476LC_ALL=C 12477export LC_ALL 12478LANGUAGE=C 12479export LANGUAGE 12480 12481# CDPATH. 12482(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12483 12484 12485# as_fn_error ERROR [LINENO LOG_FD] 12486# --------------------------------- 12487# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12488# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12489# script with status $?, using 1 if that was 0. 12490as_fn_error () 12491{ 12492 as_status=$?; test $as_status -eq 0 && as_status=1 12493 if test "$3"; then 12494 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12496 fi 12497 $as_echo "$as_me: error: $1" >&2 12498 as_fn_exit $as_status 12499} # as_fn_error 12500 12501 12502# as_fn_set_status STATUS 12503# ----------------------- 12504# Set $? to STATUS, without forking. 12505as_fn_set_status () 12506{ 12507 return $1 12508} # as_fn_set_status 12509 12510# as_fn_exit STATUS 12511# ----------------- 12512# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12513as_fn_exit () 12514{ 12515 set +e 12516 as_fn_set_status $1 12517 exit $1 12518} # as_fn_exit 12519 12520# as_fn_unset VAR 12521# --------------- 12522# Portably unset VAR. 12523as_fn_unset () 12524{ 12525 { eval $1=; unset $1;} 12526} 12527as_unset=as_fn_unset 12528# as_fn_append VAR VALUE 12529# ---------------------- 12530# Append the text in VALUE to the end of the definition contained in VAR. Take 12531# advantage of any shell optimizations that allow amortized linear growth over 12532# repeated appends, instead of the typical quadratic growth present in naive 12533# implementations. 12534if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12535 eval 'as_fn_append () 12536 { 12537 eval $1+=\$2 12538 }' 12539else 12540 as_fn_append () 12541 { 12542 eval $1=\$$1\$2 12543 } 12544fi # as_fn_append 12545 12546# as_fn_arith ARG... 12547# ------------------ 12548# Perform arithmetic evaluation on the ARGs, and store the result in the 12549# global $as_val. Take advantage of shells that can avoid forks. The arguments 12550# must be portable across $(()) and expr. 12551if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12552 eval 'as_fn_arith () 12553 { 12554 as_val=$(( $* )) 12555 }' 12556else 12557 as_fn_arith () 12558 { 12559 as_val=`expr "$@" || test $? -eq 1` 12560 } 12561fi # as_fn_arith 12562 12563 12564if expr a : '\(a\)' >/dev/null 2>&1 && 12565 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12566 as_expr=expr 12567else 12568 as_expr=false 12569fi 12570 12571if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12572 as_basename=basename 12573else 12574 as_basename=false 12575fi 12576 12577if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12578 as_dirname=dirname 12579else 12580 as_dirname=false 12581fi 12582 12583as_me=`$as_basename -- "$0" || 12584$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12585 X"$0" : 'X\(//\)$' \| \ 12586 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12587$as_echo X/"$0" | 12588 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12589 s//\1/ 12590 q 12591 } 12592 /^X\/\(\/\/\)$/{ 12593 s//\1/ 12594 q 12595 } 12596 /^X\/\(\/\).*/{ 12597 s//\1/ 12598 q 12599 } 12600 s/.*/./; q'` 12601 12602# Avoid depending upon Character Ranges. 12603as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12604as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12605as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12606as_cr_digits='0123456789' 12607as_cr_alnum=$as_cr_Letters$as_cr_digits 12608 12609ECHO_C= ECHO_N= ECHO_T= 12610case `echo -n x` in #((((( 12611-n*) 12612 case `echo 'xy\c'` in 12613 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12614 xy) ECHO_C='\c';; 12615 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12616 ECHO_T=' ';; 12617 esac;; 12618*) 12619 ECHO_N='-n';; 12620esac 12621 12622rm -f conf$$ conf$$.exe conf$$.file 12623if test -d conf$$.dir; then 12624 rm -f conf$$.dir/conf$$.file 12625else 12626 rm -f conf$$.dir 12627 mkdir conf$$.dir 2>/dev/null 12628fi 12629if (echo >conf$$.file) 2>/dev/null; then 12630 if ln -s conf$$.file conf$$ 2>/dev/null; then 12631 as_ln_s='ln -s' 12632 # ... but there are two gotchas: 12633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12635 # In both cases, we have to default to `cp -p'. 12636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12637 as_ln_s='cp -p' 12638 elif ln conf$$.file conf$$ 2>/dev/null; then 12639 as_ln_s=ln 12640 else 12641 as_ln_s='cp -p' 12642 fi 12643else 12644 as_ln_s='cp -p' 12645fi 12646rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12647rmdir conf$$.dir 2>/dev/null 12648 12649 12650# as_fn_mkdir_p 12651# ------------- 12652# Create "$as_dir" as a directory, including parents if necessary. 12653as_fn_mkdir_p () 12654{ 12655 12656 case $as_dir in #( 12657 -*) as_dir=./$as_dir;; 12658 esac 12659 test -d "$as_dir" || eval $as_mkdir_p || { 12660 as_dirs= 12661 while :; do 12662 case $as_dir in #( 12663 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12664 *) as_qdir=$as_dir;; 12665 esac 12666 as_dirs="'$as_qdir' $as_dirs" 12667 as_dir=`$as_dirname -- "$as_dir" || 12668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12669 X"$as_dir" : 'X\(//\)[^/]' \| \ 12670 X"$as_dir" : 'X\(//\)$' \| \ 12671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12672$as_echo X"$as_dir" | 12673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12674 s//\1/ 12675 q 12676 } 12677 /^X\(\/\/\)[^/].*/{ 12678 s//\1/ 12679 q 12680 } 12681 /^X\(\/\/\)$/{ 12682 s//\1/ 12683 q 12684 } 12685 /^X\(\/\).*/{ 12686 s//\1/ 12687 q 12688 } 12689 s/.*/./; q'` 12690 test -d "$as_dir" && break 12691 done 12692 test -z "$as_dirs" || eval "mkdir $as_dirs" 12693 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12694 12695 12696} # as_fn_mkdir_p 12697if mkdir -p . 2>/dev/null; then 12698 as_mkdir_p='mkdir -p "$as_dir"' 12699else 12700 test -d ./-p && rmdir ./-p 12701 as_mkdir_p=false 12702fi 12703 12704if test -x / >/dev/null 2>&1; then 12705 as_test_x='test -x' 12706else 12707 if ls -dL / >/dev/null 2>&1; then 12708 as_ls_L_option=L 12709 else 12710 as_ls_L_option= 12711 fi 12712 as_test_x=' 12713 eval sh -c '\'' 12714 if test -d "$1"; then 12715 test -d "$1/."; 12716 else 12717 case $1 in #( 12718 -*)set "./$1";; 12719 esac; 12720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12721 ???[sx]*):;;*)false;;esac;fi 12722 '\'' sh 12723 ' 12724fi 12725as_executable_p=$as_test_x 12726 12727# Sed expression to map a string onto a valid CPP name. 12728as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12729 12730# Sed expression to map a string onto a valid variable name. 12731as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12732 12733 12734exec 6>&1 12735## ----------------------------------- ## 12736## Main body of $CONFIG_STATUS script. ## 12737## ----------------------------------- ## 12738_ASEOF 12739test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12740 12741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12742# Save the log message, to keep $0 and so on meaningful, and to 12743# report actual input values of CONFIG_FILES etc. instead of their 12744# values after options handling. 12745ac_log=" 12746This file was extended by gprof $as_me 2.27.0, which was 12747generated by GNU Autoconf 2.64. Invocation command line was 12748 12749 CONFIG_FILES = $CONFIG_FILES 12750 CONFIG_HEADERS = $CONFIG_HEADERS 12751 CONFIG_LINKS = $CONFIG_LINKS 12752 CONFIG_COMMANDS = $CONFIG_COMMANDS 12753 $ $0 $@ 12754 12755on `(hostname || uname -n) 2>/dev/null | sed 1q` 12756" 12757 12758_ACEOF 12759 12760case $ac_config_files in *" 12761"*) set x $ac_config_files; shift; ac_config_files=$*;; 12762esac 12763 12764case $ac_config_headers in *" 12765"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12766esac 12767 12768 12769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12770# Files that config.status was made for. 12771config_files="$ac_config_files" 12772config_headers="$ac_config_headers" 12773config_commands="$ac_config_commands" 12774 12775_ACEOF 12776 12777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12778ac_cs_usage="\ 12779\`$as_me' instantiates files and other configuration actions 12780from templates according to the current configuration. Unless the files 12781and actions are specified as TAGs, all are instantiated by default. 12782 12783Usage: $0 [OPTION]... [TAG]... 12784 12785 -h, --help print this help, then exit 12786 -V, --version print version number and configuration settings, then exit 12787 -q, --quiet, --silent 12788 do not print progress messages 12789 -d, --debug don't remove temporary files 12790 --recheck update $as_me by reconfiguring in the same conditions 12791 --file=FILE[:TEMPLATE] 12792 instantiate the configuration file FILE 12793 --header=FILE[:TEMPLATE] 12794 instantiate the configuration header FILE 12795 12796Configuration files: 12797$config_files 12798 12799Configuration headers: 12800$config_headers 12801 12802Configuration commands: 12803$config_commands 12804 12805Report bugs to the package provider." 12806 12807_ACEOF 12808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12809ac_cs_version="\\ 12810gprof config.status 2.27.0 12811configured by $0, generated by GNU Autoconf 2.64, 12812 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12813 12814Copyright (C) 2009 Free Software Foundation, Inc. 12815This config.status script is free software; the Free Software Foundation 12816gives unlimited permission to copy, distribute and modify it." 12817 12818ac_pwd='$ac_pwd' 12819srcdir='$srcdir' 12820INSTALL='$INSTALL' 12821MKDIR_P='$MKDIR_P' 12822AWK='$AWK' 12823test -n "\$AWK" || AWK=awk 12824_ACEOF 12825 12826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12827# The default lists apply if the user does not specify any file. 12828ac_need_defaults=: 12829while test $# != 0 12830do 12831 case $1 in 12832 --*=*) 12833 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12834 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12835 ac_shift=: 12836 ;; 12837 *) 12838 ac_option=$1 12839 ac_optarg=$2 12840 ac_shift=shift 12841 ;; 12842 esac 12843 12844 case $ac_option in 12845 # Handling of the options. 12846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12847 ac_cs_recheck=: ;; 12848 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12849 $as_echo "$ac_cs_version"; exit ;; 12850 --debug | --debu | --deb | --de | --d | -d ) 12851 debug=: ;; 12852 --file | --fil | --fi | --f ) 12853 $ac_shift 12854 case $ac_optarg in 12855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12856 esac 12857 as_fn_append CONFIG_FILES " '$ac_optarg'" 12858 ac_need_defaults=false;; 12859 --header | --heade | --head | --hea ) 12860 $ac_shift 12861 case $ac_optarg in 12862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12863 esac 12864 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12865 ac_need_defaults=false;; 12866 --he | --h) 12867 # Conflict between --help and --header 12868 as_fn_error "ambiguous option: \`$1' 12869Try \`$0 --help' for more information.";; 12870 --help | --hel | -h ) 12871 $as_echo "$ac_cs_usage"; exit ;; 12872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12873 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12874 ac_cs_silent=: ;; 12875 12876 # This is an error. 12877 -*) as_fn_error "unrecognized option: \`$1' 12878Try \`$0 --help' for more information." ;; 12879 12880 *) as_fn_append ac_config_targets " $1" 12881 ac_need_defaults=false ;; 12882 12883 esac 12884 shift 12885done 12886 12887ac_configure_extra_args= 12888 12889if $ac_cs_silent; then 12890 exec 6>/dev/null 12891 ac_configure_extra_args="$ac_configure_extra_args --silent" 12892fi 12893 12894_ACEOF 12895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12896if \$ac_cs_recheck; then 12897 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12898 shift 12899 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12900 CONFIG_SHELL='$SHELL' 12901 export CONFIG_SHELL 12902 exec "\$@" 12903fi 12904 12905_ACEOF 12906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12907exec 5>>config.log 12908{ 12909 echo 12910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12911## Running $as_me. ## 12912_ASBOX 12913 $as_echo "$ac_log" 12914} >&5 12915 12916_ACEOF 12917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12918# 12919# INIT-COMMANDS 12920# 12921AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12922 12923 12924# The HP-UX ksh and POSIX shell print the target directory to stdout 12925# if CDPATH is set. 12926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12927 12928sed_quote_subst='$sed_quote_subst' 12929double_quote_subst='$double_quote_subst' 12930delay_variable_subst='$delay_variable_subst' 12931macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12932macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12933enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12934enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12935pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12936enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12937SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12938ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12939host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12940host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12941host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12942build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12943build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12944build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12945SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12946Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12947GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12948EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12949FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12950LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12951NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12952LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12953max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12954ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12955exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12956lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12957lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12958lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12959reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12960reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12961OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12962deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12963file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12964AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12965AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12966STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12967RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12968old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12969old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12970old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12971lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12972CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12973CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12974compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12975GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12976lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12977lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12978lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12979lt_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"`' 12980objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12981MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12982lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12983lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12984lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12985lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12986lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12987need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12988DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12989NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12990LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12991OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12992OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12993libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12994shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12995extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12996archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12997enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12998export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12999whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13000compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13001old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13002old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13003archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13004archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13005module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13006module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13007with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13008allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13009no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13010hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13011hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 13012hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13013hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13014hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13015hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13016hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13017hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13018inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13019link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13020fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 13021always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13022export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13023exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13024include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13025prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13026file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13027variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13028need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13029need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13030version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13031runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13032shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13033shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13034libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13035library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13036soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13037install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13038postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13039postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13040finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13041finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13042hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13043sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13044sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13045hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13046enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13047enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13048enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13049old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13050striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13051 13052LTCC='$LTCC' 13053LTCFLAGS='$LTCFLAGS' 13054compiler='$compiler_DEFAULT' 13055 13056# A function that is used when there is no print builtin or printf. 13057func_fallback_echo () 13058{ 13059 eval 'cat <<_LTECHO_EOF 13060\$1 13061_LTECHO_EOF' 13062} 13063 13064# Quote evaled strings. 13065for var in SHELL \ 13066ECHO \ 13067SED \ 13068GREP \ 13069EGREP \ 13070FGREP \ 13071LD \ 13072NM \ 13073LN_S \ 13074lt_SP2NL \ 13075lt_NL2SP \ 13076reload_flag \ 13077OBJDUMP \ 13078deplibs_check_method \ 13079file_magic_cmd \ 13080AR \ 13081AR_FLAGS \ 13082STRIP \ 13083RANLIB \ 13084CC \ 13085CFLAGS \ 13086compiler \ 13087lt_cv_sys_global_symbol_pipe \ 13088lt_cv_sys_global_symbol_to_cdecl \ 13089lt_cv_sys_global_symbol_to_c_name_address \ 13090lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13091lt_prog_compiler_no_builtin_flag \ 13092lt_prog_compiler_wl \ 13093lt_prog_compiler_pic \ 13094lt_prog_compiler_static \ 13095lt_cv_prog_compiler_c_o \ 13096need_locks \ 13097DSYMUTIL \ 13098NMEDIT \ 13099LIPO \ 13100OTOOL \ 13101OTOOL64 \ 13102shrext_cmds \ 13103export_dynamic_flag_spec \ 13104whole_archive_flag_spec \ 13105compiler_needs_object \ 13106with_gnu_ld \ 13107allow_undefined_flag \ 13108no_undefined_flag \ 13109hardcode_libdir_flag_spec \ 13110hardcode_libdir_flag_spec_ld \ 13111hardcode_libdir_separator \ 13112fix_srcfile_path \ 13113exclude_expsyms \ 13114include_expsyms \ 13115file_list_spec \ 13116variables_saved_for_relink \ 13117libname_spec \ 13118library_names_spec \ 13119soname_spec \ 13120install_override_mode \ 13121finish_eval \ 13122old_striplib \ 13123striplib; do 13124 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13125 *[\\\\\\\`\\"\\\$]*) 13126 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13127 ;; 13128 *) 13129 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13130 ;; 13131 esac 13132done 13133 13134# Double-quote double-evaled strings. 13135for var in reload_cmds \ 13136old_postinstall_cmds \ 13137old_postuninstall_cmds \ 13138old_archive_cmds \ 13139extract_expsyms_cmds \ 13140old_archive_from_new_cmds \ 13141old_archive_from_expsyms_cmds \ 13142archive_cmds \ 13143archive_expsym_cmds \ 13144module_cmds \ 13145module_expsym_cmds \ 13146export_symbols_cmds \ 13147prelink_cmds \ 13148postinstall_cmds \ 13149postuninstall_cmds \ 13150finish_cmds \ 13151sys_lib_search_path_spec \ 13152sys_lib_dlsearch_path_spec; do 13153 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13154 *[\\\\\\\`\\"\\\$]*) 13155 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13156 ;; 13157 *) 13158 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13159 ;; 13160 esac 13161done 13162 13163ac_aux_dir='$ac_aux_dir' 13164xsi_shell='$xsi_shell' 13165lt_shell_append='$lt_shell_append' 13166 13167# See if we are running on zsh, and set the options which allow our 13168# commands through without removal of \ escapes INIT. 13169if test -n "\${ZSH_VERSION+set}" ; then 13170 setopt NO_GLOB_SUBST 13171fi 13172 13173 13174 PACKAGE='$PACKAGE' 13175 VERSION='$VERSION' 13176 TIMESTAMP='$TIMESTAMP' 13177 RM='$RM' 13178 ofile='$ofile' 13179 13180 13181 13182# Capture the value of obsolete ALL_LINGUAS because we need it to compute 13183 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 13184 # from automake. 13185 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 13186 # Capture the value of LINGUAS because we need it to compute CATALOGS. 13187 LINGUAS="${LINGUAS-%UNSET%}" 13188 13189 13190_ACEOF 13191 13192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13193 13194# Handling of arguments. 13195for ac_config_target in $ac_config_targets 13196do 13197 case $ac_config_target in 13198 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13199 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;; 13200 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13201 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 13202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13203 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 13204 13205 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13206 esac 13207done 13208 13209 13210# If the user did not use the arguments to specify the items to instantiate, 13211# then the envvar interface is used. Set only those that are not. 13212# We use the long form for the default assignment because of an extremely 13213# bizarre bug on SunOS 4.1.3. 13214if $ac_need_defaults; then 13215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13216 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13217 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13218fi 13219 13220# Have a temporary directory for convenience. Make it in the build tree 13221# simply because there is no reason against having it here, and in addition, 13222# creating and moving files from /tmp can sometimes cause problems. 13223# Hook for its removal unless debugging. 13224# Note that there is a small window in which the directory will not be cleaned: 13225# after its creation but before its name has been assigned to `$tmp'. 13226$debug || 13227{ 13228 tmp= 13229 trap 'exit_status=$? 13230 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13231' 0 13232 trap 'as_fn_exit 1' 1 2 13 15 13233} 13234# Create a (secure) tmp directory for tmp files. 13235 13236{ 13237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13238 test -n "$tmp" && test -d "$tmp" 13239} || 13240{ 13241 tmp=./conf$$-$RANDOM 13242 (umask 077 && mkdir "$tmp") 13243} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13244 13245# Set up the scripts for CONFIG_FILES section. 13246# No need to generate them if there are no CONFIG_FILES. 13247# This happens for instance with `./config.status config.h'. 13248if test -n "$CONFIG_FILES"; then 13249 13250 13251ac_cr=`echo X | tr X '\015'` 13252# On cygwin, bash can eat \r inside `` if the user requested igncr. 13253# But we know of no other shell where ac_cr would be empty at this 13254# point, so we can use a bashism as a fallback. 13255if test "x$ac_cr" = x; then 13256 eval ac_cr=\$\'\\r\' 13257fi 13258ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13259if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13260 ac_cs_awk_cr='\r' 13261else 13262 ac_cs_awk_cr=$ac_cr 13263fi 13264 13265echo 'BEGIN {' >"$tmp/subs1.awk" && 13266_ACEOF 13267 13268 13269{ 13270 echo "cat >conf$$subs.awk <<_ACEOF" && 13271 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13272 echo "_ACEOF" 13273} >conf$$subs.sh || 13274 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13275ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13276ac_delim='%!_!# ' 13277for ac_last_try in false false false false false :; do 13278 . ./conf$$subs.sh || 13279 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13280 13281 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13282 if test $ac_delim_n = $ac_delim_num; then 13283 break 13284 elif $ac_last_try; then 13285 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13286 else 13287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13288 fi 13289done 13290rm -f conf$$subs.sh 13291 13292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13293cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13294_ACEOF 13295sed -n ' 13296h 13297s/^/S["/; s/!.*/"]=/ 13298p 13299g 13300s/^[^!]*!// 13301:repl 13302t repl 13303s/'"$ac_delim"'$// 13304t delim 13305:nl 13306h 13307s/\(.\{148\}\).*/\1/ 13308t more1 13309s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13310p 13311n 13312b repl 13313:more1 13314s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13315p 13316g 13317s/.\{148\}// 13318t nl 13319:delim 13320h 13321s/\(.\{148\}\).*/\1/ 13322t more2 13323s/["\\]/\\&/g; s/^/"/; s/$/"/ 13324p 13325b 13326:more2 13327s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13328p 13329g 13330s/.\{148\}// 13331t delim 13332' <conf$$subs.awk | sed ' 13333/^[^""]/{ 13334 N 13335 s/\n// 13336} 13337' >>$CONFIG_STATUS || ac_write_fail=1 13338rm -f conf$$subs.awk 13339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13340_ACAWK 13341cat >>"\$tmp/subs1.awk" <<_ACAWK && 13342 for (key in S) S_is_set[key] = 1 13343 FS = "" 13344 13345} 13346{ 13347 line = $ 0 13348 nfields = split(line, field, "@") 13349 substed = 0 13350 len = length(field[1]) 13351 for (i = 2; i < nfields; i++) { 13352 key = field[i] 13353 keylen = length(key) 13354 if (S_is_set[key]) { 13355 value = S[key] 13356 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13357 len += length(value) + length(field[++i]) 13358 substed = 1 13359 } else 13360 len += 1 + keylen 13361 } 13362 13363 print line 13364} 13365 13366_ACAWK 13367_ACEOF 13368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13369if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13370 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13371else 13372 cat 13373fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13374 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13375_ACEOF 13376 13377# VPATH may cause trouble with some makes, so we remove $(srcdir), 13378# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13379# trailing colons and then remove the whole line if VPATH becomes empty 13380# (actually we leave an empty line to preserve line numbers). 13381if test "x$srcdir" = x.; then 13382 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13383s/:*\$(srcdir):*/:/ 13384s/:*\${srcdir}:*/:/ 13385s/:*@srcdir@:*/:/ 13386s/^\([^=]*=[ ]*\):*/\1/ 13387s/:*$// 13388s/^[^=]*=[ ]*$// 13389}' 13390fi 13391 13392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13393fi # test -n "$CONFIG_FILES" 13394 13395# Set up the scripts for CONFIG_HEADERS section. 13396# No need to generate them if there are no CONFIG_HEADERS. 13397# This happens for instance with `./config.status Makefile'. 13398if test -n "$CONFIG_HEADERS"; then 13399cat >"$tmp/defines.awk" <<\_ACAWK || 13400BEGIN { 13401_ACEOF 13402 13403# Transform confdefs.h into an awk script `defines.awk', embedded as 13404# here-document in config.status, that substitutes the proper values into 13405# config.h.in to produce config.h. 13406 13407# Create a delimiter string that does not exist in confdefs.h, to ease 13408# handling of long lines. 13409ac_delim='%!_!# ' 13410for ac_last_try in false false :; do 13411 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13412 if test -z "$ac_t"; then 13413 break 13414 elif $ac_last_try; then 13415 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13416 else 13417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13418 fi 13419done 13420 13421# For the awk script, D is an array of macro values keyed by name, 13422# likewise P contains macro parameters if any. Preserve backslash 13423# newline sequences. 13424 13425ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13426sed -n ' 13427s/.\{148\}/&'"$ac_delim"'/g 13428t rset 13429:rset 13430s/^[ ]*#[ ]*define[ ][ ]*/ / 13431t def 13432d 13433:def 13434s/\\$// 13435t bsnl 13436s/["\\]/\\&/g 13437s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13438D["\1"]=" \3"/p 13439s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13440d 13441:bsnl 13442s/["\\]/\\&/g 13443s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13444D["\1"]=" \3\\\\\\n"\\/p 13445t cont 13446s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13447t cont 13448d 13449:cont 13450n 13451s/.\{148\}/&'"$ac_delim"'/g 13452t clear 13453:clear 13454s/\\$// 13455t bsnlc 13456s/["\\]/\\&/g; s/^/"/; s/$/"/p 13457d 13458:bsnlc 13459s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13460b cont 13461' <confdefs.h | sed ' 13462s/'"$ac_delim"'/"\\\ 13463"/g' >>$CONFIG_STATUS || ac_write_fail=1 13464 13465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13466 for (key in D) D_is_set[key] = 1 13467 FS = "" 13468} 13469/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13470 line = \$ 0 13471 split(line, arg, " ") 13472 if (arg[1] == "#") { 13473 defundef = arg[2] 13474 mac1 = arg[3] 13475 } else { 13476 defundef = substr(arg[1], 2) 13477 mac1 = arg[2] 13478 } 13479 split(mac1, mac2, "(") #) 13480 macro = mac2[1] 13481 prefix = substr(line, 1, index(line, defundef) - 1) 13482 if (D_is_set[macro]) { 13483 # Preserve the white space surrounding the "#". 13484 print prefix "define", macro P[macro] D[macro] 13485 next 13486 } else { 13487 # Replace #undef with comments. This is necessary, for example, 13488 # in the case of _POSIX_SOURCE, which is predefined and required 13489 # on some systems where configure will not decide to define it. 13490 if (defundef == "undef") { 13491 print "/*", prefix defundef, macro, "*/" 13492 next 13493 } 13494 } 13495} 13496{ print } 13497_ACAWK 13498_ACEOF 13499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13500 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13501fi # test -n "$CONFIG_HEADERS" 13502 13503 13504eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13505shift 13506for ac_tag 13507do 13508 case $ac_tag in 13509 :[FHLC]) ac_mode=$ac_tag; continue;; 13510 esac 13511 case $ac_mode$ac_tag in 13512 :[FHL]*:*);; 13513 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13514 :[FH]-) ac_tag=-:-;; 13515 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13516 esac 13517 ac_save_IFS=$IFS 13518 IFS=: 13519 set x $ac_tag 13520 IFS=$ac_save_IFS 13521 shift 13522 ac_file=$1 13523 shift 13524 13525 case $ac_mode in 13526 :L) ac_source=$1;; 13527 :[FH]) 13528 ac_file_inputs= 13529 for ac_f 13530 do 13531 case $ac_f in 13532 -) ac_f="$tmp/stdin";; 13533 *) # Look for the file first in the build tree, then in the source tree 13534 # (if the path is not absolute). The absolute path cannot be DOS-style, 13535 # because $ac_f cannot contain `:'. 13536 test -f "$ac_f" || 13537 case $ac_f in 13538 [\\/$]*) false;; 13539 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13540 esac || 13541 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13542 esac 13543 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13544 as_fn_append ac_file_inputs " '$ac_f'" 13545 done 13546 13547 # Let's still pretend it is `configure' which instantiates (i.e., don't 13548 # use $as_me), people would be surprised to read: 13549 # /* config.h. Generated by config.status. */ 13550 configure_input='Generated from '` 13551 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13552 `' by configure.' 13553 if test x"$ac_file" != x-; then 13554 configure_input="$ac_file. $configure_input" 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13556$as_echo "$as_me: creating $ac_file" >&6;} 13557 fi 13558 # Neutralize special characters interpreted by sed in replacement strings. 13559 case $configure_input in #( 13560 *\&* | *\|* | *\\* ) 13561 ac_sed_conf_input=`$as_echo "$configure_input" | 13562 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13563 *) ac_sed_conf_input=$configure_input;; 13564 esac 13565 13566 case $ac_tag in 13567 *:-:* | *:-) cat >"$tmp/stdin" \ 13568 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13569 esac 13570 ;; 13571 esac 13572 13573 ac_dir=`$as_dirname -- "$ac_file" || 13574$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13575 X"$ac_file" : 'X\(//\)[^/]' \| \ 13576 X"$ac_file" : 'X\(//\)$' \| \ 13577 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13578$as_echo X"$ac_file" | 13579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13580 s//\1/ 13581 q 13582 } 13583 /^X\(\/\/\)[^/].*/{ 13584 s//\1/ 13585 q 13586 } 13587 /^X\(\/\/\)$/{ 13588 s//\1/ 13589 q 13590 } 13591 /^X\(\/\).*/{ 13592 s//\1/ 13593 q 13594 } 13595 s/.*/./; q'` 13596 as_dir="$ac_dir"; as_fn_mkdir_p 13597 ac_builddir=. 13598 13599case "$ac_dir" in 13600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13601*) 13602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13603 # A ".." for each directory in $ac_dir_suffix. 13604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13605 case $ac_top_builddir_sub in 13606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13608 esac ;; 13609esac 13610ac_abs_top_builddir=$ac_pwd 13611ac_abs_builddir=$ac_pwd$ac_dir_suffix 13612# for backward compatibility: 13613ac_top_builddir=$ac_top_build_prefix 13614 13615case $srcdir in 13616 .) # We are building in place. 13617 ac_srcdir=. 13618 ac_top_srcdir=$ac_top_builddir_sub 13619 ac_abs_top_srcdir=$ac_pwd ;; 13620 [\\/]* | ?:[\\/]* ) # Absolute name. 13621 ac_srcdir=$srcdir$ac_dir_suffix; 13622 ac_top_srcdir=$srcdir 13623 ac_abs_top_srcdir=$srcdir ;; 13624 *) # Relative name. 13625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13626 ac_top_srcdir=$ac_top_build_prefix$srcdir 13627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13628esac 13629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13630 13631 13632 case $ac_mode in 13633 :F) 13634 # 13635 # CONFIG_FILE 13636 # 13637 13638 case $INSTALL in 13639 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13640 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13641 esac 13642 ac_MKDIR_P=$MKDIR_P 13643 case $MKDIR_P in 13644 [\\/$]* | ?:[\\/]* ) ;; 13645 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13646 esac 13647_ACEOF 13648 13649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13650# If the template does not know about datarootdir, expand it. 13651# FIXME: This hack should be removed a few years after 2.60. 13652ac_datarootdir_hack=; ac_datarootdir_seen= 13653ac_sed_dataroot=' 13654/datarootdir/ { 13655 p 13656 q 13657} 13658/@datadir@/p 13659/@docdir@/p 13660/@infodir@/p 13661/@localedir@/p 13662/@mandir@/p' 13663case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13664*datarootdir*) ac_datarootdir_seen=yes;; 13665*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13667$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13668_ACEOF 13669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13670 ac_datarootdir_hack=' 13671 s&@datadir@&$datadir&g 13672 s&@docdir@&$docdir&g 13673 s&@infodir@&$infodir&g 13674 s&@localedir@&$localedir&g 13675 s&@mandir@&$mandir&g 13676 s&\\\${datarootdir}&$datarootdir&g' ;; 13677esac 13678_ACEOF 13679 13680# Neutralize VPATH when `$srcdir' = `.'. 13681# Shell code in configure.ac might set extrasub. 13682# FIXME: do we really want to maintain this feature? 13683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13684ac_sed_extra="$ac_vpsub 13685$extrasub 13686_ACEOF 13687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13688:t 13689/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13690s|@configure_input@|$ac_sed_conf_input|;t t 13691s&@top_builddir@&$ac_top_builddir_sub&;t t 13692s&@top_build_prefix@&$ac_top_build_prefix&;t t 13693s&@srcdir@&$ac_srcdir&;t t 13694s&@abs_srcdir@&$ac_abs_srcdir&;t t 13695s&@top_srcdir@&$ac_top_srcdir&;t t 13696s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13697s&@builddir@&$ac_builddir&;t t 13698s&@abs_builddir@&$ac_abs_builddir&;t t 13699s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13700s&@INSTALL@&$ac_INSTALL&;t t 13701s&@MKDIR_P@&$ac_MKDIR_P&;t t 13702$ac_datarootdir_hack 13703" 13704eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13705 || as_fn_error "could not create $ac_file" "$LINENO" 5 13706 13707test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13708 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13709 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13711which seems to be undefined. Please make sure it is defined." >&5 13712$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13713which seems to be undefined. Please make sure it is defined." >&2;} 13714 13715 rm -f "$tmp/stdin" 13716 case $ac_file in 13717 -) cat "$tmp/out" && rm -f "$tmp/out";; 13718 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13719 esac \ 13720 || as_fn_error "could not create $ac_file" "$LINENO" 5 13721 ;; 13722 :H) 13723 # 13724 # CONFIG_HEADER 13725 # 13726 if test x"$ac_file" != x-; then 13727 { 13728 $as_echo "/* $configure_input */" \ 13729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13730 } >"$tmp/config.h" \ 13731 || as_fn_error "could not create $ac_file" "$LINENO" 5 13732 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13734$as_echo "$as_me: $ac_file is unchanged" >&6;} 13735 else 13736 rm -f "$ac_file" 13737 mv "$tmp/config.h" "$ac_file" \ 13738 || as_fn_error "could not create $ac_file" "$LINENO" 5 13739 fi 13740 else 13741 $as_echo "/* $configure_input */" \ 13742 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13743 || as_fn_error "could not create -" "$LINENO" 5 13744 fi 13745# Compute "$ac_file"'s index in $config_headers. 13746_am_arg="$ac_file" 13747_am_stamp_count=1 13748for _am_header in $config_headers :; do 13749 case $_am_header in 13750 $_am_arg | $_am_arg:* ) 13751 break ;; 13752 * ) 13753 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13754 esac 13755done 13756echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13757$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13758 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13759 X"$_am_arg" : 'X\(//\)$' \| \ 13760 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13761$as_echo X"$_am_arg" | 13762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13763 s//\1/ 13764 q 13765 } 13766 /^X\(\/\/\)[^/].*/{ 13767 s//\1/ 13768 q 13769 } 13770 /^X\(\/\/\)$/{ 13771 s//\1/ 13772 q 13773 } 13774 /^X\(\/\).*/{ 13775 s//\1/ 13776 q 13777 } 13778 s/.*/./; q'`/stamp-h$_am_stamp_count 13779 ;; 13780 13781 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13782$as_echo "$as_me: executing $ac_file commands" >&6;} 13783 ;; 13784 esac 13785 13786 13787 case $ac_file$ac_mode in 13788 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13789 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13790 # are listed without --file. Let's play safe and only enable the eval 13791 # if we detect the quoting. 13792 case $CONFIG_FILES in 13793 *\'*) eval set x "$CONFIG_FILES" ;; 13794 *) set x $CONFIG_FILES ;; 13795 esac 13796 shift 13797 for mf 13798 do 13799 # Strip MF so we end up with the name of the file. 13800 mf=`echo "$mf" | sed -e 's/:.*$//'` 13801 # Check whether this is an Automake generated Makefile or not. 13802 # We used to match only the files named `Makefile.in', but 13803 # some people rename them; so instead we look at the file content. 13804 # Grep'ing the first line is not enough: some people post-process 13805 # each Makefile.in and add a new line on top of each file to say so. 13806 # Grep'ing the whole file is not good either: AIX grep has a line 13807 # limit of 2048, but all sed's we know have understand at least 4000. 13808 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13809 dirpart=`$as_dirname -- "$mf" || 13810$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13811 X"$mf" : 'X\(//\)[^/]' \| \ 13812 X"$mf" : 'X\(//\)$' \| \ 13813 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13814$as_echo X"$mf" | 13815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13816 s//\1/ 13817 q 13818 } 13819 /^X\(\/\/\)[^/].*/{ 13820 s//\1/ 13821 q 13822 } 13823 /^X\(\/\/\)$/{ 13824 s//\1/ 13825 q 13826 } 13827 /^X\(\/\).*/{ 13828 s//\1/ 13829 q 13830 } 13831 s/.*/./; q'` 13832 else 13833 continue 13834 fi 13835 # Extract the definition of DEPDIR, am__include, and am__quote 13836 # from the Makefile without running `make'. 13837 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13838 test -z "$DEPDIR" && continue 13839 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13840 test -z "am__include" && continue 13841 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13842 # When using ansi2knr, U may be empty or an underscore; expand it 13843 U=`sed -n 's/^U = //p' < "$mf"` 13844 # Find all dependency output files, they are included files with 13845 # $(DEPDIR) in their names. We invoke sed twice because it is the 13846 # simplest approach to changing $(DEPDIR) to its actual value in the 13847 # expansion. 13848 for file in `sed -n " 13849 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13850 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13851 # Make sure the directory exists. 13852 test -f "$dirpart/$file" && continue 13853 fdir=`$as_dirname -- "$file" || 13854$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13855 X"$file" : 'X\(//\)[^/]' \| \ 13856 X"$file" : 'X\(//\)$' \| \ 13857 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13858$as_echo X"$file" | 13859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13860 s//\1/ 13861 q 13862 } 13863 /^X\(\/\/\)[^/].*/{ 13864 s//\1/ 13865 q 13866 } 13867 /^X\(\/\/\)$/{ 13868 s//\1/ 13869 q 13870 } 13871 /^X\(\/\).*/{ 13872 s//\1/ 13873 q 13874 } 13875 s/.*/./; q'` 13876 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13877 # echo "creating $dirpart/$file" 13878 echo '# dummy' > "$dirpart/$file" 13879 done 13880 done 13881} 13882 ;; 13883 "libtool":C) 13884 13885 # See if we are running on zsh, and set the options which allow our 13886 # commands through without removal of \ escapes. 13887 if test -n "${ZSH_VERSION+set}" ; then 13888 setopt NO_GLOB_SUBST 13889 fi 13890 13891 cfgfile="${ofile}T" 13892 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13893 $RM "$cfgfile" 13894 13895 cat <<_LT_EOF >> "$cfgfile" 13896#! $SHELL 13897 13898# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13899# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13900# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13901# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13902# 13903# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13904# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 13905# Written by Gordon Matzigkeit, 1996 13906# 13907# This file is part of GNU Libtool. 13908# 13909# GNU Libtool is free software; you can redistribute it and/or 13910# modify it under the terms of the GNU General Public License as 13911# published by the Free Software Foundation; either version 2 of 13912# the License, or (at your option) any later version. 13913# 13914# As a special exception to the GNU General Public License, 13915# if you distribute this file as part of a program or library that 13916# is built using GNU Libtool, you may include this file under the 13917# same distribution terms that you use for the rest of that program. 13918# 13919# GNU Libtool is distributed in the hope that it will be useful, 13920# but WITHOUT ANY WARRANTY; without even the implied warranty of 13921# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13922# GNU General Public License for more details. 13923# 13924# You should have received a copy of the GNU General Public License 13925# along with GNU Libtool; see the file COPYING. If not, a copy 13926# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13927# obtained by writing to the Free Software Foundation, Inc., 13928# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13929 13930 13931# The names of the tagged configurations supported by this script. 13932available_tags="" 13933 13934# ### BEGIN LIBTOOL CONFIG 13935 13936# Which release of libtool.m4 was used? 13937macro_version=$macro_version 13938macro_revision=$macro_revision 13939 13940# Whether or not to build shared libraries. 13941build_libtool_libs=$enable_shared 13942 13943# Whether or not to build static libraries. 13944build_old_libs=$enable_static 13945 13946# What type of objects to build. 13947pic_mode=$pic_mode 13948 13949# Whether or not to optimize for fast installation. 13950fast_install=$enable_fast_install 13951 13952# Shell to use when invoking shell scripts. 13953SHELL=$lt_SHELL 13954 13955# An echo program that protects backslashes. 13956ECHO=$lt_ECHO 13957 13958# The host system. 13959host_alias=$host_alias 13960host=$host 13961host_os=$host_os 13962 13963# The build system. 13964build_alias=$build_alias 13965build=$build 13966build_os=$build_os 13967 13968# A sed program that does not truncate output. 13969SED=$lt_SED 13970 13971# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13972Xsed="\$SED -e 1s/^X//" 13973 13974# A grep program that handles long lines. 13975GREP=$lt_GREP 13976 13977# An ERE matcher. 13978EGREP=$lt_EGREP 13979 13980# A literal string matcher. 13981FGREP=$lt_FGREP 13982 13983# A BSD- or MS-compatible name lister. 13984NM=$lt_NM 13985 13986# Whether we need soft or hard links. 13987LN_S=$lt_LN_S 13988 13989# What is the maximum length of a command? 13990max_cmd_len=$max_cmd_len 13991 13992# Object file suffix (normally "o"). 13993objext=$ac_objext 13994 13995# Executable file suffix (normally ""). 13996exeext=$exeext 13997 13998# whether the shell understands "unset". 13999lt_unset=$lt_unset 14000 14001# turn spaces into newlines. 14002SP2NL=$lt_lt_SP2NL 14003 14004# turn newlines into spaces. 14005NL2SP=$lt_lt_NL2SP 14006 14007# An object symbol dumper. 14008OBJDUMP=$lt_OBJDUMP 14009 14010# Method to check whether dependent libraries are shared objects. 14011deplibs_check_method=$lt_deplibs_check_method 14012 14013# Command to use when deplibs_check_method == "file_magic". 14014file_magic_cmd=$lt_file_magic_cmd 14015 14016# The archiver. 14017AR=$lt_AR 14018AR_FLAGS=$lt_AR_FLAGS 14019 14020# A symbol stripping program. 14021STRIP=$lt_STRIP 14022 14023# Commands used to install an old-style archive. 14024RANLIB=$lt_RANLIB 14025old_postinstall_cmds=$lt_old_postinstall_cmds 14026old_postuninstall_cmds=$lt_old_postuninstall_cmds 14027 14028# Whether to use a lock for old archive extraction. 14029lock_old_archive_extraction=$lock_old_archive_extraction 14030 14031# A C compiler. 14032LTCC=$lt_CC 14033 14034# LTCC compiler flags. 14035LTCFLAGS=$lt_CFLAGS 14036 14037# Take the output of nm and produce a listing of raw symbols and C names. 14038global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14039 14040# Transform the output of nm in a proper C declaration. 14041global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14042 14043# Transform the output of nm in a C name address pair. 14044global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14045 14046# Transform the output of nm in a C name address pair when lib prefix is needed. 14047global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14048 14049# The name of the directory that contains temporary libtool files. 14050objdir=$objdir 14051 14052# Used to examine libraries when file_magic_cmd begins with "file". 14053MAGIC_CMD=$MAGIC_CMD 14054 14055# Must we lock files when doing compilation? 14056need_locks=$lt_need_locks 14057 14058# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14059DSYMUTIL=$lt_DSYMUTIL 14060 14061# Tool to change global to local symbols on Mac OS X. 14062NMEDIT=$lt_NMEDIT 14063 14064# Tool to manipulate fat objects and archives on Mac OS X. 14065LIPO=$lt_LIPO 14066 14067# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14068OTOOL=$lt_OTOOL 14069 14070# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14071OTOOL64=$lt_OTOOL64 14072 14073# Old archive suffix (normally "a"). 14074libext=$libext 14075 14076# Shared library suffix (normally ".so"). 14077shrext_cmds=$lt_shrext_cmds 14078 14079# The commands to extract the exported symbol list from a shared archive. 14080extract_expsyms_cmds=$lt_extract_expsyms_cmds 14081 14082# Variables whose values should be saved in libtool wrapper scripts and 14083# restored at link time. 14084variables_saved_for_relink=$lt_variables_saved_for_relink 14085 14086# Do we need the "lib" prefix for modules? 14087need_lib_prefix=$need_lib_prefix 14088 14089# Do we need a version for libraries? 14090need_version=$need_version 14091 14092# Library versioning type. 14093version_type=$version_type 14094 14095# Shared library runtime path variable. 14096runpath_var=$runpath_var 14097 14098# Shared library path variable. 14099shlibpath_var=$shlibpath_var 14100 14101# Is shlibpath searched before the hard-coded library search path? 14102shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14103 14104# Format of library name prefix. 14105libname_spec=$lt_libname_spec 14106 14107# List of archive names. First name is the real one, the rest are links. 14108# The last name is the one that the linker finds with -lNAME 14109library_names_spec=$lt_library_names_spec 14110 14111# The coded name of the library, if different from the real name. 14112soname_spec=$lt_soname_spec 14113 14114# Permission mode override for installation of shared libraries. 14115install_override_mode=$lt_install_override_mode 14116 14117# Command to use after installation of a shared archive. 14118postinstall_cmds=$lt_postinstall_cmds 14119 14120# Command to use after uninstallation of a shared archive. 14121postuninstall_cmds=$lt_postuninstall_cmds 14122 14123# Commands used to finish a libtool library installation in a directory. 14124finish_cmds=$lt_finish_cmds 14125 14126# As "finish_cmds", except a single script fragment to be evaled but 14127# not shown. 14128finish_eval=$lt_finish_eval 14129 14130# Whether we should hardcode library paths into libraries. 14131hardcode_into_libs=$hardcode_into_libs 14132 14133# Compile-time system search path for libraries. 14134sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14135 14136# Run-time system search path for libraries. 14137sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14138 14139# Whether dlopen is supported. 14140dlopen_support=$enable_dlopen 14141 14142# Whether dlopen of programs is supported. 14143dlopen_self=$enable_dlopen_self 14144 14145# Whether dlopen of statically linked programs is supported. 14146dlopen_self_static=$enable_dlopen_self_static 14147 14148# Commands to strip libraries. 14149old_striplib=$lt_old_striplib 14150striplib=$lt_striplib 14151 14152 14153# The linker used to build libraries. 14154LD=$lt_LD 14155 14156# How to create reloadable object files. 14157reload_flag=$lt_reload_flag 14158reload_cmds=$lt_reload_cmds 14159 14160# Commands used to build an old-style archive. 14161old_archive_cmds=$lt_old_archive_cmds 14162 14163# A language specific compiler. 14164CC=$lt_compiler 14165 14166# Is the compiler the GNU compiler? 14167with_gcc=$GCC 14168 14169# Compiler flag to turn off builtin functions. 14170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14171 14172# How to pass a linker flag through the compiler. 14173wl=$lt_lt_prog_compiler_wl 14174 14175# Additional compiler flags for building library objects. 14176pic_flag=$lt_lt_prog_compiler_pic 14177 14178# Compiler flag to prevent dynamic linking. 14179link_static_flag=$lt_lt_prog_compiler_static 14180 14181# Does compiler simultaneously support -c and -o options? 14182compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14183 14184# Whether or not to add -lc for building shared libraries. 14185build_libtool_need_lc=$archive_cmds_need_lc 14186 14187# Whether or not to disallow shared libs when runtime libs are static. 14188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14189 14190# Compiler flag to allow reflexive dlopens. 14191export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14192 14193# Compiler flag to generate shared objects directly from archives. 14194whole_archive_flag_spec=$lt_whole_archive_flag_spec 14195 14196# Whether the compiler copes with passing no objects directly. 14197compiler_needs_object=$lt_compiler_needs_object 14198 14199# Create an old-style archive from a shared archive. 14200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14201 14202# Create a temporary old-style archive to link instead of a shared archive. 14203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14204 14205# Commands used to build a shared archive. 14206archive_cmds=$lt_archive_cmds 14207archive_expsym_cmds=$lt_archive_expsym_cmds 14208 14209# Commands used to build a loadable module if different from building 14210# a shared archive. 14211module_cmds=$lt_module_cmds 14212module_expsym_cmds=$lt_module_expsym_cmds 14213 14214# Whether we are building with GNU ld or not. 14215with_gnu_ld=$lt_with_gnu_ld 14216 14217# Flag that allows shared libraries with undefined symbols to be built. 14218allow_undefined_flag=$lt_allow_undefined_flag 14219 14220# Flag that enforces no undefined symbols. 14221no_undefined_flag=$lt_no_undefined_flag 14222 14223# Flag to hardcode \$libdir into a binary during linking. 14224# This must work even if \$libdir does not exist 14225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14226 14227# If ld is used when linking, flag to hardcode \$libdir into a binary 14228# during linking. This must work even if \$libdir does not exist. 14229hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14230 14231# Whether we need a single "-rpath" flag with a separated argument. 14232hardcode_libdir_separator=$lt_hardcode_libdir_separator 14233 14234# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14235# DIR into the resulting binary. 14236hardcode_direct=$hardcode_direct 14237 14238# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14239# DIR into the resulting binary and the resulting library dependency is 14240# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14241# library is relocated. 14242hardcode_direct_absolute=$hardcode_direct_absolute 14243 14244# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14245# into the resulting binary. 14246hardcode_minus_L=$hardcode_minus_L 14247 14248# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14249# into the resulting binary. 14250hardcode_shlibpath_var=$hardcode_shlibpath_var 14251 14252# Set to "yes" if building a shared library automatically hardcodes DIR 14253# into the library and all subsequent libraries and executables linked 14254# against it. 14255hardcode_automatic=$hardcode_automatic 14256 14257# Set to yes if linker adds runtime paths of dependent libraries 14258# to runtime path list. 14259inherit_rpath=$inherit_rpath 14260 14261# Whether libtool must link a program against all its dependency libraries. 14262link_all_deplibs=$link_all_deplibs 14263 14264# Fix the shell variable \$srcfile for the compiler. 14265fix_srcfile_path=$lt_fix_srcfile_path 14266 14267# Set to "yes" if exported symbols are required. 14268always_export_symbols=$always_export_symbols 14269 14270# The commands to list exported symbols. 14271export_symbols_cmds=$lt_export_symbols_cmds 14272 14273# Symbols that should not be listed in the preloaded symbols. 14274exclude_expsyms=$lt_exclude_expsyms 14275 14276# Symbols that must always be exported. 14277include_expsyms=$lt_include_expsyms 14278 14279# Commands necessary for linking programs (against libraries) with templates. 14280prelink_cmds=$lt_prelink_cmds 14281 14282# Specify filename containing input files. 14283file_list_spec=$lt_file_list_spec 14284 14285# How to hardcode a shared library path into an executable. 14286hardcode_action=$hardcode_action 14287 14288# ### END LIBTOOL CONFIG 14289 14290_LT_EOF 14291 14292 case $host_os in 14293 aix3*) 14294 cat <<\_LT_EOF >> "$cfgfile" 14295# AIX sometimes has problems with the GCC collect2 program. For some 14296# reason, if we set the COLLECT_NAMES environment variable, the problems 14297# vanish in a puff of smoke. 14298if test "X${COLLECT_NAMES+set}" != Xset; then 14299 COLLECT_NAMES= 14300 export COLLECT_NAMES 14301fi 14302_LT_EOF 14303 ;; 14304 esac 14305 14306 14307ltmain="$ac_aux_dir/ltmain.sh" 14308 14309 14310 # We use sed instead of cat because bash on DJGPP gets confused if 14311 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14312 # text mode, it properly converts lines to CR/LF. This bash problem 14313 # is reportedly fixed, but why not run on old versions too? 14314 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14315 || (rm -f "$cfgfile"; exit 1) 14316 14317 case $xsi_shell in 14318 yes) 14319 cat << \_LT_EOF >> "$cfgfile" 14320 14321# func_dirname file append nondir_replacement 14322# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14323# otherwise set result to NONDIR_REPLACEMENT. 14324func_dirname () 14325{ 14326 case ${1} in 14327 */*) func_dirname_result="${1%/*}${2}" ;; 14328 * ) func_dirname_result="${3}" ;; 14329 esac 14330} 14331 14332# func_basename file 14333func_basename () 14334{ 14335 func_basename_result="${1##*/}" 14336} 14337 14338# func_dirname_and_basename file append nondir_replacement 14339# perform func_basename and func_dirname in a single function 14340# call: 14341# dirname: Compute the dirname of FILE. If nonempty, 14342# add APPEND to the result, otherwise set result 14343# to NONDIR_REPLACEMENT. 14344# value returned in "$func_dirname_result" 14345# basename: Compute filename of FILE. 14346# value retuned in "$func_basename_result" 14347# Implementation must be kept synchronized with func_dirname 14348# and func_basename. For efficiency, we do not delegate to 14349# those functions but instead duplicate the functionality here. 14350func_dirname_and_basename () 14351{ 14352 case ${1} in 14353 */*) func_dirname_result="${1%/*}${2}" ;; 14354 * ) func_dirname_result="${3}" ;; 14355 esac 14356 func_basename_result="${1##*/}" 14357} 14358 14359# func_stripname prefix suffix name 14360# strip PREFIX and SUFFIX off of NAME. 14361# PREFIX and SUFFIX must not contain globbing or regex special 14362# characters, hashes, percent signs, but SUFFIX may contain a leading 14363# dot (in which case that matches only a dot). 14364func_stripname () 14365{ 14366 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14367 # positional parameters, so assign one to ordinary parameter first. 14368 func_stripname_result=${3} 14369 func_stripname_result=${func_stripname_result#"${1}"} 14370 func_stripname_result=${func_stripname_result%"${2}"} 14371} 14372 14373# func_opt_split 14374func_opt_split () 14375{ 14376 func_opt_split_opt=${1%%=*} 14377 func_opt_split_arg=${1#*=} 14378} 14379 14380# func_lo2o object 14381func_lo2o () 14382{ 14383 case ${1} in 14384 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14385 *) func_lo2o_result=${1} ;; 14386 esac 14387} 14388 14389# func_xform libobj-or-source 14390func_xform () 14391{ 14392 func_xform_result=${1%.*}.lo 14393} 14394 14395# func_arith arithmetic-term... 14396func_arith () 14397{ 14398 func_arith_result=$(( $* )) 14399} 14400 14401# func_len string 14402# STRING may not start with a hyphen. 14403func_len () 14404{ 14405 func_len_result=${#1} 14406} 14407 14408_LT_EOF 14409 ;; 14410 *) # Bourne compatible functions. 14411 cat << \_LT_EOF >> "$cfgfile" 14412 14413# func_dirname file append nondir_replacement 14414# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14415# otherwise set result to NONDIR_REPLACEMENT. 14416func_dirname () 14417{ 14418 # Extract subdirectory from the argument. 14419 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 14420 if test "X$func_dirname_result" = "X${1}"; then 14421 func_dirname_result="${3}" 14422 else 14423 func_dirname_result="$func_dirname_result${2}" 14424 fi 14425} 14426 14427# func_basename file 14428func_basename () 14429{ 14430 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 14431} 14432 14433 14434# func_stripname prefix suffix name 14435# strip PREFIX and SUFFIX off of NAME. 14436# PREFIX and SUFFIX must not contain globbing or regex special 14437# characters, hashes, percent signs, but SUFFIX may contain a leading 14438# dot (in which case that matches only a dot). 14439# func_strip_suffix prefix name 14440func_stripname () 14441{ 14442 case ${2} in 14443 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14444 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14445 esac 14446} 14447 14448# sed scripts: 14449my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14450my_sed_long_arg='1s/^-[^=]*=//' 14451 14452# func_opt_split 14453func_opt_split () 14454{ 14455 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 14456 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 14457} 14458 14459# func_lo2o object 14460func_lo2o () 14461{ 14462 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 14463} 14464 14465# func_xform libobj-or-source 14466func_xform () 14467{ 14468 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 14469} 14470 14471# func_arith arithmetic-term... 14472func_arith () 14473{ 14474 func_arith_result=`expr "$@"` 14475} 14476 14477# func_len string 14478# STRING may not start with a hyphen. 14479func_len () 14480{ 14481 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14482} 14483 14484_LT_EOF 14485esac 14486 14487case $lt_shell_append in 14488 yes) 14489 cat << \_LT_EOF >> "$cfgfile" 14490 14491# func_append var value 14492# Append VALUE to the end of shell variable VAR. 14493func_append () 14494{ 14495 eval "$1+=\$2" 14496} 14497_LT_EOF 14498 ;; 14499 *) 14500 cat << \_LT_EOF >> "$cfgfile" 14501 14502# func_append var value 14503# Append VALUE to the end of shell variable VAR. 14504func_append () 14505{ 14506 eval "$1=\$$1\$2" 14507} 14508 14509_LT_EOF 14510 ;; 14511 esac 14512 14513 14514 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14515 || (rm -f "$cfgfile"; exit 1) 14516 14517 mv -f "$cfgfile" "$ofile" || 14518 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14519 chmod +x "$ofile" 14520 14521 ;; 14522 "default-1":C) 14523 for ac_file in $CONFIG_FILES; do 14524 # Support "outfile[:infile[:infile...]]" 14525 case "$ac_file" in 14526 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 14527 esac 14528 # PO directories have a Makefile.in generated from Makefile.in.in. 14529 case "$ac_file" in */Makefile.in) 14530 # Adjust a relative srcdir. 14531 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 14532 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 14533 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 14534 # In autoconf-2.13 it is called $ac_given_srcdir. 14535 # In autoconf-2.50 it is called $srcdir. 14536 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 14537 case "$ac_given_srcdir" in 14538 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 14539 /*) top_srcdir="$ac_given_srcdir" ;; 14540 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 14541 esac 14542 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 14543 rm -f "$ac_dir/POTFILES" 14544 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 14545 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 14546 POMAKEFILEDEPS="POTFILES.in" 14547 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 14548 # on $ac_dir but don't depend on user-specified configuration 14549 # parameters. 14550 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 14551 # The LINGUAS file contains the set of available languages. 14552 if test -n "$OBSOLETE_ALL_LINGUAS"; then 14553 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 14554 fi 14555 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 14556 # Hide the ALL_LINGUAS assigment from automake. 14557 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 14558 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 14559 else 14560 # The set of available languages was given in configure.ac. 14561 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 14562 fi 14563 case "$ac_given_srcdir" in 14564 .) srcdirpre= ;; 14565 *) srcdirpre='$(srcdir)/' ;; 14566 esac 14567 POFILES= 14568 GMOFILES= 14569 UPDATEPOFILES= 14570 DUMMYPOFILES= 14571 for lang in $ALL_LINGUAS; do 14572 POFILES="$POFILES $srcdirpre$lang.po" 14573 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 14574 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 14575 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 14576 done 14577 # CATALOGS depends on both $ac_dir and the user's LINGUAS 14578 # environment variable. 14579 INST_LINGUAS= 14580 if test -n "$ALL_LINGUAS"; then 14581 for presentlang in $ALL_LINGUAS; do 14582 useit=no 14583 if test "%UNSET%" != "$LINGUAS"; then 14584 desiredlanguages="$LINGUAS" 14585 else 14586 desiredlanguages="$ALL_LINGUAS" 14587 fi 14588 for desiredlang in $desiredlanguages; do 14589 # Use the presentlang catalog if desiredlang is 14590 # a. equal to presentlang, or 14591 # b. a variant of presentlang (because in this case, 14592 # presentlang can be used as a fallback for messages 14593 # which are not translated in the desiredlang catalog). 14594 case "$desiredlang" in 14595 "$presentlang"*) useit=yes;; 14596 esac 14597 done 14598 if test $useit = yes; then 14599 INST_LINGUAS="$INST_LINGUAS $presentlang" 14600 fi 14601 done 14602 fi 14603 CATALOGS= 14604 if test -n "$INST_LINGUAS"; then 14605 for lang in $INST_LINGUAS; do 14606 CATALOGS="$CATALOGS $lang.gmo" 14607 done 14608 fi 14609 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 14610 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" 14611 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 14612 if test -f "$f"; then 14613 case "$f" in 14614 *.orig | *.bak | *~) ;; 14615 *) cat "$f" >> "$ac_dir/Makefile" ;; 14616 esac 14617 fi 14618 done 14619 fi 14620 ;; 14621 esac 14622 done ;; 14623 14624 esac 14625done # for ac_tag 14626 14627 14628as_fn_exit 0 14629_ACEOF 14630ac_clean_files=$ac_clean_files_save 14631 14632test $ac_write_fail = 0 || 14633 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 14634 14635 14636# configure is writing to config.log, and then calls config.status. 14637# config.status does its own redirection, appending to config.log. 14638# Unfortunately, on DOS this fails, as config.log is still kept open 14639# by configure, so config.status won't be able to write to it; its 14640# output is simply discarded. So we exec the FD to /dev/null, 14641# effectively closing config.log, so it can be properly (re)opened and 14642# appended to by config.status. When coming back to configure, we 14643# need to make the FD available again. 14644if test "$no_create" != yes; then 14645 ac_cs_success=: 14646 ac_config_status_args= 14647 test "$silent" = yes && 14648 ac_config_status_args="$ac_config_status_args --quiet" 14649 exec 5>/dev/null 14650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14651 exec 5>>config.log 14652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14653 # would make configure fail if this is the last instruction. 14654 $ac_cs_success || as_fn_exit $? 14655fi 14656if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14658$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14659fi 14660 14661