1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ldapaddressbook 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: courier-users@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='ldapaddressbook' 592PACKAGE_TARNAME='ldapaddressbook' 593PACKAGE_VERSION='0.10' 594PACKAGE_STRING='ldapaddressbook 0.10' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="Makefile.am" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639HAVE_SGML_FALSE 640HAVE_SGML_TRUE 641OPENLDAP_LIBS 642HAVE_OPENLDAP_FALSE 643HAVE_OPENLDAP_TRUE 644LT_SYS_LIBRARY_PATH 645OTOOL64 646OTOOL 647LIPO 648NMEDIT 649DSYMUTIL 650MANIFEST_TOOL 651RANLIB 652ac_ct_AR 653AR 654DLLTOOL 655OBJDUMP 656LN_S 657NM 658ac_ct_DUMPBIN 659DUMPBIN 660LD 661FGREP 662SED 663host_os 664host_vendor 665host_cpu 666host 667build_os 668build_vendor 669build_cpu 670build 671LIBTOOL 672EGREP 673GREP 674CPP 675am__fastdepCC_FALSE 676am__fastdepCC_TRUE 677CCDEPMODE 678am__nodep 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__include 683DEPDIR 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691AM_BACKSLASH 692AM_DEFAULT_VERBOSITY 693AM_DEFAULT_V 694AM_V 695am__untar 696am__tar 697AMTAR 698am__leading_dot 699SET_MAKE 700AWK 701mkdir_p 702MKDIR_P 703INSTALL_STRIP_PROGRAM 704STRIP 705install_sh 706MAKEINFO 707AUTOHEADER 708AUTOMAKE 709AUTOCONF 710ACLOCAL 711VERSION 712PACKAGE 713CYGPATH_W 714am__isrc 715INSTALL_DATA 716INSTALL_SCRIPT 717INSTALL_PROGRAM 718target_alias 719host_alias 720build_alias 721LIBS 722ECHO_T 723ECHO_N 724ECHO_C 725DEFS 726mandir 727localedir 728libdir 729psdir 730pdfdir 731dvidir 732htmldir 733infodir 734docdir 735oldincludedir 736includedir 737localstatedir 738sharedstatedir 739sysconfdir 740datadir 741datarootdir 742libexecdir 743sbindir 744bindir 745program_transform_name 746prefix 747exec_prefix 748PACKAGE_URL 749PACKAGE_BUGREPORT 750PACKAGE_STRING 751PACKAGE_VERSION 752PACKAGE_TARNAME 753PACKAGE_NAME 754PATH_SEPARATOR 755SHELL 756am__quote' 757ac_subst_files='' 758ac_user_opts=' 759enable_option_checking 760enable_silent_rules 761enable_dependency_tracking 762enable_shared 763enable_static 764with_pic 765enable_fast_install 766with_aix_soname 767with_gnu_ld 768with_sysroot 769enable_libtool_lock 770with_ldapaddressbook 771enable_largefile 772' 773 ac_precious_vars='build_alias 774host_alias 775target_alias 776CC 777CFLAGS 778LDFLAGS 779LIBS 780CPPFLAGS 781CPP 782LT_SYS_LIBRARY_PATH' 783 784 785# Initialize some variables set by options. 786ac_init_help= 787ac_init_version=false 788ac_unrecognized_opts= 789ac_unrecognized_sep= 790# The variables have the same names as the options, with 791# dashes changed to underlines. 792cache_file=/dev/null 793exec_prefix=NONE 794no_create= 795no_recursion= 796prefix=NONE 797program_prefix=NONE 798program_suffix=NONE 799program_transform_name=s,x,x, 800silent= 801site= 802srcdir= 803verbose= 804x_includes=NONE 805x_libraries=NONE 806 807# Installation directory options. 808# These are left unexpanded so users can "make install exec_prefix=/foo" 809# and all the variables that are supposed to be based on exec_prefix 810# by default will actually change. 811# Use braces instead of parens because sh, perl, etc. also accept them. 812# (The list follows the same order as the GNU Coding Standards.) 813bindir='${exec_prefix}/bin' 814sbindir='${exec_prefix}/sbin' 815libexecdir='${exec_prefix}/libexec' 816datarootdir='${prefix}/share' 817datadir='${datarootdir}' 818sysconfdir='${prefix}/etc' 819sharedstatedir='${prefix}/com' 820localstatedir='${prefix}/var' 821includedir='${prefix}/include' 822oldincludedir='/usr/include' 823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 824infodir='${datarootdir}/info' 825htmldir='${docdir}' 826dvidir='${docdir}' 827pdfdir='${docdir}' 828psdir='${docdir}' 829libdir='${exec_prefix}/lib' 830localedir='${datarootdir}/locale' 831mandir='${datarootdir}/man' 832 833ac_prev= 834ac_dashdash= 835for ac_option 836do 837 # If the previous option needs an argument, assign it. 838 if test -n "$ac_prev"; then 839 eval $ac_prev=\$ac_option 840 ac_prev= 841 continue 842 fi 843 844 case $ac_option in 845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 846 *=) ac_optarg= ;; 847 *) ac_optarg=yes ;; 848 esac 849 850 # Accept the important Cygnus configure options, so we can diagnose typos. 851 852 case $ac_dashdash$ac_option in 853 --) 854 ac_dashdash=yes ;; 855 856 -bindir | --bindir | --bindi | --bind | --bin | --bi) 857 ac_prev=bindir ;; 858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 859 bindir=$ac_optarg ;; 860 861 -build | --build | --buil | --bui | --bu) 862 ac_prev=build_alias ;; 863 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 864 build_alias=$ac_optarg ;; 865 866 -cache-file | --cache-file | --cache-fil | --cache-fi \ 867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 868 ac_prev=cache_file ;; 869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 871 cache_file=$ac_optarg ;; 872 873 --config-cache | -C) 874 cache_file=config.cache ;; 875 876 -datadir | --datadir | --datadi | --datad) 877 ac_prev=datadir ;; 878 -datadir=* | --datadir=* | --datadi=* | --datad=*) 879 datadir=$ac_optarg ;; 880 881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 882 | --dataroo | --dataro | --datar) 883 ac_prev=datarootdir ;; 884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 886 datarootdir=$ac_optarg ;; 887 888 -disable-* | --disable-*) 889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 890 # Reject names that are not valid shell variable names. 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892 as_fn_error $? "invalid feature name: $ac_useropt" 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=no ;; 903 904 -docdir | --docdir | --docdi | --doc | --do) 905 ac_prev=docdir ;; 906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 907 docdir=$ac_optarg ;; 908 909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 910 ac_prev=dvidir ;; 911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 912 dvidir=$ac_optarg ;; 913 914 -enable-* | --enable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error $? "invalid feature name: $ac_useropt" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923"enable_$ac_useropt" 924"*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=\$ac_optarg ;; 929 930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 932 | --exec | --exe | --ex) 933 ac_prev=exec_prefix ;; 934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 936 | --exec=* | --exe=* | --ex=*) 937 exec_prefix=$ac_optarg ;; 938 939 -gas | --gas | --ga | --g) 940 # Obsolete; use --with-gas. 941 with_gas=yes ;; 942 943 -help | --help | --hel | --he | -h) 944 ac_init_help=long ;; 945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 946 ac_init_help=recursive ;; 947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 948 ac_init_help=short ;; 949 950 -host | --host | --hos | --ho) 951 ac_prev=host_alias ;; 952 -host=* | --host=* | --hos=* | --ho=*) 953 host_alias=$ac_optarg ;; 954 955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 956 ac_prev=htmldir ;; 957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 958 | --ht=*) 959 htmldir=$ac_optarg ;; 960 961 -includedir | --includedir | --includedi | --included | --include \ 962 | --includ | --inclu | --incl | --inc) 963 ac_prev=includedir ;; 964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 965 | --includ=* | --inclu=* | --incl=* | --inc=*) 966 includedir=$ac_optarg ;; 967 968 -infodir | --infodir | --infodi | --infod | --info | --inf) 969 ac_prev=infodir ;; 970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 971 infodir=$ac_optarg ;; 972 973 -libdir | --libdir | --libdi | --libd) 974 ac_prev=libdir ;; 975 -libdir=* | --libdir=* | --libdi=* | --libd=*) 976 libdir=$ac_optarg ;; 977 978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 979 | --libexe | --libex | --libe) 980 ac_prev=libexecdir ;; 981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 982 | --libexe=* | --libex=* | --libe=*) 983 libexecdir=$ac_optarg ;; 984 985 -localedir | --localedir | --localedi | --localed | --locale) 986 ac_prev=localedir ;; 987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 988 localedir=$ac_optarg ;; 989 990 -localstatedir | --localstatedir | --localstatedi | --localstated \ 991 | --localstate | --localstat | --localsta | --localst | --locals) 992 ac_prev=localstatedir ;; 993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 995 localstatedir=$ac_optarg ;; 996 997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 998 ac_prev=mandir ;; 999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1000 mandir=$ac_optarg ;; 1001 1002 -nfp | --nfp | --nf) 1003 # Obsolete; use --without-fp. 1004 with_fp=no ;; 1005 1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1007 | --no-cr | --no-c | -n) 1008 no_create=yes ;; 1009 1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1012 no_recursion=yes ;; 1013 1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1016 | --oldin | --oldi | --old | --ol | --o) 1017 ac_prev=oldincludedir ;; 1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1021 oldincludedir=$ac_optarg ;; 1022 1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1024 ac_prev=prefix ;; 1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1026 prefix=$ac_optarg ;; 1027 1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1029 | --program-pre | --program-pr | --program-p) 1030 ac_prev=program_prefix ;; 1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1033 program_prefix=$ac_optarg ;; 1034 1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1036 | --program-suf | --program-su | --program-s) 1037 ac_prev=program_suffix ;; 1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1040 program_suffix=$ac_optarg ;; 1041 1042 -program-transform-name | --program-transform-name \ 1043 | --program-transform-nam | --program-transform-na \ 1044 | --program-transform-n | --program-transform- \ 1045 | --program-transform | --program-transfor \ 1046 | --program-transfo | --program-transf \ 1047 | --program-trans | --program-tran \ 1048 | --progr-tra | --program-tr | --program-t) 1049 ac_prev=program_transform_name ;; 1050 -program-transform-name=* | --program-transform-name=* \ 1051 | --program-transform-nam=* | --program-transform-na=* \ 1052 | --program-transform-n=* | --program-transform-=* \ 1053 | --program-transform=* | --program-transfor=* \ 1054 | --program-transfo=* | --program-transf=* \ 1055 | --program-trans=* | --program-tran=* \ 1056 | --progr-tra=* | --program-tr=* | --program-t=*) 1057 program_transform_name=$ac_optarg ;; 1058 1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1060 ac_prev=pdfdir ;; 1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1062 pdfdir=$ac_optarg ;; 1063 1064 -psdir | --psdir | --psdi | --psd | --ps) 1065 ac_prev=psdir ;; 1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1067 psdir=$ac_optarg ;; 1068 1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1070 | -silent | --silent | --silen | --sile | --sil) 1071 silent=yes ;; 1072 1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1074 ac_prev=sbindir ;; 1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1076 | --sbi=* | --sb=*) 1077 sbindir=$ac_optarg ;; 1078 1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1081 | --sharedst | --shareds | --shared | --share | --shar \ 1082 | --sha | --sh) 1083 ac_prev=sharedstatedir ;; 1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1087 | --sha=* | --sh=*) 1088 sharedstatedir=$ac_optarg ;; 1089 1090 -site | --site | --sit) 1091 ac_prev=site ;; 1092 -site=* | --site=* | --sit=*) 1093 site=$ac_optarg ;; 1094 1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1096 ac_prev=srcdir ;; 1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1098 srcdir=$ac_optarg ;; 1099 1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1101 | --syscon | --sysco | --sysc | --sys | --sy) 1102 ac_prev=sysconfdir ;; 1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1105 sysconfdir=$ac_optarg ;; 1106 1107 -target | --target | --targe | --targ | --tar | --ta | --t) 1108 ac_prev=target_alias ;; 1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1110 target_alias=$ac_optarg ;; 1111 1112 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1113 verbose=yes ;; 1114 1115 -version | --version | --versio | --versi | --vers | -V) 1116 ac_init_version=: ;; 1117 1118 -with-* | --with-*) 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1122 as_fn_error $? "invalid package name: $ac_useropt" 1123 ac_useropt_orig=$ac_useropt 1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1125 case $ac_user_opts in 1126 *" 1127"with_$ac_useropt" 1128"*) ;; 1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1130 ac_unrecognized_sep=', ';; 1131 esac 1132 eval with_$ac_useropt=\$ac_optarg ;; 1133 1134 -without-* | --without-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid package name: $ac_useropt" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"with_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval with_$ac_useropt=no ;; 1149 1150 --x) 1151 # Obsolete; use --with-x. 1152 with_x=yes ;; 1153 1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1155 | --x-incl | --x-inc | --x-in | --x-i) 1156 ac_prev=x_includes ;; 1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1159 x_includes=$ac_optarg ;; 1160 1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1163 ac_prev=x_libraries ;; 1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1166 x_libraries=$ac_optarg ;; 1167 1168 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1169Try \`$0 --help' for more information" 1170 ;; 1171 1172 *=*) 1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1174 # Reject names that are not valid shell variable names. 1175 case $ac_envvar in #( 1176 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1178 esac 1179 eval $ac_envvar=\$ac_optarg 1180 export $ac_envvar ;; 1181 1182 *) 1183 # FIXME: should be removed in autoconf 3.0. 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1188 ;; 1189 1190 esac 1191done 1192 1193if test -n "$ac_prev"; then 1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1195 as_fn_error $? "missing argument to $ac_option" 1196fi 1197 1198if test -n "$ac_unrecognized_opts"; then 1199 case $enable_option_checking in 1200 no) ;; 1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1203 esac 1204fi 1205 1206# Check all directory arguments for consistency. 1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1208 datadir sysconfdir sharedstatedir localstatedir includedir \ 1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1210 libdir localedir mandir 1211do 1212 eval ac_val=\$$ac_var 1213 # Remove trailing slashes. 1214 case $ac_val in 1215 */ ) 1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1217 eval $ac_var=\$ac_val;; 1218 esac 1219 # Be sure to have absolute directory names. 1220 case $ac_val in 1221 [\\/$]* | ?:[\\/]* ) continue;; 1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1223 esac 1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1225done 1226 1227# There might be people who depend on the old broken behavior: `$host' 1228# used to hold the argument of --host etc. 1229# FIXME: To remove some day. 1230build=$build_alias 1231host=$host_alias 1232target=$target_alias 1233 1234# FIXME: To remove some day. 1235if test "x$host_alias" != x; then 1236 if test "x$build_alias" = x; then 1237 cross_compiling=maybe 1238 elif test "x$build_alias" != "x$host_alias"; then 1239 cross_compiling=yes 1240 fi 1241fi 1242 1243ac_tool_prefix= 1244test -n "$host_alias" && ac_tool_prefix=$host_alias- 1245 1246test "$silent" = yes && exec 6>/dev/null 1247 1248 1249ac_pwd=`pwd` && test -n "$ac_pwd" && 1250ac_ls_di=`ls -di .` && 1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1252 as_fn_error $? "working directory cannot be determined" 1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1254 as_fn_error $? "pwd does not report name of working directory" 1255 1256 1257# Find the source files, if location was not specified. 1258if test -z "$srcdir"; then 1259 ac_srcdir_defaulted=yes 1260 # Try the directory containing this script, then the parent directory. 1261 ac_confdir=`$as_dirname -- "$as_myself" || 1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1263 X"$as_myself" : 'X\(//\)[^/]' \| \ 1264 X"$as_myself" : 'X\(//\)$' \| \ 1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1266$as_echo X"$as_myself" | 1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1268 s//\1/ 1269 q 1270 } 1271 /^X\(\/\/\)[^/].*/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\).*/{ 1280 s//\1/ 1281 q 1282 } 1283 s/.*/./; q'` 1284 srcdir=$ac_confdir 1285 if test ! -r "$srcdir/$ac_unique_file"; then 1286 srcdir=.. 1287 fi 1288else 1289 ac_srcdir_defaulted=no 1290fi 1291if test ! -r "$srcdir/$ac_unique_file"; then 1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1294fi 1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1296ac_abs_confdir=`( 1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1298 pwd)` 1299# When building in place, set srcdir=. 1300if test "$ac_abs_confdir" = "$ac_pwd"; then 1301 srcdir=. 1302fi 1303# Remove unnecessary trailing slashes from srcdir. 1304# Double slashes in file names in object file debugging info 1305# mess up M-x gdb in Emacs. 1306case $srcdir in 1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1308esac 1309for ac_var in $ac_precious_vars; do 1310 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1311 eval ac_env_${ac_var}_value=\$${ac_var} 1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1314done 1315 1316# 1317# Report the --help message. 1318# 1319if test "$ac_init_help" = "long"; then 1320 # Omit some internal or obsolete options to make the list less imposing. 1321 # This message is too long to be a string in the A/UX 3.1 sh. 1322 cat <<_ACEOF 1323\`configure' configures ldapaddressbook 0.10 to adapt to many kinds of systems. 1324 1325Usage: $0 [OPTION]... [VAR=VALUE]... 1326 1327To assign environment variables (e.g., CC, CFLAGS...), specify them as 1328VAR=VALUE. See below for descriptions of some of the useful variables. 1329 1330Defaults for the options are specified in brackets. 1331 1332Configuration: 1333 -h, --help display this help and exit 1334 --help=short display options specific to this package 1335 --help=recursive display the short help of all the included packages 1336 -V, --version display version information and exit 1337 -q, --quiet, --silent do not print \`checking ...' messages 1338 --cache-file=FILE cache test results in FILE [disabled] 1339 -C, --config-cache alias for \`--cache-file=config.cache' 1340 -n, --no-create do not create output files 1341 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1342 1343Installation directories: 1344 --prefix=PREFIX install architecture-independent files in PREFIX 1345 [$ac_default_prefix] 1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1347 [PREFIX] 1348 1349By default, \`make install' will install all the files in 1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1351an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1352for instance \`--prefix=\$HOME'. 1353 1354For better control, use the options below. 1355 1356Fine tuning of the installation directories: 1357 --bindir=DIR user executables [EPREFIX/bin] 1358 --sbindir=DIR system admin executables [EPREFIX/sbin] 1359 --libexecdir=DIR program executables [EPREFIX/libexec] 1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1363 --libdir=DIR object code libraries [EPREFIX/lib] 1364 --includedir=DIR C header files [PREFIX/include] 1365 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1368 --infodir=DIR info documentation [DATAROOTDIR/info] 1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1370 --mandir=DIR man documentation [DATAROOTDIR/man] 1371 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapaddressbook] 1372 --htmldir=DIR html documentation [DOCDIR] 1373 --dvidir=DIR dvi documentation [DOCDIR] 1374 --pdfdir=DIR pdf documentation [DOCDIR] 1375 --psdir=DIR ps documentation [DOCDIR] 1376_ACEOF 1377 1378 cat <<\_ACEOF 1379 1380Program names: 1381 --program-prefix=PREFIX prepend PREFIX to installed program names 1382 --program-suffix=SUFFIX append SUFFIX to installed program names 1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1384 1385System types: 1386 --build=BUILD configure for building on BUILD [guessed] 1387 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1388_ACEOF 1389fi 1390 1391if test -n "$ac_init_help"; then 1392 case $ac_init_help in 1393 short | recursive ) echo "Configuration of ldapaddressbook 0.10:";; 1394 esac 1395 cat <<\_ACEOF 1396 1397Optional Features: 1398 --disable-option-checking ignore unrecognized --enable/--with options 1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1401 --enable-silent-rules less verbose build output (undo: "make V=1") 1402 --disable-silent-rules verbose build output (undo: "make V=0") 1403 --enable-dependency-tracking 1404 do not reject slow dependency extractors 1405 --disable-dependency-tracking 1406 speeds up one-time build 1407 --enable-shared[=PKGS] build shared libraries [default=yes] 1408 --enable-static[=PKGS] build static libraries [default=yes] 1409 --enable-fast-install[=PKGS] 1410 optimize for fast installation [default=yes] 1411 --disable-libtool-lock avoid locking (might break parallel builds) 1412 --disable-largefile omit support for large files 1413 1414Optional Packages: 1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1417 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1418 both] 1419 --with-aix-soname=aix|svr4|both 1420 shared library versioning (aka "SONAME") variant to 1421 provide on AIX, [default=aix]. 1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1423 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1424 compiler's sysroot if not specified). 1425 --without-ldapaddressbook Disable LDAP address book code 1426 1427Some influential environment variables: 1428 CC C compiler command 1429 CFLAGS C compiler flags 1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1431 nonstandard directory <lib dir> 1432 LIBS libraries to pass to the linker, e.g. -l<library> 1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1434 you have headers in a nonstandard directory <include dir> 1435 CPP C preprocessor 1436 LT_SYS_LIBRARY_PATH 1437 User-defined run-time library search path. 1438 1439Use these variables to override the choices made by `configure' or to help 1440it to find libraries and programs with nonstandard names/locations. 1441 1442Report bugs to <courier-users@lists.sourceforge.net>. 1443_ACEOF 1444ac_status=$? 1445fi 1446 1447if test "$ac_init_help" = "recursive"; then 1448 # If there are subdirs, report their specific --help. 1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1450 test -d "$ac_dir" || 1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1452 continue 1453 ac_builddir=. 1454 1455case "$ac_dir" in 1456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1457*) 1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1459 # A ".." for each directory in $ac_dir_suffix. 1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1461 case $ac_top_builddir_sub in 1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1464 esac ;; 1465esac 1466ac_abs_top_builddir=$ac_pwd 1467ac_abs_builddir=$ac_pwd$ac_dir_suffix 1468# for backward compatibility: 1469ac_top_builddir=$ac_top_build_prefix 1470 1471case $srcdir in 1472 .) # We are building in place. 1473 ac_srcdir=. 1474 ac_top_srcdir=$ac_top_builddir_sub 1475 ac_abs_top_srcdir=$ac_pwd ;; 1476 [\\/]* | ?:[\\/]* ) # Absolute name. 1477 ac_srcdir=$srcdir$ac_dir_suffix; 1478 ac_top_srcdir=$srcdir 1479 ac_abs_top_srcdir=$srcdir ;; 1480 *) # Relative name. 1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1482 ac_top_srcdir=$ac_top_build_prefix$srcdir 1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1484esac 1485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1486 1487 cd "$ac_dir" || { ac_status=$?; continue; } 1488 # Check for guested configure. 1489 if test -f "$ac_srcdir/configure.gnu"; then 1490 echo && 1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1492 elif test -f "$ac_srcdir/configure"; then 1493 echo && 1494 $SHELL "$ac_srcdir/configure" --help=recursive 1495 else 1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1497 fi || ac_status=$? 1498 cd "$ac_pwd" || { ac_status=$?; break; } 1499 done 1500fi 1501 1502test -n "$ac_init_help" && exit $ac_status 1503if $ac_init_version; then 1504 cat <<\_ACEOF 1505ldapaddressbook configure 0.10 1506generated by GNU Autoconf 2.69 1507 1508Copyright (C) 2012 Free Software Foundation, Inc. 1509This configure script is free software; the Free Software Foundation 1510gives unlimited permission to copy, distribute and modify it. 1511_ACEOF 1512 exit 1513fi 1514 1515## ------------------------ ## 1516## Autoconf initialization. ## 1517## ------------------------ ## 1518 1519# ac_fn_c_try_compile LINENO 1520# -------------------------- 1521# Try to compile conftest.$ac_ext, and return whether this succeeded. 1522ac_fn_c_try_compile () 1523{ 1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1525 rm -f conftest.$ac_objext 1526 if { { ac_try="$ac_compile" 1527case "(($ac_try" in 1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1529 *) ac_try_echo=$ac_try;; 1530esac 1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1532$as_echo "$ac_try_echo"; } >&5 1533 (eval "$ac_compile") 2>conftest.err 1534 ac_status=$? 1535 if test -s conftest.err; then 1536 grep -v '^ *+' conftest.err >conftest.er1 1537 cat conftest.er1 >&5 1538 mv -f conftest.er1 conftest.err 1539 fi 1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1541 test $ac_status = 0; } && { 1542 test -z "$ac_c_werror_flag" || 1543 test ! -s conftest.err 1544 } && test -s conftest.$ac_objext; then : 1545 ac_retval=0 1546else 1547 $as_echo "$as_me: failed program was:" >&5 1548sed 's/^/| /' conftest.$ac_ext >&5 1549 1550 ac_retval=1 1551fi 1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1553 as_fn_set_status $ac_retval 1554 1555} # ac_fn_c_try_compile 1556 1557# ac_fn_c_try_cpp LINENO 1558# ---------------------- 1559# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_cpp () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 if { { ac_try="$ac_cpp conftest.$ac_ext" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } > conftest.i && { 1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 }; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} # ac_fn_c_try_cpp 1593 1594# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1595# ------------------------------------------------------- 1596# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1597# the include files in INCLUDES and setting the cache variable VAR 1598# accordingly. 1599ac_fn_c_check_header_mongrel () 1600{ 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 if eval \${$3+:} false; then : 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1604$as_echo_n "checking for $2... " >&6; } 1605if eval \${$3+:} false; then : 1606 $as_echo_n "(cached) " >&6 1607fi 1608eval ac_res=\$$3 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1610$as_echo "$ac_res" >&6; } 1611else 1612 # Is the header compilable? 1613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1614$as_echo_n "checking $2 usability... " >&6; } 1615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1616/* end confdefs.h. */ 1617$4 1618#include <$2> 1619_ACEOF 1620if ac_fn_c_try_compile "$LINENO"; then : 1621 ac_header_compiler=yes 1622else 1623 ac_header_compiler=no 1624fi 1625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1627$as_echo "$ac_header_compiler" >&6; } 1628 1629# Is the header present? 1630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1631$as_echo_n "checking $2 presence... " >&6; } 1632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1633/* end confdefs.h. */ 1634#include <$2> 1635_ACEOF 1636if ac_fn_c_try_cpp "$LINENO"; then : 1637 ac_header_preproc=yes 1638else 1639 ac_header_preproc=no 1640fi 1641rm -f conftest.err conftest.i conftest.$ac_ext 1642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1643$as_echo "$ac_header_preproc" >&6; } 1644 1645# So? What about this header? 1646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1647 yes:no: ) 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1649$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1651$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1652 ;; 1653 no:yes:* ) 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1655$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1657$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1659$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1661$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1663$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1664( $as_echo "## -------------------------------------------------- ## 1665## Report this to courier-users@lists.sourceforge.net ## 1666## -------------------------------------------------- ##" 1667 ) | sed "s/^/$as_me: WARNING: /" >&2 1668 ;; 1669esac 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671$as_echo_n "checking for $2... " >&6; } 1672if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674else 1675 eval "$3=\$ac_header_compiler" 1676fi 1677eval ac_res=\$$3 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679$as_echo "$ac_res" >&6; } 1680fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 1683} # ac_fn_c_check_header_mongrel 1684 1685# ac_fn_c_try_run LINENO 1686# ---------------------- 1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1688# that executables *can* be run. 1689ac_fn_c_try_run () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 if { { ac_try="$ac_link" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_link") 2>&5 1700 ac_status=$? 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1703 { { case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_try") 2>&5 1710 ac_status=$? 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; }; }; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: program exited with status $ac_status" >&5 1716 $as_echo "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=$ac_status 1720fi 1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_run 1726 1727# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1728# ------------------------------------------------------- 1729# Tests whether HEADER exists and can be compiled using the include files in 1730# INCLUDES, setting the cache variable VAR accordingly. 1731ac_fn_c_check_header_compile () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1735$as_echo_n "checking for $2... " >&6; } 1736if eval \${$3+:} false; then : 1737 $as_echo_n "(cached) " >&6 1738else 1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740/* end confdefs.h. */ 1741$4 1742#include <$2> 1743_ACEOF 1744if ac_fn_c_try_compile "$LINENO"; then : 1745 eval "$3=yes" 1746else 1747 eval "$3=no" 1748fi 1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1750fi 1751eval ac_res=\$$3 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1753$as_echo "$ac_res" >&6; } 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1755 1756} # ac_fn_c_check_header_compile 1757 1758# ac_fn_c_try_link LINENO 1759# ----------------------- 1760# Try to link conftest.$ac_ext, and return whether this succeeded. 1761ac_fn_c_try_link () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 rm -f conftest.$ac_objext conftest$ac_exeext 1765 if { { ac_try="$ac_link" 1766case "(($ac_try" in 1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1768 *) ac_try_echo=$ac_try;; 1769esac 1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1771$as_echo "$ac_try_echo"; } >&5 1772 (eval "$ac_link") 2>conftest.err 1773 ac_status=$? 1774 if test -s conftest.err; then 1775 grep -v '^ *+' conftest.err >conftest.er1 1776 cat conftest.er1 >&5 1777 mv -f conftest.er1 conftest.err 1778 fi 1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1780 test $ac_status = 0; } && { 1781 test -z "$ac_c_werror_flag" || 1782 test ! -s conftest.err 1783 } && test -s conftest$ac_exeext && { 1784 test "$cross_compiling" = yes || 1785 test -x conftest$ac_exeext 1786 }; then : 1787 ac_retval=0 1788else 1789 $as_echo "$as_me: failed program was:" >&5 1790sed 's/^/| /' conftest.$ac_ext >&5 1791 1792 ac_retval=1 1793fi 1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1796 # interfere with the next link command; also delete a directory that is 1797 # left behind by Apple's compiler. We do this before executing the actions. 1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 as_fn_set_status $ac_retval 1801 1802} # ac_fn_c_try_link 1803 1804# ac_fn_c_check_func LINENO FUNC VAR 1805# ---------------------------------- 1806# Tests whether FUNC exists, setting the cache variable VAR accordingly 1807ac_fn_c_check_func () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1811$as_echo_n "checking for $2... " >&6; } 1812if eval \${$3+:} false; then : 1813 $as_echo_n "(cached) " >&6 1814else 1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1819#define $2 innocuous_$2 1820 1821/* System header to define __stub macros and hopefully few prototypes, 1822 which can conflict with char $2 (); below. 1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1824 <limits.h> exists even on freestanding compilers. */ 1825 1826#ifdef __STDC__ 1827# include <limits.h> 1828#else 1829# include <assert.h> 1830#endif 1831 1832#undef $2 1833 1834/* Override any GCC internal prototype to avoid an error. 1835 Use char because int might match the return type of a GCC 1836 builtin and then its argument prototype would still apply. */ 1837#ifdef __cplusplus 1838extern "C" 1839#endif 1840char $2 (); 1841/* The GNU C library defines this for functions which it implements 1842 to always fail with ENOSYS. Some functions are actually named 1843 something starting with __ and the normal name is an alias. */ 1844#if defined __stub_$2 || defined __stub___$2 1845choke me 1846#endif 1847 1848int 1849main () 1850{ 1851return $2 (); 1852 ; 1853 return 0; 1854} 1855_ACEOF 1856if ac_fn_c_try_link "$LINENO"; then : 1857 eval "$3=yes" 1858else 1859 eval "$3=no" 1860fi 1861rm -f core conftest.err conftest.$ac_objext \ 1862 conftest$ac_exeext conftest.$ac_ext 1863fi 1864eval ac_res=\$$3 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1866$as_echo "$ac_res" >&6; } 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868 1869} # ac_fn_c_check_func 1870cat >config.log <<_ACEOF 1871This file contains any messages produced by compilers while 1872running configure, to aid debugging if configure makes a mistake. 1873 1874It was created by ldapaddressbook $as_me 0.10, which was 1875generated by GNU Autoconf 2.69. Invocation command line was 1876 1877 $ $0 $@ 1878 1879_ACEOF 1880exec 5>>config.log 1881{ 1882cat <<_ASUNAME 1883## --------- ## 1884## Platform. ## 1885## --------- ## 1886 1887hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1888uname -m = `(uname -m) 2>/dev/null || echo unknown` 1889uname -r = `(uname -r) 2>/dev/null || echo unknown` 1890uname -s = `(uname -s) 2>/dev/null || echo unknown` 1891uname -v = `(uname -v) 2>/dev/null || echo unknown` 1892 1893/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1894/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1895 1896/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1897/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1898/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1899/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1900/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1901/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1902/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1903 1904_ASUNAME 1905 1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1907for as_dir in $PATH 1908do 1909 IFS=$as_save_IFS 1910 test -z "$as_dir" && as_dir=. 1911 $as_echo "PATH: $as_dir" 1912 done 1913IFS=$as_save_IFS 1914 1915} >&5 1916 1917cat >&5 <<_ACEOF 1918 1919 1920## ----------- ## 1921## Core tests. ## 1922## ----------- ## 1923 1924_ACEOF 1925 1926 1927# Keep a trace of the command line. 1928# Strip out --no-create and --no-recursion so they do not pile up. 1929# Strip out --silent because we don't want to record it for future runs. 1930# Also quote any args containing shell meta-characters. 1931# Make two passes to allow for proper duplicate-argument suppression. 1932ac_configure_args= 1933ac_configure_args0= 1934ac_configure_args1= 1935ac_must_keep_next=false 1936for ac_pass in 1 2 1937do 1938 for ac_arg 1939 do 1940 case $ac_arg in 1941 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1943 | -silent | --silent | --silen | --sile | --sil) 1944 continue ;; 1945 *\'*) 1946 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1947 esac 1948 case $ac_pass in 1949 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1950 2) 1951 as_fn_append ac_configure_args1 " '$ac_arg'" 1952 if test $ac_must_keep_next = true; then 1953 ac_must_keep_next=false # Got value, back to normal. 1954 else 1955 case $ac_arg in 1956 *=* | --config-cache | -C | -disable-* | --disable-* \ 1957 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1958 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1959 | -with-* | --with-* | -without-* | --without-* | --x) 1960 case "$ac_configure_args0 " in 1961 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1962 esac 1963 ;; 1964 -* ) ac_must_keep_next=true ;; 1965 esac 1966 fi 1967 as_fn_append ac_configure_args " '$ac_arg'" 1968 ;; 1969 esac 1970 done 1971done 1972{ ac_configure_args0=; unset ac_configure_args0;} 1973{ ac_configure_args1=; unset ac_configure_args1;} 1974 1975# When interrupted or exit'd, cleanup temporary files, and complete 1976# config.log. We remove comments because anyway the quotes in there 1977# would cause problems or look ugly. 1978# WARNING: Use '\'' to represent an apostrophe within the trap. 1979# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1980trap 'exit_status=$? 1981 # Save into config.log some information that might help in debugging. 1982 { 1983 echo 1984 1985 $as_echo "## ---------------- ## 1986## Cache variables. ## 1987## ---------------- ##" 1988 echo 1989 # The following way of writing the cache mishandles newlines in values, 1990( 1991 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1992 eval ac_val=\$$ac_var 1993 case $ac_val in #( 1994 *${as_nl}*) 1995 case $ac_var in #( 1996 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1997$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1998 esac 1999 case $ac_var in #( 2000 _ | IFS | as_nl) ;; #( 2001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2002 *) { eval $ac_var=; unset $ac_var;} ;; 2003 esac ;; 2004 esac 2005 done 2006 (set) 2>&1 | 2007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2008 *${as_nl}ac_space=\ *) 2009 sed -n \ 2010 "s/'\''/'\''\\\\'\'''\''/g; 2011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2012 ;; #( 2013 *) 2014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2015 ;; 2016 esac | 2017 sort 2018) 2019 echo 2020 2021 $as_echo "## ----------------- ## 2022## Output variables. ## 2023## ----------------- ##" 2024 echo 2025 for ac_var in $ac_subst_vars 2026 do 2027 eval ac_val=\$$ac_var 2028 case $ac_val in 2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2030 esac 2031 $as_echo "$ac_var='\''$ac_val'\''" 2032 done | sort 2033 echo 2034 2035 if test -n "$ac_subst_files"; then 2036 $as_echo "## ------------------- ## 2037## File substitutions. ## 2038## ------------------- ##" 2039 echo 2040 for ac_var in $ac_subst_files 2041 do 2042 eval ac_val=\$$ac_var 2043 case $ac_val in 2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2045 esac 2046 $as_echo "$ac_var='\''$ac_val'\''" 2047 done | sort 2048 echo 2049 fi 2050 2051 if test -s confdefs.h; then 2052 $as_echo "## ----------- ## 2053## confdefs.h. ## 2054## ----------- ##" 2055 echo 2056 cat confdefs.h 2057 echo 2058 fi 2059 test "$ac_signal" != 0 && 2060 $as_echo "$as_me: caught signal $ac_signal" 2061 $as_echo "$as_me: exit $exit_status" 2062 } >&5 2063 rm -f core *.core core.conftest.* && 2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2065 exit $exit_status 2066' 0 2067for ac_signal in 1 2 13 15; do 2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2069done 2070ac_signal=0 2071 2072# confdefs.h avoids OS command line length limits that DEFS can exceed. 2073rm -f -r conftest* confdefs.h 2074 2075$as_echo "/* confdefs.h */" > confdefs.h 2076 2077# Predefined preprocessor variables. 2078 2079cat >>confdefs.h <<_ACEOF 2080#define PACKAGE_NAME "$PACKAGE_NAME" 2081_ACEOF 2082 2083cat >>confdefs.h <<_ACEOF 2084#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2085_ACEOF 2086 2087cat >>confdefs.h <<_ACEOF 2088#define PACKAGE_VERSION "$PACKAGE_VERSION" 2089_ACEOF 2090 2091cat >>confdefs.h <<_ACEOF 2092#define PACKAGE_STRING "$PACKAGE_STRING" 2093_ACEOF 2094 2095cat >>confdefs.h <<_ACEOF 2096#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2097_ACEOF 2098 2099cat >>confdefs.h <<_ACEOF 2100#define PACKAGE_URL "$PACKAGE_URL" 2101_ACEOF 2102 2103 2104# Let the site file select an alternate cache file if it wants to. 2105# Prefer an explicitly selected file to automatically selected ones. 2106ac_site_file1=NONE 2107ac_site_file2=NONE 2108if test -n "$CONFIG_SITE"; then 2109 # We do not want a PATH search for config.site. 2110 case $CONFIG_SITE in #(( 2111 -*) ac_site_file1=./$CONFIG_SITE;; 2112 */*) ac_site_file1=$CONFIG_SITE;; 2113 *) ac_site_file1=./$CONFIG_SITE;; 2114 esac 2115elif test "x$prefix" != xNONE; then 2116 ac_site_file1=$prefix/share/config.site 2117 ac_site_file2=$prefix/etc/config.site 2118else 2119 ac_site_file1=$ac_default_prefix/share/config.site 2120 ac_site_file2=$ac_default_prefix/etc/config.site 2121fi 2122for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2123do 2124 test "x$ac_site_file" = xNONE && continue 2125 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2127$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2128 sed 's/^/| /' "$ac_site_file" >&5 2129 . "$ac_site_file" \ 2130 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2132as_fn_error $? "failed to load site script $ac_site_file 2133See \`config.log' for more details" "$LINENO" 5; } 2134 fi 2135done 2136 2137if test -r "$cache_file"; then 2138 # Some versions of bash will fail to source /dev/null (special files 2139 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2140 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2142$as_echo "$as_me: loading cache $cache_file" >&6;} 2143 case $cache_file in 2144 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2145 *) . "./$cache_file";; 2146 esac 2147 fi 2148else 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2150$as_echo "$as_me: creating cache $cache_file" >&6;} 2151 >$cache_file 2152fi 2153 2154# Check that the precious variables saved in the cache have kept the same 2155# value. 2156ac_cache_corrupted=false 2157for ac_var in $ac_precious_vars; do 2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2159 eval ac_new_set=\$ac_env_${ac_var}_set 2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2161 eval ac_new_val=\$ac_env_${ac_var}_value 2162 case $ac_old_set,$ac_new_set in 2163 set,) 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2165$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2166 ac_cache_corrupted=: ;; 2167 ,set) 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2169$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2170 ac_cache_corrupted=: ;; 2171 ,);; 2172 *) 2173 if test "x$ac_old_val" != "x$ac_new_val"; then 2174 # differences in whitespace do not lead to failure. 2175 ac_old_val_w=`echo x $ac_old_val` 2176 ac_new_val_w=`echo x $ac_new_val` 2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2179$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2180 ac_cache_corrupted=: 2181 else 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2183$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2184 eval $ac_var=\$ac_old_val 2185 fi 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2187$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2189$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2190 fi;; 2191 esac 2192 # Pass precious variables to config.status. 2193 if test "$ac_new_set" = set; then 2194 case $ac_new_val in 2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2196 *) ac_arg=$ac_var=$ac_new_val ;; 2197 esac 2198 case " $ac_configure_args " in 2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2201 esac 2202 fi 2203done 2204if $ac_cache_corrupted; then 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2208$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2209 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2210fi 2211## -------------------- ## 2212## Main body of script. ## 2213## -------------------- ## 2214 2215ac_ext=c 2216ac_cpp='$CPP $CPPFLAGS' 2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2219ac_compiler_gnu=$ac_cv_c_compiler_gnu 2220 2221 2222 2223>confdefs.h # Kill PACKAGE_ macros 2224 2225 2226ac_aux_dir= 2227for ac_dir in ../.. "$srcdir"/../..; do 2228 if test -f "$ac_dir/install-sh"; then 2229 ac_aux_dir=$ac_dir 2230 ac_install_sh="$ac_aux_dir/install-sh -c" 2231 break 2232 elif test -f "$ac_dir/install.sh"; then 2233 ac_aux_dir=$ac_dir 2234 ac_install_sh="$ac_aux_dir/install.sh -c" 2235 break 2236 elif test -f "$ac_dir/shtool"; then 2237 ac_aux_dir=$ac_dir 2238 ac_install_sh="$ac_aux_dir/shtool install -c" 2239 break 2240 fi 2241done 2242if test -z "$ac_aux_dir"; then 2243 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2244fi 2245 2246# These three variables are undocumented and unsupported, 2247# and are intended to be withdrawn in a future Autoconf release. 2248# They can cause serious problems if a builder's source tree is in a directory 2249# whose full name contains unusual characters. 2250ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2251ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2252ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2253 2254 2255am__api_version='1.16' 2256 2257# Find a good install program. We prefer a C program (faster), 2258# so one script is as good as another. But avoid the broken or 2259# incompatible versions: 2260# SysV /etc/install, /usr/sbin/install 2261# SunOS /usr/etc/install 2262# IRIX /sbin/install 2263# AIX /bin/install 2264# AmigaOS /C/install, which installs bootblocks on floppy discs 2265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2266# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2268# OS/2's system install, which has a completely different semantic 2269# ./install, which can be erroneously created by make from ./install.sh. 2270# Reject install programs that cannot install multiple files. 2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2272$as_echo_n "checking for a BSD-compatible install... " >&6; } 2273if test -z "$INSTALL"; then 2274if ${ac_cv_path_install+:} false; then : 2275 $as_echo_n "(cached) " >&6 2276else 2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2278for as_dir in $PATH 2279do 2280 IFS=$as_save_IFS 2281 test -z "$as_dir" && as_dir=. 2282 # Account for people who put trailing slashes in PATH elements. 2283case $as_dir/ in #(( 2284 ./ | .// | /[cC]/* | \ 2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2287 /usr/ucb/* ) ;; 2288 *) 2289 # OSF1 and SCO ODT 3.0 have their own names for install. 2290 # Don't use installbsd from OSF since it installs stuff as root 2291 # by default. 2292 for ac_prog in ginstall scoinst install; do 2293 for ac_exec_ext in '' $ac_executable_extensions; do 2294 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2295 if test $ac_prog = install && 2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2297 # AIX install. It has an incompatible calling convention. 2298 : 2299 elif test $ac_prog = install && 2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2301 # program-specific install script used by HP pwplus--don't use. 2302 : 2303 else 2304 rm -rf conftest.one conftest.two conftest.dir 2305 echo one > conftest.one 2306 echo two > conftest.two 2307 mkdir conftest.dir 2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2309 test -s conftest.one && test -s conftest.two && 2310 test -s conftest.dir/conftest.one && 2311 test -s conftest.dir/conftest.two 2312 then 2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2314 break 3 2315 fi 2316 fi 2317 fi 2318 done 2319 done 2320 ;; 2321esac 2322 2323 done 2324IFS=$as_save_IFS 2325 2326rm -rf conftest.one conftest.two conftest.dir 2327 2328fi 2329 if test "${ac_cv_path_install+set}" = set; then 2330 INSTALL=$ac_cv_path_install 2331 else 2332 # As a last resort, use the slow shell script. Don't cache a 2333 # value for INSTALL within a source directory, because that will 2334 # break other packages using the cache if that directory is 2335 # removed, or if the value is a relative name. 2336 INSTALL=$ac_install_sh 2337 fi 2338fi 2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2340$as_echo "$INSTALL" >&6; } 2341 2342# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2343# It thinks the first close brace ends the variable substitution. 2344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2345 2346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2347 2348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2349 2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2351$as_echo_n "checking whether build environment is sane... " >&6; } 2352# Reject unsafe characters in $srcdir or the absolute working directory 2353# name. Accept space and tab only in the latter. 2354am_lf=' 2355' 2356case `pwd` in 2357 *[\\\"\#\$\&\'\`$am_lf]*) 2358 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2359esac 2360case $srcdir in 2361 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2362 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2363esac 2364 2365# Do 'set' in a subshell so we don't clobber the current shell's 2366# arguments. Must try -L first in case configure is actually a 2367# symlink; some systems play weird games with the mod time of symlinks 2368# (eg FreeBSD returns the mod time of the symlink's containing 2369# directory). 2370if ( 2371 am_has_slept=no 2372 for am_try in 1 2; do 2373 echo "timestamp, slept: $am_has_slept" > conftest.file 2374 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2375 if test "$*" = "X"; then 2376 # -L didn't work. 2377 set X `ls -t "$srcdir/configure" conftest.file` 2378 fi 2379 if test "$*" != "X $srcdir/configure conftest.file" \ 2380 && test "$*" != "X conftest.file $srcdir/configure"; then 2381 2382 # If neither matched, then we have a broken ls. This can happen 2383 # if, for instance, CONFIG_SHELL is bash and it inherits a 2384 # broken ls alias from the environment. This has actually 2385 # happened. Such a system could not be considered "sane". 2386 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2387 alias in your environment" "$LINENO" 5 2388 fi 2389 if test "$2" = conftest.file || test $am_try -eq 2; then 2390 break 2391 fi 2392 # Just in case. 2393 sleep 1 2394 am_has_slept=yes 2395 done 2396 test "$2" = conftest.file 2397 ) 2398then 2399 # Ok. 2400 : 2401else 2402 as_fn_error $? "newly created file is older than distributed files! 2403Check your system clock" "$LINENO" 5 2404fi 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2406$as_echo "yes" >&6; } 2407# If we didn't sleep, we still need to ensure time stamps of config.status and 2408# generated files are strictly newer. 2409am_sleep_pid= 2410if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2411 ( sleep 1 ) & 2412 am_sleep_pid=$! 2413fi 2414 2415rm -f conftest.file 2416 2417test "$program_prefix" != NONE && 2418 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2419# Use a double $ so make ignores it. 2420test "$program_suffix" != NONE && 2421 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2422# Double any \ or $. 2423# By default was `s,x,x', remove it if useless. 2424ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2425program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2426 2427# Expand $ac_aux_dir to an absolute path. 2428am_aux_dir=`cd "$ac_aux_dir" && pwd` 2429 2430if test x"${MISSING+set}" != xset; then 2431 case $am_aux_dir in 2432 *\ * | *\ *) 2433 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2434 *) 2435 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2436 esac 2437fi 2438# Use eval to expand $SHELL 2439if eval "$MISSING --is-lightweight"; then 2440 am_missing_run="$MISSING " 2441else 2442 am_missing_run= 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2444$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2445fi 2446 2447if test x"${install_sh+set}" != xset; then 2448 case $am_aux_dir in 2449 *\ * | *\ *) 2450 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2451 *) 2452 install_sh="\${SHELL} $am_aux_dir/install-sh" 2453 esac 2454fi 2455 2456# Installed binaries are usually stripped using 'strip' when the user 2457# run "make install-strip". However 'strip' might not be the right 2458# tool to use in cross-compilation environments, therefore Automake 2459# will honor the 'STRIP' environment variable to overrule this program. 2460if test "$cross_compiling" != no; then 2461 if test -n "$ac_tool_prefix"; then 2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2463set dummy ${ac_tool_prefix}strip; ac_word=$2 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2465$as_echo_n "checking for $ac_word... " >&6; } 2466if ${ac_cv_prog_STRIP+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test -n "$STRIP"; then 2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484 done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489STRIP=$ac_cv_prog_STRIP 2490if test -n "$STRIP"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2492$as_echo "$STRIP" >&6; } 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495$as_echo "no" >&6; } 2496fi 2497 2498 2499fi 2500if test -z "$ac_cv_prog_STRIP"; then 2501 ac_ct_STRIP=$STRIP 2502 # Extract the first word of "strip", so it can be a program name with args. 2503set dummy strip; ac_word=$2 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2505$as_echo_n "checking for $ac_word... " >&6; } 2506if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508else 2509 if test -n "$ac_ct_STRIP"; then 2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2511else 2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2513for as_dir in $PATH 2514do 2515 IFS=$as_save_IFS 2516 test -z "$as_dir" && as_dir=. 2517 for ac_exec_ext in '' $ac_executable_extensions; do 2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2519 ac_cv_prog_ac_ct_STRIP="strip" 2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2521 break 2 2522 fi 2523done 2524 done 2525IFS=$as_save_IFS 2526 2527fi 2528fi 2529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2530if test -n "$ac_ct_STRIP"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2532$as_echo "$ac_ct_STRIP" >&6; } 2533else 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2535$as_echo "no" >&6; } 2536fi 2537 2538 if test "x$ac_ct_STRIP" = x; then 2539 STRIP=":" 2540 else 2541 case $cross_compiling:$ac_tool_warned in 2542yes:) 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2545ac_tool_warned=yes ;; 2546esac 2547 STRIP=$ac_ct_STRIP 2548 fi 2549else 2550 STRIP="$ac_cv_prog_STRIP" 2551fi 2552 2553fi 2554INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2555 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2557$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2558if test -z "$MKDIR_P"; then 2559 if ${ac_cv_path_mkdir+:} false; then : 2560 $as_echo_n "(cached) " >&6 2561else 2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2563for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2564do 2565 IFS=$as_save_IFS 2566 test -z "$as_dir" && as_dir=. 2567 for ac_prog in mkdir gmkdir; do 2568 for ac_exec_ext in '' $ac_executable_extensions; do 2569 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2570 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2571 'mkdir (GNU coreutils) '* | \ 2572 'mkdir (coreutils) '* | \ 2573 'mkdir (fileutils) '4.1*) 2574 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2575 break 3;; 2576 esac 2577 done 2578 done 2579 done 2580IFS=$as_save_IFS 2581 2582fi 2583 2584 test -d ./--version && rmdir ./--version 2585 if test "${ac_cv_path_mkdir+set}" = set; then 2586 MKDIR_P="$ac_cv_path_mkdir -p" 2587 else 2588 # As a last resort, use the slow shell script. Don't cache a 2589 # value for MKDIR_P within a source directory, because that will 2590 # break other packages using the cache if that directory is 2591 # removed, or if the value is a relative name. 2592 MKDIR_P="$ac_install_sh -d" 2593 fi 2594fi 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2596$as_echo "$MKDIR_P" >&6; } 2597 2598for ac_prog in gawk mawk nawk awk 2599do 2600 # Extract the first word of "$ac_prog", so it can be a program name with args. 2601set dummy $ac_prog; ac_word=$2 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2603$as_echo_n "checking for $ac_word... " >&6; } 2604if ${ac_cv_prog_AWK+:} false; then : 2605 $as_echo_n "(cached) " >&6 2606else 2607 if test -n "$AWK"; then 2608 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2609else 2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611for as_dir in $PATH 2612do 2613 IFS=$as_save_IFS 2614 test -z "$as_dir" && as_dir=. 2615 for ac_exec_ext in '' $ac_executable_extensions; do 2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2617 ac_cv_prog_AWK="$ac_prog" 2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2619 break 2 2620 fi 2621done 2622 done 2623IFS=$as_save_IFS 2624 2625fi 2626fi 2627AWK=$ac_cv_prog_AWK 2628if test -n "$AWK"; then 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2630$as_echo "$AWK" >&6; } 2631else 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2633$as_echo "no" >&6; } 2634fi 2635 2636 2637 test -n "$AWK" && break 2638done 2639 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2641$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2642set x ${MAKE-make} 2643ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2644if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2645 $as_echo_n "(cached) " >&6 2646else 2647 cat >conftest.make <<\_ACEOF 2648SHELL = /bin/sh 2649all: 2650 @echo '@@@%%%=$(MAKE)=@@@%%%' 2651_ACEOF 2652# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2653case `${MAKE-make} -f conftest.make 2>/dev/null` in 2654 *@@@%%%=?*=@@@%%%*) 2655 eval ac_cv_prog_make_${ac_make}_set=yes;; 2656 *) 2657 eval ac_cv_prog_make_${ac_make}_set=no;; 2658esac 2659rm -f conftest.make 2660fi 2661if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2663$as_echo "yes" >&6; } 2664 SET_MAKE= 2665else 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2667$as_echo "no" >&6; } 2668 SET_MAKE="MAKE=${MAKE-make}" 2669fi 2670 2671rm -rf .tst 2>/dev/null 2672mkdir .tst 2>/dev/null 2673if test -d .tst; then 2674 am__leading_dot=. 2675else 2676 am__leading_dot=_ 2677fi 2678rmdir .tst 2>/dev/null 2679 2680# Check whether --enable-silent-rules was given. 2681if test "${enable_silent_rules+set}" = set; then : 2682 enableval=$enable_silent_rules; 2683fi 2684 2685case $enable_silent_rules in # ((( 2686 yes) AM_DEFAULT_VERBOSITY=0;; 2687 no) AM_DEFAULT_VERBOSITY=1;; 2688 *) AM_DEFAULT_VERBOSITY=1;; 2689esac 2690am_make=${MAKE-make} 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2692$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2693if ${am_cv_make_support_nested_variables+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 if $as_echo 'TRUE=$(BAR$(V)) 2697BAR0=false 2698BAR1=true 2699V=1 2700am__doit: 2701 @$(TRUE) 2702.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2703 am_cv_make_support_nested_variables=yes 2704else 2705 am_cv_make_support_nested_variables=no 2706fi 2707fi 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2709$as_echo "$am_cv_make_support_nested_variables" >&6; } 2710if test $am_cv_make_support_nested_variables = yes; then 2711 AM_V='$(V)' 2712 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2713else 2714 AM_V=$AM_DEFAULT_VERBOSITY 2715 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2716fi 2717AM_BACKSLASH='\' 2718 2719if test "`cd $srcdir && pwd`" != "`pwd`"; then 2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2721 # is not polluted with repeated "-I." 2722 am__isrc=' -I$(srcdir)' 2723 # test to see if srcdir already configured 2724 if test -f $srcdir/config.status; then 2725 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2726 fi 2727fi 2728 2729# test whether we have cygpath 2730if test -z "$CYGPATH_W"; then 2731 if (cygpath --version) >/dev/null 2>/dev/null; then 2732 CYGPATH_W='cygpath -w' 2733 else 2734 CYGPATH_W=echo 2735 fi 2736fi 2737 2738 2739# Define the identity of the package. 2740 PACKAGE='ldapaddressbook' 2741 VERSION='0.10' 2742 2743 2744# Some tools Automake needs. 2745 2746ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2747 2748 2749AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2750 2751 2752AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2753 2754 2755AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2756 2757 2758MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2759 2760# For better backward compatibility. To be removed once Automake 1.9.x 2761# dies out for good. For more background, see: 2762# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2763# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2764mkdir_p='$(MKDIR_P)' 2765 2766# We need awk for the "check" target (and possibly the TAP driver). The 2767# system "awk" is bad on some platforms. 2768# Always define AMTAR for backward compatibility. Yes, it's still used 2769# in the wild :-( We should find a proper way to deprecate it ... 2770AMTAR='$${TAR-tar}' 2771 2772 2773# We'll loop over all known methods to create a tar archive until one works. 2774_am_tools='gnutar pax cpio none' 2775 2776am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2777 2778 2779 2780 2781 2782 2783# POSIX will say in a future version that running "rm -f" with no argument 2784# is OK; and we want to be able to make that assumption in our Makefile 2785# recipes. So use an aggressive probe to check that the usage we want is 2786# actually supported "in the wild" to an acceptable degree. 2787# See automake bug#10828. 2788# To make any issue more visible, cause the running configure to be aborted 2789# by default if the 'rm' program in use doesn't match our expectations; the 2790# user can still override this though. 2791if rm -f && rm -fr && rm -rf; then : OK; else 2792 cat >&2 <<'END' 2793Oops! 2794 2795Your 'rm' program seems unable to run without file operands specified 2796on the command line, even when the '-f' option is present. This is contrary 2797to the behaviour of most rm programs out there, and not conforming with 2798the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2799 2800Please tell bug-automake@gnu.org about your system, including the value 2801of your $PATH and any error possibly output before this message. This 2802can help us improve future automake versions. 2803 2804END 2805 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2806 echo 'Configuration will proceed anyway, since you have set the' >&2 2807 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2808 echo >&2 2809 else 2810 cat >&2 <<'END' 2811Aborting the configuration process, to ensure you take notice of the issue. 2812 2813You can download and install GNU coreutils to get an 'rm' implementation 2814that behaves properly: <https://www.gnu.org/software/coreutils/>. 2815 2816If you want to complete the configuration process using your problematic 2817'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2818to "yes", and re-run configure. 2819 2820END 2821 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2822 fi 2823fi 2824 2825LPATH="$PATH:/usr/local/bin" 2826ac_config_headers="$ac_config_headers config.h" 2827 2828 2829DEPDIR="${am__leading_dot}deps" 2830 2831ac_config_commands="$ac_config_commands depfiles" 2832 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2834$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2835cat > confinc.mk << 'END' 2836am__doit: 2837 @echo this is the am__doit target >confinc.out 2838.PHONY: am__doit 2839END 2840am__include="#" 2841am__quote= 2842# BSD make does it like this. 2843echo '.include "confinc.mk" # ignored' > confmf.BSD 2844# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2845echo 'include confinc.mk # ignored' > confmf.GNU 2846_am_result=no 2847for s in GNU BSD; do 2848 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2849 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2850 ac_status=$? 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852 (exit $ac_status); } 2853 case $?:`cat confinc.out 2>/dev/null` in #( 2854 '0:this is the am__doit target') : 2855 case $s in #( 2856 BSD) : 2857 am__include='.include' am__quote='"' ;; #( 2858 *) : 2859 am__include='include' am__quote='' ;; 2860esac ;; #( 2861 *) : 2862 ;; 2863esac 2864 if test "$am__include" != "#"; then 2865 _am_result="yes ($s style)" 2866 break 2867 fi 2868done 2869rm -f confinc.* confmf.* 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2871$as_echo "${_am_result}" >&6; } 2872 2873# Check whether --enable-dependency-tracking was given. 2874if test "${enable_dependency_tracking+set}" = set; then : 2875 enableval=$enable_dependency_tracking; 2876fi 2877 2878if test "x$enable_dependency_tracking" != xno; then 2879 am_depcomp="$ac_aux_dir/depcomp" 2880 AMDEPBACKSLASH='\' 2881 am__nodep='_no' 2882fi 2883 if test "x$enable_dependency_tracking" != xno; then 2884 AMDEP_TRUE= 2885 AMDEP_FALSE='#' 2886else 2887 AMDEP_TRUE='#' 2888 AMDEP_FALSE= 2889fi 2890 2891 2892ac_ext=c 2893ac_cpp='$CPP $CPPFLAGS' 2894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2896ac_compiler_gnu=$ac_cv_c_compiler_gnu 2897if test -n "$ac_tool_prefix"; then 2898 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2899set dummy ${ac_tool_prefix}gcc; ac_word=$2 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901$as_echo_n "checking for $ac_word... " >&6; } 2902if ${ac_cv_prog_CC+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 if test -n "$CC"; then 2906 ac_cv_prog_CC="$CC" # Let the user override the test. 2907else 2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2915 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919done 2920 done 2921IFS=$as_save_IFS 2922 2923fi 2924fi 2925CC=$ac_cv_prog_CC 2926if test -n "$CC"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2928$as_echo "$CC" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 2935fi 2936if test -z "$ac_cv_prog_CC"; then 2937 ac_ct_CC=$CC 2938 # Extract the first word of "gcc", so it can be a program name with args. 2939set dummy gcc; ac_word=$2 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2941$as_echo_n "checking for $ac_word... " >&6; } 2942if ${ac_cv_prog_ac_ct_CC+:} false; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 if test -n "$ac_ct_CC"; then 2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2947else 2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949for as_dir in $PATH 2950do 2951 IFS=$as_save_IFS 2952 test -z "$as_dir" && as_dir=. 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2955 ac_cv_prog_ac_ct_CC="gcc" 2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2957 break 2 2958 fi 2959done 2960 done 2961IFS=$as_save_IFS 2962 2963fi 2964fi 2965ac_ct_CC=$ac_cv_prog_ac_ct_CC 2966if test -n "$ac_ct_CC"; then 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2968$as_echo "$ac_ct_CC" >&6; } 2969else 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971$as_echo "no" >&6; } 2972fi 2973 2974 if test "x$ac_ct_CC" = x; then 2975 CC="" 2976 else 2977 case $cross_compiling:$ac_tool_warned in 2978yes:) 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2981ac_tool_warned=yes ;; 2982esac 2983 CC=$ac_ct_CC 2984 fi 2985else 2986 CC="$ac_cv_prog_CC" 2987fi 2988 2989if test -z "$CC"; then 2990 if test -n "$ac_tool_prefix"; then 2991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2992set dummy ${ac_tool_prefix}cc; ac_word=$2 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994$as_echo_n "checking for $ac_word... " >&6; } 2995if ${ac_cv_prog_CC+:} false; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 if test -n "$CC"; then 2999 ac_cv_prog_CC="$CC" # Let the user override the test. 3000else 3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002for as_dir in $PATH 3003do 3004 IFS=$as_save_IFS 3005 test -z "$as_dir" && as_dir=. 3006 for ac_exec_ext in '' $ac_executable_extensions; do 3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3008 ac_cv_prog_CC="${ac_tool_prefix}cc" 3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3010 break 2 3011 fi 3012done 3013 done 3014IFS=$as_save_IFS 3015 3016fi 3017fi 3018CC=$ac_cv_prog_CC 3019if test -n "$CC"; then 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3021$as_echo "$CC" >&6; } 3022else 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3024$as_echo "no" >&6; } 3025fi 3026 3027 3028 fi 3029fi 3030if test -z "$CC"; then 3031 # Extract the first word of "cc", so it can be a program name with args. 3032set dummy cc; ac_word=$2 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3034$as_echo_n "checking for $ac_word... " >&6; } 3035if ${ac_cv_prog_CC+:} false; then : 3036 $as_echo_n "(cached) " >&6 3037else 3038 if test -n "$CC"; then 3039 ac_cv_prog_CC="$CC" # Let the user override the test. 3040else 3041 ac_prog_rejected=no 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3050 ac_prog_rejected=yes 3051 continue 3052 fi 3053 ac_cv_prog_CC="cc" 3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3055 break 2 3056 fi 3057done 3058 done 3059IFS=$as_save_IFS 3060 3061if test $ac_prog_rejected = yes; then 3062 # We found a bogon in the path, so make sure we never use it. 3063 set dummy $ac_cv_prog_CC 3064 shift 3065 if test $# != 0; then 3066 # We chose a different compiler from the bogus one. 3067 # However, it has the same basename, so the bogon will be chosen 3068 # first if we set CC to just the basename; use the full file name. 3069 shift 3070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3071 fi 3072fi 3073fi 3074fi 3075CC=$ac_cv_prog_CC 3076if test -n "$CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3078$as_echo "$CC" >&6; } 3079else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082fi 3083 3084 3085fi 3086if test -z "$CC"; then 3087 if test -n "$ac_tool_prefix"; then 3088 for ac_prog in cl.exe 3089 do 3090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3091set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3093$as_echo_n "checking for $ac_word... " >&6; } 3094if ${ac_cv_prog_CC+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 if test -n "$CC"; then 3098 ac_cv_prog_CC="$CC" # Let the user override the test. 3099else 3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101for as_dir in $PATH 3102do 3103 IFS=$as_save_IFS 3104 test -z "$as_dir" && as_dir=. 3105 for ac_exec_ext in '' $ac_executable_extensions; do 3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3109 break 2 3110 fi 3111done 3112 done 3113IFS=$as_save_IFS 3114 3115fi 3116fi 3117CC=$ac_cv_prog_CC 3118if test -n "$CC"; then 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3120$as_echo "$CC" >&6; } 3121else 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3123$as_echo "no" >&6; } 3124fi 3125 3126 3127 test -n "$CC" && break 3128 done 3129fi 3130if test -z "$CC"; then 3131 ac_ct_CC=$CC 3132 for ac_prog in cl.exe 3133do 3134 # Extract the first word of "$ac_prog", so it can be a program name with args. 3135set dummy $ac_prog; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if ${ac_cv_prog_ac_ct_CC+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$ac_ct_CC"; then 3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3151 ac_cv_prog_ac_ct_CC="$ac_prog" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155done 3156 done 3157IFS=$as_save_IFS 3158 3159fi 3160fi 3161ac_ct_CC=$ac_cv_prog_ac_ct_CC 3162if test -n "$ac_ct_CC"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3164$as_echo "$ac_ct_CC" >&6; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168fi 3169 3170 3171 test -n "$ac_ct_CC" && break 3172done 3173 3174 if test "x$ac_ct_CC" = x; then 3175 CC="" 3176 else 3177 case $cross_compiling:$ac_tool_warned in 3178yes:) 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3181ac_tool_warned=yes ;; 3182esac 3183 CC=$ac_ct_CC 3184 fi 3185fi 3186 3187fi 3188 3189 3190test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3192as_fn_error $? "no acceptable C compiler found in \$PATH 3193See \`config.log' for more details" "$LINENO" 5; } 3194 3195# Provide some information about the compiler. 3196$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3197set X $ac_compile 3198ac_compiler=$2 3199for ac_option in --version -v -V -qversion; do 3200 { { ac_try="$ac_compiler $ac_option >&5" 3201case "(($ac_try" in 3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3203 *) ac_try_echo=$ac_try;; 3204esac 3205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3206$as_echo "$ac_try_echo"; } >&5 3207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3208 ac_status=$? 3209 if test -s conftest.err; then 3210 sed '10a\ 3211... rest of stderr output deleted ... 3212 10q' conftest.err >conftest.er1 3213 cat conftest.er1 >&5 3214 fi 3215 rm -f conftest.er1 conftest.err 3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; } 3218done 3219 3220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3221/* end confdefs.h. */ 3222 3223int 3224main () 3225{ 3226 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231ac_clean_files_save=$ac_clean_files 3232ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3233# Try to create an executable without -o first, disregard a.out. 3234# It will help us diagnose broken compilers, and finding out an intuition 3235# of exeext. 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3237$as_echo_n "checking whether the C compiler works... " >&6; } 3238ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3239 3240# The possible output files: 3241ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3242 3243ac_rmfiles= 3244for ac_file in $ac_files 3245do 3246 case $ac_file in 3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3248 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3249 esac 3250done 3251rm -f $ac_rmfiles 3252 3253if { { ac_try="$ac_link_default" 3254case "(($ac_try" in 3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3256 *) ac_try_echo=$ac_try;; 3257esac 3258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3259$as_echo "$ac_try_echo"; } >&5 3260 (eval "$ac_link_default") 2>&5 3261 ac_status=$? 3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3263 test $ac_status = 0; }; then : 3264 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3265# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3266# in a Makefile. We should not override ac_cv_exeext if it was cached, 3267# so that the user can short-circuit this test for compilers unknown to 3268# Autoconf. 3269for ac_file in $ac_files '' 3270do 3271 test -f "$ac_file" || continue 3272 case $ac_file in 3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3274 ;; 3275 [ab].out ) 3276 # We found the default executable, but exeext='' is most 3277 # certainly right. 3278 break;; 3279 *.* ) 3280 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3281 then :; else 3282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3283 fi 3284 # We set ac_cv_exeext here because the later test for it is not 3285 # safe: cross compilers may not add the suffix if given an `-o' 3286 # argument, so we may need to know it at that point already. 3287 # Even if this section looks crufty: it has the advantage of 3288 # actually working. 3289 break;; 3290 * ) 3291 break;; 3292 esac 3293done 3294test "$ac_cv_exeext" = no && ac_cv_exeext= 3295 3296else 3297 ac_file='' 3298fi 3299if test -z "$ac_file"; then : 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301$as_echo "no" >&6; } 3302$as_echo "$as_me: failed program was:" >&5 3303sed 's/^/| /' conftest.$ac_ext >&5 3304 3305{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3307as_fn_error 77 "C compiler cannot create executables 3308See \`config.log' for more details" "$LINENO" 5; } 3309else 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3311$as_echo "yes" >&6; } 3312fi 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3314$as_echo_n "checking for C compiler default output file name... " >&6; } 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3316$as_echo "$ac_file" >&6; } 3317ac_exeext=$ac_cv_exeext 3318 3319rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3320ac_clean_files=$ac_clean_files_save 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3322$as_echo_n "checking for suffix of executables... " >&6; } 3323if { { ac_try="$ac_link" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3329$as_echo "$ac_try_echo"; } >&5 3330 (eval "$ac_link") 2>&5 3331 ac_status=$? 3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3333 test $ac_status = 0; }; then : 3334 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3335# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3336# work properly (i.e., refer to `conftest.exe'), while it won't with 3337# `rm'. 3338for ac_file in conftest.exe conftest conftest.*; do 3339 test -f "$ac_file" || continue 3340 case $ac_file in 3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3343 break;; 3344 * ) break;; 3345 esac 3346done 3347else 3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3350as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3351See \`config.log' for more details" "$LINENO" 5; } 3352fi 3353rm -f conftest conftest$ac_cv_exeext 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3355$as_echo "$ac_cv_exeext" >&6; } 3356 3357rm -f conftest.$ac_ext 3358EXEEXT=$ac_cv_exeext 3359ac_exeext=$EXEEXT 3360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3361/* end confdefs.h. */ 3362#include <stdio.h> 3363int 3364main () 3365{ 3366FILE *f = fopen ("conftest.out", "w"); 3367 return ferror (f) || fclose (f) != 0; 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373ac_clean_files="$ac_clean_files conftest.out" 3374# Check that the compiler produces executables we can run. If not, either 3375# the compiler is broken, or we cross compile. 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3377$as_echo_n "checking whether we are cross compiling... " >&6; } 3378if test "$cross_compiling" != yes; then 3379 { { ac_try="$ac_link" 3380case "(($ac_try" in 3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3382 *) ac_try_echo=$ac_try;; 3383esac 3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3385$as_echo "$ac_try_echo"; } >&5 3386 (eval "$ac_link") 2>&5 3387 ac_status=$? 3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3389 test $ac_status = 0; } 3390 if { ac_try='./conftest$ac_cv_exeext' 3391 { { case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394esac 3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3396$as_echo "$ac_try_echo"; } >&5 3397 (eval "$ac_try") 2>&5 3398 ac_status=$? 3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3400 test $ac_status = 0; }; }; then 3401 cross_compiling=no 3402 else 3403 if test "$cross_compiling" = maybe; then 3404 cross_compiling=yes 3405 else 3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3408as_fn_error $? "cannot run C compiled programs. 3409If you meant to cross compile, use \`--host'. 3410See \`config.log' for more details" "$LINENO" 5; } 3411 fi 3412 fi 3413fi 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3415$as_echo "$cross_compiling" >&6; } 3416 3417rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3418ac_clean_files=$ac_clean_files_save 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3420$as_echo_n "checking for suffix of object files... " >&6; } 3421if ${ac_cv_objext+:} false; then : 3422 $as_echo_n "(cached) " >&6 3423else 3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3425/* end confdefs.h. */ 3426 3427int 3428main () 3429{ 3430 3431 ; 3432 return 0; 3433} 3434_ACEOF 3435rm -f conftest.o conftest.obj 3436if { { ac_try="$ac_compile" 3437case "(($ac_try" in 3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3439 *) ac_try_echo=$ac_try;; 3440esac 3441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3442$as_echo "$ac_try_echo"; } >&5 3443 (eval "$ac_compile") 2>&5 3444 ac_status=$? 3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3446 test $ac_status = 0; }; then : 3447 for ac_file in conftest.o conftest.obj conftest.*; do 3448 test -f "$ac_file" || continue; 3449 case $ac_file in 3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3452 break;; 3453 esac 3454done 3455else 3456 $as_echo "$as_me: failed program was:" >&5 3457sed 's/^/| /' conftest.$ac_ext >&5 3458 3459{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3461as_fn_error $? "cannot compute suffix of object files: cannot compile 3462See \`config.log' for more details" "$LINENO" 5; } 3463fi 3464rm -f conftest.$ac_cv_objext conftest.$ac_ext 3465fi 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3467$as_echo "$ac_cv_objext" >&6; } 3468OBJEXT=$ac_cv_objext 3469ac_objext=$OBJEXT 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3471$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3472if ${ac_cv_c_compiler_gnu+:} false; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476/* end confdefs.h. */ 3477 3478int 3479main () 3480{ 3481#ifndef __GNUC__ 3482 choke me 3483#endif 3484 3485 ; 3486 return 0; 3487} 3488_ACEOF 3489if ac_fn_c_try_compile "$LINENO"; then : 3490 ac_compiler_gnu=yes 3491else 3492 ac_compiler_gnu=no 3493fi 3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3495ac_cv_c_compiler_gnu=$ac_compiler_gnu 3496 3497fi 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3499$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3500if test $ac_compiler_gnu = yes; then 3501 GCC=yes 3502else 3503 GCC= 3504fi 3505ac_test_CFLAGS=${CFLAGS+set} 3506ac_save_CFLAGS=$CFLAGS 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3508$as_echo_n "checking whether $CC accepts -g... " >&6; } 3509if ${ac_cv_prog_cc_g+:} false; then : 3510 $as_echo_n "(cached) " >&6 3511else 3512 ac_save_c_werror_flag=$ac_c_werror_flag 3513 ac_c_werror_flag=yes 3514 ac_cv_prog_cc_g=no 3515 CFLAGS="-g" 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519int 3520main () 3521{ 3522 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527if ac_fn_c_try_compile "$LINENO"; then : 3528 ac_cv_prog_cc_g=yes 3529else 3530 CFLAGS="" 3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3532/* end confdefs.h. */ 3533 3534int 3535main () 3536{ 3537 3538 ; 3539 return 0; 3540} 3541_ACEOF 3542if ac_fn_c_try_compile "$LINENO"; then : 3543 3544else 3545 ac_c_werror_flag=$ac_save_c_werror_flag 3546 CFLAGS="-g" 3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558if ac_fn_c_try_compile "$LINENO"; then : 3559 ac_cv_prog_cc_g=yes 3560fi 3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3562fi 3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3564fi 3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3566 ac_c_werror_flag=$ac_save_c_werror_flag 3567fi 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3569$as_echo "$ac_cv_prog_cc_g" >&6; } 3570if test "$ac_test_CFLAGS" = set; then 3571 CFLAGS=$ac_save_CFLAGS 3572elif test $ac_cv_prog_cc_g = yes; then 3573 if test "$GCC" = yes; then 3574 CFLAGS="-g -O2" 3575 else 3576 CFLAGS="-g" 3577 fi 3578else 3579 if test "$GCC" = yes; then 3580 CFLAGS="-O2" 3581 else 3582 CFLAGS= 3583 fi 3584fi 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3586$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3587if ${ac_cv_prog_cc_c89+:} false; then : 3588 $as_echo_n "(cached) " >&6 3589else 3590 ac_cv_prog_cc_c89=no 3591ac_save_CC=$CC 3592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3593/* end confdefs.h. */ 3594#include <stdarg.h> 3595#include <stdio.h> 3596struct stat; 3597/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3598struct buf { int x; }; 3599FILE * (*rcsopen) (struct buf *, struct stat *, int); 3600static char *e (p, i) 3601 char **p; 3602 int i; 3603{ 3604 return p[i]; 3605} 3606static char *f (char * (*g) (char **, int), char **p, ...) 3607{ 3608 char *s; 3609 va_list v; 3610 va_start (v,p); 3611 s = g (p, va_arg (v,int)); 3612 va_end (v); 3613 return s; 3614} 3615 3616/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3617 function prototypes and stuff, but not '\xHH' hex character constants. 3618 These don't provoke an error unfortunately, instead are silently treated 3619 as 'x'. The following induces an error, until -std is added to get 3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3621 array size at least. It's necessary to write '\x00'==0 to get something 3622 that's true only with -std. */ 3623int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3624 3625/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3626 inside strings and character constants. */ 3627#define FOO(x) 'x' 3628int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3629 3630int test (int i, double x); 3631struct s1 {int (*f) (int a);}; 3632struct s2 {int (*f) (double a);}; 3633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3634int argc; 3635char **argv; 3636int 3637main () 3638{ 3639return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3640 ; 3641 return 0; 3642} 3643_ACEOF 3644for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3646do 3647 CC="$ac_save_CC $ac_arg" 3648 if ac_fn_c_try_compile "$LINENO"; then : 3649 ac_cv_prog_cc_c89=$ac_arg 3650fi 3651rm -f core conftest.err conftest.$ac_objext 3652 test "x$ac_cv_prog_cc_c89" != "xno" && break 3653done 3654rm -f conftest.$ac_ext 3655CC=$ac_save_CC 3656 3657fi 3658# AC_CACHE_VAL 3659case "x$ac_cv_prog_cc_c89" in 3660 x) 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3662$as_echo "none needed" >&6; } ;; 3663 xno) 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3665$as_echo "unsupported" >&6; } ;; 3666 *) 3667 CC="$CC $ac_cv_prog_cc_c89" 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3669$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3670esac 3671if test "x$ac_cv_prog_cc_c89" != xno; then : 3672 3673fi 3674 3675ac_ext=c 3676ac_cpp='$CPP $CPPFLAGS' 3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3679ac_compiler_gnu=$ac_cv_c_compiler_gnu 3680 3681ac_ext=c 3682ac_cpp='$CPP $CPPFLAGS' 3683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3685ac_compiler_gnu=$ac_cv_c_compiler_gnu 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3687$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3688if ${am_cv_prog_cc_c_o+:} false; then : 3689 $as_echo_n "(cached) " >&6 3690else 3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3692/* end confdefs.h. */ 3693 3694int 3695main () 3696{ 3697 3698 ; 3699 return 0; 3700} 3701_ACEOF 3702 # Make sure it works both with $CC and with simple cc. 3703 # Following AC_PROG_CC_C_O, we do the test twice because some 3704 # compilers refuse to overwrite an existing .o file with -o, 3705 # though they will create one. 3706 am_cv_prog_cc_c_o=yes 3707 for am_i in 1 2; do 3708 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3709 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3710 ac_status=$? 3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3712 (exit $ac_status); } \ 3713 && test -f conftest2.$ac_objext; then 3714 : OK 3715 else 3716 am_cv_prog_cc_c_o=no 3717 break 3718 fi 3719 done 3720 rm -f core conftest* 3721 unset am_i 3722fi 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3724$as_echo "$am_cv_prog_cc_c_o" >&6; } 3725if test "$am_cv_prog_cc_c_o" != yes; then 3726 # Losing compiler, so override with the script. 3727 # FIXME: It is wrong to rewrite CC. 3728 # But if we don't then we get into trouble of one sort or another. 3729 # A longer-term fix would be to have automake use am__CC in this case, 3730 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3731 CC="$am_aux_dir/compile $CC" 3732fi 3733ac_ext=c 3734ac_cpp='$CPP $CPPFLAGS' 3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3737ac_compiler_gnu=$ac_cv_c_compiler_gnu 3738 3739 3740depcc="$CC" am_compiler_list= 3741 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3743$as_echo_n "checking dependency style of $depcc... " >&6; } 3744if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3748 # We make a subdir and do the tests there. Otherwise we can end up 3749 # making bogus files that we don't know about and never remove. For 3750 # instance it was reported that on HP-UX the gcc test will end up 3751 # making a dummy file named 'D' -- because '-MD' means "put the output 3752 # in D". 3753 rm -rf conftest.dir 3754 mkdir conftest.dir 3755 # Copy depcomp to subdir because otherwise we won't find it if we're 3756 # using a relative directory. 3757 cp "$am_depcomp" conftest.dir 3758 cd conftest.dir 3759 # We will build objects and dependencies in a subdirectory because 3760 # it helps to detect inapplicable dependency modes. For instance 3761 # both Tru64's cc and ICC support -MD to output dependencies as a 3762 # side effect of compilation, but ICC will put the dependencies in 3763 # the current directory while Tru64 will put them in the object 3764 # directory. 3765 mkdir sub 3766 3767 am_cv_CC_dependencies_compiler_type=none 3768 if test "$am_compiler_list" = ""; then 3769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3770 fi 3771 am__universal=false 3772 case " $depcc " in #( 3773 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3774 esac 3775 3776 for depmode in $am_compiler_list; do 3777 # Setup a source with many dependencies, because some compilers 3778 # like to wrap large dependency lists on column 80 (with \), and 3779 # we should not choose a depcomp mode which is confused by this. 3780 # 3781 # We need to recreate these files for each test, as the compiler may 3782 # overwrite some of them when testing with obscure command lines. 3783 # This happens at least with the AIX C compiler. 3784 : > sub/conftest.c 3785 for i in 1 2 3 4 5 6; do 3786 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3787 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3788 # Solaris 10 /bin/sh. 3789 echo '/* dummy */' > sub/conftst$i.h 3790 done 3791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3792 3793 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3794 # mode. It turns out that the SunPro C++ compiler does not properly 3795 # handle '-M -o', and we need to detect this. Also, some Intel 3796 # versions had trouble with output in subdirs. 3797 am__obj=sub/conftest.${OBJEXT-o} 3798 am__minus_obj="-o $am__obj" 3799 case $depmode in 3800 gcc) 3801 # This depmode causes a compiler race in universal mode. 3802 test "$am__universal" = false || continue 3803 ;; 3804 nosideeffect) 3805 # After this tag, mechanisms are not by side-effect, so they'll 3806 # only be used when explicitly requested. 3807 if test "x$enable_dependency_tracking" = xyes; then 3808 continue 3809 else 3810 break 3811 fi 3812 ;; 3813 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3814 # This compiler won't grok '-c -o', but also, the minuso test has 3815 # not run yet. These depmodes are late enough in the game, and 3816 # so weak that their functioning should not be impacted. 3817 am__obj=conftest.${OBJEXT-o} 3818 am__minus_obj= 3819 ;; 3820 none) break ;; 3821 esac 3822 if depmode=$depmode \ 3823 source=sub/conftest.c object=$am__obj \ 3824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3826 >/dev/null 2>conftest.err && 3827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3831 # icc doesn't choke on unknown options, it will just issue warnings 3832 # or remarks (even with -Werror). So we grep stderr for any message 3833 # that says an option was ignored or not supported. 3834 # When given -MP, icc 7.0 and 7.1 complain thusly: 3835 # icc: Command line warning: ignoring option '-M'; no argument required 3836 # The diagnosis changed in icc 8.0: 3837 # icc: Command line remark: option '-MP' not supported 3838 if (grep 'ignoring option' conftest.err || 3839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3840 am_cv_CC_dependencies_compiler_type=$depmode 3841 break 3842 fi 3843 fi 3844 done 3845 3846 cd .. 3847 rm -rf conftest.dir 3848else 3849 am_cv_CC_dependencies_compiler_type=none 3850fi 3851 3852fi 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3854$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3855CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3856 3857 if 3858 test "x$enable_dependency_tracking" != xno \ 3859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3860 am__fastdepCC_TRUE= 3861 am__fastdepCC_FALSE='#' 3862else 3863 am__fastdepCC_TRUE='#' 3864 am__fastdepCC_FALSE= 3865fi 3866 3867 3868 3869ac_ext=c 3870ac_cpp='$CPP $CPPFLAGS' 3871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3873ac_compiler_gnu=$ac_cv_c_compiler_gnu 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3875$as_echo_n "checking how to run the C preprocessor... " >&6; } 3876# On Suns, sometimes $CPP names a directory. 3877if test -n "$CPP" && test -d "$CPP"; then 3878 CPP= 3879fi 3880if test -z "$CPP"; then 3881 if ${ac_cv_prog_CPP+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883else 3884 # Double quotes because CPP needs to be expanded 3885 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3886 do 3887 ac_preproc_ok=false 3888for ac_c_preproc_warn_flag in '' yes 3889do 3890 # Use a header file that comes with gcc, so configuring glibc 3891 # with a fresh cross-compiler works. 3892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3893 # <limits.h> exists even on freestanding compilers. 3894 # On the NeXT, cc -E runs the code through the compiler's parser, 3895 # not just through cpp. "Syntax error" is here to catch this case. 3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3897/* end confdefs.h. */ 3898#ifdef __STDC__ 3899# include <limits.h> 3900#else 3901# include <assert.h> 3902#endif 3903 Syntax error 3904_ACEOF 3905if ac_fn_c_try_cpp "$LINENO"; then : 3906 3907else 3908 # Broken: fails on valid input. 3909continue 3910fi 3911rm -f conftest.err conftest.i conftest.$ac_ext 3912 3913 # OK, works on sane cases. Now check whether nonexistent headers 3914 # can be detected and how. 3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3916/* end confdefs.h. */ 3917#include <ac_nonexistent.h> 3918_ACEOF 3919if ac_fn_c_try_cpp "$LINENO"; then : 3920 # Broken: success on invalid input. 3921continue 3922else 3923 # Passes both tests. 3924ac_preproc_ok=: 3925break 3926fi 3927rm -f conftest.err conftest.i conftest.$ac_ext 3928 3929done 3930# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3931rm -f conftest.i conftest.err conftest.$ac_ext 3932if $ac_preproc_ok; then : 3933 break 3934fi 3935 3936 done 3937 ac_cv_prog_CPP=$CPP 3938 3939fi 3940 CPP=$ac_cv_prog_CPP 3941else 3942 ac_cv_prog_CPP=$CPP 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3945$as_echo "$CPP" >&6; } 3946ac_preproc_ok=false 3947for ac_c_preproc_warn_flag in '' yes 3948do 3949 # Use a header file that comes with gcc, so configuring glibc 3950 # with a fresh cross-compiler works. 3951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3952 # <limits.h> exists even on freestanding compilers. 3953 # On the NeXT, cc -E runs the code through the compiler's parser, 3954 # not just through cpp. "Syntax error" is here to catch this case. 3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956/* end confdefs.h. */ 3957#ifdef __STDC__ 3958# include <limits.h> 3959#else 3960# include <assert.h> 3961#endif 3962 Syntax error 3963_ACEOF 3964if ac_fn_c_try_cpp "$LINENO"; then : 3965 3966else 3967 # Broken: fails on valid input. 3968continue 3969fi 3970rm -f conftest.err conftest.i conftest.$ac_ext 3971 3972 # OK, works on sane cases. Now check whether nonexistent headers 3973 # can be detected and how. 3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3975/* end confdefs.h. */ 3976#include <ac_nonexistent.h> 3977_ACEOF 3978if ac_fn_c_try_cpp "$LINENO"; then : 3979 # Broken: success on invalid input. 3980continue 3981else 3982 # Passes both tests. 3983ac_preproc_ok=: 3984break 3985fi 3986rm -f conftest.err conftest.i conftest.$ac_ext 3987 3988done 3989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3990rm -f conftest.i conftest.err conftest.$ac_ext 3991if $ac_preproc_ok; then : 3992 3993else 3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3996as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3997See \`config.log' for more details" "$LINENO" 5; } 3998fi 3999 4000ac_ext=c 4001ac_cpp='$CPP $CPPFLAGS' 4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4004ac_compiler_gnu=$ac_cv_c_compiler_gnu 4005 4006 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4008$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4009if ${ac_cv_path_GREP+:} false; then : 4010 $as_echo_n "(cached) " >&6 4011else 4012 if test -z "$GREP"; then 4013 ac_path_GREP_found=false 4014 # Loop through the user's path and test for each of PROGNAME-LIST 4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4017do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 for ac_prog in grep ggrep; do 4021 for ac_exec_ext in '' $ac_executable_extensions; do 4022 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4023 as_fn_executable_p "$ac_path_GREP" || continue 4024# Check for GNU ac_path_GREP and select it if it is found. 4025 # Check for GNU $ac_path_GREP 4026case `"$ac_path_GREP" --version 2>&1` in 4027*GNU*) 4028 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4029*) 4030 ac_count=0 4031 $as_echo_n 0123456789 >"conftest.in" 4032 while : 4033 do 4034 cat "conftest.in" "conftest.in" >"conftest.tmp" 4035 mv "conftest.tmp" "conftest.in" 4036 cp "conftest.in" "conftest.nl" 4037 $as_echo 'GREP' >> "conftest.nl" 4038 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4040 as_fn_arith $ac_count + 1 && ac_count=$as_val 4041 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4042 # Best one so far, save it but keep looking for a better one 4043 ac_cv_path_GREP="$ac_path_GREP" 4044 ac_path_GREP_max=$ac_count 4045 fi 4046 # 10*(2^10) chars as input seems more than enough 4047 test $ac_count -gt 10 && break 4048 done 4049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4050esac 4051 4052 $ac_path_GREP_found && break 3 4053 done 4054 done 4055 done 4056IFS=$as_save_IFS 4057 if test -z "$ac_cv_path_GREP"; then 4058 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4059 fi 4060else 4061 ac_cv_path_GREP=$GREP 4062fi 4063 4064fi 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4066$as_echo "$ac_cv_path_GREP" >&6; } 4067 GREP="$ac_cv_path_GREP" 4068 4069 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4071$as_echo_n "checking for egrep... " >&6; } 4072if ${ac_cv_path_EGREP+:} false; then : 4073 $as_echo_n "(cached) " >&6 4074else 4075 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4076 then ac_cv_path_EGREP="$GREP -E" 4077 else 4078 if test -z "$EGREP"; then 4079 ac_path_EGREP_found=false 4080 # Loop through the user's path and test for each of PROGNAME-LIST 4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4083do 4084 IFS=$as_save_IFS 4085 test -z "$as_dir" && as_dir=. 4086 for ac_prog in egrep; do 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4089 as_fn_executable_p "$ac_path_EGREP" || continue 4090# Check for GNU ac_path_EGREP and select it if it is found. 4091 # Check for GNU $ac_path_EGREP 4092case `"$ac_path_EGREP" --version 2>&1` in 4093*GNU*) 4094 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4095*) 4096 ac_count=0 4097 $as_echo_n 0123456789 >"conftest.in" 4098 while : 4099 do 4100 cat "conftest.in" "conftest.in" >"conftest.tmp" 4101 mv "conftest.tmp" "conftest.in" 4102 cp "conftest.in" "conftest.nl" 4103 $as_echo 'EGREP' >> "conftest.nl" 4104 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4106 as_fn_arith $ac_count + 1 && ac_count=$as_val 4107 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4108 # Best one so far, save it but keep looking for a better one 4109 ac_cv_path_EGREP="$ac_path_EGREP" 4110 ac_path_EGREP_max=$ac_count 4111 fi 4112 # 10*(2^10) chars as input seems more than enough 4113 test $ac_count -gt 10 && break 4114 done 4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4116esac 4117 4118 $ac_path_EGREP_found && break 3 4119 done 4120 done 4121 done 4122IFS=$as_save_IFS 4123 if test -z "$ac_cv_path_EGREP"; then 4124 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4125 fi 4126else 4127 ac_cv_path_EGREP=$EGREP 4128fi 4129 4130 fi 4131fi 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4133$as_echo "$ac_cv_path_EGREP" >&6; } 4134 EGREP="$ac_cv_path_EGREP" 4135 4136 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4138$as_echo_n "checking for ANSI C header files... " >&6; } 4139if ${ac_cv_header_stdc+:} false; then : 4140 $as_echo_n "(cached) " >&6 4141else 4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4143/* end confdefs.h. */ 4144#include <stdlib.h> 4145#include <stdarg.h> 4146#include <string.h> 4147#include <float.h> 4148 4149int 4150main () 4151{ 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157if ac_fn_c_try_compile "$LINENO"; then : 4158 ac_cv_header_stdc=yes 4159else 4160 ac_cv_header_stdc=no 4161fi 4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4163 4164if test $ac_cv_header_stdc = yes; then 4165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4167/* end confdefs.h. */ 4168#include <string.h> 4169 4170_ACEOF 4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4172 $EGREP "memchr" >/dev/null 2>&1; then : 4173 4174else 4175 ac_cv_header_stdc=no 4176fi 4177rm -f conftest* 4178 4179fi 4180 4181if test $ac_cv_header_stdc = yes; then 4182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185#include <stdlib.h> 4186 4187_ACEOF 4188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4189 $EGREP "free" >/dev/null 2>&1; then : 4190 4191else 4192 ac_cv_header_stdc=no 4193fi 4194rm -f conftest* 4195 4196fi 4197 4198if test $ac_cv_header_stdc = yes; then 4199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4200 if test "$cross_compiling" = yes; then : 4201 : 4202else 4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204/* end confdefs.h. */ 4205#include <ctype.h> 4206#include <stdlib.h> 4207#if ((' ' & 0x0FF) == 0x020) 4208# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4209# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4210#else 4211# define ISLOWER(c) \ 4212 (('a' <= (c) && (c) <= 'i') \ 4213 || ('j' <= (c) && (c) <= 'r') \ 4214 || ('s' <= (c) && (c) <= 'z')) 4215# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4216#endif 4217 4218#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4219int 4220main () 4221{ 4222 int i; 4223 for (i = 0; i < 256; i++) 4224 if (XOR (islower (i), ISLOWER (i)) 4225 || toupper (i) != TOUPPER (i)) 4226 return 2; 4227 return 0; 4228} 4229_ACEOF 4230if ac_fn_c_try_run "$LINENO"; then : 4231 4232else 4233 ac_cv_header_stdc=no 4234fi 4235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4236 conftest.$ac_objext conftest.beam conftest.$ac_ext 4237fi 4238 4239fi 4240fi 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4242$as_echo "$ac_cv_header_stdc" >&6; } 4243if test $ac_cv_header_stdc = yes; then 4244 4245$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4246 4247fi 4248 4249# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4250for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4251 inttypes.h stdint.h unistd.h 4252do : 4253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4254ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4255" 4256if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4257 cat >>confdefs.h <<_ACEOF 4258#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4259_ACEOF 4260 4261fi 4262 4263done 4264 4265 4266 4267 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4268if test "x$ac_cv_header_minix_config_h" = xyes; then : 4269 MINIX=yes 4270else 4271 MINIX= 4272fi 4273 4274 4275 if test "$MINIX" = yes; then 4276 4277$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4278 4279 4280$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4281 4282 4283$as_echo "#define _MINIX 1" >>confdefs.h 4284 4285 fi 4286 4287 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4289$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4290if ${ac_cv_safe_to_define___extensions__+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4294/* end confdefs.h. */ 4295 4296# define __EXTENSIONS__ 1 4297 $ac_includes_default 4298int 4299main () 4300{ 4301 4302 ; 4303 return 0; 4304} 4305_ACEOF 4306if ac_fn_c_try_compile "$LINENO"; then : 4307 ac_cv_safe_to_define___extensions__=yes 4308else 4309 ac_cv_safe_to_define___extensions__=no 4310fi 4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4312fi 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4314$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4315 test $ac_cv_safe_to_define___extensions__ = yes && 4316 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4317 4318 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4319 4320 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4321 4322 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4323 4324 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4325 4326 4327ac_ext=c 4328ac_cpp='$CPP $CPPFLAGS' 4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4331ac_compiler_gnu=$ac_cv_c_compiler_gnu 4332if test -n "$ac_tool_prefix"; then 4333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4334set dummy ${ac_tool_prefix}gcc; ac_word=$2 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4336$as_echo_n "checking for $ac_word... " >&6; } 4337if ${ac_cv_prog_CC+:} false; then : 4338 $as_echo_n "(cached) " >&6 4339else 4340 if test -n "$CC"; then 4341 ac_cv_prog_CC="$CC" # Let the user override the test. 4342else 4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4344for as_dir in $PATH 4345do 4346 IFS=$as_save_IFS 4347 test -z "$as_dir" && as_dir=. 4348 for ac_exec_ext in '' $ac_executable_extensions; do 4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4350 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4352 break 2 4353 fi 4354done 4355 done 4356IFS=$as_save_IFS 4357 4358fi 4359fi 4360CC=$ac_cv_prog_CC 4361if test -n "$CC"; then 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4363$as_echo "$CC" >&6; } 4364else 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4366$as_echo "no" >&6; } 4367fi 4368 4369 4370fi 4371if test -z "$ac_cv_prog_CC"; then 4372 ac_ct_CC=$CC 4373 # Extract the first word of "gcc", so it can be a program name with args. 4374set dummy gcc; ac_word=$2 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4376$as_echo_n "checking for $ac_word... " >&6; } 4377if ${ac_cv_prog_ac_ct_CC+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379else 4380 if test -n "$ac_ct_CC"; then 4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4382else 4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4384for as_dir in $PATH 4385do 4386 IFS=$as_save_IFS 4387 test -z "$as_dir" && as_dir=. 4388 for ac_exec_ext in '' $ac_executable_extensions; do 4389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4390 ac_cv_prog_ac_ct_CC="gcc" 4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4392 break 2 4393 fi 4394done 4395 done 4396IFS=$as_save_IFS 4397 4398fi 4399fi 4400ac_ct_CC=$ac_cv_prog_ac_ct_CC 4401if test -n "$ac_ct_CC"; then 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4403$as_echo "$ac_ct_CC" >&6; } 4404else 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4406$as_echo "no" >&6; } 4407fi 4408 4409 if test "x$ac_ct_CC" = x; then 4410 CC="" 4411 else 4412 case $cross_compiling:$ac_tool_warned in 4413yes:) 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4416ac_tool_warned=yes ;; 4417esac 4418 CC=$ac_ct_CC 4419 fi 4420else 4421 CC="$ac_cv_prog_CC" 4422fi 4423 4424if test -z "$CC"; then 4425 if test -n "$ac_tool_prefix"; then 4426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4427set dummy ${ac_tool_prefix}cc; ac_word=$2 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4429$as_echo_n "checking for $ac_word... " >&6; } 4430if ${ac_cv_prog_CC+:} false; then : 4431 $as_echo_n "(cached) " >&6 4432else 4433 if test -n "$CC"; then 4434 ac_cv_prog_CC="$CC" # Let the user override the test. 4435else 4436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4437for as_dir in $PATH 4438do 4439 IFS=$as_save_IFS 4440 test -z "$as_dir" && as_dir=. 4441 for ac_exec_ext in '' $ac_executable_extensions; do 4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4443 ac_cv_prog_CC="${ac_tool_prefix}cc" 4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4445 break 2 4446 fi 4447done 4448 done 4449IFS=$as_save_IFS 4450 4451fi 4452fi 4453CC=$ac_cv_prog_CC 4454if test -n "$CC"; then 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4456$as_echo "$CC" >&6; } 4457else 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4459$as_echo "no" >&6; } 4460fi 4461 4462 4463 fi 4464fi 4465if test -z "$CC"; then 4466 # Extract the first word of "cc", so it can be a program name with args. 4467set dummy cc; ac_word=$2 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4469$as_echo_n "checking for $ac_word... " >&6; } 4470if ${ac_cv_prog_CC+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472else 4473 if test -n "$CC"; then 4474 ac_cv_prog_CC="$CC" # Let the user override the test. 4475else 4476 ac_prog_rejected=no 4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4478for as_dir in $PATH 4479do 4480 IFS=$as_save_IFS 4481 test -z "$as_dir" && as_dir=. 4482 for ac_exec_ext in '' $ac_executable_extensions; do 4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4485 ac_prog_rejected=yes 4486 continue 4487 fi 4488 ac_cv_prog_CC="cc" 4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4490 break 2 4491 fi 4492done 4493 done 4494IFS=$as_save_IFS 4495 4496if test $ac_prog_rejected = yes; then 4497 # We found a bogon in the path, so make sure we never use it. 4498 set dummy $ac_cv_prog_CC 4499 shift 4500 if test $# != 0; then 4501 # We chose a different compiler from the bogus one. 4502 # However, it has the same basename, so the bogon will be chosen 4503 # first if we set CC to just the basename; use the full file name. 4504 shift 4505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4506 fi 4507fi 4508fi 4509fi 4510CC=$ac_cv_prog_CC 4511if test -n "$CC"; then 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4513$as_echo "$CC" >&6; } 4514else 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4516$as_echo "no" >&6; } 4517fi 4518 4519 4520fi 4521if test -z "$CC"; then 4522 if test -n "$ac_tool_prefix"; then 4523 for ac_prog in cl.exe 4524 do 4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4526set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4528$as_echo_n "checking for $ac_word... " >&6; } 4529if ${ac_cv_prog_CC+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 if test -n "$CC"; then 4533 ac_cv_prog_CC="$CC" # Let the user override the test. 4534else 4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4536for as_dir in $PATH 4537do 4538 IFS=$as_save_IFS 4539 test -z "$as_dir" && as_dir=. 4540 for ac_exec_ext in '' $ac_executable_extensions; do 4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4544 break 2 4545 fi 4546done 4547 done 4548IFS=$as_save_IFS 4549 4550fi 4551fi 4552CC=$ac_cv_prog_CC 4553if test -n "$CC"; then 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4555$as_echo "$CC" >&6; } 4556else 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4558$as_echo "no" >&6; } 4559fi 4560 4561 4562 test -n "$CC" && break 4563 done 4564fi 4565if test -z "$CC"; then 4566 ac_ct_CC=$CC 4567 for ac_prog in cl.exe 4568do 4569 # Extract the first word of "$ac_prog", so it can be a program name with args. 4570set dummy $ac_prog; ac_word=$2 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4572$as_echo_n "checking for $ac_word... " >&6; } 4573if ${ac_cv_prog_ac_ct_CC+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 if test -n "$ac_ct_CC"; then 4577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4578else 4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580for as_dir in $PATH 4581do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_exec_ext in '' $ac_executable_extensions; do 4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4586 ac_cv_prog_ac_ct_CC="$ac_prog" 4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4588 break 2 4589 fi 4590done 4591 done 4592IFS=$as_save_IFS 4593 4594fi 4595fi 4596ac_ct_CC=$ac_cv_prog_ac_ct_CC 4597if test -n "$ac_ct_CC"; then 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4599$as_echo "$ac_ct_CC" >&6; } 4600else 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4602$as_echo "no" >&6; } 4603fi 4604 4605 4606 test -n "$ac_ct_CC" && break 4607done 4608 4609 if test "x$ac_ct_CC" = x; then 4610 CC="" 4611 else 4612 case $cross_compiling:$ac_tool_warned in 4613yes:) 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4616ac_tool_warned=yes ;; 4617esac 4618 CC=$ac_ct_CC 4619 fi 4620fi 4621 4622fi 4623 4624 4625test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4627as_fn_error $? "no acceptable C compiler found in \$PATH 4628See \`config.log' for more details" "$LINENO" 5; } 4629 4630# Provide some information about the compiler. 4631$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4632set X $ac_compile 4633ac_compiler=$2 4634for ac_option in --version -v -V -qversion; do 4635 { { ac_try="$ac_compiler $ac_option >&5" 4636case "(($ac_try" in 4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4638 *) ac_try_echo=$ac_try;; 4639esac 4640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4641$as_echo "$ac_try_echo"; } >&5 4642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4643 ac_status=$? 4644 if test -s conftest.err; then 4645 sed '10a\ 4646... rest of stderr output deleted ... 4647 10q' conftest.err >conftest.er1 4648 cat conftest.er1 >&5 4649 fi 4650 rm -f conftest.er1 conftest.err 4651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4652 test $ac_status = 0; } 4653done 4654 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4656$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4657if ${ac_cv_c_compiler_gnu+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662 4663int 4664main () 4665{ 4666#ifndef __GNUC__ 4667 choke me 4668#endif 4669 4670 ; 4671 return 0; 4672} 4673_ACEOF 4674if ac_fn_c_try_compile "$LINENO"; then : 4675 ac_compiler_gnu=yes 4676else 4677 ac_compiler_gnu=no 4678fi 4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4680ac_cv_c_compiler_gnu=$ac_compiler_gnu 4681 4682fi 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4684$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4685if test $ac_compiler_gnu = yes; then 4686 GCC=yes 4687else 4688 GCC= 4689fi 4690ac_test_CFLAGS=${CFLAGS+set} 4691ac_save_CFLAGS=$CFLAGS 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4693$as_echo_n "checking whether $CC accepts -g... " >&6; } 4694if ${ac_cv_prog_cc_g+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 ac_save_c_werror_flag=$ac_c_werror_flag 4698 ac_c_werror_flag=yes 4699 ac_cv_prog_cc_g=no 4700 CFLAGS="-g" 4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702/* end confdefs.h. */ 4703 4704int 4705main () 4706{ 4707 4708 ; 4709 return 0; 4710} 4711_ACEOF 4712if ac_fn_c_try_compile "$LINENO"; then : 4713 ac_cv_prog_cc_g=yes 4714else 4715 CFLAGS="" 4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4717/* end confdefs.h. */ 4718 4719int 4720main () 4721{ 4722 4723 ; 4724 return 0; 4725} 4726_ACEOF 4727if ac_fn_c_try_compile "$LINENO"; then : 4728 4729else 4730 ac_c_werror_flag=$ac_save_c_werror_flag 4731 CFLAGS="-g" 4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4733/* end confdefs.h. */ 4734 4735int 4736main () 4737{ 4738 4739 ; 4740 return 0; 4741} 4742_ACEOF 4743if ac_fn_c_try_compile "$LINENO"; then : 4744 ac_cv_prog_cc_g=yes 4745fi 4746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4747fi 4748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4749fi 4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4751 ac_c_werror_flag=$ac_save_c_werror_flag 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4754$as_echo "$ac_cv_prog_cc_g" >&6; } 4755if test "$ac_test_CFLAGS" = set; then 4756 CFLAGS=$ac_save_CFLAGS 4757elif test $ac_cv_prog_cc_g = yes; then 4758 if test "$GCC" = yes; then 4759 CFLAGS="-g -O2" 4760 else 4761 CFLAGS="-g" 4762 fi 4763else 4764 if test "$GCC" = yes; then 4765 CFLAGS="-O2" 4766 else 4767 CFLAGS= 4768 fi 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4771$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4772if ${ac_cv_prog_cc_c89+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 ac_cv_prog_cc_c89=no 4776ac_save_CC=$CC 4777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4778/* end confdefs.h. */ 4779#include <stdarg.h> 4780#include <stdio.h> 4781struct stat; 4782/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4783struct buf { int x; }; 4784FILE * (*rcsopen) (struct buf *, struct stat *, int); 4785static char *e (p, i) 4786 char **p; 4787 int i; 4788{ 4789 return p[i]; 4790} 4791static char *f (char * (*g) (char **, int), char **p, ...) 4792{ 4793 char *s; 4794 va_list v; 4795 va_start (v,p); 4796 s = g (p, va_arg (v,int)); 4797 va_end (v); 4798 return s; 4799} 4800 4801/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4802 function prototypes and stuff, but not '\xHH' hex character constants. 4803 These don't provoke an error unfortunately, instead are silently treated 4804 as 'x'. The following induces an error, until -std is added to get 4805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4806 array size at least. It's necessary to write '\x00'==0 to get something 4807 that's true only with -std. */ 4808int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4809 4810/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4811 inside strings and character constants. */ 4812#define FOO(x) 'x' 4813int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4814 4815int test (int i, double x); 4816struct s1 {int (*f) (int a);}; 4817struct s2 {int (*f) (double a);}; 4818int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4819int argc; 4820char **argv; 4821int 4822main () 4823{ 4824return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4830 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4831do 4832 CC="$ac_save_CC $ac_arg" 4833 if ac_fn_c_try_compile "$LINENO"; then : 4834 ac_cv_prog_cc_c89=$ac_arg 4835fi 4836rm -f core conftest.err conftest.$ac_objext 4837 test "x$ac_cv_prog_cc_c89" != "xno" && break 4838done 4839rm -f conftest.$ac_ext 4840CC=$ac_save_CC 4841 4842fi 4843# AC_CACHE_VAL 4844case "x$ac_cv_prog_cc_c89" in 4845 x) 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4847$as_echo "none needed" >&6; } ;; 4848 xno) 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4850$as_echo "unsupported" >&6; } ;; 4851 *) 4852 CC="$CC $ac_cv_prog_cc_c89" 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4854$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4855esac 4856if test "x$ac_cv_prog_cc_c89" != xno; then : 4857 4858fi 4859 4860ac_ext=c 4861ac_cpp='$CPP $CPPFLAGS' 4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4864ac_compiler_gnu=$ac_cv_c_compiler_gnu 4865 4866ac_ext=c 4867ac_cpp='$CPP $CPPFLAGS' 4868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4870ac_compiler_gnu=$ac_cv_c_compiler_gnu 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4872$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4873if ${am_cv_prog_cc_c_o+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875else 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877/* end confdefs.h. */ 4878 4879int 4880main () 4881{ 4882 4883 ; 4884 return 0; 4885} 4886_ACEOF 4887 # Make sure it works both with $CC and with simple cc. 4888 # Following AC_PROG_CC_C_O, we do the test twice because some 4889 # compilers refuse to overwrite an existing .o file with -o, 4890 # though they will create one. 4891 am_cv_prog_cc_c_o=yes 4892 for am_i in 1 2; do 4893 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4894 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4895 ac_status=$? 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4897 (exit $ac_status); } \ 4898 && test -f conftest2.$ac_objext; then 4899 : OK 4900 else 4901 am_cv_prog_cc_c_o=no 4902 break 4903 fi 4904 done 4905 rm -f core conftest* 4906 unset am_i 4907fi 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4909$as_echo "$am_cv_prog_cc_c_o" >&6; } 4910if test "$am_cv_prog_cc_c_o" != yes; then 4911 # Losing compiler, so override with the script. 4912 # FIXME: It is wrong to rewrite CC. 4913 # But if we don't then we get into trouble of one sort or another. 4914 # A longer-term fix would be to have automake use am__CC in this case, 4915 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4916 CC="$am_aux_dir/compile $CC" 4917fi 4918ac_ext=c 4919ac_cpp='$CPP $CPPFLAGS' 4920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4922ac_compiler_gnu=$ac_cv_c_compiler_gnu 4923 4924 4925depcc="$CC" am_compiler_list= 4926 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4928$as_echo_n "checking dependency style of $depcc... " >&6; } 4929if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4930 $as_echo_n "(cached) " >&6 4931else 4932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4933 # We make a subdir and do the tests there. Otherwise we can end up 4934 # making bogus files that we don't know about and never remove. For 4935 # instance it was reported that on HP-UX the gcc test will end up 4936 # making a dummy file named 'D' -- because '-MD' means "put the output 4937 # in D". 4938 rm -rf conftest.dir 4939 mkdir conftest.dir 4940 # Copy depcomp to subdir because otherwise we won't find it if we're 4941 # using a relative directory. 4942 cp "$am_depcomp" conftest.dir 4943 cd conftest.dir 4944 # We will build objects and dependencies in a subdirectory because 4945 # it helps to detect inapplicable dependency modes. For instance 4946 # both Tru64's cc and ICC support -MD to output dependencies as a 4947 # side effect of compilation, but ICC will put the dependencies in 4948 # the current directory while Tru64 will put them in the object 4949 # directory. 4950 mkdir sub 4951 4952 am_cv_CC_dependencies_compiler_type=none 4953 if test "$am_compiler_list" = ""; then 4954 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4955 fi 4956 am__universal=false 4957 case " $depcc " in #( 4958 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4959 esac 4960 4961 for depmode in $am_compiler_list; do 4962 # Setup a source with many dependencies, because some compilers 4963 # like to wrap large dependency lists on column 80 (with \), and 4964 # we should not choose a depcomp mode which is confused by this. 4965 # 4966 # We need to recreate these files for each test, as the compiler may 4967 # overwrite some of them when testing with obscure command lines. 4968 # This happens at least with the AIX C compiler. 4969 : > sub/conftest.c 4970 for i in 1 2 3 4 5 6; do 4971 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4972 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4973 # Solaris 10 /bin/sh. 4974 echo '/* dummy */' > sub/conftst$i.h 4975 done 4976 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4977 4978 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4979 # mode. It turns out that the SunPro C++ compiler does not properly 4980 # handle '-M -o', and we need to detect this. Also, some Intel 4981 # versions had trouble with output in subdirs. 4982 am__obj=sub/conftest.${OBJEXT-o} 4983 am__minus_obj="-o $am__obj" 4984 case $depmode in 4985 gcc) 4986 # This depmode causes a compiler race in universal mode. 4987 test "$am__universal" = false || continue 4988 ;; 4989 nosideeffect) 4990 # After this tag, mechanisms are not by side-effect, so they'll 4991 # only be used when explicitly requested. 4992 if test "x$enable_dependency_tracking" = xyes; then 4993 continue 4994 else 4995 break 4996 fi 4997 ;; 4998 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4999 # This compiler won't grok '-c -o', but also, the minuso test has 5000 # not run yet. These depmodes are late enough in the game, and 5001 # so weak that their functioning should not be impacted. 5002 am__obj=conftest.${OBJEXT-o} 5003 am__minus_obj= 5004 ;; 5005 none) break ;; 5006 esac 5007 if depmode=$depmode \ 5008 source=sub/conftest.c object=$am__obj \ 5009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5010 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5011 >/dev/null 2>conftest.err && 5012 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5014 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5016 # icc doesn't choke on unknown options, it will just issue warnings 5017 # or remarks (even with -Werror). So we grep stderr for any message 5018 # that says an option was ignored or not supported. 5019 # When given -MP, icc 7.0 and 7.1 complain thusly: 5020 # icc: Command line warning: ignoring option '-M'; no argument required 5021 # The diagnosis changed in icc 8.0: 5022 # icc: Command line remark: option '-MP' not supported 5023 if (grep 'ignoring option' conftest.err || 5024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5025 am_cv_CC_dependencies_compiler_type=$depmode 5026 break 5027 fi 5028 fi 5029 done 5030 5031 cd .. 5032 rm -rf conftest.dir 5033else 5034 am_cv_CC_dependencies_compiler_type=none 5035fi 5036 5037fi 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5039$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5040CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5041 5042 if 5043 test "x$enable_dependency_tracking" != xno \ 5044 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5045 am__fastdepCC_TRUE= 5046 am__fastdepCC_FALSE='#' 5047else 5048 am__fastdepCC_TRUE='#' 5049 am__fastdepCC_FALSE= 5050fi 5051 5052 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5054$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5055if ${ac_cv_prog_cc_c99+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 ac_cv_prog_cc_c99=no 5059ac_save_CC=$CC 5060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061/* end confdefs.h. */ 5062#include <stdarg.h> 5063#include <stdbool.h> 5064#include <stdlib.h> 5065#include <wchar.h> 5066#include <stdio.h> 5067 5068// Check varargs macros. These examples are taken from C99 6.10.3.5. 5069#define debug(...) fprintf (stderr, __VA_ARGS__) 5070#define showlist(...) puts (#__VA_ARGS__) 5071#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5072static void 5073test_varargs_macros (void) 5074{ 5075 int x = 1234; 5076 int y = 5678; 5077 debug ("Flag"); 5078 debug ("X = %d\n", x); 5079 showlist (The first, second, and third items.); 5080 report (x>y, "x is %d but y is %d", x, y); 5081} 5082 5083// Check long long types. 5084#define BIG64 18446744073709551615ull 5085#define BIG32 4294967295ul 5086#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5087#if !BIG_OK 5088 your preprocessor is broken; 5089#endif 5090#if BIG_OK 5091#else 5092 your preprocessor is broken; 5093#endif 5094static long long int bignum = -9223372036854775807LL; 5095static unsigned long long int ubignum = BIG64; 5096 5097struct incomplete_array 5098{ 5099 int datasize; 5100 double data[]; 5101}; 5102 5103struct named_init { 5104 int number; 5105 const wchar_t *name; 5106 double average; 5107}; 5108 5109typedef const char *ccp; 5110 5111static inline int 5112test_restrict (ccp restrict text) 5113{ 5114 // See if C++-style comments work. 5115 // Iterate through items via the restricted pointer. 5116 // Also check for declarations in for loops. 5117 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5118 continue; 5119 return 0; 5120} 5121 5122// Check varargs and va_copy. 5123static void 5124test_varargs (const char *format, ...) 5125{ 5126 va_list args; 5127 va_start (args, format); 5128 va_list args_copy; 5129 va_copy (args_copy, args); 5130 5131 const char *str; 5132 int number; 5133 float fnumber; 5134 5135 while (*format) 5136 { 5137 switch (*format++) 5138 { 5139 case 's': // string 5140 str = va_arg (args_copy, const char *); 5141 break; 5142 case 'd': // int 5143 number = va_arg (args_copy, int); 5144 break; 5145 case 'f': // float 5146 fnumber = va_arg (args_copy, double); 5147 break; 5148 default: 5149 break; 5150 } 5151 } 5152 va_end (args_copy); 5153 va_end (args); 5154} 5155 5156int 5157main () 5158{ 5159 5160 // Check bool. 5161 _Bool success = false; 5162 5163 // Check restrict. 5164 if (test_restrict ("String literal") == 0) 5165 success = true; 5166 char *restrict newvar = "Another string"; 5167 5168 // Check varargs. 5169 test_varargs ("s, d' f .", "string", 65, 34.234); 5170 test_varargs_macros (); 5171 5172 // Check flexible array members. 5173 struct incomplete_array *ia = 5174 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5175 ia->datasize = 10; 5176 for (int i = 0; i < ia->datasize; ++i) 5177 ia->data[i] = i * 1.234; 5178 5179 // Check named initializers. 5180 struct named_init ni = { 5181 .number = 34, 5182 .name = L"Test wide string", 5183 .average = 543.34343, 5184 }; 5185 5186 ni.number = 58; 5187 5188 int dynamic_array[ni.number]; 5189 dynamic_array[ni.number - 1] = 543; 5190 5191 // work around unused variable warnings 5192 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5193 || dynamic_array[ni.number - 1] != 543); 5194 5195 ; 5196 return 0; 5197} 5198_ACEOF 5199for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5200do 5201 CC="$ac_save_CC $ac_arg" 5202 if ac_fn_c_try_compile "$LINENO"; then : 5203 ac_cv_prog_cc_c99=$ac_arg 5204fi 5205rm -f core conftest.err conftest.$ac_objext 5206 test "x$ac_cv_prog_cc_c99" != "xno" && break 5207done 5208rm -f conftest.$ac_ext 5209CC=$ac_save_CC 5210 5211fi 5212# AC_CACHE_VAL 5213case "x$ac_cv_prog_cc_c99" in 5214 x) 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5216$as_echo "none needed" >&6; } ;; 5217 xno) 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5219$as_echo "unsupported" >&6; } ;; 5220 *) 5221 CC="$CC $ac_cv_prog_cc_c99" 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5223$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5224esac 5225if test "x$ac_cv_prog_cc_c99" != xno; then : 5226 5227fi 5228 5229 5230case `pwd` in 5231 *\ * | *\ *) 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5233$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5234esac 5235 5236 5237 5238macro_version='2.4.6' 5239macro_revision='2.4.6' 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253ltmain=$ac_aux_dir/ltmain.sh 5254 5255# Make sure we can run config.sub. 5256$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5257 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5258 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5260$as_echo_n "checking build system type... " >&6; } 5261if ${ac_cv_build+:} false; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 ac_build_alias=$build_alias 5265test "x$ac_build_alias" = x && 5266 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5267test "x$ac_build_alias" = x && 5268 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5269ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5270 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5271 5272fi 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5274$as_echo "$ac_cv_build" >&6; } 5275case $ac_cv_build in 5276*-*-*) ;; 5277*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5278esac 5279build=$ac_cv_build 5280ac_save_IFS=$IFS; IFS='-' 5281set x $ac_cv_build 5282shift 5283build_cpu=$1 5284build_vendor=$2 5285shift; shift 5286# Remember, the first character of IFS is used to create $*, 5287# except with old shells: 5288build_os=$* 5289IFS=$ac_save_IFS 5290case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5291 5292 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5294$as_echo_n "checking host system type... " >&6; } 5295if ${ac_cv_host+:} false; then : 5296 $as_echo_n "(cached) " >&6 5297else 5298 if test "x$host_alias" = x; then 5299 ac_cv_host=$ac_cv_build 5300else 5301 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5302 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5303fi 5304 5305fi 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5307$as_echo "$ac_cv_host" >&6; } 5308case $ac_cv_host in 5309*-*-*) ;; 5310*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5311esac 5312host=$ac_cv_host 5313ac_save_IFS=$IFS; IFS='-' 5314set x $ac_cv_host 5315shift 5316host_cpu=$1 5317host_vendor=$2 5318shift; shift 5319# Remember, the first character of IFS is used to create $*, 5320# except with old shells: 5321host_os=$* 5322IFS=$ac_save_IFS 5323case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5324 5325 5326# Backslashify metacharacters that are still active within 5327# double-quoted strings. 5328sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5329 5330# Same as above, but do not quote variable references. 5331double_quote_subst='s/\(["`\\]\)/\\\1/g' 5332 5333# Sed substitution to delay expansion of an escaped shell variable in a 5334# double_quote_subst'ed string. 5335delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5336 5337# Sed substitution to delay expansion of an escaped single quote. 5338delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5339 5340# Sed substitution to avoid accidental globbing in evaled expressions 5341no_glob_subst='s/\*/\\\*/g' 5342 5343ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5344ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5345ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5346 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5348$as_echo_n "checking how to print strings... " >&6; } 5349# Test print first, because it will be a builtin if present. 5350if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5351 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5352 ECHO='print -r --' 5353elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5354 ECHO='printf %s\n' 5355else 5356 # Use this function as a fallback that always works. 5357 func_fallback_echo () 5358 { 5359 eval 'cat <<_LTECHO_EOF 5360$1 5361_LTECHO_EOF' 5362 } 5363 ECHO='func_fallback_echo' 5364fi 5365 5366# func_echo_all arg... 5367# Invoke $ECHO with all args, space-separated. 5368func_echo_all () 5369{ 5370 $ECHO "" 5371} 5372 5373case $ECHO in 5374 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5375$as_echo "printf" >&6; } ;; 5376 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5377$as_echo "print -r" >&6; } ;; 5378 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5379$as_echo "cat" >&6; } ;; 5380esac 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5396$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5397if ${ac_cv_path_SED+:} false; then : 5398 $as_echo_n "(cached) " >&6 5399else 5400 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5401 for ac_i in 1 2 3 4 5 6 7; do 5402 ac_script="$ac_script$as_nl$ac_script" 5403 done 5404 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5405 { ac_script=; unset ac_script;} 5406 if test -z "$SED"; then 5407 ac_path_SED_found=false 5408 # Loop through the user's path and test for each of PROGNAME-LIST 5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5410for as_dir in $PATH 5411do 5412 IFS=$as_save_IFS 5413 test -z "$as_dir" && as_dir=. 5414 for ac_prog in sed gsed; do 5415 for ac_exec_ext in '' $ac_executable_extensions; do 5416 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5417 as_fn_executable_p "$ac_path_SED" || continue 5418# Check for GNU ac_path_SED and select it if it is found. 5419 # Check for GNU $ac_path_SED 5420case `"$ac_path_SED" --version 2>&1` in 5421*GNU*) 5422 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5423*) 5424 ac_count=0 5425 $as_echo_n 0123456789 >"conftest.in" 5426 while : 5427 do 5428 cat "conftest.in" "conftest.in" >"conftest.tmp" 5429 mv "conftest.tmp" "conftest.in" 5430 cp "conftest.in" "conftest.nl" 5431 $as_echo '' >> "conftest.nl" 5432 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5434 as_fn_arith $ac_count + 1 && ac_count=$as_val 5435 if test $ac_count -gt ${ac_path_SED_max-0}; then 5436 # Best one so far, save it but keep looking for a better one 5437 ac_cv_path_SED="$ac_path_SED" 5438 ac_path_SED_max=$ac_count 5439 fi 5440 # 10*(2^10) chars as input seems more than enough 5441 test $ac_count -gt 10 && break 5442 done 5443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5444esac 5445 5446 $ac_path_SED_found && break 3 5447 done 5448 done 5449 done 5450IFS=$as_save_IFS 5451 if test -z "$ac_cv_path_SED"; then 5452 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5453 fi 5454else 5455 ac_cv_path_SED=$SED 5456fi 5457 5458fi 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5460$as_echo "$ac_cv_path_SED" >&6; } 5461 SED="$ac_cv_path_SED" 5462 rm -f conftest.sed 5463 5464test -z "$SED" && SED=sed 5465Xsed="$SED -e 1s/^X//" 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5478$as_echo_n "checking for fgrep... " >&6; } 5479if ${ac_cv_path_FGREP+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481else 5482 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5483 then ac_cv_path_FGREP="$GREP -F" 5484 else 5485 if test -z "$FGREP"; then 5486 ac_path_FGREP_found=false 5487 # Loop through the user's path and test for each of PROGNAME-LIST 5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5490do 5491 IFS=$as_save_IFS 5492 test -z "$as_dir" && as_dir=. 5493 for ac_prog in fgrep; do 5494 for ac_exec_ext in '' $ac_executable_extensions; do 5495 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5496 as_fn_executable_p "$ac_path_FGREP" || continue 5497# Check for GNU ac_path_FGREP and select it if it is found. 5498 # Check for GNU $ac_path_FGREP 5499case `"$ac_path_FGREP" --version 2>&1` in 5500*GNU*) 5501 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5502*) 5503 ac_count=0 5504 $as_echo_n 0123456789 >"conftest.in" 5505 while : 5506 do 5507 cat "conftest.in" "conftest.in" >"conftest.tmp" 5508 mv "conftest.tmp" "conftest.in" 5509 cp "conftest.in" "conftest.nl" 5510 $as_echo 'FGREP' >> "conftest.nl" 5511 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5513 as_fn_arith $ac_count + 1 && ac_count=$as_val 5514 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5515 # Best one so far, save it but keep looking for a better one 5516 ac_cv_path_FGREP="$ac_path_FGREP" 5517 ac_path_FGREP_max=$ac_count 5518 fi 5519 # 10*(2^10) chars as input seems more than enough 5520 test $ac_count -gt 10 && break 5521 done 5522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5523esac 5524 5525 $ac_path_FGREP_found && break 3 5526 done 5527 done 5528 done 5529IFS=$as_save_IFS 5530 if test -z "$ac_cv_path_FGREP"; then 5531 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5532 fi 5533else 5534 ac_cv_path_FGREP=$FGREP 5535fi 5536 5537 fi 5538fi 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5540$as_echo "$ac_cv_path_FGREP" >&6; } 5541 FGREP="$ac_cv_path_FGREP" 5542 5543 5544test -z "$GREP" && GREP=grep 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564# Check whether --with-gnu-ld was given. 5565if test "${with_gnu_ld+set}" = set; then : 5566 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5567else 5568 with_gnu_ld=no 5569fi 5570 5571ac_prog=ld 5572if test yes = "$GCC"; then 5573 # Check if gcc -print-prog-name=ld gives a path. 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5575$as_echo_n "checking for ld used by $CC... " >&6; } 5576 case $host in 5577 *-*-mingw*) 5578 # gcc leaves a trailing carriage return, which upsets mingw 5579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5580 *) 5581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5582 esac 5583 case $ac_prog in 5584 # Accept absolute paths. 5585 [\\/]* | ?:[\\/]*) 5586 re_direlt='/[^/][^/]*/\.\./' 5587 # Canonicalize the pathname of ld 5588 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5589 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5590 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5591 done 5592 test -z "$LD" && LD=$ac_prog 5593 ;; 5594 "") 5595 # If it fails, then pretend we aren't using GCC. 5596 ac_prog=ld 5597 ;; 5598 *) 5599 # If it is relative, then search for the first ld in PATH. 5600 with_gnu_ld=unknown 5601 ;; 5602 esac 5603elif test yes = "$with_gnu_ld"; then 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5605$as_echo_n "checking for GNU ld... " >&6; } 5606else 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5608$as_echo_n "checking for non-GNU ld... " >&6; } 5609fi 5610if ${lt_cv_path_LD+:} false; then : 5611 $as_echo_n "(cached) " >&6 5612else 5613 if test -z "$LD"; then 5614 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5615 for ac_dir in $PATH; do 5616 IFS=$lt_save_ifs 5617 test -z "$ac_dir" && ac_dir=. 5618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5619 lt_cv_path_LD=$ac_dir/$ac_prog 5620 # Check to see if the program is GNU ld. I'd rather use --version, 5621 # but apparently some variants of GNU ld only accept -v. 5622 # Break only if it was the GNU/non-GNU ld that we prefer. 5623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5624 *GNU* | *'with BFD'*) 5625 test no != "$with_gnu_ld" && break 5626 ;; 5627 *) 5628 test yes != "$with_gnu_ld" && break 5629 ;; 5630 esac 5631 fi 5632 done 5633 IFS=$lt_save_ifs 5634else 5635 lt_cv_path_LD=$LD # Let the user override the test with a path. 5636fi 5637fi 5638 5639LD=$lt_cv_path_LD 5640if test -n "$LD"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5642$as_echo "$LD" >&6; } 5643else 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5645$as_echo "no" >&6; } 5646fi 5647test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5649$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5650if ${lt_cv_prog_gnu_ld+:} false; then : 5651 $as_echo_n "(cached) " >&6 5652else 5653 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5654case `$LD -v 2>&1 </dev/null` in 5655*GNU* | *'with BFD'*) 5656 lt_cv_prog_gnu_ld=yes 5657 ;; 5658*) 5659 lt_cv_prog_gnu_ld=no 5660 ;; 5661esac 5662fi 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5664$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5665with_gnu_ld=$lt_cv_prog_gnu_ld 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5676$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5677if ${lt_cv_path_NM+:} false; then : 5678 $as_echo_n "(cached) " >&6 5679else 5680 if test -n "$NM"; then 5681 # Let the user override the test. 5682 lt_cv_path_NM=$NM 5683else 5684 lt_nm_to_check=${ac_tool_prefix}nm 5685 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5686 lt_nm_to_check="$lt_nm_to_check nm" 5687 fi 5688 for lt_tmp_nm in $lt_nm_to_check; do 5689 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5690 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5691 IFS=$lt_save_ifs 5692 test -z "$ac_dir" && ac_dir=. 5693 tmp_nm=$ac_dir/$lt_tmp_nm 5694 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5695 # Check to see if the nm accepts a BSD-compat flag. 5696 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5697 # nm: unknown option "B" ignored 5698 # Tru64's nm complains that /dev/null is an invalid object file 5699 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5700 case $build_os in 5701 mingw*) lt_bad_file=conftest.nm/nofile ;; 5702 *) lt_bad_file=/dev/null ;; 5703 esac 5704 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5705 *$lt_bad_file* | *'Invalid file or object type'*) 5706 lt_cv_path_NM="$tmp_nm -B" 5707 break 2 5708 ;; 5709 *) 5710 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5711 */dev/null*) 5712 lt_cv_path_NM="$tmp_nm -p" 5713 break 2 5714 ;; 5715 *) 5716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5717 continue # so that we can try to find one that supports BSD flags 5718 ;; 5719 esac 5720 ;; 5721 esac 5722 fi 5723 done 5724 IFS=$lt_save_ifs 5725 done 5726 : ${lt_cv_path_NM=no} 5727fi 5728fi 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5730$as_echo "$lt_cv_path_NM" >&6; } 5731if test no != "$lt_cv_path_NM"; then 5732 NM=$lt_cv_path_NM 5733else 5734 # Didn't find any BSD compatible name lister, look for dumpbin. 5735 if test -n "$DUMPBIN"; then : 5736 # Let the user override the test. 5737 else 5738 if test -n "$ac_tool_prefix"; then 5739 for ac_prog in dumpbin "link -dump" 5740 do 5741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5742set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5744$as_echo_n "checking for $ac_word... " >&6; } 5745if ${ac_cv_prog_DUMPBIN+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 if test -n "$DUMPBIN"; then 5749 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5750else 5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752for as_dir in $PATH 5753do 5754 IFS=$as_save_IFS 5755 test -z "$as_dir" && as_dir=. 5756 for ac_exec_ext in '' $ac_executable_extensions; do 5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5758 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5760 break 2 5761 fi 5762done 5763 done 5764IFS=$as_save_IFS 5765 5766fi 5767fi 5768DUMPBIN=$ac_cv_prog_DUMPBIN 5769if test -n "$DUMPBIN"; then 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5771$as_echo "$DUMPBIN" >&6; } 5772else 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5774$as_echo "no" >&6; } 5775fi 5776 5777 5778 test -n "$DUMPBIN" && break 5779 done 5780fi 5781if test -z "$DUMPBIN"; then 5782 ac_ct_DUMPBIN=$DUMPBIN 5783 for ac_prog in dumpbin "link -dump" 5784do 5785 # Extract the first word of "$ac_prog", so it can be a program name with args. 5786set dummy $ac_prog; ac_word=$2 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5788$as_echo_n "checking for $ac_word... " >&6; } 5789if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 if test -n "$ac_ct_DUMPBIN"; then 5793 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5794else 5795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5796for as_dir in $PATH 5797do 5798 IFS=$as_save_IFS 5799 test -z "$as_dir" && as_dir=. 5800 for ac_exec_ext in '' $ac_executable_extensions; do 5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5802 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5804 break 2 5805 fi 5806done 5807 done 5808IFS=$as_save_IFS 5809 5810fi 5811fi 5812ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5813if test -n "$ac_ct_DUMPBIN"; then 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5815$as_echo "$ac_ct_DUMPBIN" >&6; } 5816else 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5818$as_echo "no" >&6; } 5819fi 5820 5821 5822 test -n "$ac_ct_DUMPBIN" && break 5823done 5824 5825 if test "x$ac_ct_DUMPBIN" = x; then 5826 DUMPBIN=":" 5827 else 5828 case $cross_compiling:$ac_tool_warned in 5829yes:) 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5832ac_tool_warned=yes ;; 5833esac 5834 DUMPBIN=$ac_ct_DUMPBIN 5835 fi 5836fi 5837 5838 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5839 *COFF*) 5840 DUMPBIN="$DUMPBIN -symbols -headers" 5841 ;; 5842 *) 5843 DUMPBIN=: 5844 ;; 5845 esac 5846 fi 5847 5848 if test : != "$DUMPBIN"; then 5849 NM=$DUMPBIN 5850 fi 5851fi 5852test -z "$NM" && NM=nm 5853 5854 5855 5856 5857 5858 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5860$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5861if ${lt_cv_nm_interface+:} false; then : 5862 $as_echo_n "(cached) " >&6 5863else 5864 lt_cv_nm_interface="BSD nm" 5865 echo "int some_variable = 0;" > conftest.$ac_ext 5866 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5867 (eval "$ac_compile" 2>conftest.err) 5868 cat conftest.err >&5 5869 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5870 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5871 cat conftest.err >&5 5872 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5873 cat conftest.out >&5 5874 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5875 lt_cv_nm_interface="MS dumpbin" 5876 fi 5877 rm -f conftest* 5878fi 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5880$as_echo "$lt_cv_nm_interface" >&6; } 5881 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5883$as_echo_n "checking whether ln -s works... " >&6; } 5884LN_S=$as_ln_s 5885if test "$LN_S" = "ln -s"; then 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5887$as_echo "yes" >&6; } 5888else 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5890$as_echo "no, using $LN_S" >&6; } 5891fi 5892 5893# find the maximum length of command line arguments 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5895$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5896if ${lt_cv_sys_max_cmd_len+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 i=0 5900 teststring=ABCD 5901 5902 case $build_os in 5903 msdosdjgpp*) 5904 # On DJGPP, this test can blow up pretty badly due to problems in libc 5905 # (any single argument exceeding 2000 bytes causes a buffer overrun 5906 # during glob expansion). Even if it were fixed, the result of this 5907 # check would be larger than it should be. 5908 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5909 ;; 5910 5911 gnu*) 5912 # Under GNU Hurd, this test is not required because there is 5913 # no limit to the length of command line arguments. 5914 # Libtool will interpret -1 as no limit whatsoever 5915 lt_cv_sys_max_cmd_len=-1; 5916 ;; 5917 5918 cygwin* | mingw* | cegcc*) 5919 # On Win9x/ME, this test blows up -- it succeeds, but takes 5920 # about 5 minutes as the teststring grows exponentially. 5921 # Worse, since 9x/ME are not pre-emptively multitasking, 5922 # you end up with a "frozen" computer, even though with patience 5923 # the test eventually succeeds (with a max line length of 256k). 5924 # Instead, let's just punt: use the minimum linelength reported by 5925 # all of the supported platforms: 8192 (on NT/2K/XP). 5926 lt_cv_sys_max_cmd_len=8192; 5927 ;; 5928 5929 mint*) 5930 # On MiNT this can take a long time and run out of memory. 5931 lt_cv_sys_max_cmd_len=8192; 5932 ;; 5933 5934 amigaos*) 5935 # On AmigaOS with pdksh, this test takes hours, literally. 5936 # So we just punt and use a minimum line length of 8192. 5937 lt_cv_sys_max_cmd_len=8192; 5938 ;; 5939 5940 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5941 # This has been around since 386BSD, at least. Likely further. 5942 if test -x /sbin/sysctl; then 5943 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5944 elif test -x /usr/sbin/sysctl; then 5945 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5946 else 5947 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5948 fi 5949 # And add a safety zone 5950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5952 ;; 5953 5954 interix*) 5955 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5956 lt_cv_sys_max_cmd_len=196608 5957 ;; 5958 5959 os2*) 5960 # The test takes a long time on OS/2. 5961 lt_cv_sys_max_cmd_len=8192 5962 ;; 5963 5964 osf*) 5965 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5966 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5967 # nice to cause kernel panics so lets avoid the loop below. 5968 # First set a reasonable default. 5969 lt_cv_sys_max_cmd_len=16384 5970 # 5971 if test -x /sbin/sysconfig; then 5972 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5973 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5974 esac 5975 fi 5976 ;; 5977 sco3.2v5*) 5978 lt_cv_sys_max_cmd_len=102400 5979 ;; 5980 sysv5* | sco5v6* | sysv4.2uw2*) 5981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5982 if test -n "$kargmax"; then 5983 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5984 else 5985 lt_cv_sys_max_cmd_len=32768 5986 fi 5987 ;; 5988 *) 5989 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5990 if test -n "$lt_cv_sys_max_cmd_len" && \ 5991 test undefined != "$lt_cv_sys_max_cmd_len"; then 5992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5994 else 5995 # Make teststring a little bigger before we do anything with it. 5996 # a 1K string should be a reasonable start. 5997 for i in 1 2 3 4 5 6 7 8; do 5998 teststring=$teststring$teststring 5999 done 6000 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6001 # If test is not a shell built-in, we'll probably end up computing a 6002 # maximum length that is only half of the actual maximum length, but 6003 # we can't tell. 6004 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6005 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6006 test 17 != "$i" # 1/2 MB should be enough 6007 do 6008 i=`expr $i + 1` 6009 teststring=$teststring$teststring 6010 done 6011 # Only check the string length outside the loop. 6012 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6013 teststring= 6014 # Add a significant safety factor because C++ compilers can tack on 6015 # massive amounts of additional arguments before passing them to the 6016 # linker. It appears as though 1/2 is a usable value. 6017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6018 fi 6019 ;; 6020 esac 6021 6022fi 6023 6024if test -n "$lt_cv_sys_max_cmd_len"; then 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6026$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6027else 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6029$as_echo "none" >&6; } 6030fi 6031max_cmd_len=$lt_cv_sys_max_cmd_len 6032 6033 6034 6035 6036 6037 6038: ${CP="cp -f"} 6039: ${MV="mv -f"} 6040: ${RM="rm -f"} 6041 6042if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6043 lt_unset=unset 6044else 6045 lt_unset=false 6046fi 6047 6048 6049 6050 6051 6052# test EBCDIC or ASCII 6053case `echo X|tr X '\101'` in 6054 A) # ASCII based system 6055 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6056 lt_SP2NL='tr \040 \012' 6057 lt_NL2SP='tr \015\012 \040\040' 6058 ;; 6059 *) # EBCDIC based system 6060 lt_SP2NL='tr \100 \n' 6061 lt_NL2SP='tr \r\n \100\100' 6062 ;; 6063esac 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6074$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6075if ${lt_cv_to_host_file_cmd+:} false; then : 6076 $as_echo_n "(cached) " >&6 6077else 6078 case $host in 6079 *-*-mingw* ) 6080 case $build in 6081 *-*-mingw* ) # actually msys 6082 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6083 ;; 6084 *-*-cygwin* ) 6085 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6086 ;; 6087 * ) # otherwise, assume *nix 6088 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6089 ;; 6090 esac 6091 ;; 6092 *-*-cygwin* ) 6093 case $build in 6094 *-*-mingw* ) # actually msys 6095 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6096 ;; 6097 *-*-cygwin* ) 6098 lt_cv_to_host_file_cmd=func_convert_file_noop 6099 ;; 6100 * ) # otherwise, assume *nix 6101 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6102 ;; 6103 esac 6104 ;; 6105 * ) # unhandled hosts (and "normal" native builds) 6106 lt_cv_to_host_file_cmd=func_convert_file_noop 6107 ;; 6108esac 6109 6110fi 6111 6112to_host_file_cmd=$lt_cv_to_host_file_cmd 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6114$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6115 6116 6117 6118 6119 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6121$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6122if ${lt_cv_to_tool_file_cmd+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 #assume ordinary cross tools, or native build. 6126lt_cv_to_tool_file_cmd=func_convert_file_noop 6127case $host in 6128 *-*-mingw* ) 6129 case $build in 6130 *-*-mingw* ) # actually msys 6131 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6132 ;; 6133 esac 6134 ;; 6135esac 6136 6137fi 6138 6139to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6141$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6142 6143 6144 6145 6146 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6148$as_echo_n "checking for $LD option to reload object files... " >&6; } 6149if ${lt_cv_ld_reload_flag+:} false; then : 6150 $as_echo_n "(cached) " >&6 6151else 6152 lt_cv_ld_reload_flag='-r' 6153fi 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6155$as_echo "$lt_cv_ld_reload_flag" >&6; } 6156reload_flag=$lt_cv_ld_reload_flag 6157case $reload_flag in 6158"" | " "*) ;; 6159*) reload_flag=" $reload_flag" ;; 6160esac 6161reload_cmds='$LD$reload_flag -o $output$reload_objs' 6162case $host_os in 6163 cygwin* | mingw* | pw32* | cegcc*) 6164 if test yes != "$GCC"; then 6165 reload_cmds=false 6166 fi 6167 ;; 6168 darwin*) 6169 if test yes = "$GCC"; then 6170 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6171 else 6172 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6173 fi 6174 ;; 6175esac 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185if test -n "$ac_tool_prefix"; then 6186 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6187set dummy ${ac_tool_prefix}objdump; ac_word=$2 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6189$as_echo_n "checking for $ac_word... " >&6; } 6190if ${ac_cv_prog_OBJDUMP+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192else 6193 if test -n "$OBJDUMP"; then 6194 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6195else 6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6197for as_dir in $PATH 6198do 6199 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 6201 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6203 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6205 break 2 6206 fi 6207done 6208 done 6209IFS=$as_save_IFS 6210 6211fi 6212fi 6213OBJDUMP=$ac_cv_prog_OBJDUMP 6214if test -n "$OBJDUMP"; then 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6216$as_echo "$OBJDUMP" >&6; } 6217else 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6219$as_echo "no" >&6; } 6220fi 6221 6222 6223fi 6224if test -z "$ac_cv_prog_OBJDUMP"; then 6225 ac_ct_OBJDUMP=$OBJDUMP 6226 # Extract the first word of "objdump", so it can be a program name with args. 6227set dummy objdump; ac_word=$2 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6229$as_echo_n "checking for $ac_word... " >&6; } 6230if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6231 $as_echo_n "(cached) " >&6 6232else 6233 if test -n "$ac_ct_OBJDUMP"; then 6234 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6235else 6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237for as_dir in $PATH 6238do 6239 IFS=$as_save_IFS 6240 test -z "$as_dir" && as_dir=. 6241 for ac_exec_ext in '' $ac_executable_extensions; do 6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6243 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6245 break 2 6246 fi 6247done 6248 done 6249IFS=$as_save_IFS 6250 6251fi 6252fi 6253ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6254if test -n "$ac_ct_OBJDUMP"; then 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6256$as_echo "$ac_ct_OBJDUMP" >&6; } 6257else 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6259$as_echo "no" >&6; } 6260fi 6261 6262 if test "x$ac_ct_OBJDUMP" = x; then 6263 OBJDUMP="false" 6264 else 6265 case $cross_compiling:$ac_tool_warned in 6266yes:) 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6269ac_tool_warned=yes ;; 6270esac 6271 OBJDUMP=$ac_ct_OBJDUMP 6272 fi 6273else 6274 OBJDUMP="$ac_cv_prog_OBJDUMP" 6275fi 6276 6277test -z "$OBJDUMP" && OBJDUMP=objdump 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6288$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6289if ${lt_cv_deplibs_check_method+:} false; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 lt_cv_file_magic_cmd='$MAGIC_CMD' 6293lt_cv_file_magic_test_file= 6294lt_cv_deplibs_check_method='unknown' 6295# Need to set the preceding variable on all platforms that support 6296# interlibrary dependencies. 6297# 'none' -- dependencies not supported. 6298# 'unknown' -- same as none, but documents that we really don't know. 6299# 'pass_all' -- all dependencies passed with no checks. 6300# 'test_compile' -- check by making test program. 6301# 'file_magic [[regex]]' -- check by looking for files in library path 6302# that responds to the $file_magic_cmd with a given extended regex. 6303# If you have 'file' or equivalent on your system and you're not sure 6304# whether 'pass_all' will *always* work, you probably want this one. 6305 6306case $host_os in 6307aix[4-9]*) 6308 lt_cv_deplibs_check_method=pass_all 6309 ;; 6310 6311beos*) 6312 lt_cv_deplibs_check_method=pass_all 6313 ;; 6314 6315bsdi[45]*) 6316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6317 lt_cv_file_magic_cmd='/usr/bin/file -L' 6318 lt_cv_file_magic_test_file=/shlib/libc.so 6319 ;; 6320 6321cygwin*) 6322 # func_win32_libid is a shell function defined in ltmain.sh 6323 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6324 lt_cv_file_magic_cmd='func_win32_libid' 6325 ;; 6326 6327mingw* | pw32*) 6328 # Base MSYS/MinGW do not provide the 'file' command needed by 6329 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6330 # unless we find 'file', for example because we are cross-compiling. 6331 if ( file / ) >/dev/null 2>&1; then 6332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6333 lt_cv_file_magic_cmd='func_win32_libid' 6334 else 6335 # Keep this pattern in sync with the one in func_win32_libid. 6336 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6337 lt_cv_file_magic_cmd='$OBJDUMP -f' 6338 fi 6339 ;; 6340 6341cegcc*) 6342 # use the weaker test based on 'objdump'. See mingw*. 6343 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6344 lt_cv_file_magic_cmd='$OBJDUMP -f' 6345 ;; 6346 6347darwin* | rhapsody*) 6348 lt_cv_deplibs_check_method=pass_all 6349 ;; 6350 6351freebsd* | dragonfly*) 6352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6353 case $host_cpu in 6354 i*86 ) 6355 # Not sure whether the presence of OpenBSD here was a mistake. 6356 # Let's accept both of them until this is cleared up. 6357 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6358 lt_cv_file_magic_cmd=/usr/bin/file 6359 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6360 ;; 6361 esac 6362 else 6363 lt_cv_deplibs_check_method=pass_all 6364 fi 6365 ;; 6366 6367haiku*) 6368 lt_cv_deplibs_check_method=pass_all 6369 ;; 6370 6371hpux10.20* | hpux11*) 6372 lt_cv_file_magic_cmd=/usr/bin/file 6373 case $host_cpu in 6374 ia64*) 6375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6376 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6377 ;; 6378 hppa*64*) 6379 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]' 6380 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6381 ;; 6382 *) 6383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6384 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6385 ;; 6386 esac 6387 ;; 6388 6389interix[3-9]*) 6390 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6392 ;; 6393 6394irix5* | irix6* | nonstopux*) 6395 case $LD in 6396 *-32|*"-32 ") libmagic=32-bit;; 6397 *-n32|*"-n32 ") libmagic=N32;; 6398 *-64|*"-64 ") libmagic=64-bit;; 6399 *) libmagic=never-match;; 6400 esac 6401 lt_cv_deplibs_check_method=pass_all 6402 ;; 6403 6404# This must be glibc/ELF. 6405linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6406 lt_cv_deplibs_check_method=pass_all 6407 ;; 6408 6409netbsd*) 6410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6412 else 6413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6414 fi 6415 ;; 6416 6417newos6*) 6418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6419 lt_cv_file_magic_cmd=/usr/bin/file 6420 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6421 ;; 6422 6423*nto* | *qnx*) 6424 lt_cv_deplibs_check_method=pass_all 6425 ;; 6426 6427openbsd* | bitrig*) 6428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6430 else 6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6432 fi 6433 ;; 6434 6435osf3* | osf4* | osf5*) 6436 lt_cv_deplibs_check_method=pass_all 6437 ;; 6438 6439rdos*) 6440 lt_cv_deplibs_check_method=pass_all 6441 ;; 6442 6443solaris*) 6444 lt_cv_deplibs_check_method=pass_all 6445 ;; 6446 6447sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6448 lt_cv_deplibs_check_method=pass_all 6449 ;; 6450 6451sysv4 | sysv4.3*) 6452 case $host_vendor in 6453 motorola) 6454 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]' 6455 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6456 ;; 6457 ncr) 6458 lt_cv_deplibs_check_method=pass_all 6459 ;; 6460 sequent) 6461 lt_cv_file_magic_cmd='/bin/file' 6462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6463 ;; 6464 sni) 6465 lt_cv_file_magic_cmd='/bin/file' 6466 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6467 lt_cv_file_magic_test_file=/lib/libc.so 6468 ;; 6469 siemens) 6470 lt_cv_deplibs_check_method=pass_all 6471 ;; 6472 pc) 6473 lt_cv_deplibs_check_method=pass_all 6474 ;; 6475 esac 6476 ;; 6477 6478tpf*) 6479 lt_cv_deplibs_check_method=pass_all 6480 ;; 6481os2*) 6482 lt_cv_deplibs_check_method=pass_all 6483 ;; 6484esac 6485 6486fi 6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6488$as_echo "$lt_cv_deplibs_check_method" >&6; } 6489 6490file_magic_glob= 6491want_nocaseglob=no 6492if test "$build" = "$host"; then 6493 case $host_os in 6494 mingw* | pw32*) 6495 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6496 want_nocaseglob=yes 6497 else 6498 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6499 fi 6500 ;; 6501 esac 6502fi 6503 6504file_magic_cmd=$lt_cv_file_magic_cmd 6505deplibs_check_method=$lt_cv_deplibs_check_method 6506test -z "$deplibs_check_method" && deplibs_check_method=unknown 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529if test -n "$ac_tool_prefix"; then 6530 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6531set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6533$as_echo_n "checking for $ac_word... " >&6; } 6534if ${ac_cv_prog_DLLTOOL+:} false; then : 6535 $as_echo_n "(cached) " >&6 6536else 6537 if test -n "$DLLTOOL"; then 6538 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6539else 6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6541for as_dir in $PATH 6542do 6543 IFS=$as_save_IFS 6544 test -z "$as_dir" && as_dir=. 6545 for ac_exec_ext in '' $ac_executable_extensions; do 6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6547 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6549 break 2 6550 fi 6551done 6552 done 6553IFS=$as_save_IFS 6554 6555fi 6556fi 6557DLLTOOL=$ac_cv_prog_DLLTOOL 6558if test -n "$DLLTOOL"; then 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6560$as_echo "$DLLTOOL" >&6; } 6561else 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6563$as_echo "no" >&6; } 6564fi 6565 6566 6567fi 6568if test -z "$ac_cv_prog_DLLTOOL"; then 6569 ac_ct_DLLTOOL=$DLLTOOL 6570 # Extract the first word of "dlltool", so it can be a program name with args. 6571set dummy dlltool; ac_word=$2 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6573$as_echo_n "checking for $ac_word... " >&6; } 6574if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576else 6577 if test -n "$ac_ct_DLLTOOL"; then 6578 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6579else 6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6581for as_dir in $PATH 6582do 6583 IFS=$as_save_IFS 6584 test -z "$as_dir" && as_dir=. 6585 for ac_exec_ext in '' $ac_executable_extensions; do 6586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6587 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6589 break 2 6590 fi 6591done 6592 done 6593IFS=$as_save_IFS 6594 6595fi 6596fi 6597ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6598if test -n "$ac_ct_DLLTOOL"; then 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6600$as_echo "$ac_ct_DLLTOOL" >&6; } 6601else 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6603$as_echo "no" >&6; } 6604fi 6605 6606 if test "x$ac_ct_DLLTOOL" = x; then 6607 DLLTOOL="false" 6608 else 6609 case $cross_compiling:$ac_tool_warned in 6610yes:) 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6613ac_tool_warned=yes ;; 6614esac 6615 DLLTOOL=$ac_ct_DLLTOOL 6616 fi 6617else 6618 DLLTOOL="$ac_cv_prog_DLLTOOL" 6619fi 6620 6621test -z "$DLLTOOL" && DLLTOOL=dlltool 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6633$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6634if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 lt_cv_sharedlib_from_linklib_cmd='unknown' 6638 6639case $host_os in 6640cygwin* | mingw* | pw32* | cegcc*) 6641 # two different shell functions defined in ltmain.sh; 6642 # decide which one to use based on capabilities of $DLLTOOL 6643 case `$DLLTOOL --help 2>&1` in 6644 *--identify-strict*) 6645 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6646 ;; 6647 *) 6648 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6649 ;; 6650 esac 6651 ;; 6652*) 6653 # fallback: assume linklib IS sharedlib 6654 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6655 ;; 6656esac 6657 6658fi 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6660$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6661sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6662test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6663 6664 6665 6666 6667 6668 6669 6670if test -n "$ac_tool_prefix"; then 6671 for ac_prog in ar 6672 do 6673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6674set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6676$as_echo_n "checking for $ac_word... " >&6; } 6677if ${ac_cv_prog_AR+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 if test -n "$AR"; then 6681 ac_cv_prog_AR="$AR" # Let the user override the test. 6682else 6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6684for as_dir in $PATH 6685do 6686 IFS=$as_save_IFS 6687 test -z "$as_dir" && as_dir=. 6688 for ac_exec_ext in '' $ac_executable_extensions; do 6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6690 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6692 break 2 6693 fi 6694done 6695 done 6696IFS=$as_save_IFS 6697 6698fi 6699fi 6700AR=$ac_cv_prog_AR 6701if test -n "$AR"; then 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6703$as_echo "$AR" >&6; } 6704else 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6706$as_echo "no" >&6; } 6707fi 6708 6709 6710 test -n "$AR" && break 6711 done 6712fi 6713if test -z "$AR"; then 6714 ac_ct_AR=$AR 6715 for ac_prog in ar 6716do 6717 # Extract the first word of "$ac_prog", so it can be a program name with args. 6718set dummy $ac_prog; ac_word=$2 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6720$as_echo_n "checking for $ac_word... " >&6; } 6721if ${ac_cv_prog_ac_ct_AR+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 if test -n "$ac_ct_AR"; then 6725 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6726else 6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6728for as_dir in $PATH 6729do 6730 IFS=$as_save_IFS 6731 test -z "$as_dir" && as_dir=. 6732 for ac_exec_ext in '' $ac_executable_extensions; do 6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6734 ac_cv_prog_ac_ct_AR="$ac_prog" 6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6736 break 2 6737 fi 6738done 6739 done 6740IFS=$as_save_IFS 6741 6742fi 6743fi 6744ac_ct_AR=$ac_cv_prog_ac_ct_AR 6745if test -n "$ac_ct_AR"; then 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6747$as_echo "$ac_ct_AR" >&6; } 6748else 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6750$as_echo "no" >&6; } 6751fi 6752 6753 6754 test -n "$ac_ct_AR" && break 6755done 6756 6757 if test "x$ac_ct_AR" = x; then 6758 AR="false" 6759 else 6760 case $cross_compiling:$ac_tool_warned in 6761yes:) 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6764ac_tool_warned=yes ;; 6765esac 6766 AR=$ac_ct_AR 6767 fi 6768fi 6769 6770: ${AR=ar} 6771: ${AR_FLAGS=cru} 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6784$as_echo_n "checking for archiver @FILE support... " >&6; } 6785if ${lt_cv_ar_at_file+:} false; then : 6786 $as_echo_n "(cached) " >&6 6787else 6788 lt_cv_ar_at_file=no 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790/* end confdefs.h. */ 6791 6792int 6793main () 6794{ 6795 6796 ; 6797 return 0; 6798} 6799_ACEOF 6800if ac_fn_c_try_compile "$LINENO"; then : 6801 echo conftest.$ac_objext > conftest.lst 6802 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6804 (eval $lt_ar_try) 2>&5 6805 ac_status=$? 6806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6807 test $ac_status = 0; } 6808 if test 0 -eq "$ac_status"; then 6809 # Ensure the archiver fails upon bogus file names. 6810 rm -f conftest.$ac_objext libconftest.a 6811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6812 (eval $lt_ar_try) 2>&5 6813 ac_status=$? 6814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6815 test $ac_status = 0; } 6816 if test 0 -ne "$ac_status"; then 6817 lt_cv_ar_at_file=@ 6818 fi 6819 fi 6820 rm -f conftest.* libconftest.a 6821 6822fi 6823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6824 6825fi 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6827$as_echo "$lt_cv_ar_at_file" >&6; } 6828 6829if test no = "$lt_cv_ar_at_file"; then 6830 archiver_list_spec= 6831else 6832 archiver_list_spec=$lt_cv_ar_at_file 6833fi 6834 6835 6836 6837 6838 6839 6840 6841if test -n "$ac_tool_prefix"; then 6842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6843set dummy ${ac_tool_prefix}strip; 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 ${ac_cv_prog_STRIP+:} false; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 if test -n "$STRIP"; then 6850 ac_cv_prog_STRIP="$STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6859 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 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 6869STRIP=$ac_cv_prog_STRIP 6870if test -n "$STRIP"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6872$as_echo "$STRIP" >&6; } 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877 6878 6879fi 6880if test -z "$ac_cv_prog_STRIP"; then 6881 ac_ct_STRIP=$STRIP 6882 # Extract the first word of "strip", so it can be a program name with args. 6883set dummy strip; ac_word=$2 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885$as_echo_n "checking for $ac_word... " >&6; } 6886if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 if test -n "$ac_ct_STRIP"; then 6890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6891else 6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6893for as_dir in $PATH 6894do 6895 IFS=$as_save_IFS 6896 test -z "$as_dir" && as_dir=. 6897 for ac_exec_ext in '' $ac_executable_extensions; do 6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6899 ac_cv_prog_ac_ct_STRIP="strip" 6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6901 break 2 6902 fi 6903done 6904 done 6905IFS=$as_save_IFS 6906 6907fi 6908fi 6909ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6910if test -n "$ac_ct_STRIP"; then 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6912$as_echo "$ac_ct_STRIP" >&6; } 6913else 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6915$as_echo "no" >&6; } 6916fi 6917 6918 if test "x$ac_ct_STRIP" = x; then 6919 STRIP=":" 6920 else 6921 case $cross_compiling:$ac_tool_warned in 6922yes:) 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6925ac_tool_warned=yes ;; 6926esac 6927 STRIP=$ac_ct_STRIP 6928 fi 6929else 6930 STRIP="$ac_cv_prog_STRIP" 6931fi 6932 6933test -z "$STRIP" && STRIP=: 6934 6935 6936 6937 6938 6939 6940if test -n "$ac_tool_prefix"; then 6941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6942set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6944$as_echo_n "checking for $ac_word... " >&6; } 6945if ${ac_cv_prog_RANLIB+:} false; then : 6946 $as_echo_n "(cached) " >&6 6947else 6948 if test -n "$RANLIB"; then 6949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6950else 6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6952for as_dir in $PATH 6953do 6954 IFS=$as_save_IFS 6955 test -z "$as_dir" && as_dir=. 6956 for ac_exec_ext in '' $ac_executable_extensions; do 6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6960 break 2 6961 fi 6962done 6963 done 6964IFS=$as_save_IFS 6965 6966fi 6967fi 6968RANLIB=$ac_cv_prog_RANLIB 6969if test -n "$RANLIB"; then 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6971$as_echo "$RANLIB" >&6; } 6972else 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6974$as_echo "no" >&6; } 6975fi 6976 6977 6978fi 6979if test -z "$ac_cv_prog_RANLIB"; then 6980 ac_ct_RANLIB=$RANLIB 6981 # Extract the first word of "ranlib", so it can be a program name with args. 6982set dummy ranlib; ac_word=$2 6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6984$as_echo_n "checking for $ac_word... " >&6; } 6985if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6986 $as_echo_n "(cached) " >&6 6987else 6988 if test -n "$ac_ct_RANLIB"; then 6989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6990else 6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6992for as_dir in $PATH 6993do 6994 IFS=$as_save_IFS 6995 test -z "$as_dir" && as_dir=. 6996 for ac_exec_ext in '' $ac_executable_extensions; do 6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6998 ac_cv_prog_ac_ct_RANLIB="ranlib" 6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7000 break 2 7001 fi 7002done 7003 done 7004IFS=$as_save_IFS 7005 7006fi 7007fi 7008ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7009if test -n "$ac_ct_RANLIB"; then 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7011$as_echo "$ac_ct_RANLIB" >&6; } 7012else 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7014$as_echo "no" >&6; } 7015fi 7016 7017 if test "x$ac_ct_RANLIB" = x; then 7018 RANLIB=":" 7019 else 7020 case $cross_compiling:$ac_tool_warned in 7021yes:) 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7024ac_tool_warned=yes ;; 7025esac 7026 RANLIB=$ac_ct_RANLIB 7027 fi 7028else 7029 RANLIB="$ac_cv_prog_RANLIB" 7030fi 7031 7032test -z "$RANLIB" && RANLIB=: 7033 7034 7035 7036 7037 7038 7039# Determine commands to create old-style static archives. 7040old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7041old_postinstall_cmds='chmod 644 $oldlib' 7042old_postuninstall_cmds= 7043 7044if test -n "$RANLIB"; then 7045 case $host_os in 7046 bitrig* | openbsd*) 7047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7048 ;; 7049 *) 7050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7051 ;; 7052 esac 7053 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7054fi 7055 7056case $host_os in 7057 darwin*) 7058 lock_old_archive_extraction=yes ;; 7059 *) 7060 lock_old_archive_extraction=no ;; 7061esac 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101# If no C compiler was specified, use CC. 7102LTCC=${LTCC-"$CC"} 7103 7104# If no C compiler flags were specified, use CFLAGS. 7105LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7106 7107# Allow CC to be a program name with arguments. 7108compiler=$CC 7109 7110 7111# Check for command to grab the raw symbol name followed by C symbol from nm. 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7113$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7114if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 7118# These are sane defaults that work on at least a few old systems. 7119# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7120 7121# Character class describing NM global symbol codes. 7122symcode='[BCDEGRST]' 7123 7124# Regexp to match symbols that can be accessed directly from C. 7125sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7126 7127# Define system-specific variables. 7128case $host_os in 7129aix*) 7130 symcode='[BCDT]' 7131 ;; 7132cygwin* | mingw* | pw32* | cegcc*) 7133 symcode='[ABCDGISTW]' 7134 ;; 7135hpux*) 7136 if test ia64 = "$host_cpu"; then 7137 symcode='[ABCDEGRST]' 7138 fi 7139 ;; 7140irix* | nonstopux*) 7141 symcode='[BCDEGRST]' 7142 ;; 7143osf*) 7144 symcode='[BCDEGQRST]' 7145 ;; 7146solaris*) 7147 symcode='[BDRT]' 7148 ;; 7149sco3.2v5*) 7150 symcode='[DT]' 7151 ;; 7152sysv4.2uw2*) 7153 symcode='[DT]' 7154 ;; 7155sysv5* | sco5v6* | unixware* | OpenUNIX*) 7156 symcode='[ABDT]' 7157 ;; 7158sysv4) 7159 symcode='[DFNSTU]' 7160 ;; 7161esac 7162 7163# If we're using GNU nm, then use its standard symbol codes. 7164case `$NM -V 2>&1` in 7165*GNU* | *'with BFD'*) 7166 symcode='[ABCDGIRSTW]' ;; 7167esac 7168 7169if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7170 # Gets list of data symbols to import. 7171 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7172 # Adjust the below global symbol transforms to fixup imported variables. 7173 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7174 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7175 lt_c_name_lib_hook="\ 7176 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7177 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7178else 7179 # Disable hooks by default. 7180 lt_cv_sys_global_symbol_to_import= 7181 lt_cdecl_hook= 7182 lt_c_name_hook= 7183 lt_c_name_lib_hook= 7184fi 7185 7186# Transform an extracted symbol line into a proper C declaration. 7187# Some systems (esp. on ia64) link data and code symbols differently, 7188# so use this general approach. 7189lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7190$lt_cdecl_hook\ 7191" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7192" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7193 7194# Transform an extracted symbol line into symbol name and symbol address 7195lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7196$lt_c_name_hook\ 7197" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7198" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7199 7200# Transform an extracted symbol line into symbol name with lib prefix and 7201# symbol address. 7202lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7203$lt_c_name_lib_hook\ 7204" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7205" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7206" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7207 7208# Handle CRLF in mingw tool chain 7209opt_cr= 7210case $build_os in 7211mingw*) 7212 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7213 ;; 7214esac 7215 7216# Try without a prefix underscore, then with it. 7217for ac_symprfx in "" "_"; do 7218 7219 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7220 symxfrm="\\1 $ac_symprfx\\2 \\2" 7221 7222 # Write the raw and C identifiers. 7223 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7224 # Fake it for dumpbin and say T for any non-static function, 7225 # D for any global variable and I for any imported variable. 7226 # Also find C++ and __fastcall symbols from MSVC++, 7227 # which start with @ or ?. 7228 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7229" {last_section=section; section=\$ 3};"\ 7230" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7231" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7232" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7233" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7234" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7235" \$ 0!~/External *\|/{next};"\ 7236" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7237" {if(hide[section]) next};"\ 7238" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7239" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7240" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7241" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7242" ' prfx=^$ac_symprfx" 7243 else 7244 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7245 fi 7246 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7247 7248 # Check to see that the pipe works correctly. 7249 pipe_works=no 7250 7251 rm -f conftest* 7252 cat > conftest.$ac_ext <<_LT_EOF 7253#ifdef __cplusplus 7254extern "C" { 7255#endif 7256char nm_test_var; 7257void nm_test_func(void); 7258void nm_test_func(void){} 7259#ifdef __cplusplus 7260} 7261#endif 7262int main(){nm_test_var='a';nm_test_func();return(0);} 7263_LT_EOF 7264 7265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7266 (eval $ac_compile) 2>&5 7267 ac_status=$? 7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7269 test $ac_status = 0; }; then 7270 # Now try to grab the symbols. 7271 nlist=conftest.nm 7272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7273 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7274 ac_status=$? 7275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7276 test $ac_status = 0; } && test -s "$nlist"; then 7277 # Try sorting and uniquifying the output. 7278 if sort "$nlist" | uniq > "$nlist"T; then 7279 mv -f "$nlist"T "$nlist" 7280 else 7281 rm -f "$nlist"T 7282 fi 7283 7284 # Make sure that we snagged all the symbols we need. 7285 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7286 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7287 cat <<_LT_EOF > conftest.$ac_ext 7288/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7289#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7290/* DATA imports from DLLs on WIN32 can't be const, because runtime 7291 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7292# define LT_DLSYM_CONST 7293#elif defined __osf__ 7294/* This system does not cope well with relocations in const data. */ 7295# define LT_DLSYM_CONST 7296#else 7297# define LT_DLSYM_CONST const 7298#endif 7299 7300#ifdef __cplusplus 7301extern "C" { 7302#endif 7303 7304_LT_EOF 7305 # Now generate the symbol file. 7306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7307 7308 cat <<_LT_EOF >> conftest.$ac_ext 7309 7310/* The mapping between symbol names and symbols. */ 7311LT_DLSYM_CONST struct { 7312 const char *name; 7313 void *address; 7314} 7315lt__PROGRAM__LTX_preloaded_symbols[] = 7316{ 7317 { "@PROGRAM@", (void *) 0 }, 7318_LT_EOF 7319 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7320 cat <<\_LT_EOF >> conftest.$ac_ext 7321 {0, (void *) 0} 7322}; 7323 7324/* This works around a problem in FreeBSD linker */ 7325#ifdef FREEBSD_WORKAROUND 7326static const void *lt_preloaded_setup() { 7327 return lt__PROGRAM__LTX_preloaded_symbols; 7328} 7329#endif 7330 7331#ifdef __cplusplus 7332} 7333#endif 7334_LT_EOF 7335 # Now try linking the two files. 7336 mv conftest.$ac_objext conftstm.$ac_objext 7337 lt_globsym_save_LIBS=$LIBS 7338 lt_globsym_save_CFLAGS=$CFLAGS 7339 LIBS=conftstm.$ac_objext 7340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7342 (eval $ac_link) 2>&5 7343 ac_status=$? 7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7345 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7346 pipe_works=yes 7347 fi 7348 LIBS=$lt_globsym_save_LIBS 7349 CFLAGS=$lt_globsym_save_CFLAGS 7350 else 7351 echo "cannot find nm_test_func in $nlist" >&5 7352 fi 7353 else 7354 echo "cannot find nm_test_var in $nlist" >&5 7355 fi 7356 else 7357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7358 fi 7359 else 7360 echo "$progname: failed program was:" >&5 7361 cat conftest.$ac_ext >&5 7362 fi 7363 rm -rf conftest* conftst* 7364 7365 # Do not use the global_symbol_pipe unless it works. 7366 if test yes = "$pipe_works"; then 7367 break 7368 else 7369 lt_cv_sys_global_symbol_pipe= 7370 fi 7371done 7372 7373fi 7374 7375if test -z "$lt_cv_sys_global_symbol_pipe"; then 7376 lt_cv_sys_global_symbol_to_cdecl= 7377fi 7378if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7380$as_echo "failed" >&6; } 7381else 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7383$as_echo "ok" >&6; } 7384fi 7385 7386# Response file support. 7387if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7388 nm_file_list_spec='@' 7389elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7390 nm_file_list_spec='@' 7391fi 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7430$as_echo_n "checking for sysroot... " >&6; } 7431 7432# Check whether --with-sysroot was given. 7433if test "${with_sysroot+set}" = set; then : 7434 withval=$with_sysroot; 7435else 7436 with_sysroot=no 7437fi 7438 7439 7440lt_sysroot= 7441case $with_sysroot in #( 7442 yes) 7443 if test yes = "$GCC"; then 7444 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7445 fi 7446 ;; #( 7447 /*) 7448 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7449 ;; #( 7450 no|'') 7451 ;; #( 7452 *) 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7454$as_echo "$with_sysroot" >&6; } 7455 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7456 ;; 7457esac 7458 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7460$as_echo "${lt_sysroot:-no}" >&6; } 7461 7462 7463 7464 7465 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7467$as_echo_n "checking for a working dd... " >&6; } 7468if ${ac_cv_path_lt_DD+:} false; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 printf 0123456789abcdef0123456789abcdef >conftest.i 7472cat conftest.i conftest.i >conftest2.i 7473: ${lt_DD:=$DD} 7474if test -z "$lt_DD"; then 7475 ac_path_lt_DD_found=false 7476 # Loop through the user's path and test for each of PROGNAME-LIST 7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7478for as_dir in $PATH 7479do 7480 IFS=$as_save_IFS 7481 test -z "$as_dir" && as_dir=. 7482 for ac_prog in dd; do 7483 for ac_exec_ext in '' $ac_executable_extensions; do 7484 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7485 as_fn_executable_p "$ac_path_lt_DD" || continue 7486if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7487 cmp -s conftest.i conftest.out \ 7488 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7489fi 7490 $ac_path_lt_DD_found && break 3 7491 done 7492 done 7493 done 7494IFS=$as_save_IFS 7495 if test -z "$ac_cv_path_lt_DD"; then 7496 : 7497 fi 7498else 7499 ac_cv_path_lt_DD=$lt_DD 7500fi 7501 7502rm -f conftest.i conftest2.i conftest.out 7503fi 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7505$as_echo "$ac_cv_path_lt_DD" >&6; } 7506 7507 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7509$as_echo_n "checking how to truncate binary pipes... " >&6; } 7510if ${lt_cv_truncate_bin+:} false; then : 7511 $as_echo_n "(cached) " >&6 7512else 7513 printf 0123456789abcdef0123456789abcdef >conftest.i 7514cat conftest.i conftest.i >conftest2.i 7515lt_cv_truncate_bin= 7516if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7517 cmp -s conftest.i conftest.out \ 7518 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7519fi 7520rm -f conftest.i conftest2.i conftest.out 7521test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7522fi 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7524$as_echo "$lt_cv_truncate_bin" >&6; } 7525 7526 7527 7528 7529 7530 7531 7532# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7533func_cc_basename () 7534{ 7535 for cc_temp in $*""; do 7536 case $cc_temp in 7537 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7538 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7539 \-*) ;; 7540 *) break;; 7541 esac 7542 done 7543 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7544} 7545 7546# Check whether --enable-libtool-lock was given. 7547if test "${enable_libtool_lock+set}" = set; then : 7548 enableval=$enable_libtool_lock; 7549fi 7550 7551test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7552 7553# Some flags need to be propagated to the compiler or linker for good 7554# libtool support. 7555case $host in 7556ia64-*-hpux*) 7557 # Find out what ABI is being produced by ac_compile, and set mode 7558 # options accordingly. 7559 echo 'int i;' > conftest.$ac_ext 7560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7561 (eval $ac_compile) 2>&5 7562 ac_status=$? 7563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7564 test $ac_status = 0; }; then 7565 case `/usr/bin/file conftest.$ac_objext` in 7566 *ELF-32*) 7567 HPUX_IA64_MODE=32 7568 ;; 7569 *ELF-64*) 7570 HPUX_IA64_MODE=64 7571 ;; 7572 esac 7573 fi 7574 rm -rf conftest* 7575 ;; 7576*-*-irix6*) 7577 # Find out what ABI is being produced by ac_compile, and set linker 7578 # options accordingly. 7579 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7581 (eval $ac_compile) 2>&5 7582 ac_status=$? 7583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7584 test $ac_status = 0; }; then 7585 if test yes = "$lt_cv_prog_gnu_ld"; then 7586 case `/usr/bin/file conftest.$ac_objext` in 7587 *32-bit*) 7588 LD="${LD-ld} -melf32bsmip" 7589 ;; 7590 *N32*) 7591 LD="${LD-ld} -melf32bmipn32" 7592 ;; 7593 *64-bit*) 7594 LD="${LD-ld} -melf64bmip" 7595 ;; 7596 esac 7597 else 7598 case `/usr/bin/file conftest.$ac_objext` in 7599 *32-bit*) 7600 LD="${LD-ld} -32" 7601 ;; 7602 *N32*) 7603 LD="${LD-ld} -n32" 7604 ;; 7605 *64-bit*) 7606 LD="${LD-ld} -64" 7607 ;; 7608 esac 7609 fi 7610 fi 7611 rm -rf conftest* 7612 ;; 7613 7614mips64*-*linux*) 7615 # Find out what ABI is being produced by ac_compile, and set linker 7616 # options accordingly. 7617 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7619 (eval $ac_compile) 2>&5 7620 ac_status=$? 7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7622 test $ac_status = 0; }; then 7623 emul=elf 7624 case `/usr/bin/file conftest.$ac_objext` in 7625 *32-bit*) 7626 emul="${emul}32" 7627 ;; 7628 *64-bit*) 7629 emul="${emul}64" 7630 ;; 7631 esac 7632 case `/usr/bin/file conftest.$ac_objext` in 7633 *MSB*) 7634 emul="${emul}btsmip" 7635 ;; 7636 *LSB*) 7637 emul="${emul}ltsmip" 7638 ;; 7639 esac 7640 case `/usr/bin/file conftest.$ac_objext` in 7641 *N32*) 7642 emul="${emul}n32" 7643 ;; 7644 esac 7645 LD="${LD-ld} -m $emul" 7646 fi 7647 rm -rf conftest* 7648 ;; 7649 7650x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7651s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7652 # Find out what ABI is being produced by ac_compile, and set linker 7653 # options accordingly. Note that the listed cases only cover the 7654 # situations where additional linker options are needed (such as when 7655 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7656 # vice versa); the common cases where no linker options are needed do 7657 # not appear in the list. 7658 echo 'int i;' > conftest.$ac_ext 7659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7660 (eval $ac_compile) 2>&5 7661 ac_status=$? 7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7663 test $ac_status = 0; }; then 7664 case `/usr/bin/file conftest.o` in 7665 *32-bit*) 7666 case $host in 7667 x86_64-*kfreebsd*-gnu) 7668 LD="${LD-ld} -m elf_i386_fbsd" 7669 ;; 7670 x86_64-*linux*) 7671 case `/usr/bin/file conftest.o` in 7672 *x86-64*) 7673 LD="${LD-ld} -m elf32_x86_64" 7674 ;; 7675 *) 7676 LD="${LD-ld} -m elf_i386" 7677 ;; 7678 esac 7679 ;; 7680 powerpc64le-*linux*) 7681 LD="${LD-ld} -m elf32lppclinux" 7682 ;; 7683 powerpc64-*linux*) 7684 LD="${LD-ld} -m elf32ppclinux" 7685 ;; 7686 s390x-*linux*) 7687 LD="${LD-ld} -m elf_s390" 7688 ;; 7689 sparc64-*linux*) 7690 LD="${LD-ld} -m elf32_sparc" 7691 ;; 7692 esac 7693 ;; 7694 *64-bit*) 7695 case $host in 7696 x86_64-*kfreebsd*-gnu) 7697 LD="${LD-ld} -m elf_x86_64_fbsd" 7698 ;; 7699 x86_64-*linux*) 7700 LD="${LD-ld} -m elf_x86_64" 7701 ;; 7702 powerpcle-*linux*) 7703 LD="${LD-ld} -m elf64lppc" 7704 ;; 7705 powerpc-*linux*) 7706 LD="${LD-ld} -m elf64ppc" 7707 ;; 7708 s390*-*linux*|s390*-*tpf*) 7709 LD="${LD-ld} -m elf64_s390" 7710 ;; 7711 sparc*-*linux*) 7712 LD="${LD-ld} -m elf64_sparc" 7713 ;; 7714 esac 7715 ;; 7716 esac 7717 fi 7718 rm -rf conftest* 7719 ;; 7720 7721*-*-sco3.2v5*) 7722 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7723 SAVE_CFLAGS=$CFLAGS 7724 CFLAGS="$CFLAGS -belf" 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7726$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7727if ${lt_cv_cc_needs_belf+:} false; then : 7728 $as_echo_n "(cached) " >&6 7729else 7730 ac_ext=c 7731ac_cpp='$CPP $CPPFLAGS' 7732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7734ac_compiler_gnu=$ac_cv_c_compiler_gnu 7735 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738 7739int 7740main () 7741{ 7742 7743 ; 7744 return 0; 7745} 7746_ACEOF 7747if ac_fn_c_try_link "$LINENO"; then : 7748 lt_cv_cc_needs_belf=yes 7749else 7750 lt_cv_cc_needs_belf=no 7751fi 7752rm -f core conftest.err conftest.$ac_objext \ 7753 conftest$ac_exeext conftest.$ac_ext 7754 ac_ext=c 7755ac_cpp='$CPP $CPPFLAGS' 7756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7758ac_compiler_gnu=$ac_cv_c_compiler_gnu 7759 7760fi 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7762$as_echo "$lt_cv_cc_needs_belf" >&6; } 7763 if test yes != "$lt_cv_cc_needs_belf"; then 7764 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7765 CFLAGS=$SAVE_CFLAGS 7766 fi 7767 ;; 7768*-*solaris*) 7769 # Find out what ABI is being produced by ac_compile, and set linker 7770 # options accordingly. 7771 echo 'int i;' > conftest.$ac_ext 7772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7773 (eval $ac_compile) 2>&5 7774 ac_status=$? 7775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7776 test $ac_status = 0; }; then 7777 case `/usr/bin/file conftest.o` in 7778 *64-bit*) 7779 case $lt_cv_prog_gnu_ld in 7780 yes*) 7781 case $host in 7782 i?86-*-solaris*|x86_64-*-solaris*) 7783 LD="${LD-ld} -m elf_x86_64" 7784 ;; 7785 sparc*-*-solaris*) 7786 LD="${LD-ld} -m elf64_sparc" 7787 ;; 7788 esac 7789 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7790 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7791 LD=${LD-ld}_sol2 7792 fi 7793 ;; 7794 *) 7795 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7796 LD="${LD-ld} -64" 7797 fi 7798 ;; 7799 esac 7800 ;; 7801 esac 7802 fi 7803 rm -rf conftest* 7804 ;; 7805esac 7806 7807need_locks=$enable_libtool_lock 7808 7809if test -n "$ac_tool_prefix"; then 7810 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7811set dummy ${ac_tool_prefix}mt; ac_word=$2 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7813$as_echo_n "checking for $ac_word... " >&6; } 7814if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 if test -n "$MANIFEST_TOOL"; then 7818 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7819else 7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7821for as_dir in $PATH 7822do 7823 IFS=$as_save_IFS 7824 test -z "$as_dir" && as_dir=. 7825 for ac_exec_ext in '' $ac_executable_extensions; do 7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7827 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7829 break 2 7830 fi 7831done 7832 done 7833IFS=$as_save_IFS 7834 7835fi 7836fi 7837MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7838if test -n "$MANIFEST_TOOL"; then 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7840$as_echo "$MANIFEST_TOOL" >&6; } 7841else 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7843$as_echo "no" >&6; } 7844fi 7845 7846 7847fi 7848if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7849 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7850 # Extract the first word of "mt", so it can be a program name with args. 7851set dummy mt; ac_word=$2 7852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7853$as_echo_n "checking for $ac_word... " >&6; } 7854if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7855 $as_echo_n "(cached) " >&6 7856else 7857 if test -n "$ac_ct_MANIFEST_TOOL"; then 7858 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7859else 7860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7861for as_dir in $PATH 7862do 7863 IFS=$as_save_IFS 7864 test -z "$as_dir" && as_dir=. 7865 for ac_exec_ext in '' $ac_executable_extensions; do 7866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7867 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7869 break 2 7870 fi 7871done 7872 done 7873IFS=$as_save_IFS 7874 7875fi 7876fi 7877ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7878if test -n "$ac_ct_MANIFEST_TOOL"; then 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7880$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7881else 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7883$as_echo "no" >&6; } 7884fi 7885 7886 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7887 MANIFEST_TOOL=":" 7888 else 7889 case $cross_compiling:$ac_tool_warned in 7890yes:) 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7893ac_tool_warned=yes ;; 7894esac 7895 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7896 fi 7897else 7898 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7899fi 7900 7901test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7903$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7904if ${lt_cv_path_mainfest_tool+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 lt_cv_path_mainfest_tool=no 7908 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7909 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7910 cat conftest.err >&5 7911 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7912 lt_cv_path_mainfest_tool=yes 7913 fi 7914 rm -f conftest* 7915fi 7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7917$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7918if test yes != "$lt_cv_path_mainfest_tool"; then 7919 MANIFEST_TOOL=: 7920fi 7921 7922 7923 7924 7925 7926 7927 case $host_os in 7928 rhapsody* | darwin*) 7929 if test -n "$ac_tool_prefix"; then 7930 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7931set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7933$as_echo_n "checking for $ac_word... " >&6; } 7934if ${ac_cv_prog_DSYMUTIL+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 if test -n "$DSYMUTIL"; then 7938 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7939else 7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941for as_dir in $PATH 7942do 7943 IFS=$as_save_IFS 7944 test -z "$as_dir" && as_dir=. 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7947 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951done 7952 done 7953IFS=$as_save_IFS 7954 7955fi 7956fi 7957DSYMUTIL=$ac_cv_prog_DSYMUTIL 7958if test -n "$DSYMUTIL"; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7960$as_echo "$DSYMUTIL" >&6; } 7961else 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963$as_echo "no" >&6; } 7964fi 7965 7966 7967fi 7968if test -z "$ac_cv_prog_DSYMUTIL"; then 7969 ac_ct_DSYMUTIL=$DSYMUTIL 7970 # Extract the first word of "dsymutil", so it can be a program name with args. 7971set dummy dsymutil; ac_word=$2 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7973$as_echo_n "checking for $ac_word... " >&6; } 7974if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 if test -n "$ac_ct_DSYMUTIL"; then 7978 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7979else 7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7981for as_dir in $PATH 7982do 7983 IFS=$as_save_IFS 7984 test -z "$as_dir" && as_dir=. 7985 for ac_exec_ext in '' $ac_executable_extensions; do 7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7987 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7989 break 2 7990 fi 7991done 7992 done 7993IFS=$as_save_IFS 7994 7995fi 7996fi 7997ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7998if test -n "$ac_ct_DSYMUTIL"; then 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8000$as_echo "$ac_ct_DSYMUTIL" >&6; } 8001else 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8003$as_echo "no" >&6; } 8004fi 8005 8006 if test "x$ac_ct_DSYMUTIL" = x; then 8007 DSYMUTIL=":" 8008 else 8009 case $cross_compiling:$ac_tool_warned in 8010yes:) 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8013ac_tool_warned=yes ;; 8014esac 8015 DSYMUTIL=$ac_ct_DSYMUTIL 8016 fi 8017else 8018 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8019fi 8020 8021 if test -n "$ac_tool_prefix"; then 8022 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8023set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8025$as_echo_n "checking for $ac_word... " >&6; } 8026if ${ac_cv_prog_NMEDIT+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 if test -n "$NMEDIT"; then 8030 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8031else 8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8033for as_dir in $PATH 8034do 8035 IFS=$as_save_IFS 8036 test -z "$as_dir" && as_dir=. 8037 for ac_exec_ext in '' $ac_executable_extensions; do 8038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8039 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8041 break 2 8042 fi 8043done 8044 done 8045IFS=$as_save_IFS 8046 8047fi 8048fi 8049NMEDIT=$ac_cv_prog_NMEDIT 8050if test -n "$NMEDIT"; then 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8052$as_echo "$NMEDIT" >&6; } 8053else 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8055$as_echo "no" >&6; } 8056fi 8057 8058 8059fi 8060if test -z "$ac_cv_prog_NMEDIT"; then 8061 ac_ct_NMEDIT=$NMEDIT 8062 # Extract the first word of "nmedit", so it can be a program name with args. 8063set dummy nmedit; ac_word=$2 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8065$as_echo_n "checking for $ac_word... " >&6; } 8066if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 if test -n "$ac_ct_NMEDIT"; then 8070 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8071else 8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8073for as_dir in $PATH 8074do 8075 IFS=$as_save_IFS 8076 test -z "$as_dir" && as_dir=. 8077 for ac_exec_ext in '' $ac_executable_extensions; do 8078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8079 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8081 break 2 8082 fi 8083done 8084 done 8085IFS=$as_save_IFS 8086 8087fi 8088fi 8089ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8090if test -n "$ac_ct_NMEDIT"; then 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8092$as_echo "$ac_ct_NMEDIT" >&6; } 8093else 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8095$as_echo "no" >&6; } 8096fi 8097 8098 if test "x$ac_ct_NMEDIT" = x; then 8099 NMEDIT=":" 8100 else 8101 case $cross_compiling:$ac_tool_warned in 8102yes:) 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8105ac_tool_warned=yes ;; 8106esac 8107 NMEDIT=$ac_ct_NMEDIT 8108 fi 8109else 8110 NMEDIT="$ac_cv_prog_NMEDIT" 8111fi 8112 8113 if test -n "$ac_tool_prefix"; then 8114 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8115set dummy ${ac_tool_prefix}lipo; ac_word=$2 8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8117$as_echo_n "checking for $ac_word... " >&6; } 8118if ${ac_cv_prog_LIPO+:} false; then : 8119 $as_echo_n "(cached) " >&6 8120else 8121 if test -n "$LIPO"; then 8122 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8123else 8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8125for as_dir in $PATH 8126do 8127 IFS=$as_save_IFS 8128 test -z "$as_dir" && as_dir=. 8129 for ac_exec_ext in '' $ac_executable_extensions; do 8130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8131 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8133 break 2 8134 fi 8135done 8136 done 8137IFS=$as_save_IFS 8138 8139fi 8140fi 8141LIPO=$ac_cv_prog_LIPO 8142if test -n "$LIPO"; then 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8144$as_echo "$LIPO" >&6; } 8145else 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8147$as_echo "no" >&6; } 8148fi 8149 8150 8151fi 8152if test -z "$ac_cv_prog_LIPO"; then 8153 ac_ct_LIPO=$LIPO 8154 # Extract the first word of "lipo", so it can be a program name with args. 8155set dummy lipo; ac_word=$2 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8157$as_echo_n "checking for $ac_word... " >&6; } 8158if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8159 $as_echo_n "(cached) " >&6 8160else 8161 if test -n "$ac_ct_LIPO"; then 8162 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8163else 8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8165for as_dir in $PATH 8166do 8167 IFS=$as_save_IFS 8168 test -z "$as_dir" && as_dir=. 8169 for ac_exec_ext in '' $ac_executable_extensions; do 8170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8171 ac_cv_prog_ac_ct_LIPO="lipo" 8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8173 break 2 8174 fi 8175done 8176 done 8177IFS=$as_save_IFS 8178 8179fi 8180fi 8181ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8182if test -n "$ac_ct_LIPO"; then 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8184$as_echo "$ac_ct_LIPO" >&6; } 8185else 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8187$as_echo "no" >&6; } 8188fi 8189 8190 if test "x$ac_ct_LIPO" = x; then 8191 LIPO=":" 8192 else 8193 case $cross_compiling:$ac_tool_warned in 8194yes:) 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8197ac_tool_warned=yes ;; 8198esac 8199 LIPO=$ac_ct_LIPO 8200 fi 8201else 8202 LIPO="$ac_cv_prog_LIPO" 8203fi 8204 8205 if test -n "$ac_tool_prefix"; then 8206 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8207set dummy ${ac_tool_prefix}otool; ac_word=$2 8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8209$as_echo_n "checking for $ac_word... " >&6; } 8210if ${ac_cv_prog_OTOOL+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 if test -n "$OTOOL"; then 8214 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8215else 8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8217for as_dir in $PATH 8218do 8219 IFS=$as_save_IFS 8220 test -z "$as_dir" && as_dir=. 8221 for ac_exec_ext in '' $ac_executable_extensions; do 8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8223 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8225 break 2 8226 fi 8227done 8228 done 8229IFS=$as_save_IFS 8230 8231fi 8232fi 8233OTOOL=$ac_cv_prog_OTOOL 8234if test -n "$OTOOL"; then 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8236$as_echo "$OTOOL" >&6; } 8237else 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8239$as_echo "no" >&6; } 8240fi 8241 8242 8243fi 8244if test -z "$ac_cv_prog_OTOOL"; then 8245 ac_ct_OTOOL=$OTOOL 8246 # Extract the first word of "otool", so it can be a program name with args. 8247set dummy otool; ac_word=$2 8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8249$as_echo_n "checking for $ac_word... " >&6; } 8250if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 if test -n "$ac_ct_OTOOL"; then 8254 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8255else 8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8257for as_dir in $PATH 8258do 8259 IFS=$as_save_IFS 8260 test -z "$as_dir" && as_dir=. 8261 for ac_exec_ext in '' $ac_executable_extensions; do 8262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8263 ac_cv_prog_ac_ct_OTOOL="otool" 8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8265 break 2 8266 fi 8267done 8268 done 8269IFS=$as_save_IFS 8270 8271fi 8272fi 8273ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8274if test -n "$ac_ct_OTOOL"; then 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8276$as_echo "$ac_ct_OTOOL" >&6; } 8277else 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8279$as_echo "no" >&6; } 8280fi 8281 8282 if test "x$ac_ct_OTOOL" = x; then 8283 OTOOL=":" 8284 else 8285 case $cross_compiling:$ac_tool_warned in 8286yes:) 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8289ac_tool_warned=yes ;; 8290esac 8291 OTOOL=$ac_ct_OTOOL 8292 fi 8293else 8294 OTOOL="$ac_cv_prog_OTOOL" 8295fi 8296 8297 if test -n "$ac_tool_prefix"; then 8298 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8299set dummy ${ac_tool_prefix}otool64; ac_word=$2 8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8301$as_echo_n "checking for $ac_word... " >&6; } 8302if ${ac_cv_prog_OTOOL64+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 if test -n "$OTOOL64"; then 8306 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8307else 8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8309for as_dir in $PATH 8310do 8311 IFS=$as_save_IFS 8312 test -z "$as_dir" && as_dir=. 8313 for ac_exec_ext in '' $ac_executable_extensions; do 8314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8315 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8317 break 2 8318 fi 8319done 8320 done 8321IFS=$as_save_IFS 8322 8323fi 8324fi 8325OTOOL64=$ac_cv_prog_OTOOL64 8326if test -n "$OTOOL64"; then 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8328$as_echo "$OTOOL64" >&6; } 8329else 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8331$as_echo "no" >&6; } 8332fi 8333 8334 8335fi 8336if test -z "$ac_cv_prog_OTOOL64"; then 8337 ac_ct_OTOOL64=$OTOOL64 8338 # Extract the first word of "otool64", so it can be a program name with args. 8339set dummy otool64; ac_word=$2 8340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8341$as_echo_n "checking for $ac_word... " >&6; } 8342if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 if test -n "$ac_ct_OTOOL64"; then 8346 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8347else 8348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8349for as_dir in $PATH 8350do 8351 IFS=$as_save_IFS 8352 test -z "$as_dir" && as_dir=. 8353 for ac_exec_ext in '' $ac_executable_extensions; do 8354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8355 ac_cv_prog_ac_ct_OTOOL64="otool64" 8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8357 break 2 8358 fi 8359done 8360 done 8361IFS=$as_save_IFS 8362 8363fi 8364fi 8365ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8366if test -n "$ac_ct_OTOOL64"; then 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8368$as_echo "$ac_ct_OTOOL64" >&6; } 8369else 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8371$as_echo "no" >&6; } 8372fi 8373 8374 if test "x$ac_ct_OTOOL64" = x; then 8375 OTOOL64=":" 8376 else 8377 case $cross_compiling:$ac_tool_warned in 8378yes:) 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8381ac_tool_warned=yes ;; 8382esac 8383 OTOOL64=$ac_ct_OTOOL64 8384 fi 8385else 8386 OTOOL64="$ac_cv_prog_OTOOL64" 8387fi 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8416$as_echo_n "checking for -single_module linker flag... " >&6; } 8417if ${lt_cv_apple_cc_single_mod+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 lt_cv_apple_cc_single_mod=no 8421 if test -z "$LT_MULTI_MODULE"; then 8422 # By default we will add the -single_module flag. You can override 8423 # by either setting the environment variable LT_MULTI_MODULE 8424 # non-empty at configure time, or by adding -multi_module to the 8425 # link flags. 8426 rm -rf libconftest.dylib* 8427 echo "int foo(void){return 1;}" > conftest.c 8428 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8429-dynamiclib -Wl,-single_module conftest.c" >&5 8430 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8431 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8432 _lt_result=$? 8433 # If there is a non-empty error log, and "single_module" 8434 # appears in it, assume the flag caused a linker warning 8435 if test -s conftest.err && $GREP single_module conftest.err; then 8436 cat conftest.err >&5 8437 # Otherwise, if the output was created with a 0 exit code from 8438 # the compiler, it worked. 8439 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8440 lt_cv_apple_cc_single_mod=yes 8441 else 8442 cat conftest.err >&5 8443 fi 8444 rm -rf libconftest.dylib* 8445 rm -f conftest.* 8446 fi 8447fi 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8449$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8450 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8452$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8453if ${lt_cv_ld_exported_symbols_list+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 lt_cv_ld_exported_symbols_list=no 8457 save_LDFLAGS=$LDFLAGS 8458 echo "_main" > conftest.sym 8459 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462 8463int 8464main () 8465{ 8466 8467 ; 8468 return 0; 8469} 8470_ACEOF 8471if ac_fn_c_try_link "$LINENO"; then : 8472 lt_cv_ld_exported_symbols_list=yes 8473else 8474 lt_cv_ld_exported_symbols_list=no 8475fi 8476rm -f core conftest.err conftest.$ac_objext \ 8477 conftest$ac_exeext conftest.$ac_ext 8478 LDFLAGS=$save_LDFLAGS 8479 8480fi 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8482$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8483 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8485$as_echo_n "checking for -force_load linker flag... " >&6; } 8486if ${lt_cv_ld_force_load+:} false; then : 8487 $as_echo_n "(cached) " >&6 8488else 8489 lt_cv_ld_force_load=no 8490 cat > conftest.c << _LT_EOF 8491int forced_loaded() { return 2;} 8492_LT_EOF 8493 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8494 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8495 echo "$AR cru libconftest.a conftest.o" >&5 8496 $AR cru libconftest.a conftest.o 2>&5 8497 echo "$RANLIB libconftest.a" >&5 8498 $RANLIB libconftest.a 2>&5 8499 cat > conftest.c << _LT_EOF 8500int main() { return 0;} 8501_LT_EOF 8502 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8503 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8504 _lt_result=$? 8505 if test -s conftest.err && $GREP force_load conftest.err; then 8506 cat conftest.err >&5 8507 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8508 lt_cv_ld_force_load=yes 8509 else 8510 cat conftest.err >&5 8511 fi 8512 rm -f conftest.err libconftest.a conftest conftest.c 8513 rm -rf conftest.dSYM 8514 8515fi 8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8517$as_echo "$lt_cv_ld_force_load" >&6; } 8518 case $host_os in 8519 rhapsody* | darwin1.[012]) 8520 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8521 darwin1.*) 8522 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8523 darwin*) # darwin 5.x on 8524 # if running on 10.5 or later, the deployment target defaults 8525 # to the OS version, if on x86, and 10.4, the deployment 8526 # target defaults to 10.4. Don't you love it? 8527 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8528 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8529 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8530 10.[012][,.]*) 8531 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8532 10.*) 8533 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8534 esac 8535 ;; 8536 esac 8537 if test yes = "$lt_cv_apple_cc_single_mod"; then 8538 _lt_dar_single_mod='$single_module' 8539 fi 8540 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8541 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8542 else 8543 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8544 fi 8545 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8546 _lt_dsymutil='~$DSYMUTIL $lib || :' 8547 else 8548 _lt_dsymutil= 8549 fi 8550 ;; 8551 esac 8552 8553# func_munge_path_list VARIABLE PATH 8554# ----------------------------------- 8555# VARIABLE is name of variable containing _space_ separated list of 8556# directories to be munged by the contents of PATH, which is string 8557# having a format: 8558# "DIR[:DIR]:" 8559# string "DIR[ DIR]" will be prepended to VARIABLE 8560# ":DIR[:DIR]" 8561# string "DIR[ DIR]" will be appended to VARIABLE 8562# "DIRP[:DIRP]::[DIRA:]DIRA" 8563# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8564# "DIRA[ DIRA]" will be appended to VARIABLE 8565# "DIR[:DIR]" 8566# VARIABLE will be replaced by "DIR[ DIR]" 8567func_munge_path_list () 8568{ 8569 case x$2 in 8570 x) 8571 ;; 8572 *:) 8573 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8574 ;; 8575 x:*) 8576 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8577 ;; 8578 *::*) 8579 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8580 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8581 ;; 8582 *) 8583 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8584 ;; 8585 esac 8586} 8587 8588for ac_header in dlfcn.h 8589do : 8590 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8591" 8592if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8593 cat >>confdefs.h <<_ACEOF 8594#define HAVE_DLFCN_H 1 8595_ACEOF 8596 8597fi 8598 8599done 8600 8601 8602 8603 8604 8605# Set options 8606 8607 8608 8609 enable_dlopen=no 8610 8611 8612 enable_win32_dll=no 8613 8614 8615 # Check whether --enable-shared was given. 8616if test "${enable_shared+set}" = set; then : 8617 enableval=$enable_shared; p=${PACKAGE-default} 8618 case $enableval in 8619 yes) enable_shared=yes ;; 8620 no) enable_shared=no ;; 8621 *) 8622 enable_shared=no 8623 # Look at the argument we got. We use all the common list separators. 8624 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8625 for pkg in $enableval; do 8626 IFS=$lt_save_ifs 8627 if test "X$pkg" = "X$p"; then 8628 enable_shared=yes 8629 fi 8630 done 8631 IFS=$lt_save_ifs 8632 ;; 8633 esac 8634else 8635 enable_shared=yes 8636fi 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 # Check whether --enable-static was given. 8647if test "${enable_static+set}" = set; then : 8648 enableval=$enable_static; p=${PACKAGE-default} 8649 case $enableval in 8650 yes) enable_static=yes ;; 8651 no) enable_static=no ;; 8652 *) 8653 enable_static=no 8654 # Look at the argument we got. We use all the common list separators. 8655 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8656 for pkg in $enableval; do 8657 IFS=$lt_save_ifs 8658 if test "X$pkg" = "X$p"; then 8659 enable_static=yes 8660 fi 8661 done 8662 IFS=$lt_save_ifs 8663 ;; 8664 esac 8665else 8666 enable_static=yes 8667fi 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678# Check whether --with-pic was given. 8679if test "${with_pic+set}" = set; then : 8680 withval=$with_pic; lt_p=${PACKAGE-default} 8681 case $withval in 8682 yes|no) pic_mode=$withval ;; 8683 *) 8684 pic_mode=default 8685 # Look at the argument we got. We use all the common list separators. 8686 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8687 for lt_pkg in $withval; do 8688 IFS=$lt_save_ifs 8689 if test "X$lt_pkg" = "X$lt_p"; then 8690 pic_mode=yes 8691 fi 8692 done 8693 IFS=$lt_save_ifs 8694 ;; 8695 esac 8696else 8697 pic_mode=default 8698fi 8699 8700 8701 8702 8703 8704 8705 8706 8707 # Check whether --enable-fast-install was given. 8708if test "${enable_fast_install+set}" = set; then : 8709 enableval=$enable_fast_install; p=${PACKAGE-default} 8710 case $enableval in 8711 yes) enable_fast_install=yes ;; 8712 no) enable_fast_install=no ;; 8713 *) 8714 enable_fast_install=no 8715 # Look at the argument we got. We use all the common list separators. 8716 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8717 for pkg in $enableval; do 8718 IFS=$lt_save_ifs 8719 if test "X$pkg" = "X$p"; then 8720 enable_fast_install=yes 8721 fi 8722 done 8723 IFS=$lt_save_ifs 8724 ;; 8725 esac 8726else 8727 enable_fast_install=yes 8728fi 8729 8730 8731 8732 8733 8734 8735 8736 8737 shared_archive_member_spec= 8738case $host,$enable_shared in 8739power*-*-aix[5-9]*,yes) 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8741$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8742 8743# Check whether --with-aix-soname was given. 8744if test "${with_aix_soname+set}" = set; then : 8745 withval=$with_aix_soname; case $withval in 8746 aix|svr4|both) 8747 ;; 8748 *) 8749 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8750 ;; 8751 esac 8752 lt_cv_with_aix_soname=$with_aix_soname 8753else 8754 if ${lt_cv_with_aix_soname+:} false; then : 8755 $as_echo_n "(cached) " >&6 8756else 8757 lt_cv_with_aix_soname=aix 8758fi 8759 8760 with_aix_soname=$lt_cv_with_aix_soname 8761fi 8762 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8764$as_echo "$with_aix_soname" >&6; } 8765 if test aix != "$with_aix_soname"; then 8766 # For the AIX way of multilib, we name the shared archive member 8767 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8768 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8769 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8770 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8771 if test 64 = "${OBJECT_MODE-32}"; then 8772 shared_archive_member_spec=shr_64 8773 else 8774 shared_archive_member_spec=shr 8775 fi 8776 fi 8777 ;; 8778*) 8779 with_aix_soname=aix 8780 ;; 8781esac 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792# This can be used to rebuild libtool when needed 8793LIBTOOL_DEPS=$ltmain 8794 8795# Always use our own libtool. 8796LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827test -z "$LN_S" && LN_S="ln -s" 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842if test -n "${ZSH_VERSION+set}"; then 8843 setopt NO_GLOB_SUBST 8844fi 8845 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8847$as_echo_n "checking for objdir... " >&6; } 8848if ${lt_cv_objdir+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 rm -f .libs 2>/dev/null 8852mkdir .libs 2>/dev/null 8853if test -d .libs; then 8854 lt_cv_objdir=.libs 8855else 8856 # MS-DOS does not allow filenames that begin with a dot. 8857 lt_cv_objdir=_libs 8858fi 8859rmdir .libs 2>/dev/null 8860fi 8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8862$as_echo "$lt_cv_objdir" >&6; } 8863objdir=$lt_cv_objdir 8864 8865 8866 8867 8868 8869cat >>confdefs.h <<_ACEOF 8870#define LT_OBJDIR "$lt_cv_objdir/" 8871_ACEOF 8872 8873 8874 8875 8876case $host_os in 8877aix3*) 8878 # AIX sometimes has problems with the GCC collect2 program. For some 8879 # reason, if we set the COLLECT_NAMES environment variable, the problems 8880 # vanish in a puff of smoke. 8881 if test set != "${COLLECT_NAMES+set}"; then 8882 COLLECT_NAMES= 8883 export COLLECT_NAMES 8884 fi 8885 ;; 8886esac 8887 8888# Global variables: 8889ofile=libtool 8890can_build_shared=yes 8891 8892# All known linkers require a '.a' archive for static linking (except MSVC, 8893# which needs '.lib'). 8894libext=a 8895 8896with_gnu_ld=$lt_cv_prog_gnu_ld 8897 8898old_CC=$CC 8899old_CFLAGS=$CFLAGS 8900 8901# Set sane defaults for various variables 8902test -z "$CC" && CC=cc 8903test -z "$LTCC" && LTCC=$CC 8904test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8905test -z "$LD" && LD=ld 8906test -z "$ac_objext" && ac_objext=o 8907 8908func_cc_basename $compiler 8909cc_basename=$func_cc_basename_result 8910 8911 8912# Only perform the check for file, if the check method requires it 8913test -z "$MAGIC_CMD" && MAGIC_CMD=file 8914case $deplibs_check_method in 8915file_magic*) 8916 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8918$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8919if ${lt_cv_path_MAGIC_CMD+:} false; then : 8920 $as_echo_n "(cached) " >&6 8921else 8922 case $MAGIC_CMD in 8923[\\/*] | ?:[\\/]*) 8924 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8925 ;; 8926*) 8927 lt_save_MAGIC_CMD=$MAGIC_CMD 8928 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8930 for ac_dir in $ac_dummy; do 8931 IFS=$lt_save_ifs 8932 test -z "$ac_dir" && ac_dir=. 8933 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8934 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8935 if test -n "$file_magic_test_file"; then 8936 case $deplibs_check_method in 8937 "file_magic "*) 8938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8939 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8941 $EGREP "$file_magic_regex" > /dev/null; then 8942 : 8943 else 8944 cat <<_LT_EOF 1>&2 8945 8946*** Warning: the command libtool uses to detect shared libraries, 8947*** $file_magic_cmd, produces output that libtool cannot recognize. 8948*** The result is that libtool may fail to recognize shared libraries 8949*** as such. This will affect the creation of libtool libraries that 8950*** depend on shared libraries, but programs linked with such libtool 8951*** libraries will work regardless of this problem. Nevertheless, you 8952*** may want to report the problem to your system manager and/or to 8953*** bug-libtool@gnu.org 8954 8955_LT_EOF 8956 fi ;; 8957 esac 8958 fi 8959 break 8960 fi 8961 done 8962 IFS=$lt_save_ifs 8963 MAGIC_CMD=$lt_save_MAGIC_CMD 8964 ;; 8965esac 8966fi 8967 8968MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8969if test -n "$MAGIC_CMD"; then 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8971$as_echo "$MAGIC_CMD" >&6; } 8972else 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8974$as_echo "no" >&6; } 8975fi 8976 8977 8978 8979 8980 8981if test -z "$lt_cv_path_MAGIC_CMD"; then 8982 if test -n "$ac_tool_prefix"; then 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8984$as_echo_n "checking for file... " >&6; } 8985if ${lt_cv_path_MAGIC_CMD+:} false; then : 8986 $as_echo_n "(cached) " >&6 8987else 8988 case $MAGIC_CMD in 8989[\\/*] | ?:[\\/]*) 8990 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8991 ;; 8992*) 8993 lt_save_MAGIC_CMD=$MAGIC_CMD 8994 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8996 for ac_dir in $ac_dummy; do 8997 IFS=$lt_save_ifs 8998 test -z "$ac_dir" && ac_dir=. 8999 if test -f "$ac_dir/file"; then 9000 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9001 if test -n "$file_magic_test_file"; then 9002 case $deplibs_check_method in 9003 "file_magic "*) 9004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9005 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9007 $EGREP "$file_magic_regex" > /dev/null; then 9008 : 9009 else 9010 cat <<_LT_EOF 1>&2 9011 9012*** Warning: the command libtool uses to detect shared libraries, 9013*** $file_magic_cmd, produces output that libtool cannot recognize. 9014*** The result is that libtool may fail to recognize shared libraries 9015*** as such. This will affect the creation of libtool libraries that 9016*** depend on shared libraries, but programs linked with such libtool 9017*** libraries will work regardless of this problem. Nevertheless, you 9018*** may want to report the problem to your system manager and/or to 9019*** bug-libtool@gnu.org 9020 9021_LT_EOF 9022 fi ;; 9023 esac 9024 fi 9025 break 9026 fi 9027 done 9028 IFS=$lt_save_ifs 9029 MAGIC_CMD=$lt_save_MAGIC_CMD 9030 ;; 9031esac 9032fi 9033 9034MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9035if test -n "$MAGIC_CMD"; then 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9037$as_echo "$MAGIC_CMD" >&6; } 9038else 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9040$as_echo "no" >&6; } 9041fi 9042 9043 9044 else 9045 MAGIC_CMD=: 9046 fi 9047fi 9048 9049 fi 9050 ;; 9051esac 9052 9053# Use C for the default configuration in the libtool script 9054 9055lt_save_CC=$CC 9056ac_ext=c 9057ac_cpp='$CPP $CPPFLAGS' 9058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9060ac_compiler_gnu=$ac_cv_c_compiler_gnu 9061 9062 9063# Source file extension for C test sources. 9064ac_ext=c 9065 9066# Object file extension for compiled C test sources. 9067objext=o 9068objext=$objext 9069 9070# Code to be used in simple compile tests 9071lt_simple_compile_test_code="int some_variable = 0;" 9072 9073# Code to be used in simple link tests 9074lt_simple_link_test_code='int main(){return(0);}' 9075 9076 9077 9078 9079 9080 9081 9082# If no C compiler was specified, use CC. 9083LTCC=${LTCC-"$CC"} 9084 9085# If no C compiler flags were specified, use CFLAGS. 9086LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9087 9088# Allow CC to be a program name with arguments. 9089compiler=$CC 9090 9091# Save the default compiler, since it gets overwritten when the other 9092# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9093compiler_DEFAULT=$CC 9094 9095# save warnings/boilerplate of simple test code 9096ac_outfile=conftest.$ac_objext 9097echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9098eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9099_lt_compiler_boilerplate=`cat conftest.err` 9100$RM conftest* 9101 9102ac_outfile=conftest.$ac_objext 9103echo "$lt_simple_link_test_code" >conftest.$ac_ext 9104eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9105_lt_linker_boilerplate=`cat conftest.err` 9106$RM -r conftest* 9107 9108 9109if test -n "$compiler"; then 9110 9111lt_prog_compiler_no_builtin_flag= 9112 9113if test yes = "$GCC"; then 9114 case $cc_basename in 9115 nvcc*) 9116 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9117 *) 9118 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9119 esac 9120 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9122$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9123if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9124 $as_echo_n "(cached) " >&6 9125else 9126 lt_cv_prog_compiler_rtti_exceptions=no 9127 ac_outfile=conftest.$ac_objext 9128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9129 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9130 # Insert the option either (1) after the last *FLAGS variable, or 9131 # (2) before a word containing "conftest.", or (3) at the end. 9132 # Note that $ac_compile itself does not contain backslashes and begins 9133 # with a dollar sign (not a hyphen), so the echo should work correctly. 9134 # The option is referenced via a variable to avoid confusing sed. 9135 lt_compile=`echo "$ac_compile" | $SED \ 9136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9138 -e 's:$: $lt_compiler_flag:'` 9139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9140 (eval "$lt_compile" 2>conftest.err) 9141 ac_status=$? 9142 cat conftest.err >&5 9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 if (exit $ac_status) && test -s "$ac_outfile"; then 9145 # The compiler can only warn and ignore the option if not recognized 9146 # So say no if there are warnings other than the usual output. 9147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9150 lt_cv_prog_compiler_rtti_exceptions=yes 9151 fi 9152 fi 9153 $RM conftest* 9154 9155fi 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9157$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9158 9159if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9160 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9161else 9162 : 9163fi 9164 9165fi 9166 9167 9168 9169 9170 9171 9172 lt_prog_compiler_wl= 9173lt_prog_compiler_pic= 9174lt_prog_compiler_static= 9175 9176 9177 if test yes = "$GCC"; then 9178 lt_prog_compiler_wl='-Wl,' 9179 lt_prog_compiler_static='-static' 9180 9181 case $host_os in 9182 aix*) 9183 # All AIX code is PIC. 9184 if test ia64 = "$host_cpu"; then 9185 # AIX 5 now supports IA64 processor 9186 lt_prog_compiler_static='-Bstatic' 9187 fi 9188 lt_prog_compiler_pic='-fPIC' 9189 ;; 9190 9191 amigaos*) 9192 case $host_cpu in 9193 powerpc) 9194 # see comment about AmigaOS4 .so support 9195 lt_prog_compiler_pic='-fPIC' 9196 ;; 9197 m68k) 9198 # FIXME: we need at least 68020 code to build shared libraries, but 9199 # adding the '-m68020' flag to GCC prevents building anything better, 9200 # like '-m68040'. 9201 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9202 ;; 9203 esac 9204 ;; 9205 9206 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9207 # PIC is the default for these OSes. 9208 ;; 9209 9210 mingw* | cygwin* | pw32* | os2* | cegcc*) 9211 # This hack is so that the source file can tell whether it is being 9212 # built for inclusion in a dll (and should export symbols for example). 9213 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9214 # (--disable-auto-import) libraries 9215 lt_prog_compiler_pic='-DDLL_EXPORT' 9216 case $host_os in 9217 os2*) 9218 lt_prog_compiler_static='$wl-static' 9219 ;; 9220 esac 9221 ;; 9222 9223 darwin* | rhapsody*) 9224 # PIC is the default on this platform 9225 # Common symbols not allowed in MH_DYLIB files 9226 lt_prog_compiler_pic='-fno-common' 9227 ;; 9228 9229 haiku*) 9230 # PIC is the default for Haiku. 9231 # The "-static" flag exists, but is broken. 9232 lt_prog_compiler_static= 9233 ;; 9234 9235 hpux*) 9236 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9237 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9238 # sets the default TLS model and affects inlining. 9239 case $host_cpu in 9240 hppa*64*) 9241 # +Z the default 9242 ;; 9243 *) 9244 lt_prog_compiler_pic='-fPIC' 9245 ;; 9246 esac 9247 ;; 9248 9249 interix[3-9]*) 9250 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9251 # Instead, we relocate shared libraries at runtime. 9252 ;; 9253 9254 msdosdjgpp*) 9255 # Just because we use GCC doesn't mean we suddenly get shared libraries 9256 # on systems that don't support them. 9257 lt_prog_compiler_can_build_shared=no 9258 enable_shared=no 9259 ;; 9260 9261 *nto* | *qnx*) 9262 # QNX uses GNU C++, but need to define -shared option too, otherwise 9263 # it will coredump. 9264 lt_prog_compiler_pic='-fPIC -shared' 9265 ;; 9266 9267 sysv4*MP*) 9268 if test -d /usr/nec; then 9269 lt_prog_compiler_pic=-Kconform_pic 9270 fi 9271 ;; 9272 9273 *) 9274 lt_prog_compiler_pic='-fPIC' 9275 ;; 9276 esac 9277 9278 case $cc_basename in 9279 nvcc*) # Cuda Compiler Driver 2.2 9280 lt_prog_compiler_wl='-Xlinker ' 9281 if test -n "$lt_prog_compiler_pic"; then 9282 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9283 fi 9284 ;; 9285 esac 9286 else 9287 # PORTME Check for flag to pass linker flags through the system compiler. 9288 case $host_os in 9289 aix*) 9290 lt_prog_compiler_wl='-Wl,' 9291 if test ia64 = "$host_cpu"; then 9292 # AIX 5 now supports IA64 processor 9293 lt_prog_compiler_static='-Bstatic' 9294 else 9295 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9296 fi 9297 ;; 9298 9299 darwin* | rhapsody*) 9300 # PIC is the default on this platform 9301 # Common symbols not allowed in MH_DYLIB files 9302 lt_prog_compiler_pic='-fno-common' 9303 case $cc_basename in 9304 nagfor*) 9305 # NAG Fortran compiler 9306 lt_prog_compiler_wl='-Wl,-Wl,,' 9307 lt_prog_compiler_pic='-PIC' 9308 lt_prog_compiler_static='-Bstatic' 9309 ;; 9310 esac 9311 ;; 9312 9313 mingw* | cygwin* | pw32* | os2* | cegcc*) 9314 # This hack is so that the source file can tell whether it is being 9315 # built for inclusion in a dll (and should export symbols for example). 9316 lt_prog_compiler_pic='-DDLL_EXPORT' 9317 case $host_os in 9318 os2*) 9319 lt_prog_compiler_static='$wl-static' 9320 ;; 9321 esac 9322 ;; 9323 9324 hpux9* | hpux10* | hpux11*) 9325 lt_prog_compiler_wl='-Wl,' 9326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9327 # not for PA HP-UX. 9328 case $host_cpu in 9329 hppa*64*|ia64*) 9330 # +Z the default 9331 ;; 9332 *) 9333 lt_prog_compiler_pic='+Z' 9334 ;; 9335 esac 9336 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9337 lt_prog_compiler_static='$wl-a ${wl}archive' 9338 ;; 9339 9340 irix5* | irix6* | nonstopux*) 9341 lt_prog_compiler_wl='-Wl,' 9342 # PIC (with -KPIC) is the default. 9343 lt_prog_compiler_static='-non_shared' 9344 ;; 9345 9346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9347 case $cc_basename in 9348 # old Intel for x86_64, which still supported -KPIC. 9349 ecc*) 9350 lt_prog_compiler_wl='-Wl,' 9351 lt_prog_compiler_pic='-KPIC' 9352 lt_prog_compiler_static='-static' 9353 ;; 9354 # icc used to be incompatible with GCC. 9355 # ICC 10 doesn't accept -KPIC any more. 9356 icc* | ifort*) 9357 lt_prog_compiler_wl='-Wl,' 9358 lt_prog_compiler_pic='-fPIC' 9359 lt_prog_compiler_static='-static' 9360 ;; 9361 # Lahey Fortran 8.1. 9362 lf95*) 9363 lt_prog_compiler_wl='-Wl,' 9364 lt_prog_compiler_pic='--shared' 9365 lt_prog_compiler_static='--static' 9366 ;; 9367 nagfor*) 9368 # NAG Fortran compiler 9369 lt_prog_compiler_wl='-Wl,-Wl,,' 9370 lt_prog_compiler_pic='-PIC' 9371 lt_prog_compiler_static='-Bstatic' 9372 ;; 9373 tcc*) 9374 # Fabrice Bellard et al's Tiny C Compiler 9375 lt_prog_compiler_wl='-Wl,' 9376 lt_prog_compiler_pic='-fPIC' 9377 lt_prog_compiler_static='-static' 9378 ;; 9379 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9380 # Portland Group compilers (*not* the Pentium gcc compiler, 9381 # which looks to be a dead project) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-fpic' 9384 lt_prog_compiler_static='-Bstatic' 9385 ;; 9386 ccc*) 9387 lt_prog_compiler_wl='-Wl,' 9388 # All Alpha code is PIC. 9389 lt_prog_compiler_static='-non_shared' 9390 ;; 9391 xl* | bgxl* | bgf* | mpixl*) 9392 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9393 lt_prog_compiler_wl='-Wl,' 9394 lt_prog_compiler_pic='-qpic' 9395 lt_prog_compiler_static='-qstaticlink' 9396 ;; 9397 *) 9398 case `$CC -V 2>&1 | sed 5q` in 9399 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9400 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9401 lt_prog_compiler_pic='-KPIC' 9402 lt_prog_compiler_static='-Bstatic' 9403 lt_prog_compiler_wl='' 9404 ;; 9405 *Sun\ F* | *Sun*Fortran*) 9406 lt_prog_compiler_pic='-KPIC' 9407 lt_prog_compiler_static='-Bstatic' 9408 lt_prog_compiler_wl='-Qoption ld ' 9409 ;; 9410 *Sun\ C*) 9411 # Sun C 5.9 9412 lt_prog_compiler_pic='-KPIC' 9413 lt_prog_compiler_static='-Bstatic' 9414 lt_prog_compiler_wl='-Wl,' 9415 ;; 9416 *Intel*\ [CF]*Compiler*) 9417 lt_prog_compiler_wl='-Wl,' 9418 lt_prog_compiler_pic='-fPIC' 9419 lt_prog_compiler_static='-static' 9420 ;; 9421 *Portland\ Group*) 9422 lt_prog_compiler_wl='-Wl,' 9423 lt_prog_compiler_pic='-fpic' 9424 lt_prog_compiler_static='-Bstatic' 9425 ;; 9426 esac 9427 ;; 9428 esac 9429 ;; 9430 9431 newsos6) 9432 lt_prog_compiler_pic='-KPIC' 9433 lt_prog_compiler_static='-Bstatic' 9434 ;; 9435 9436 *nto* | *qnx*) 9437 # QNX uses GNU C++, but need to define -shared option too, otherwise 9438 # it will coredump. 9439 lt_prog_compiler_pic='-fPIC -shared' 9440 ;; 9441 9442 osf3* | osf4* | osf5*) 9443 lt_prog_compiler_wl='-Wl,' 9444 # All OSF/1 code is PIC. 9445 lt_prog_compiler_static='-non_shared' 9446 ;; 9447 9448 rdos*) 9449 lt_prog_compiler_static='-non_shared' 9450 ;; 9451 9452 solaris*) 9453 lt_prog_compiler_pic='-KPIC' 9454 lt_prog_compiler_static='-Bstatic' 9455 case $cc_basename in 9456 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9457 lt_prog_compiler_wl='-Qoption ld ';; 9458 *) 9459 lt_prog_compiler_wl='-Wl,';; 9460 esac 9461 ;; 9462 9463 sunos4*) 9464 lt_prog_compiler_wl='-Qoption ld ' 9465 lt_prog_compiler_pic='-PIC' 9466 lt_prog_compiler_static='-Bstatic' 9467 ;; 9468 9469 sysv4 | sysv4.2uw2* | sysv4.3*) 9470 lt_prog_compiler_wl='-Wl,' 9471 lt_prog_compiler_pic='-KPIC' 9472 lt_prog_compiler_static='-Bstatic' 9473 ;; 9474 9475 sysv4*MP*) 9476 if test -d /usr/nec; then 9477 lt_prog_compiler_pic='-Kconform_pic' 9478 lt_prog_compiler_static='-Bstatic' 9479 fi 9480 ;; 9481 9482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9483 lt_prog_compiler_wl='-Wl,' 9484 lt_prog_compiler_pic='-KPIC' 9485 lt_prog_compiler_static='-Bstatic' 9486 ;; 9487 9488 unicos*) 9489 lt_prog_compiler_wl='-Wl,' 9490 lt_prog_compiler_can_build_shared=no 9491 ;; 9492 9493 uts4*) 9494 lt_prog_compiler_pic='-pic' 9495 lt_prog_compiler_static='-Bstatic' 9496 ;; 9497 9498 *) 9499 lt_prog_compiler_can_build_shared=no 9500 ;; 9501 esac 9502 fi 9503 9504case $host_os in 9505 # For platforms that do not support PIC, -DPIC is meaningless: 9506 *djgpp*) 9507 lt_prog_compiler_pic= 9508 ;; 9509 *) 9510 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9511 ;; 9512esac 9513 9514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9515$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9516if ${lt_cv_prog_compiler_pic+:} false; then : 9517 $as_echo_n "(cached) " >&6 9518else 9519 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9520fi 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9522$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9523lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9524 9525# 9526# Check to make sure the PIC flag actually works. 9527# 9528if test -n "$lt_prog_compiler_pic"; then 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9530$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9531if ${lt_cv_prog_compiler_pic_works+:} false; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 lt_cv_prog_compiler_pic_works=no 9535 ac_outfile=conftest.$ac_objext 9536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9537 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9538 # Insert the option either (1) after the last *FLAGS variable, or 9539 # (2) before a word containing "conftest.", or (3) at the end. 9540 # Note that $ac_compile itself does not contain backslashes and begins 9541 # with a dollar sign (not a hyphen), so the echo should work correctly. 9542 # The option is referenced via a variable to avoid confusing sed. 9543 lt_compile=`echo "$ac_compile" | $SED \ 9544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9546 -e 's:$: $lt_compiler_flag:'` 9547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9548 (eval "$lt_compile" 2>conftest.err) 9549 ac_status=$? 9550 cat conftest.err >&5 9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9552 if (exit $ac_status) && test -s "$ac_outfile"; then 9553 # The compiler can only warn and ignore the option if not recognized 9554 # So say no if there are warnings other than the usual output. 9555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9558 lt_cv_prog_compiler_pic_works=yes 9559 fi 9560 fi 9561 $RM conftest* 9562 9563fi 9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9565$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9566 9567if test yes = "$lt_cv_prog_compiler_pic_works"; then 9568 case $lt_prog_compiler_pic in 9569 "" | " "*) ;; 9570 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9571 esac 9572else 9573 lt_prog_compiler_pic= 9574 lt_prog_compiler_can_build_shared=no 9575fi 9576 9577fi 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589# 9590# Check to make sure the static flag actually works. 9591# 9592wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9594$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9595if ${lt_cv_prog_compiler_static_works+:} false; then : 9596 $as_echo_n "(cached) " >&6 9597else 9598 lt_cv_prog_compiler_static_works=no 9599 save_LDFLAGS=$LDFLAGS 9600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9601 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9603 # The linker can only warn and ignore the option if not recognized 9604 # So say no if there are warnings 9605 if test -s conftest.err; then 9606 # Append any errors to the config.log. 9607 cat conftest.err 1>&5 9608 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9610 if diff conftest.exp conftest.er2 >/dev/null; then 9611 lt_cv_prog_compiler_static_works=yes 9612 fi 9613 else 9614 lt_cv_prog_compiler_static_works=yes 9615 fi 9616 fi 9617 $RM -r conftest* 9618 LDFLAGS=$save_LDFLAGS 9619 9620fi 9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9622$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9623 9624if test yes = "$lt_cv_prog_compiler_static_works"; then 9625 : 9626else 9627 lt_prog_compiler_static= 9628fi 9629 9630 9631 9632 9633 9634 9635 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9637$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9638if ${lt_cv_prog_compiler_c_o+:} false; then : 9639 $as_echo_n "(cached) " >&6 9640else 9641 lt_cv_prog_compiler_c_o=no 9642 $RM -r conftest 2>/dev/null 9643 mkdir conftest 9644 cd conftest 9645 mkdir out 9646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9647 9648 lt_compiler_flag="-o out/conftest2.$ac_objext" 9649 # Insert the option either (1) after the last *FLAGS variable, or 9650 # (2) before a word containing "conftest.", or (3) at the end. 9651 # Note that $ac_compile itself does not contain backslashes and begins 9652 # with a dollar sign (not a hyphen), so the echo should work correctly. 9653 lt_compile=`echo "$ac_compile" | $SED \ 9654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9656 -e 's:$: $lt_compiler_flag:'` 9657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9658 (eval "$lt_compile" 2>out/conftest.err) 9659 ac_status=$? 9660 cat out/conftest.err >&5 9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9662 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9663 then 9664 # The compiler can only warn and ignore the option if not recognized 9665 # So say no if there are warnings 9666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9669 lt_cv_prog_compiler_c_o=yes 9670 fi 9671 fi 9672 chmod u+w . 2>&5 9673 $RM conftest* 9674 # SGI C++ compiler will create directory out/ii_files/ for 9675 # template instantiation 9676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9677 $RM out/* && rmdir out 9678 cd .. 9679 $RM -r conftest 9680 $RM conftest* 9681 9682fi 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9684$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9685 9686 9687 9688 9689 9690 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9692$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9693if ${lt_cv_prog_compiler_c_o+:} false; then : 9694 $as_echo_n "(cached) " >&6 9695else 9696 lt_cv_prog_compiler_c_o=no 9697 $RM -r conftest 2>/dev/null 9698 mkdir conftest 9699 cd conftest 9700 mkdir out 9701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9702 9703 lt_compiler_flag="-o out/conftest2.$ac_objext" 9704 # Insert the option either (1) after the last *FLAGS variable, or 9705 # (2) before a word containing "conftest.", or (3) at the end. 9706 # Note that $ac_compile itself does not contain backslashes and begins 9707 # with a dollar sign (not a hyphen), so the echo should work correctly. 9708 lt_compile=`echo "$ac_compile" | $SED \ 9709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9711 -e 's:$: $lt_compiler_flag:'` 9712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9713 (eval "$lt_compile" 2>out/conftest.err) 9714 ac_status=$? 9715 cat out/conftest.err >&5 9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9717 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9718 then 9719 # The compiler can only warn and ignore the option if not recognized 9720 # So say no if there are warnings 9721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9724 lt_cv_prog_compiler_c_o=yes 9725 fi 9726 fi 9727 chmod u+w . 2>&5 9728 $RM conftest* 9729 # SGI C++ compiler will create directory out/ii_files/ for 9730 # template instantiation 9731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9732 $RM out/* && rmdir out 9733 cd .. 9734 $RM -r conftest 9735 $RM conftest* 9736 9737fi 9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9739$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9740 9741 9742 9743 9744hard_links=nottested 9745if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9746 # do not overwrite the value of need_locks provided by the user 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9748$as_echo_n "checking if we can lock with hard links... " >&6; } 9749 hard_links=yes 9750 $RM conftest* 9751 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9752 touch conftest.a 9753 ln conftest.a conftest.b 2>&5 || hard_links=no 9754 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9756$as_echo "$hard_links" >&6; } 9757 if test no = "$hard_links"; then 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9759$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9760 need_locks=warn 9761 fi 9762else 9763 need_locks=no 9764fi 9765 9766 9767 9768 9769 9770 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9772$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9773 9774 runpath_var= 9775 allow_undefined_flag= 9776 always_export_symbols=no 9777 archive_cmds= 9778 archive_expsym_cmds= 9779 compiler_needs_object=no 9780 enable_shared_with_static_runtimes=no 9781 export_dynamic_flag_spec= 9782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9783 hardcode_automatic=no 9784 hardcode_direct=no 9785 hardcode_direct_absolute=no 9786 hardcode_libdir_flag_spec= 9787 hardcode_libdir_separator= 9788 hardcode_minus_L=no 9789 hardcode_shlibpath_var=unsupported 9790 inherit_rpath=no 9791 link_all_deplibs=unknown 9792 module_cmds= 9793 module_expsym_cmds= 9794 old_archive_from_new_cmds= 9795 old_archive_from_expsyms_cmds= 9796 thread_safe_flag_spec= 9797 whole_archive_flag_spec= 9798 # include_expsyms should be a list of space-separated symbols to be *always* 9799 # included in the symbol list 9800 include_expsyms= 9801 # exclude_expsyms can be an extended regexp of symbols to exclude 9802 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9803 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9804 # as well as any symbol that contains 'd'. 9805 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9806 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9807 # platforms (ab)use it in PIC code, but their linkers get confused if 9808 # the symbol is explicitly referenced. Since portable code cannot 9809 # rely on this symbol name, it's probably fine to never include it in 9810 # preloaded symbol tables. 9811 # Exclude shared library initialization/finalization symbols. 9812 extract_expsyms_cmds= 9813 9814 case $host_os in 9815 cygwin* | mingw* | pw32* | cegcc*) 9816 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9817 # When not using gcc, we currently assume that we are using 9818 # Microsoft Visual C++. 9819 if test yes != "$GCC"; then 9820 with_gnu_ld=no 9821 fi 9822 ;; 9823 interix*) 9824 # we just hope/assume this is gcc and not c89 (= MSVC++) 9825 with_gnu_ld=yes 9826 ;; 9827 openbsd* | bitrig*) 9828 with_gnu_ld=no 9829 ;; 9830 esac 9831 9832 ld_shlibs=yes 9833 9834 # On some targets, GNU ld is compatible enough with the native linker 9835 # that we're better off using the native interface for both. 9836 lt_use_gnu_ld_interface=no 9837 if test yes = "$with_gnu_ld"; then 9838 case $host_os in 9839 aix*) 9840 # The AIX port of GNU ld has always aspired to compatibility 9841 # with the native linker. However, as the warning in the GNU ld 9842 # block says, versions before 2.19.5* couldn't really create working 9843 # shared libraries, regardless of the interface used. 9844 case `$LD -v 2>&1` in 9845 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9846 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9847 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9848 *) 9849 lt_use_gnu_ld_interface=yes 9850 ;; 9851 esac 9852 ;; 9853 *) 9854 lt_use_gnu_ld_interface=yes 9855 ;; 9856 esac 9857 fi 9858 9859 if test yes = "$lt_use_gnu_ld_interface"; then 9860 # If archive_cmds runs LD, not CC, wlarc should be empty 9861 wlarc='$wl' 9862 9863 # Set some defaults for GNU ld with shared library support. These 9864 # are reset later if shared libraries are not supported. Putting them 9865 # here allows them to be overridden if necessary. 9866 runpath_var=LD_RUN_PATH 9867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9868 export_dynamic_flag_spec='$wl--export-dynamic' 9869 # ancient GNU ld didn't support --whole-archive et. al. 9870 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9871 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9872 else 9873 whole_archive_flag_spec= 9874 fi 9875 supports_anon_versioning=no 9876 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9877 *GNU\ gold*) supports_anon_versioning=yes ;; 9878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9881 *\ 2.11.*) ;; # other 2.11 versions 9882 *) supports_anon_versioning=yes ;; 9883 esac 9884 9885 # See if GNU ld supports shared libraries. 9886 case $host_os in 9887 aix[3-9]*) 9888 # On AIX/PPC, the GNU linker is very broken 9889 if test ia64 != "$host_cpu"; then 9890 ld_shlibs=no 9891 cat <<_LT_EOF 1>&2 9892 9893*** Warning: the GNU linker, at least up to release 2.19, is reported 9894*** to be unable to reliably create shared libraries on AIX. 9895*** Therefore, libtool is disabling shared libraries support. If you 9896*** really care for shared libraries, you may want to install binutils 9897*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9898*** You will then need to restart the configuration process. 9899 9900_LT_EOF 9901 fi 9902 ;; 9903 9904 amigaos*) 9905 case $host_cpu in 9906 powerpc) 9907 # see comment about AmigaOS4 .so support 9908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9909 archive_expsym_cmds='' 9910 ;; 9911 m68k) 9912 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)' 9913 hardcode_libdir_flag_spec='-L$libdir' 9914 hardcode_minus_L=yes 9915 ;; 9916 esac 9917 ;; 9918 9919 beos*) 9920 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9921 allow_undefined_flag=unsupported 9922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9923 # support --undefined. This deserves some investigation. FIXME 9924 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9925 else 9926 ld_shlibs=no 9927 fi 9928 ;; 9929 9930 cygwin* | mingw* | pw32* | cegcc*) 9931 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9932 # as there is no search path for DLLs. 9933 hardcode_libdir_flag_spec='-L$libdir' 9934 export_dynamic_flag_spec='$wl--export-all-symbols' 9935 allow_undefined_flag=unsupported 9936 always_export_symbols=no 9937 enable_shared_with_static_runtimes=yes 9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9939 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9940 9941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9943 # If the export-symbols file already is a .def file, use it as 9944 # is; otherwise, prepend EXPORTS... 9945 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9946 cp $export_symbols $output_objdir/$soname.def; 9947 else 9948 echo EXPORTS > $output_objdir/$soname.def; 9949 cat $export_symbols >> $output_objdir/$soname.def; 9950 fi~ 9951 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9952 else 9953 ld_shlibs=no 9954 fi 9955 ;; 9956 9957 haiku*) 9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9959 link_all_deplibs=yes 9960 ;; 9961 9962 os2*) 9963 hardcode_libdir_flag_spec='-L$libdir' 9964 hardcode_minus_L=yes 9965 allow_undefined_flag=unsupported 9966 shrext_cmds=.dll 9967 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9968 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9969 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9970 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9971 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9972 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9973 emximp -o $lib $output_objdir/$libname.def' 9974 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9975 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9976 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9977 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9978 prefix_cmds="$SED"~ 9979 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9980 prefix_cmds="$prefix_cmds -e 1d"; 9981 fi~ 9982 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9983 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9984 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9985 emximp -o $lib $output_objdir/$libname.def' 9986 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9987 enable_shared_with_static_runtimes=yes 9988 ;; 9989 9990 interix[3-9]*) 9991 hardcode_direct=no 9992 hardcode_shlibpath_var=no 9993 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9994 export_dynamic_flag_spec='$wl-E' 9995 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9996 # Instead, shared libraries are loaded at an image base (0x10000000 by 9997 # default) and relocated if they conflict, which is a slow very memory 9998 # consuming and fragmenting process. To avoid this, we pick a random, 9999 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10000 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10002 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' 10003 ;; 10004 10005 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10006 tmp_diet=no 10007 if test linux-dietlibc = "$host_os"; then 10008 case $cc_basename in 10009 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10010 esac 10011 fi 10012 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10013 && test no = "$tmp_diet" 10014 then 10015 tmp_addflag=' $pic_flag' 10016 tmp_sharedflag='-shared' 10017 case $cc_basename,$host_cpu in 10018 pgcc*) # Portland Group C compiler 10019 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' 10020 tmp_addflag=' $pic_flag' 10021 ;; 10022 pgf77* | pgf90* | pgf95* | pgfortran*) 10023 # Portland Group f77 and f90 compilers 10024 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' 10025 tmp_addflag=' $pic_flag -Mnomain' ;; 10026 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10027 tmp_addflag=' -i_dynamic' ;; 10028 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10029 tmp_addflag=' -i_dynamic -nofor_main' ;; 10030 ifc* | ifort*) # Intel Fortran compiler 10031 tmp_addflag=' -nofor_main' ;; 10032 lf95*) # Lahey Fortran 8.1 10033 whole_archive_flag_spec= 10034 tmp_sharedflag='--shared' ;; 10035 nagfor*) # NAGFOR 5.3 10036 tmp_sharedflag='-Wl,-shared' ;; 10037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10038 tmp_sharedflag='-qmkshrobj' 10039 tmp_addflag= ;; 10040 nvcc*) # Cuda Compiler Driver 2.2 10041 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' 10042 compiler_needs_object=yes 10043 ;; 10044 esac 10045 case `$CC -V 2>&1 | sed 5q` in 10046 *Sun\ C*) # Sun C 5.9 10047 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' 10048 compiler_needs_object=yes 10049 tmp_sharedflag='-G' ;; 10050 *Sun\ F*) # Sun Fortran 8.3 10051 tmp_sharedflag='-G' ;; 10052 esac 10053 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10054 10055 if test yes = "$supports_anon_versioning"; then 10056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10058 echo "local: *; };" >> $output_objdir/$libname.ver~ 10059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10060 fi 10061 10062 case $cc_basename in 10063 tcc*) 10064 export_dynamic_flag_spec='-rdynamic' 10065 ;; 10066 xlf* | bgf* | bgxlf* | mpixlf*) 10067 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10068 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10070 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10071 if test yes = "$supports_anon_versioning"; then 10072 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10074 echo "local: *; };" >> $output_objdir/$libname.ver~ 10075 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10076 fi 10077 ;; 10078 esac 10079 else 10080 ld_shlibs=no 10081 fi 10082 ;; 10083 10084 netbsd*) 10085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10086 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10087 wlarc= 10088 else 10089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10090 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10091 fi 10092 ;; 10093 10094 solaris*) 10095 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10096 ld_shlibs=no 10097 cat <<_LT_EOF 1>&2 10098 10099*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10100*** create shared libraries on Solaris systems. Therefore, libtool 10101*** is disabling shared libraries support. We urge you to upgrade GNU 10102*** binutils to release 2.9.1 or newer. Another option is to modify 10103*** your PATH or compiler configuration so that the native linker is 10104*** used, and then restart. 10105 10106_LT_EOF 10107 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10108 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10109 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10110 else 10111 ld_shlibs=no 10112 fi 10113 ;; 10114 10115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10116 case `$LD -v 2>&1` in 10117 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10118 ld_shlibs=no 10119 cat <<_LT_EOF 1>&2 10120 10121*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10122*** reliably create shared libraries on SCO systems. Therefore, libtool 10123*** is disabling shared libraries support. We urge you to upgrade GNU 10124*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10125*** your PATH or compiler configuration so that the native linker is 10126*** used, and then restart. 10127 10128_LT_EOF 10129 ;; 10130 *) 10131 # For security reasons, it is highly recommended that you always 10132 # use absolute paths for naming shared libraries, and exclude the 10133 # DT_RUNPATH tag from executables and libraries. But doing so 10134 # requires that you compile everything twice, which is a pain. 10135 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10136 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10139 else 10140 ld_shlibs=no 10141 fi 10142 ;; 10143 esac 10144 ;; 10145 10146 sunos4*) 10147 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10148 wlarc= 10149 hardcode_direct=yes 10150 hardcode_shlibpath_var=no 10151 ;; 10152 10153 *) 10154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10156 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10157 else 10158 ld_shlibs=no 10159 fi 10160 ;; 10161 esac 10162 10163 if test no = "$ld_shlibs"; then 10164 runpath_var= 10165 hardcode_libdir_flag_spec= 10166 export_dynamic_flag_spec= 10167 whole_archive_flag_spec= 10168 fi 10169 else 10170 # PORTME fill in a description of your system's linker (not GNU ld) 10171 case $host_os in 10172 aix3*) 10173 allow_undefined_flag=unsupported 10174 always_export_symbols=yes 10175 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' 10176 # Note: this linker hardcodes the directories in LIBPATH if there 10177 # are no directories specified by -L. 10178 hardcode_minus_L=yes 10179 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10180 # Neither direct hardcoding nor static linking is supported with a 10181 # broken collect2. 10182 hardcode_direct=unsupported 10183 fi 10184 ;; 10185 10186 aix[4-9]*) 10187 if test ia64 = "$host_cpu"; then 10188 # On IA64, the linker does run time linking by default, so we don't 10189 # have to do anything special. 10190 aix_use_runtimelinking=no 10191 exp_sym_flag='-Bexport' 10192 no_entry_flag= 10193 else 10194 # If we're using GNU nm, then we don't want the "-C" option. 10195 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10196 # Without the "-l" option, or with the "-B" option, AIX nm treats 10197 # weak defined symbols like other global defined symbols, whereas 10198 # GNU nm marks them as "W". 10199 # While the 'weak' keyword is ignored in the Export File, we need 10200 # it in the Import File for the 'aix-soname' feature, so we have 10201 # to replace the "-B" option with "-P" for AIX nm. 10202 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10203 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10204 else 10205 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10206 fi 10207 aix_use_runtimelinking=no 10208 10209 # Test if we are trying to use run time linking or normal 10210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10211 # have runtime linking enabled, and use it for executables. 10212 # For shared libraries, we enable/disable runtime linking 10213 # depending on the kind of the shared library created - 10214 # when "with_aix_soname,aix_use_runtimelinking" is: 10215 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10216 # "aix,yes" lib.so shared, rtl:yes, for executables 10217 # lib.a static archive 10218 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10219 # lib.a(lib.so.V) shared, rtl:no, for executables 10220 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10221 # lib.a(lib.so.V) shared, rtl:no 10222 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10223 # lib.a static archive 10224 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10225 for ld_flag in $LDFLAGS; do 10226 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10227 aix_use_runtimelinking=yes 10228 break 10229 fi 10230 done 10231 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10232 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10233 # so we don't have lib.a shared libs to link our executables. 10234 # We have to force runtime linking in this case. 10235 aix_use_runtimelinking=yes 10236 LDFLAGS="$LDFLAGS -Wl,-brtl" 10237 fi 10238 ;; 10239 esac 10240 10241 exp_sym_flag='-bexport' 10242 no_entry_flag='-bnoentry' 10243 fi 10244 10245 # When large executables or shared objects are built, AIX ld can 10246 # have problems creating the table of contents. If linking a library 10247 # or program results in "error TOC overflow" add -mminimal-toc to 10248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10250 10251 archive_cmds='' 10252 hardcode_direct=yes 10253 hardcode_direct_absolute=yes 10254 hardcode_libdir_separator=':' 10255 link_all_deplibs=yes 10256 file_list_spec='$wl-f,' 10257 case $with_aix_soname,$aix_use_runtimelinking in 10258 aix,*) ;; # traditional, no import file 10259 svr4,* | *,yes) # use import file 10260 # The Import File defines what to hardcode. 10261 hardcode_direct=no 10262 hardcode_direct_absolute=no 10263 ;; 10264 esac 10265 10266 if test yes = "$GCC"; then 10267 case $host_os in aix4.[012]|aix4.[012].*) 10268 # We only want to do this on AIX 4.2 and lower, the check 10269 # below for broken collect2 doesn't work under 4.3+ 10270 collect2name=`$CC -print-prog-name=collect2` 10271 if test -f "$collect2name" && 10272 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10273 then 10274 # We have reworked collect2 10275 : 10276 else 10277 # We have old collect2 10278 hardcode_direct=unsupported 10279 # It fails to find uninstalled libraries when the uninstalled 10280 # path is not listed in the libpath. Setting hardcode_minus_L 10281 # to unsupported forces relinking 10282 hardcode_minus_L=yes 10283 hardcode_libdir_flag_spec='-L$libdir' 10284 hardcode_libdir_separator= 10285 fi 10286 ;; 10287 esac 10288 shared_flag='-shared' 10289 if test yes = "$aix_use_runtimelinking"; then 10290 shared_flag="$shared_flag "'$wl-G' 10291 fi 10292 # Need to ensure runtime linking is disabled for the traditional 10293 # shared library, or the linker may eventually find shared libraries 10294 # /with/ Import File - we do not want to mix them. 10295 shared_flag_aix='-shared' 10296 shared_flag_svr4='-shared $wl-G' 10297 else 10298 # not using gcc 10299 if test ia64 = "$host_cpu"; then 10300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10301 # chokes on -Wl,-G. The following line is correct: 10302 shared_flag='-G' 10303 else 10304 if test yes = "$aix_use_runtimelinking"; then 10305 shared_flag='$wl-G' 10306 else 10307 shared_flag='$wl-bM:SRE' 10308 fi 10309 shared_flag_aix='$wl-bM:SRE' 10310 shared_flag_svr4='$wl-G' 10311 fi 10312 fi 10313 10314 export_dynamic_flag_spec='$wl-bexpall' 10315 # It seems that -bexpall does not export symbols beginning with 10316 # underscore (_), so it is better to generate a list of symbols to export. 10317 always_export_symbols=yes 10318 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10319 # Warning - without using the other runtime loading flags (-brtl), 10320 # -berok will link without error, but may produce a broken library. 10321 allow_undefined_flag='-berok' 10322 # Determine the default libpath from the value encoded in an 10323 # empty executable. 10324 if test set = "${lt_cv_aix_libpath+set}"; then 10325 aix_libpath=$lt_cv_aix_libpath 10326else 10327 if ${lt_cv_aix_libpath_+:} false; then : 10328 $as_echo_n "(cached) " >&6 10329else 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331/* end confdefs.h. */ 10332 10333int 10334main () 10335{ 10336 10337 ; 10338 return 0; 10339} 10340_ACEOF 10341if ac_fn_c_try_link "$LINENO"; then : 10342 10343 lt_aix_libpath_sed=' 10344 /Import File Strings/,/^$/ { 10345 /^0/ { 10346 s/^0 *\([^ ]*\) *$/\1/ 10347 p 10348 } 10349 }' 10350 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10351 # Check for a 64-bit object if we didn't find anything. 10352 if test -z "$lt_cv_aix_libpath_"; then 10353 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10354 fi 10355fi 10356rm -f core conftest.err conftest.$ac_objext \ 10357 conftest$ac_exeext conftest.$ac_ext 10358 if test -z "$lt_cv_aix_libpath_"; then 10359 lt_cv_aix_libpath_=/usr/lib:/lib 10360 fi 10361 10362fi 10363 10364 aix_libpath=$lt_cv_aix_libpath_ 10365fi 10366 10367 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10368 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10369 else 10370 if test ia64 = "$host_cpu"; then 10371 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10372 allow_undefined_flag="-z nodefs" 10373 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" 10374 else 10375 # Determine the default libpath from the value encoded in an 10376 # empty executable. 10377 if test set = "${lt_cv_aix_libpath+set}"; then 10378 aix_libpath=$lt_cv_aix_libpath 10379else 10380 if ${lt_cv_aix_libpath_+:} false; then : 10381 $as_echo_n "(cached) " >&6 10382else 10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10384/* end confdefs.h. */ 10385 10386int 10387main () 10388{ 10389 10390 ; 10391 return 0; 10392} 10393_ACEOF 10394if ac_fn_c_try_link "$LINENO"; then : 10395 10396 lt_aix_libpath_sed=' 10397 /Import File Strings/,/^$/ { 10398 /^0/ { 10399 s/^0 *\([^ ]*\) *$/\1/ 10400 p 10401 } 10402 }' 10403 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10404 # Check for a 64-bit object if we didn't find anything. 10405 if test -z "$lt_cv_aix_libpath_"; then 10406 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10407 fi 10408fi 10409rm -f core conftest.err conftest.$ac_objext \ 10410 conftest$ac_exeext conftest.$ac_ext 10411 if test -z "$lt_cv_aix_libpath_"; then 10412 lt_cv_aix_libpath_=/usr/lib:/lib 10413 fi 10414 10415fi 10416 10417 aix_libpath=$lt_cv_aix_libpath_ 10418fi 10419 10420 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10421 # Warning - without using the other run time loading flags, 10422 # -berok will link without error, but may produce a broken library. 10423 no_undefined_flag=' $wl-bernotok' 10424 allow_undefined_flag=' $wl-berok' 10425 if test yes = "$with_gnu_ld"; then 10426 # We only use this code for GNU lds that support --whole-archive. 10427 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10428 else 10429 # Exported symbols can be pulled into shared objects from archives 10430 whole_archive_flag_spec='$convenience' 10431 fi 10432 archive_cmds_need_lc=yes 10433 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10434 # -brtl affects multiple linker settings, -berok does not and is overridden later 10435 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10436 if test svr4 != "$with_aix_soname"; then 10437 # This is similar to how AIX traditionally builds its shared libraries. 10438 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10439 fi 10440 if test aix != "$with_aix_soname"; then 10441 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10442 else 10443 # used by -dlpreopen to get the symbols 10444 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10445 fi 10446 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10447 fi 10448 fi 10449 ;; 10450 10451 amigaos*) 10452 case $host_cpu in 10453 powerpc) 10454 # see comment about AmigaOS4 .so support 10455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10456 archive_expsym_cmds='' 10457 ;; 10458 m68k) 10459 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)' 10460 hardcode_libdir_flag_spec='-L$libdir' 10461 hardcode_minus_L=yes 10462 ;; 10463 esac 10464 ;; 10465 10466 bsdi[45]*) 10467 export_dynamic_flag_spec=-rdynamic 10468 ;; 10469 10470 cygwin* | mingw* | pw32* | cegcc*) 10471 # When not using gcc, we currently assume that we are using 10472 # Microsoft Visual C++. 10473 # hardcode_libdir_flag_spec is actually meaningless, as there is 10474 # no search path for DLLs. 10475 case $cc_basename in 10476 cl*) 10477 # Native MSVC 10478 hardcode_libdir_flag_spec=' ' 10479 allow_undefined_flag=unsupported 10480 always_export_symbols=yes 10481 file_list_spec='@' 10482 # Tell ltmain to make .lib files, not .a files. 10483 libext=lib 10484 # Tell ltmain to make .dll files, not .so files. 10485 shrext_cmds=.dll 10486 # FIXME: Setting linknames here is a bad hack. 10487 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10488 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10489 cp "$export_symbols" "$output_objdir/$soname.def"; 10490 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10491 else 10492 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10493 fi~ 10494 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10495 linknames=' 10496 # The linker will not automatically build a static lib if we build a DLL. 10497 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10498 enable_shared_with_static_runtimes=yes 10499 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10501 # Don't use ranlib 10502 old_postinstall_cmds='chmod 644 $oldlib' 10503 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10504 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10505 case $lt_outputfile in 10506 *.exe|*.EXE) ;; 10507 *) 10508 lt_outputfile=$lt_outputfile.exe 10509 lt_tool_outputfile=$lt_tool_outputfile.exe 10510 ;; 10511 esac~ 10512 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10513 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10514 $RM "$lt_outputfile.manifest"; 10515 fi' 10516 ;; 10517 *) 10518 # Assume MSVC wrapper 10519 hardcode_libdir_flag_spec=' ' 10520 allow_undefined_flag=unsupported 10521 # Tell ltmain to make .lib files, not .a files. 10522 libext=lib 10523 # Tell ltmain to make .dll files, not .so files. 10524 shrext_cmds=.dll 10525 # FIXME: Setting linknames here is a bad hack. 10526 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10527 # The linker will automatically build a .lib file if we build a DLL. 10528 old_archive_from_new_cmds='true' 10529 # FIXME: Should let the user specify the lib program. 10530 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10531 enable_shared_with_static_runtimes=yes 10532 ;; 10533 esac 10534 ;; 10535 10536 darwin* | rhapsody*) 10537 10538 10539 archive_cmds_need_lc=no 10540 hardcode_direct=no 10541 hardcode_automatic=yes 10542 hardcode_shlibpath_var=unsupported 10543 if test yes = "$lt_cv_ld_force_load"; then 10544 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\"`' 10545 10546 else 10547 whole_archive_flag_spec='' 10548 fi 10549 link_all_deplibs=yes 10550 allow_undefined_flag=$_lt_dar_allow_undefined 10551 case $cc_basename in 10552 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10553 *) _lt_dar_can_shared=$GCC ;; 10554 esac 10555 if test yes = "$_lt_dar_can_shared"; then 10556 output_verbose_link_cmd=func_echo_all 10557 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10558 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10559 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" 10560 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" 10561 10562 else 10563 ld_shlibs=no 10564 fi 10565 10566 ;; 10567 10568 dgux*) 10569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10570 hardcode_libdir_flag_spec='-L$libdir' 10571 hardcode_shlibpath_var=no 10572 ;; 10573 10574 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10575 # support. Future versions do this automatically, but an explicit c++rt0.o 10576 # does not break anything, and helps significantly (at the cost of a little 10577 # extra space). 10578 freebsd2.2*) 10579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10580 hardcode_libdir_flag_spec='-R$libdir' 10581 hardcode_direct=yes 10582 hardcode_shlibpath_var=no 10583 ;; 10584 10585 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10586 freebsd2.*) 10587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10588 hardcode_direct=yes 10589 hardcode_minus_L=yes 10590 hardcode_shlibpath_var=no 10591 ;; 10592 10593 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10594 freebsd* | dragonfly*) 10595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10596 hardcode_libdir_flag_spec='-R$libdir' 10597 hardcode_direct=yes 10598 hardcode_shlibpath_var=no 10599 ;; 10600 10601 hpux9*) 10602 if test yes = "$GCC"; then 10603 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10604 else 10605 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10606 fi 10607 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10608 hardcode_libdir_separator=: 10609 hardcode_direct=yes 10610 10611 # hardcode_minus_L: Not really in the search PATH, 10612 # but as the default location of the library. 10613 hardcode_minus_L=yes 10614 export_dynamic_flag_spec='$wl-E' 10615 ;; 10616 10617 hpux10*) 10618 if test yes,no = "$GCC,$with_gnu_ld"; then 10619 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10620 else 10621 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10622 fi 10623 if test no = "$with_gnu_ld"; then 10624 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10625 hardcode_libdir_separator=: 10626 hardcode_direct=yes 10627 hardcode_direct_absolute=yes 10628 export_dynamic_flag_spec='$wl-E' 10629 # hardcode_minus_L: Not really in the search PATH, 10630 # but as the default location of the library. 10631 hardcode_minus_L=yes 10632 fi 10633 ;; 10634 10635 hpux11*) 10636 if test yes,no = "$GCC,$with_gnu_ld"; then 10637 case $host_cpu in 10638 hppa*64*) 10639 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10640 ;; 10641 ia64*) 10642 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10643 ;; 10644 *) 10645 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10646 ;; 10647 esac 10648 else 10649 case $host_cpu in 10650 hppa*64*) 10651 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10652 ;; 10653 ia64*) 10654 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10655 ;; 10656 *) 10657 10658 # Older versions of the 11.00 compiler do not understand -b yet 10659 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10661$as_echo_n "checking if $CC understands -b... " >&6; } 10662if ${lt_cv_prog_compiler__b+:} false; then : 10663 $as_echo_n "(cached) " >&6 10664else 10665 lt_cv_prog_compiler__b=no 10666 save_LDFLAGS=$LDFLAGS 10667 LDFLAGS="$LDFLAGS -b" 10668 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10670 # The linker can only warn and ignore the option if not recognized 10671 # So say no if there are warnings 10672 if test -s conftest.err; then 10673 # Append any errors to the config.log. 10674 cat conftest.err 1>&5 10675 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10677 if diff conftest.exp conftest.er2 >/dev/null; then 10678 lt_cv_prog_compiler__b=yes 10679 fi 10680 else 10681 lt_cv_prog_compiler__b=yes 10682 fi 10683 fi 10684 $RM -r conftest* 10685 LDFLAGS=$save_LDFLAGS 10686 10687fi 10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10689$as_echo "$lt_cv_prog_compiler__b" >&6; } 10690 10691if test yes = "$lt_cv_prog_compiler__b"; then 10692 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10693else 10694 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10695fi 10696 10697 ;; 10698 esac 10699 fi 10700 if test no = "$with_gnu_ld"; then 10701 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10702 hardcode_libdir_separator=: 10703 10704 case $host_cpu in 10705 hppa*64*|ia64*) 10706 hardcode_direct=no 10707 hardcode_shlibpath_var=no 10708 ;; 10709 *) 10710 hardcode_direct=yes 10711 hardcode_direct_absolute=yes 10712 export_dynamic_flag_spec='$wl-E' 10713 10714 # hardcode_minus_L: Not really in the search PATH, 10715 # but as the default location of the library. 10716 hardcode_minus_L=yes 10717 ;; 10718 esac 10719 fi 10720 ;; 10721 10722 irix5* | irix6* | nonstopux*) 10723 if test yes = "$GCC"; then 10724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10725 # Try to use the -exported_symbol ld option, if it does not 10726 # work, assume that -exports_file does not work either and 10727 # implicitly export all symbols. 10728 # This should be the same for all languages, so no per-tag cache variable. 10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10730$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10731if ${lt_cv_irix_exported_symbol+:} false; then : 10732 $as_echo_n "(cached) " >&6 10733else 10734 save_LDFLAGS=$LDFLAGS 10735 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10737/* end confdefs.h. */ 10738int foo (void) { return 0; } 10739_ACEOF 10740if ac_fn_c_try_link "$LINENO"; then : 10741 lt_cv_irix_exported_symbol=yes 10742else 10743 lt_cv_irix_exported_symbol=no 10744fi 10745rm -f core conftest.err conftest.$ac_objext \ 10746 conftest$ac_exeext conftest.$ac_ext 10747 LDFLAGS=$save_LDFLAGS 10748fi 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10750$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10751 if test yes = "$lt_cv_irix_exported_symbol"; then 10752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10753 fi 10754 else 10755 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' 10756 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' 10757 fi 10758 archive_cmds_need_lc='no' 10759 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10760 hardcode_libdir_separator=: 10761 inherit_rpath=yes 10762 link_all_deplibs=yes 10763 ;; 10764 10765 linux*) 10766 case $cc_basename in 10767 tcc*) 10768 # Fabrice Bellard et al's Tiny C Compiler 10769 ld_shlibs=yes 10770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10771 ;; 10772 esac 10773 ;; 10774 10775 netbsd*) 10776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10778 else 10779 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10780 fi 10781 hardcode_libdir_flag_spec='-R$libdir' 10782 hardcode_direct=yes 10783 hardcode_shlibpath_var=no 10784 ;; 10785 10786 newsos6) 10787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10788 hardcode_direct=yes 10789 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10790 hardcode_libdir_separator=: 10791 hardcode_shlibpath_var=no 10792 ;; 10793 10794 *nto* | *qnx*) 10795 ;; 10796 10797 openbsd* | bitrig*) 10798 if test -f /usr/libexec/ld.so; then 10799 hardcode_direct=yes 10800 hardcode_shlibpath_var=no 10801 hardcode_direct_absolute=yes 10802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10804 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10805 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10806 export_dynamic_flag_spec='$wl-E' 10807 else 10808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10809 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10810 fi 10811 else 10812 ld_shlibs=no 10813 fi 10814 ;; 10815 10816 os2*) 10817 hardcode_libdir_flag_spec='-L$libdir' 10818 hardcode_minus_L=yes 10819 allow_undefined_flag=unsupported 10820 shrext_cmds=.dll 10821 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10822 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10823 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10824 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10825 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10826 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10827 emximp -o $lib $output_objdir/$libname.def' 10828 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10829 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10830 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10831 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10832 prefix_cmds="$SED"~ 10833 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10834 prefix_cmds="$prefix_cmds -e 1d"; 10835 fi~ 10836 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10837 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10838 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10839 emximp -o $lib $output_objdir/$libname.def' 10840 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10841 enable_shared_with_static_runtimes=yes 10842 ;; 10843 10844 osf3*) 10845 if test yes = "$GCC"; then 10846 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10847 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' 10848 else 10849 allow_undefined_flag=' -expect_unresolved \*' 10850 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' 10851 fi 10852 archive_cmds_need_lc='no' 10853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10854 hardcode_libdir_separator=: 10855 ;; 10856 10857 osf4* | osf5*) # as osf3* with the addition of -msym flag 10858 if test yes = "$GCC"; then 10859 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10860 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10861 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10862 else 10863 allow_undefined_flag=' -expect_unresolved \*' 10864 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' 10865 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~ 10866 $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' 10867 10868 # Both c and cxx compiler support -rpath directly 10869 hardcode_libdir_flag_spec='-rpath $libdir' 10870 fi 10871 archive_cmds_need_lc='no' 10872 hardcode_libdir_separator=: 10873 ;; 10874 10875 solaris*) 10876 no_undefined_flag=' -z defs' 10877 if test yes = "$GCC"; then 10878 wlarc='$wl' 10879 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10881 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10882 else 10883 case `$CC -V 2>&1` in 10884 *"Compilers 5.0"*) 10885 wlarc='' 10886 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10888 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10889 ;; 10890 *) 10891 wlarc='$wl' 10892 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10894 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10895 ;; 10896 esac 10897 fi 10898 hardcode_libdir_flag_spec='-R$libdir' 10899 hardcode_shlibpath_var=no 10900 case $host_os in 10901 solaris2.[0-5] | solaris2.[0-5].*) ;; 10902 *) 10903 # The compiler driver will combine and reorder linker options, 10904 # but understands '-z linker_flag'. GCC discards it without '$wl', 10905 # but is careful enough not to reorder. 10906 # Supported since Solaris 2.6 (maybe 2.5.1?) 10907 if test yes = "$GCC"; then 10908 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10909 else 10910 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10911 fi 10912 ;; 10913 esac 10914 link_all_deplibs=yes 10915 ;; 10916 10917 sunos4*) 10918 if test sequent = "$host_vendor"; then 10919 # Use $CC to link under sequent, because it throws in some extra .o 10920 # files that make .init and .fini sections work. 10921 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10922 else 10923 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10924 fi 10925 hardcode_libdir_flag_spec='-L$libdir' 10926 hardcode_direct=yes 10927 hardcode_minus_L=yes 10928 hardcode_shlibpath_var=no 10929 ;; 10930 10931 sysv4) 10932 case $host_vendor in 10933 sni) 10934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10935 hardcode_direct=yes # is this really true??? 10936 ;; 10937 siemens) 10938 ## LD is ld it makes a PLAMLIB 10939 ## CC just makes a GrossModule. 10940 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10941 reload_cmds='$CC -r -o $output$reload_objs' 10942 hardcode_direct=no 10943 ;; 10944 motorola) 10945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10946 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10947 ;; 10948 esac 10949 runpath_var='LD_RUN_PATH' 10950 hardcode_shlibpath_var=no 10951 ;; 10952 10953 sysv4.3*) 10954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10955 hardcode_shlibpath_var=no 10956 export_dynamic_flag_spec='-Bexport' 10957 ;; 10958 10959 sysv4*MP*) 10960 if test -d /usr/nec; then 10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10962 hardcode_shlibpath_var=no 10963 runpath_var=LD_RUN_PATH 10964 hardcode_runpath_var=yes 10965 ld_shlibs=yes 10966 fi 10967 ;; 10968 10969 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10970 no_undefined_flag='$wl-z,text' 10971 archive_cmds_need_lc=no 10972 hardcode_shlibpath_var=no 10973 runpath_var='LD_RUN_PATH' 10974 10975 if test yes = "$GCC"; then 10976 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10977 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10978 else 10979 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10980 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10981 fi 10982 ;; 10983 10984 sysv5* | sco3.2v5* | sco5v6*) 10985 # Note: We CANNOT use -z defs as we might desire, because we do not 10986 # link with -lc, and that would cause any symbols used from libc to 10987 # always be unresolved, which means just about no library would 10988 # ever link correctly. If we're not using GNU ld we use -z text 10989 # though, which does catch some bad symbols but isn't as heavy-handed 10990 # as -z defs. 10991 no_undefined_flag='$wl-z,text' 10992 allow_undefined_flag='$wl-z,nodefs' 10993 archive_cmds_need_lc=no 10994 hardcode_shlibpath_var=no 10995 hardcode_libdir_flag_spec='$wl-R,$libdir' 10996 hardcode_libdir_separator=':' 10997 link_all_deplibs=yes 10998 export_dynamic_flag_spec='$wl-Bexport' 10999 runpath_var='LD_RUN_PATH' 11000 11001 if test yes = "$GCC"; then 11002 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11003 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11004 else 11005 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11006 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11007 fi 11008 ;; 11009 11010 uts4*) 11011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11012 hardcode_libdir_flag_spec='-L$libdir' 11013 hardcode_shlibpath_var=no 11014 ;; 11015 11016 *) 11017 ld_shlibs=no 11018 ;; 11019 esac 11020 11021 if test sni = "$host_vendor"; then 11022 case $host in 11023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11024 export_dynamic_flag_spec='$wl-Blargedynsym' 11025 ;; 11026 esac 11027 fi 11028 fi 11029 11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11031$as_echo "$ld_shlibs" >&6; } 11032test no = "$ld_shlibs" && can_build_shared=no 11033 11034with_gnu_ld=$with_gnu_ld 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050# 11051# Do we need to explicitly link libc? 11052# 11053case "x$archive_cmds_need_lc" in 11054x|xyes) 11055 # Assume -lc should be added 11056 archive_cmds_need_lc=yes 11057 11058 if test yes,yes = "$GCC,$enable_shared"; then 11059 case $archive_cmds in 11060 *'~'*) 11061 # FIXME: we may have to deal with multi-command sequences. 11062 ;; 11063 '$CC '*) 11064 # Test whether the compiler implicitly links with -lc since on some 11065 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11066 # to ld, don't add -lc before -lgcc. 11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11068$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11069if ${lt_cv_archive_cmds_need_lc+:} false; then : 11070 $as_echo_n "(cached) " >&6 11071else 11072 $RM conftest* 11073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11074 11075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11076 (eval $ac_compile) 2>&5 11077 ac_status=$? 11078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11079 test $ac_status = 0; } 2>conftest.err; then 11080 soname=conftest 11081 lib=conftest 11082 libobjs=conftest.$ac_objext 11083 deplibs= 11084 wl=$lt_prog_compiler_wl 11085 pic_flag=$lt_prog_compiler_pic 11086 compiler_flags=-v 11087 linker_flags=-v 11088 verstring= 11089 output_objdir=. 11090 libname=conftest 11091 lt_save_allow_undefined_flag=$allow_undefined_flag 11092 allow_undefined_flag= 11093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11094 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11095 ac_status=$? 11096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11097 test $ac_status = 0; } 11098 then 11099 lt_cv_archive_cmds_need_lc=no 11100 else 11101 lt_cv_archive_cmds_need_lc=yes 11102 fi 11103 allow_undefined_flag=$lt_save_allow_undefined_flag 11104 else 11105 cat conftest.err 1>&5 11106 fi 11107 $RM conftest* 11108 11109fi 11110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11111$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11112 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11113 ;; 11114 esac 11115 fi 11116 ;; 11117esac 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11271$as_echo_n "checking dynamic linker characteristics... " >&6; } 11272 11273if test yes = "$GCC"; then 11274 case $host_os in 11275 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11276 *) lt_awk_arg='/^libraries:/' ;; 11277 esac 11278 case $host_os in 11279 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11280 *) lt_sed_strip_eq='s|=/|/|g' ;; 11281 esac 11282 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11283 case $lt_search_path_spec in 11284 *\;*) 11285 # if the path contains ";" then we assume it to be the separator 11286 # otherwise default to the standard path separator (i.e. ":") - it is 11287 # assumed that no part of a normal pathname contains ";" but that should 11288 # okay in the real world where ";" in dirpaths is itself problematic. 11289 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11290 ;; 11291 *) 11292 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11293 ;; 11294 esac 11295 # Ok, now we have the path, separated by spaces, we can step through it 11296 # and add multilib dir if necessary... 11297 lt_tmp_lt_search_path_spec= 11298 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11299 # ...but if some path component already ends with the multilib dir we assume 11300 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11301 case "$lt_multi_os_dir; $lt_search_path_spec " in 11302 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11303 lt_multi_os_dir= 11304 ;; 11305 esac 11306 for lt_sys_path in $lt_search_path_spec; do 11307 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11308 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11309 elif test -n "$lt_multi_os_dir"; then 11310 test -d "$lt_sys_path" && \ 11311 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11312 fi 11313 done 11314 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11315BEGIN {RS = " "; FS = "/|\n";} { 11316 lt_foo = ""; 11317 lt_count = 0; 11318 for (lt_i = NF; lt_i > 0; lt_i--) { 11319 if ($lt_i != "" && $lt_i != ".") { 11320 if ($lt_i == "..") { 11321 lt_count++; 11322 } else { 11323 if (lt_count == 0) { 11324 lt_foo = "/" $lt_i lt_foo; 11325 } else { 11326 lt_count--; 11327 } 11328 } 11329 } 11330 } 11331 if (lt_foo != "") { lt_freq[lt_foo]++; } 11332 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11333}'` 11334 # AWK program above erroneously prepends '/' to C:/dos/paths 11335 # for these hosts. 11336 case $host_os in 11337 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11338 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11339 esac 11340 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11341else 11342 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11343fi 11344library_names_spec= 11345libname_spec='lib$name' 11346soname_spec= 11347shrext_cmds=.so 11348postinstall_cmds= 11349postuninstall_cmds= 11350finish_cmds= 11351finish_eval= 11352shlibpath_var= 11353shlibpath_overrides_runpath=unknown 11354version_type=none 11355dynamic_linker="$host_os ld.so" 11356sys_lib_dlsearch_path_spec="/lib /usr/lib" 11357need_lib_prefix=unknown 11358hardcode_into_libs=no 11359 11360# when you set need_version to no, make sure it does not cause -set_version 11361# flags to be left without arguments 11362need_version=unknown 11363 11364 11365 11366case $host_os in 11367aix3*) 11368 version_type=linux # correct to gnu/linux during the next big refactor 11369 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11370 shlibpath_var=LIBPATH 11371 11372 # AIX 3 has no versioning support, so we append a major version to the name. 11373 soname_spec='$libname$release$shared_ext$major' 11374 ;; 11375 11376aix[4-9]*) 11377 version_type=linux # correct to gnu/linux during the next big refactor 11378 need_lib_prefix=no 11379 need_version=no 11380 hardcode_into_libs=yes 11381 if test ia64 = "$host_cpu"; then 11382 # AIX 5 supports IA64 11383 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11384 shlibpath_var=LD_LIBRARY_PATH 11385 else 11386 # With GCC up to 2.95.x, collect2 would create an import file 11387 # for dependence libraries. The import file would start with 11388 # the line '#! .'. This would cause the generated library to 11389 # depend on '.', always an invalid library. This was fixed in 11390 # development snapshots of GCC prior to 3.0. 11391 case $host_os in 11392 aix4 | aix4.[01] | aix4.[01].*) 11393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11394 echo ' yes ' 11395 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11396 : 11397 else 11398 can_build_shared=no 11399 fi 11400 ;; 11401 esac 11402 # Using Import Files as archive members, it is possible to support 11403 # filename-based versioning of shared library archives on AIX. While 11404 # this would work for both with and without runtime linking, it will 11405 # prevent static linking of such archives. So we do filename-based 11406 # shared library versioning with .so extension only, which is used 11407 # when both runtime linking and shared linking is enabled. 11408 # Unfortunately, runtime linking may impact performance, so we do 11409 # not want this to be the default eventually. Also, we use the 11410 # versioned .so libs for executables only if there is the -brtl 11411 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11412 # To allow for filename-based versioning support, we need to create 11413 # libNAME.so.V as an archive file, containing: 11414 # *) an Import File, referring to the versioned filename of the 11415 # archive as well as the shared archive member, telling the 11416 # bitwidth (32 or 64) of that shared object, and providing the 11417 # list of exported symbols of that shared object, eventually 11418 # decorated with the 'weak' keyword 11419 # *) the shared object with the F_LOADONLY flag set, to really avoid 11420 # it being seen by the linker. 11421 # At run time we better use the real file rather than another symlink, 11422 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11423 11424 case $with_aix_soname,$aix_use_runtimelinking in 11425 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11426 # soname into executable. Probably we can add versioning support to 11427 # collect2, so additional links can be useful in future. 11428 aix,yes) # traditional libtool 11429 dynamic_linker='AIX unversionable lib.so' 11430 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11431 # instead of lib<name>.a to let people know that these are not 11432 # typical AIX shared libraries. 11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11434 ;; 11435 aix,no) # traditional AIX only 11436 dynamic_linker='AIX lib.a(lib.so.V)' 11437 # We preserve .a as extension for shared libraries through AIX4.2 11438 # and later when we are not doing run time linking. 11439 library_names_spec='$libname$release.a $libname.a' 11440 soname_spec='$libname$release$shared_ext$major' 11441 ;; 11442 svr4,*) # full svr4 only 11443 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11444 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11445 # We do not specify a path in Import Files, so LIBPATH fires. 11446 shlibpath_overrides_runpath=yes 11447 ;; 11448 *,yes) # both, prefer svr4 11449 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11450 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11451 # unpreferred sharedlib libNAME.a needs extra handling 11452 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11453 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11454 # We do not specify a path in Import Files, so LIBPATH fires. 11455 shlibpath_overrides_runpath=yes 11456 ;; 11457 *,no) # both, prefer aix 11458 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11459 library_names_spec='$libname$release.a $libname.a' 11460 soname_spec='$libname$release$shared_ext$major' 11461 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11462 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11463 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11464 ;; 11465 esac 11466 shlibpath_var=LIBPATH 11467 fi 11468 ;; 11469 11470amigaos*) 11471 case $host_cpu in 11472 powerpc) 11473 # Since July 2007 AmigaOS4 officially supports .so libraries. 11474 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11476 ;; 11477 m68k) 11478 library_names_spec='$libname.ixlibrary $libname.a' 11479 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11480 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11481 ;; 11482 esac 11483 ;; 11484 11485beos*) 11486 library_names_spec='$libname$shared_ext' 11487 dynamic_linker="$host_os ld.so" 11488 shlibpath_var=LIBRARY_PATH 11489 ;; 11490 11491bsdi[45]*) 11492 version_type=linux # correct to gnu/linux during the next big refactor 11493 need_version=no 11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11495 soname_spec='$libname$release$shared_ext$major' 11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11497 shlibpath_var=LD_LIBRARY_PATH 11498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11500 # the default ld.so.conf also contains /usr/contrib/lib and 11501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11502 # libtool to hard-code these into programs 11503 ;; 11504 11505cygwin* | mingw* | pw32* | cegcc*) 11506 version_type=windows 11507 shrext_cmds=.dll 11508 need_version=no 11509 need_lib_prefix=no 11510 11511 case $GCC,$cc_basename in 11512 yes,*) 11513 # gcc 11514 library_names_spec='$libname.dll.a' 11515 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11516 postinstall_cmds='base_file=`basename \$file`~ 11517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11518 dldir=$destdir/`dirname \$dlpath`~ 11519 test -d \$dldir || mkdir -p \$dldir~ 11520 $install_prog $dir/$dlname \$dldir/$dlname~ 11521 chmod a+x \$dldir/$dlname~ 11522 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11523 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11524 fi' 11525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11526 dlpath=$dir/\$dldll~ 11527 $RM \$dlpath' 11528 shlibpath_overrides_runpath=yes 11529 11530 case $host_os in 11531 cygwin*) 11532 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11533 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11534 11535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11536 ;; 11537 mingw* | cegcc*) 11538 # MinGW DLLs use traditional 'lib' prefix 11539 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11540 ;; 11541 pw32*) 11542 # pw32 DLLs use 'pw' prefix rather than 'lib' 11543 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11544 ;; 11545 esac 11546 dynamic_linker='Win32 ld.exe' 11547 ;; 11548 11549 *,cl*) 11550 # Native MSVC 11551 libname_spec='$name' 11552 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11553 library_names_spec='$libname.dll.lib' 11554 11555 case $build_os in 11556 mingw*) 11557 sys_lib_search_path_spec= 11558 lt_save_ifs=$IFS 11559 IFS=';' 11560 for lt_path in $LIB 11561 do 11562 IFS=$lt_save_ifs 11563 # Let DOS variable expansion print the short 8.3 style file name. 11564 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11565 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11566 done 11567 IFS=$lt_save_ifs 11568 # Convert to MSYS style. 11569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11570 ;; 11571 cygwin*) 11572 # Convert to unix form, then to dos form, then back to unix form 11573 # but this time dos style (no spaces!) so that the unix form looks 11574 # like /cygdrive/c/PROGRA~1:/cygdr... 11575 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11576 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11577 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11578 ;; 11579 *) 11580 sys_lib_search_path_spec=$LIB 11581 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11582 # It is most probably a Windows format PATH. 11583 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11584 else 11585 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11586 fi 11587 # FIXME: find the short name or the path components, as spaces are 11588 # common. (e.g. "Program Files" -> "PROGRA~1") 11589 ;; 11590 esac 11591 11592 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11593 postinstall_cmds='base_file=`basename \$file`~ 11594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11595 dldir=$destdir/`dirname \$dlpath`~ 11596 test -d \$dldir || mkdir -p \$dldir~ 11597 $install_prog $dir/$dlname \$dldir/$dlname' 11598 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11599 dlpath=$dir/\$dldll~ 11600 $RM \$dlpath' 11601 shlibpath_overrides_runpath=yes 11602 dynamic_linker='Win32 link.exe' 11603 ;; 11604 11605 *) 11606 # Assume MSVC wrapper 11607 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11608 dynamic_linker='Win32 ld.exe' 11609 ;; 11610 esac 11611 # FIXME: first we should search . and the directory the executable is in 11612 shlibpath_var=PATH 11613 ;; 11614 11615darwin* | rhapsody*) 11616 dynamic_linker="$host_os dyld" 11617 version_type=darwin 11618 need_lib_prefix=no 11619 need_version=no 11620 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11621 soname_spec='$libname$release$major$shared_ext' 11622 shlibpath_overrides_runpath=yes 11623 shlibpath_var=DYLD_LIBRARY_PATH 11624 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11625 11626 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11628 ;; 11629 11630dgux*) 11631 version_type=linux # correct to gnu/linux during the next big refactor 11632 need_lib_prefix=no 11633 need_version=no 11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11635 soname_spec='$libname$release$shared_ext$major' 11636 shlibpath_var=LD_LIBRARY_PATH 11637 ;; 11638 11639freebsd* | dragonfly*) 11640 # DragonFly does not have aout. When/if they implement a new 11641 # versioning mechanism, adjust this. 11642 if test -x /usr/bin/objformat; then 11643 objformat=`/usr/bin/objformat` 11644 else 11645 case $host_os in 11646 freebsd[23].*) objformat=aout ;; 11647 *) objformat=elf ;; 11648 esac 11649 fi 11650 version_type=freebsd-$objformat 11651 case $version_type in 11652 freebsd-elf*) 11653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11654 soname_spec='$libname$release$shared_ext$major' 11655 need_version=no 11656 need_lib_prefix=no 11657 ;; 11658 freebsd-*) 11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11660 need_version=yes 11661 ;; 11662 esac 11663 shlibpath_var=LD_LIBRARY_PATH 11664 case $host_os in 11665 freebsd2.*) 11666 shlibpath_overrides_runpath=yes 11667 ;; 11668 freebsd3.[01]* | freebsdelf3.[01]*) 11669 shlibpath_overrides_runpath=yes 11670 hardcode_into_libs=yes 11671 ;; 11672 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11673 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11674 shlibpath_overrides_runpath=no 11675 hardcode_into_libs=yes 11676 ;; 11677 *) # from 4.6 on, and DragonFly 11678 shlibpath_overrides_runpath=yes 11679 hardcode_into_libs=yes 11680 ;; 11681 esac 11682 ;; 11683 11684haiku*) 11685 version_type=linux # correct to gnu/linux during the next big refactor 11686 need_lib_prefix=no 11687 need_version=no 11688 dynamic_linker="$host_os runtime_loader" 11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11690 soname_spec='$libname$release$shared_ext$major' 11691 shlibpath_var=LIBRARY_PATH 11692 shlibpath_overrides_runpath=no 11693 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11694 hardcode_into_libs=yes 11695 ;; 11696 11697hpux9* | hpux10* | hpux11*) 11698 # Give a soname corresponding to the major version so that dld.sl refuses to 11699 # link against other versions. 11700 version_type=sunos 11701 need_lib_prefix=no 11702 need_version=no 11703 case $host_cpu in 11704 ia64*) 11705 shrext_cmds='.so' 11706 hardcode_into_libs=yes 11707 dynamic_linker="$host_os dld.so" 11708 shlibpath_var=LD_LIBRARY_PATH 11709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11711 soname_spec='$libname$release$shared_ext$major' 11712 if test 32 = "$HPUX_IA64_MODE"; then 11713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11714 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11715 else 11716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11717 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11718 fi 11719 ;; 11720 hppa*64*) 11721 shrext_cmds='.sl' 11722 hardcode_into_libs=yes 11723 dynamic_linker="$host_os dld.sl" 11724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11727 soname_spec='$libname$release$shared_ext$major' 11728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11730 ;; 11731 *) 11732 shrext_cmds='.sl' 11733 dynamic_linker="$host_os dld.sl" 11734 shlibpath_var=SHLIB_PATH 11735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11737 soname_spec='$libname$release$shared_ext$major' 11738 ;; 11739 esac 11740 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11741 postinstall_cmds='chmod 555 $lib' 11742 # or fails outright, so override atomically: 11743 install_override_mode=555 11744 ;; 11745 11746interix[3-9]*) 11747 version_type=linux # correct to gnu/linux during the next big refactor 11748 need_lib_prefix=no 11749 need_version=no 11750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11751 soname_spec='$libname$release$shared_ext$major' 11752 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11753 shlibpath_var=LD_LIBRARY_PATH 11754 shlibpath_overrides_runpath=no 11755 hardcode_into_libs=yes 11756 ;; 11757 11758irix5* | irix6* | nonstopux*) 11759 case $host_os in 11760 nonstopux*) version_type=nonstopux ;; 11761 *) 11762 if test yes = "$lt_cv_prog_gnu_ld"; then 11763 version_type=linux # correct to gnu/linux during the next big refactor 11764 else 11765 version_type=irix 11766 fi ;; 11767 esac 11768 need_lib_prefix=no 11769 need_version=no 11770 soname_spec='$libname$release$shared_ext$major' 11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11772 case $host_os in 11773 irix5* | nonstopux*) 11774 libsuff= shlibsuff= 11775 ;; 11776 *) 11777 case $LD in # libtool.m4 will add one of these switches to LD 11778 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11779 libsuff= shlibsuff= libmagic=32-bit;; 11780 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11781 libsuff=32 shlibsuff=N32 libmagic=N32;; 11782 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11783 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11784 *) libsuff= shlibsuff= libmagic=never-match;; 11785 esac 11786 ;; 11787 esac 11788 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11789 shlibpath_overrides_runpath=no 11790 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11791 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11792 hardcode_into_libs=yes 11793 ;; 11794 11795# No shared lib support for Linux oldld, aout, or coff. 11796linux*oldld* | linux*aout* | linux*coff*) 11797 dynamic_linker=no 11798 ;; 11799 11800linux*android*) 11801 version_type=none # Android doesn't support versioned libraries. 11802 need_lib_prefix=no 11803 need_version=no 11804 library_names_spec='$libname$release$shared_ext' 11805 soname_spec='$libname$release$shared_ext' 11806 finish_cmds= 11807 shlibpath_var=LD_LIBRARY_PATH 11808 shlibpath_overrides_runpath=yes 11809 11810 # This implies no fast_install, which is unacceptable. 11811 # Some rework will be needed to allow for fast_install 11812 # before this can be enabled. 11813 hardcode_into_libs=yes 11814 11815 dynamic_linker='Android linker' 11816 # Don't embed -rpath directories since the linker doesn't support them. 11817 hardcode_libdir_flag_spec='-L$libdir' 11818 ;; 11819 11820# This must be glibc/ELF. 11821linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11822 version_type=linux # correct to gnu/linux during the next big refactor 11823 need_lib_prefix=no 11824 need_version=no 11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11826 soname_spec='$libname$release$shared_ext$major' 11827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11828 shlibpath_var=LD_LIBRARY_PATH 11829 shlibpath_overrides_runpath=no 11830 11831 # Some binutils ld are patched to set DT_RUNPATH 11832 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11833 $as_echo_n "(cached) " >&6 11834else 11835 lt_cv_shlibpath_overrides_runpath=no 11836 save_LDFLAGS=$LDFLAGS 11837 save_libdir=$libdir 11838 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11839 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11841/* end confdefs.h. */ 11842 11843int 11844main () 11845{ 11846 11847 ; 11848 return 0; 11849} 11850_ACEOF 11851if ac_fn_c_try_link "$LINENO"; then : 11852 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11853 lt_cv_shlibpath_overrides_runpath=yes 11854fi 11855fi 11856rm -f core conftest.err conftest.$ac_objext \ 11857 conftest$ac_exeext conftest.$ac_ext 11858 LDFLAGS=$save_LDFLAGS 11859 libdir=$save_libdir 11860 11861fi 11862 11863 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11864 11865 # This implies no fast_install, which is unacceptable. 11866 # Some rework will be needed to allow for fast_install 11867 # before this can be enabled. 11868 hardcode_into_libs=yes 11869 11870 # Add ABI-specific directories to the system library path. 11871 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11872 11873 # Ideally, we could use ldconfig to report *all* directores which are 11874 # searched for libraries, however this is still not possible. Aside from not 11875 # being certain /sbin/ldconfig is available, command 11876 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11877 # even though it is searched at run-time. Try to do the best guess by 11878 # appending ld.so.conf contents (and includes) to the search path. 11879 if test -f /etc/ld.so.conf; then 11880 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' ' '` 11881 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11882 fi 11883 11884 # We used to test for /lib/ld.so.1 and disable shared libraries on 11885 # powerpc, because MkLinux only supported shared libraries with the 11886 # GNU dynamic linker. Since this was broken with cross compilers, 11887 # most powerpc-linux boxes support dynamic linking these days and 11888 # people can always --disable-shared, the test was removed, and we 11889 # assume the GNU/Linux dynamic linker is in use. 11890 dynamic_linker='GNU/Linux ld.so' 11891 ;; 11892 11893netbsd*) 11894 version_type=sunos 11895 need_lib_prefix=no 11896 need_version=no 11897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11900 dynamic_linker='NetBSD (a.out) ld.so' 11901 else 11902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11903 soname_spec='$libname$release$shared_ext$major' 11904 dynamic_linker='NetBSD ld.elf_so' 11905 fi 11906 shlibpath_var=LD_LIBRARY_PATH 11907 shlibpath_overrides_runpath=yes 11908 hardcode_into_libs=yes 11909 ;; 11910 11911newsos6) 11912 version_type=linux # correct to gnu/linux during the next big refactor 11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11914 shlibpath_var=LD_LIBRARY_PATH 11915 shlibpath_overrides_runpath=yes 11916 ;; 11917 11918*nto* | *qnx*) 11919 version_type=qnx 11920 need_lib_prefix=no 11921 need_version=no 11922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11923 soname_spec='$libname$release$shared_ext$major' 11924 shlibpath_var=LD_LIBRARY_PATH 11925 shlibpath_overrides_runpath=no 11926 hardcode_into_libs=yes 11927 dynamic_linker='ldqnx.so' 11928 ;; 11929 11930openbsd* | bitrig*) 11931 version_type=sunos 11932 sys_lib_dlsearch_path_spec=/usr/lib 11933 need_lib_prefix=no 11934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11935 need_version=no 11936 else 11937 need_version=yes 11938 fi 11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11941 shlibpath_var=LD_LIBRARY_PATH 11942 shlibpath_overrides_runpath=yes 11943 ;; 11944 11945os2*) 11946 libname_spec='$name' 11947 version_type=windows 11948 shrext_cmds=.dll 11949 need_version=no 11950 need_lib_prefix=no 11951 # OS/2 can only load a DLL with a base name of 8 characters or less. 11952 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11953 v=$($ECHO $release$versuffix | tr -d .-); 11954 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11955 $ECHO $n$v`$shared_ext' 11956 library_names_spec='${libname}_dll.$libext' 11957 dynamic_linker='OS/2 ld.exe' 11958 shlibpath_var=BEGINLIBPATH 11959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11961 postinstall_cmds='base_file=`basename \$file`~ 11962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11963 dldir=$destdir/`dirname \$dlpath`~ 11964 test -d \$dldir || mkdir -p \$dldir~ 11965 $install_prog $dir/$dlname \$dldir/$dlname~ 11966 chmod a+x \$dldir/$dlname~ 11967 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11968 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11969 fi' 11970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11971 dlpath=$dir/\$dldll~ 11972 $RM \$dlpath' 11973 ;; 11974 11975osf3* | osf4* | osf5*) 11976 version_type=osf 11977 need_lib_prefix=no 11978 need_version=no 11979 soname_spec='$libname$release$shared_ext$major' 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 shlibpath_var=LD_LIBRARY_PATH 11982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11984 ;; 11985 11986rdos*) 11987 dynamic_linker=no 11988 ;; 11989 11990solaris*) 11991 version_type=linux # correct to gnu/linux during the next big refactor 11992 need_lib_prefix=no 11993 need_version=no 11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11995 soname_spec='$libname$release$shared_ext$major' 11996 shlibpath_var=LD_LIBRARY_PATH 11997 shlibpath_overrides_runpath=yes 11998 hardcode_into_libs=yes 11999 # ldd complains unless libraries are executable 12000 postinstall_cmds='chmod +x $lib' 12001 ;; 12002 12003sunos4*) 12004 version_type=sunos 12005 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12007 shlibpath_var=LD_LIBRARY_PATH 12008 shlibpath_overrides_runpath=yes 12009 if test yes = "$with_gnu_ld"; then 12010 need_lib_prefix=no 12011 fi 12012 need_version=yes 12013 ;; 12014 12015sysv4 | sysv4.3*) 12016 version_type=linux # correct to gnu/linux during the next big refactor 12017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12018 soname_spec='$libname$release$shared_ext$major' 12019 shlibpath_var=LD_LIBRARY_PATH 12020 case $host_vendor in 12021 sni) 12022 shlibpath_overrides_runpath=no 12023 need_lib_prefix=no 12024 runpath_var=LD_RUN_PATH 12025 ;; 12026 siemens) 12027 need_lib_prefix=no 12028 ;; 12029 motorola) 12030 need_lib_prefix=no 12031 need_version=no 12032 shlibpath_overrides_runpath=no 12033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12034 ;; 12035 esac 12036 ;; 12037 12038sysv4*MP*) 12039 if test -d /usr/nec; then 12040 version_type=linux # correct to gnu/linux during the next big refactor 12041 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12042 soname_spec='$libname$shared_ext.$major' 12043 shlibpath_var=LD_LIBRARY_PATH 12044 fi 12045 ;; 12046 12047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12048 version_type=sco 12049 need_lib_prefix=no 12050 need_version=no 12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12052 soname_spec='$libname$release$shared_ext$major' 12053 shlibpath_var=LD_LIBRARY_PATH 12054 shlibpath_overrides_runpath=yes 12055 hardcode_into_libs=yes 12056 if test yes = "$with_gnu_ld"; then 12057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12058 else 12059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12060 case $host_os in 12061 sco3.2v5*) 12062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12063 ;; 12064 esac 12065 fi 12066 sys_lib_dlsearch_path_spec='/usr/lib' 12067 ;; 12068 12069tpf*) 12070 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12071 version_type=linux # correct to gnu/linux during the next big refactor 12072 need_lib_prefix=no 12073 need_version=no 12074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12075 shlibpath_var=LD_LIBRARY_PATH 12076 shlibpath_overrides_runpath=no 12077 hardcode_into_libs=yes 12078 ;; 12079 12080uts4*) 12081 version_type=linux # correct to gnu/linux during the next big refactor 12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12083 soname_spec='$libname$release$shared_ext$major' 12084 shlibpath_var=LD_LIBRARY_PATH 12085 ;; 12086 12087*) 12088 dynamic_linker=no 12089 ;; 12090esac 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12092$as_echo "$dynamic_linker" >&6; } 12093test no = "$dynamic_linker" && can_build_shared=no 12094 12095variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12096if test yes = "$GCC"; then 12097 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12098fi 12099 12100if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12101 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12102fi 12103 12104if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12105 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12106fi 12107 12108# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12109configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12110 12111# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12112func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12113 12114# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12115configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12214$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12215hardcode_action= 12216if test -n "$hardcode_libdir_flag_spec" || 12217 test -n "$runpath_var" || 12218 test yes = "$hardcode_automatic"; then 12219 12220 # We can hardcode non-existent directories. 12221 if test no != "$hardcode_direct" && 12222 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12223 # have to relink, otherwise we might link with an installed library 12224 # when we should be linking with a yet-to-be-installed one 12225 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12226 test no != "$hardcode_minus_L"; then 12227 # Linking always hardcodes the temporary library directory. 12228 hardcode_action=relink 12229 else 12230 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12231 hardcode_action=immediate 12232 fi 12233else 12234 # We cannot hardcode anything, or else we can only hardcode existing 12235 # directories. 12236 hardcode_action=unsupported 12237fi 12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12239$as_echo "$hardcode_action" >&6; } 12240 12241if test relink = "$hardcode_action" || 12242 test yes = "$inherit_rpath"; then 12243 # Fast installation is not supported 12244 enable_fast_install=no 12245elif test yes = "$shlibpath_overrides_runpath" || 12246 test no = "$enable_shared"; then 12247 # Fast installation is not necessary 12248 enable_fast_install=needless 12249fi 12250 12251 12252 12253 12254 12255 12256 if test yes != "$enable_dlopen"; then 12257 enable_dlopen=unknown 12258 enable_dlopen_self=unknown 12259 enable_dlopen_self_static=unknown 12260else 12261 lt_cv_dlopen=no 12262 lt_cv_dlopen_libs= 12263 12264 case $host_os in 12265 beos*) 12266 lt_cv_dlopen=load_add_on 12267 lt_cv_dlopen_libs= 12268 lt_cv_dlopen_self=yes 12269 ;; 12270 12271 mingw* | pw32* | cegcc*) 12272 lt_cv_dlopen=LoadLibrary 12273 lt_cv_dlopen_libs= 12274 ;; 12275 12276 cygwin*) 12277 lt_cv_dlopen=dlopen 12278 lt_cv_dlopen_libs= 12279 ;; 12280 12281 darwin*) 12282 # if libdl is installed we need to link against it 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12284$as_echo_n "checking for dlopen in -ldl... " >&6; } 12285if ${ac_cv_lib_dl_dlopen+:} false; then : 12286 $as_echo_n "(cached) " >&6 12287else 12288 ac_check_lib_save_LIBS=$LIBS 12289LIBS="-ldl $LIBS" 12290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12291/* end confdefs.h. */ 12292 12293/* Override any GCC internal prototype to avoid an error. 12294 Use char because int might match the return type of a GCC 12295 builtin and then its argument prototype would still apply. */ 12296#ifdef __cplusplus 12297extern "C" 12298#endif 12299char dlopen (); 12300int 12301main () 12302{ 12303return dlopen (); 12304 ; 12305 return 0; 12306} 12307_ACEOF 12308if ac_fn_c_try_link "$LINENO"; then : 12309 ac_cv_lib_dl_dlopen=yes 12310else 12311 ac_cv_lib_dl_dlopen=no 12312fi 12313rm -f core conftest.err conftest.$ac_objext \ 12314 conftest$ac_exeext conftest.$ac_ext 12315LIBS=$ac_check_lib_save_LIBS 12316fi 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12318$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12319if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12320 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12321else 12322 12323 lt_cv_dlopen=dyld 12324 lt_cv_dlopen_libs= 12325 lt_cv_dlopen_self=yes 12326 12327fi 12328 12329 ;; 12330 12331 tpf*) 12332 # Don't try to run any link tests for TPF. We know it's impossible 12333 # because TPF is a cross-compiler, and we know how we open DSOs. 12334 lt_cv_dlopen=dlopen 12335 lt_cv_dlopen_libs= 12336 lt_cv_dlopen_self=no 12337 ;; 12338 12339 *) 12340 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12341if test "x$ac_cv_func_shl_load" = xyes; then : 12342 lt_cv_dlopen=shl_load 12343else 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12345$as_echo_n "checking for shl_load in -ldld... " >&6; } 12346if ${ac_cv_lib_dld_shl_load+:} false; then : 12347 $as_echo_n "(cached) " >&6 12348else 12349 ac_check_lib_save_LIBS=$LIBS 12350LIBS="-ldld $LIBS" 12351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12352/* end confdefs.h. */ 12353 12354/* Override any GCC internal prototype to avoid an error. 12355 Use char because int might match the return type of a GCC 12356 builtin and then its argument prototype would still apply. */ 12357#ifdef __cplusplus 12358extern "C" 12359#endif 12360char shl_load (); 12361int 12362main () 12363{ 12364return shl_load (); 12365 ; 12366 return 0; 12367} 12368_ACEOF 12369if ac_fn_c_try_link "$LINENO"; then : 12370 ac_cv_lib_dld_shl_load=yes 12371else 12372 ac_cv_lib_dld_shl_load=no 12373fi 12374rm -f core conftest.err conftest.$ac_objext \ 12375 conftest$ac_exeext conftest.$ac_ext 12376LIBS=$ac_check_lib_save_LIBS 12377fi 12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12379$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12380if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12381 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12382else 12383 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12384if test "x$ac_cv_func_dlopen" = xyes; then : 12385 lt_cv_dlopen=dlopen 12386else 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12388$as_echo_n "checking for dlopen in -ldl... " >&6; } 12389if ${ac_cv_lib_dl_dlopen+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391else 12392 ac_check_lib_save_LIBS=$LIBS 12393LIBS="-ldl $LIBS" 12394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12395/* end confdefs.h. */ 12396 12397/* Override any GCC internal prototype to avoid an error. 12398 Use char because int might match the return type of a GCC 12399 builtin and then its argument prototype would still apply. */ 12400#ifdef __cplusplus 12401extern "C" 12402#endif 12403char dlopen (); 12404int 12405main () 12406{ 12407return dlopen (); 12408 ; 12409 return 0; 12410} 12411_ACEOF 12412if ac_fn_c_try_link "$LINENO"; then : 12413 ac_cv_lib_dl_dlopen=yes 12414else 12415 ac_cv_lib_dl_dlopen=no 12416fi 12417rm -f core conftest.err conftest.$ac_objext \ 12418 conftest$ac_exeext conftest.$ac_ext 12419LIBS=$ac_check_lib_save_LIBS 12420fi 12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12422$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12423if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12424 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12425else 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12427$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12428if ${ac_cv_lib_svld_dlopen+:} false; then : 12429 $as_echo_n "(cached) " >&6 12430else 12431 ac_check_lib_save_LIBS=$LIBS 12432LIBS="-lsvld $LIBS" 12433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12434/* end confdefs.h. */ 12435 12436/* Override any GCC internal prototype to avoid an error. 12437 Use char because int might match the return type of a GCC 12438 builtin and then its argument prototype would still apply. */ 12439#ifdef __cplusplus 12440extern "C" 12441#endif 12442char dlopen (); 12443int 12444main () 12445{ 12446return dlopen (); 12447 ; 12448 return 0; 12449} 12450_ACEOF 12451if ac_fn_c_try_link "$LINENO"; then : 12452 ac_cv_lib_svld_dlopen=yes 12453else 12454 ac_cv_lib_svld_dlopen=no 12455fi 12456rm -f core conftest.err conftest.$ac_objext \ 12457 conftest$ac_exeext conftest.$ac_ext 12458LIBS=$ac_check_lib_save_LIBS 12459fi 12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12461$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12462if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12463 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12464else 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12466$as_echo_n "checking for dld_link in -ldld... " >&6; } 12467if ${ac_cv_lib_dld_dld_link+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 ac_check_lib_save_LIBS=$LIBS 12471LIBS="-ldld $LIBS" 12472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12473/* end confdefs.h. */ 12474 12475/* Override any GCC internal prototype to avoid an error. 12476 Use char because int might match the return type of a GCC 12477 builtin and then its argument prototype would still apply. */ 12478#ifdef __cplusplus 12479extern "C" 12480#endif 12481char dld_link (); 12482int 12483main () 12484{ 12485return dld_link (); 12486 ; 12487 return 0; 12488} 12489_ACEOF 12490if ac_fn_c_try_link "$LINENO"; then : 12491 ac_cv_lib_dld_dld_link=yes 12492else 12493 ac_cv_lib_dld_dld_link=no 12494fi 12495rm -f core conftest.err conftest.$ac_objext \ 12496 conftest$ac_exeext conftest.$ac_ext 12497LIBS=$ac_check_lib_save_LIBS 12498fi 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12500$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12501if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12502 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12503fi 12504 12505 12506fi 12507 12508 12509fi 12510 12511 12512fi 12513 12514 12515fi 12516 12517 12518fi 12519 12520 ;; 12521 esac 12522 12523 if test no = "$lt_cv_dlopen"; then 12524 enable_dlopen=no 12525 else 12526 enable_dlopen=yes 12527 fi 12528 12529 case $lt_cv_dlopen in 12530 dlopen) 12531 save_CPPFLAGS=$CPPFLAGS 12532 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12533 12534 save_LDFLAGS=$LDFLAGS 12535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12536 12537 save_LIBS=$LIBS 12538 LIBS="$lt_cv_dlopen_libs $LIBS" 12539 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12541$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12542if ${lt_cv_dlopen_self+:} false; then : 12543 $as_echo_n "(cached) " >&6 12544else 12545 if test yes = "$cross_compiling"; then : 12546 lt_cv_dlopen_self=cross 12547else 12548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12549 lt_status=$lt_dlunknown 12550 cat > conftest.$ac_ext <<_LT_EOF 12551#line $LINENO "configure" 12552#include "confdefs.h" 12553 12554#if HAVE_DLFCN_H 12555#include <dlfcn.h> 12556#endif 12557 12558#include <stdio.h> 12559 12560#ifdef RTLD_GLOBAL 12561# define LT_DLGLOBAL RTLD_GLOBAL 12562#else 12563# ifdef DL_GLOBAL 12564# define LT_DLGLOBAL DL_GLOBAL 12565# else 12566# define LT_DLGLOBAL 0 12567# endif 12568#endif 12569 12570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12571 find out it does not work in some platform. */ 12572#ifndef LT_DLLAZY_OR_NOW 12573# ifdef RTLD_LAZY 12574# define LT_DLLAZY_OR_NOW RTLD_LAZY 12575# else 12576# ifdef DL_LAZY 12577# define LT_DLLAZY_OR_NOW DL_LAZY 12578# else 12579# ifdef RTLD_NOW 12580# define LT_DLLAZY_OR_NOW RTLD_NOW 12581# else 12582# ifdef DL_NOW 12583# define LT_DLLAZY_OR_NOW DL_NOW 12584# else 12585# define LT_DLLAZY_OR_NOW 0 12586# endif 12587# endif 12588# endif 12589# endif 12590#endif 12591 12592/* When -fvisibility=hidden is used, assume the code has been annotated 12593 correspondingly for the symbols needed. */ 12594#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12595int fnord () __attribute__((visibility("default"))); 12596#endif 12597 12598int fnord () { return 42; } 12599int main () 12600{ 12601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12602 int status = $lt_dlunknown; 12603 12604 if (self) 12605 { 12606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12607 else 12608 { 12609 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12610 else puts (dlerror ()); 12611 } 12612 /* dlclose (self); */ 12613 } 12614 else 12615 puts (dlerror ()); 12616 12617 return status; 12618} 12619_LT_EOF 12620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12621 (eval $ac_link) 2>&5 12622 ac_status=$? 12623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12624 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12625 (./conftest; exit; ) >&5 2>/dev/null 12626 lt_status=$? 12627 case x$lt_status in 12628 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12629 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12630 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12631 esac 12632 else : 12633 # compilation failed 12634 lt_cv_dlopen_self=no 12635 fi 12636fi 12637rm -fr conftest* 12638 12639 12640fi 12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12642$as_echo "$lt_cv_dlopen_self" >&6; } 12643 12644 if test yes = "$lt_cv_dlopen_self"; then 12645 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12647$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12648if ${lt_cv_dlopen_self_static+:} false; then : 12649 $as_echo_n "(cached) " >&6 12650else 12651 if test yes = "$cross_compiling"; then : 12652 lt_cv_dlopen_self_static=cross 12653else 12654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12655 lt_status=$lt_dlunknown 12656 cat > conftest.$ac_ext <<_LT_EOF 12657#line $LINENO "configure" 12658#include "confdefs.h" 12659 12660#if HAVE_DLFCN_H 12661#include <dlfcn.h> 12662#endif 12663 12664#include <stdio.h> 12665 12666#ifdef RTLD_GLOBAL 12667# define LT_DLGLOBAL RTLD_GLOBAL 12668#else 12669# ifdef DL_GLOBAL 12670# define LT_DLGLOBAL DL_GLOBAL 12671# else 12672# define LT_DLGLOBAL 0 12673# endif 12674#endif 12675 12676/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12677 find out it does not work in some platform. */ 12678#ifndef LT_DLLAZY_OR_NOW 12679# ifdef RTLD_LAZY 12680# define LT_DLLAZY_OR_NOW RTLD_LAZY 12681# else 12682# ifdef DL_LAZY 12683# define LT_DLLAZY_OR_NOW DL_LAZY 12684# else 12685# ifdef RTLD_NOW 12686# define LT_DLLAZY_OR_NOW RTLD_NOW 12687# else 12688# ifdef DL_NOW 12689# define LT_DLLAZY_OR_NOW DL_NOW 12690# else 12691# define LT_DLLAZY_OR_NOW 0 12692# endif 12693# endif 12694# endif 12695# endif 12696#endif 12697 12698/* When -fvisibility=hidden is used, assume the code has been annotated 12699 correspondingly for the symbols needed. */ 12700#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12701int fnord () __attribute__((visibility("default"))); 12702#endif 12703 12704int fnord () { return 42; } 12705int main () 12706{ 12707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12708 int status = $lt_dlunknown; 12709 12710 if (self) 12711 { 12712 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12713 else 12714 { 12715 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12716 else puts (dlerror ()); 12717 } 12718 /* dlclose (self); */ 12719 } 12720 else 12721 puts (dlerror ()); 12722 12723 return status; 12724} 12725_LT_EOF 12726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12727 (eval $ac_link) 2>&5 12728 ac_status=$? 12729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12730 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12731 (./conftest; exit; ) >&5 2>/dev/null 12732 lt_status=$? 12733 case x$lt_status in 12734 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12735 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12736 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12737 esac 12738 else : 12739 # compilation failed 12740 lt_cv_dlopen_self_static=no 12741 fi 12742fi 12743rm -fr conftest* 12744 12745 12746fi 12747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12748$as_echo "$lt_cv_dlopen_self_static" >&6; } 12749 fi 12750 12751 CPPFLAGS=$save_CPPFLAGS 12752 LDFLAGS=$save_LDFLAGS 12753 LIBS=$save_LIBS 12754 ;; 12755 esac 12756 12757 case $lt_cv_dlopen_self in 12758 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12759 *) enable_dlopen_self=unknown ;; 12760 esac 12761 12762 case $lt_cv_dlopen_self_static in 12763 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12764 *) enable_dlopen_self_static=unknown ;; 12765 esac 12766fi 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784striplib= 12785old_striplib= 12786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12787$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12788if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12789 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12790 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12792$as_echo "yes" >&6; } 12793else 12794# FIXME - insert some real tests, host_os isn't really good enough 12795 case $host_os in 12796 darwin*) 12797 if test -n "$STRIP"; then 12798 striplib="$STRIP -x" 12799 old_striplib="$STRIP -S" 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12801$as_echo "yes" >&6; } 12802 else 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12804$as_echo "no" >&6; } 12805 fi 12806 ;; 12807 *) 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12809$as_echo "no" >&6; } 12810 ;; 12811 esac 12812fi 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 # Report what library types will actually be built 12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12827$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12829$as_echo "$can_build_shared" >&6; } 12830 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12832$as_echo_n "checking whether to build shared libraries... " >&6; } 12833 test no = "$can_build_shared" && enable_shared=no 12834 12835 # On AIX, shared libraries and static libraries use the same namespace, and 12836 # are all built from PIC. 12837 case $host_os in 12838 aix3*) 12839 test yes = "$enable_shared" && enable_static=no 12840 if test -n "$RANLIB"; then 12841 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12842 postinstall_cmds='$RANLIB $lib' 12843 fi 12844 ;; 12845 12846 aix[4-9]*) 12847 if test ia64 != "$host_cpu"; then 12848 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12849 yes,aix,yes) ;; # shared object as lib.so file only 12850 yes,svr4,*) ;; # shared object as lib.so archive member only 12851 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12852 esac 12853 fi 12854 ;; 12855 esac 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12857$as_echo "$enable_shared" >&6; } 12858 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12860$as_echo_n "checking whether to build static libraries... " >&6; } 12861 # Make sure either enable_shared or enable_static is yes. 12862 test yes = "$enable_shared" || enable_static=yes 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12864$as_echo "$enable_static" >&6; } 12865 12866 12867 12868 12869fi 12870ac_ext=c 12871ac_cpp='$CPP $CPPFLAGS' 12872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12874ac_compiler_gnu=$ac_cv_c_compiler_gnu 12875 12876CC=$lt_save_CC 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 ac_config_commands="$ac_config_commands libtool" 12893 12894 12895 12896 12897# Only expand once: 12898 12899 12900 12901 12902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12903$as_echo_n "checking for ANSI C header files... " >&6; } 12904if ${ac_cv_header_stdc+:} false; then : 12905 $as_echo_n "(cached) " >&6 12906else 12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12908/* end confdefs.h. */ 12909#include <stdlib.h> 12910#include <stdarg.h> 12911#include <string.h> 12912#include <float.h> 12913 12914int 12915main () 12916{ 12917 12918 ; 12919 return 0; 12920} 12921_ACEOF 12922if ac_fn_c_try_compile "$LINENO"; then : 12923 ac_cv_header_stdc=yes 12924else 12925 ac_cv_header_stdc=no 12926fi 12927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12928 12929if test $ac_cv_header_stdc = yes; then 12930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12932/* end confdefs.h. */ 12933#include <string.h> 12934 12935_ACEOF 12936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12937 $EGREP "memchr" >/dev/null 2>&1; then : 12938 12939else 12940 ac_cv_header_stdc=no 12941fi 12942rm -f conftest* 12943 12944fi 12945 12946if test $ac_cv_header_stdc = yes; then 12947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12949/* end confdefs.h. */ 12950#include <stdlib.h> 12951 12952_ACEOF 12953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12954 $EGREP "free" >/dev/null 2>&1; then : 12955 12956else 12957 ac_cv_header_stdc=no 12958fi 12959rm -f conftest* 12960 12961fi 12962 12963if test $ac_cv_header_stdc = yes; then 12964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12965 if test "$cross_compiling" = yes; then : 12966 : 12967else 12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12969/* end confdefs.h. */ 12970#include <ctype.h> 12971#include <stdlib.h> 12972#if ((' ' & 0x0FF) == 0x020) 12973# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12974# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12975#else 12976# define ISLOWER(c) \ 12977 (('a' <= (c) && (c) <= 'i') \ 12978 || ('j' <= (c) && (c) <= 'r') \ 12979 || ('s' <= (c) && (c) <= 'z')) 12980# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12981#endif 12982 12983#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12984int 12985main () 12986{ 12987 int i; 12988 for (i = 0; i < 256; i++) 12989 if (XOR (islower (i), ISLOWER (i)) 12990 || toupper (i) != TOUPPER (i)) 12991 return 2; 12992 return 0; 12993} 12994_ACEOF 12995if ac_fn_c_try_run "$LINENO"; then : 12996 12997else 12998 ac_cv_header_stdc=no 12999fi 13000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13001 conftest.$ac_objext conftest.beam conftest.$ac_ext 13002fi 13003 13004fi 13005fi 13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13007$as_echo "$ac_cv_header_stdc" >&6; } 13008if test $ac_cv_header_stdc = yes; then 13009 13010$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13011 13012fi 13013 13014for ac_header in stdio.h sys/wait.h sys/time.h 13015do : 13016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13017ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13019 cat >>confdefs.h <<_ACEOF 13020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13021_ACEOF 13022 13023fi 13024 13025done 13026 13027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13028$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13029if ${ac_cv_header_time+:} false; then : 13030 $as_echo_n "(cached) " >&6 13031else 13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13033/* end confdefs.h. */ 13034#include <sys/types.h> 13035#include <sys/time.h> 13036#include <time.h> 13037 13038int 13039main () 13040{ 13041if ((struct tm *) 0) 13042return 0; 13043 ; 13044 return 0; 13045} 13046_ACEOF 13047if ac_fn_c_try_compile "$LINENO"; then : 13048 ac_cv_header_time=yes 13049else 13050 ac_cv_header_time=no 13051fi 13052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13053fi 13054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13055$as_echo "$ac_cv_header_time" >&6; } 13056if test $ac_cv_header_time = yes; then 13057 13058$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13059 13060fi 13061 13062 13063 13064# Check whether --with-ldapaddressbook was given. 13065if test "${with_ldapaddressbook+set}" = set; then : 13066 withval=$with_ldapaddressbook; HAVE_OPENLDAP="$withval" 13067else 13068 HAVE_OPENLDAP=1 13069fi 13070 13071 13072OPENLDAP_LIBS="" 13073 13074if test "$HAVE_OPENLDAP" = 1 13075then 13076 HAVE_OPENLDAP=0 13077 13078for ac_header in lber.h 13079do : 13080 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" 13081if test "x$ac_cv_header_lber_h" = xyes; then : 13082 cat >>confdefs.h <<_ACEOF 13083#define HAVE_LBER_H 1 13084_ACEOF 13085 13086fi 13087 13088done 13089 13090for ac_header in ldap.h 13091do : 13092 ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" " 13093#if HAVE_LBER_H 13094#include <lber.h> 13095#endif 13096 13097" 13098if test "x$ac_cv_header_ldap_h" = xyes; then : 13099 cat >>confdefs.h <<_ACEOF 13100#define HAVE_LDAP_H 1 13101_ACEOF 13102 HAVE_OPENLDAP=1 13103fi 13104 13105done 13106 13107 13108if test "$HAVE_OPENLDAP" = 1 13109then 13110 save_LIBS="$LIBS" 13111 LIBS="$LIBS -lldap" 13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13113/* end confdefs.h. */ 13114 13115#include <stdio.h> 13116#if HAVE_LBER_H 13117#include <lber.h> 13118#endif 13119#include <ldap.h> 13120 13121int 13122main () 13123{ 13124 13125 LDAP *p=NULL; 13126 13127 ldap_search(p, "", 0, NULL, NULL, 0); 13128 13129 ; 13130 return 0; 13131} 13132_ACEOF 13133if ac_fn_c_try_link "$LINENO"; then : 13134 13135 : 13136 13137else 13138 13139 as_fn_error $? "ldap.h header found, but a test compile failed -- check ldapaddressbook/config.log for more details" "$LINENO" 5 13140 13141fi 13142rm -f core conftest.err conftest.$ac_objext \ 13143 conftest$ac_exeext conftest.$ac_ext 13144 LIBS="$save_LIBS" 13145 OPENLDAP_LIBS="-lldap" 13146fi 13147fi 13148 13149 13150cat >>confdefs.h <<_ACEOF 13151#define HAVE_OPENLDAP $HAVE_OPENLDAP 13152_ACEOF 13153 13154 13155 if test $HAVE_OPENLDAP = 1; then 13156 HAVE_OPENLDAP_TRUE= 13157 HAVE_OPENLDAP_FALSE='#' 13158else 13159 HAVE_OPENLDAP_TRUE='#' 13160 HAVE_OPENLDAP_FALSE= 13161fi 13162 13163 13164 13165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13166$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13167if ${ac_cv_header_sys_wait_h+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172#include <sys/types.h> 13173#include <sys/wait.h> 13174#ifndef WEXITSTATUS 13175# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13176#endif 13177#ifndef WIFEXITED 13178# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13179#endif 13180 13181int 13182main () 13183{ 13184 int s; 13185 wait (&s); 13186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13187 ; 13188 return 0; 13189} 13190_ACEOF 13191if ac_fn_c_try_compile "$LINENO"; then : 13192 ac_cv_header_sys_wait_h=yes 13193else 13194 ac_cv_header_sys_wait_h=no 13195fi 13196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13197fi 13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13199$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13200if test $ac_cv_header_sys_wait_h = yes; then 13201 13202$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13203 13204fi 13205 13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13207$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13208if ${ac_cv_c_const+:} false; then : 13209 $as_echo_n "(cached) " >&6 13210else 13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13212/* end confdefs.h. */ 13213 13214int 13215main () 13216{ 13217 13218#ifndef __cplusplus 13219 /* Ultrix mips cc rejects this sort of thing. */ 13220 typedef int charset[2]; 13221 const charset cs = { 0, 0 }; 13222 /* SunOS 4.1.1 cc rejects this. */ 13223 char const *const *pcpcc; 13224 char **ppc; 13225 /* NEC SVR4.0.2 mips cc rejects this. */ 13226 struct point {int x, y;}; 13227 static struct point const zero = {0,0}; 13228 /* AIX XL C 1.02.0.0 rejects this. 13229 It does not let you subtract one const X* pointer from another in 13230 an arm of an if-expression whose if-part is not a constant 13231 expression */ 13232 const char *g = "string"; 13233 pcpcc = &g + (g ? g-g : 0); 13234 /* HPUX 7.0 cc rejects these. */ 13235 ++pcpcc; 13236 ppc = (char**) pcpcc; 13237 pcpcc = (char const *const *) ppc; 13238 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13239 char tx; 13240 char *t = &tx; 13241 char const *s = 0 ? (char *) 0 : (char const *) 0; 13242 13243 *t++ = 0; 13244 if (s) return 0; 13245 } 13246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13247 int x[] = {25, 17}; 13248 const int *foo = &x[0]; 13249 ++foo; 13250 } 13251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13252 typedef const int *iptr; 13253 iptr p = 0; 13254 ++p; 13255 } 13256 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13258 struct s { int j; const int *ap[3]; } bx; 13259 struct s *b = &bx; b->j = 5; 13260 } 13261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13262 const int foo = 10; 13263 if (!foo) return 0; 13264 } 13265 return !cs[0] && !zero.x; 13266#endif 13267 13268 ; 13269 return 0; 13270} 13271_ACEOF 13272if ac_fn_c_try_compile "$LINENO"; then : 13273 ac_cv_c_const=yes 13274else 13275 ac_cv_c_const=no 13276fi 13277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13278fi 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13280$as_echo "$ac_cv_c_const" >&6; } 13281if test $ac_cv_c_const = no; then 13282 13283$as_echo "#define const /**/" >>confdefs.h 13284 13285fi 13286 13287# Check whether --enable-largefile was given. 13288if test "${enable_largefile+set}" = set; then : 13289 enableval=$enable_largefile; 13290fi 13291 13292if test "$enable_largefile" != no; then 13293 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13295$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13296if ${ac_cv_sys_largefile_CC+:} false; then : 13297 $as_echo_n "(cached) " >&6 13298else 13299 ac_cv_sys_largefile_CC=no 13300 if test "$GCC" != yes; then 13301 ac_save_CC=$CC 13302 while :; do 13303 # IRIX 6.2 and later do not support large files by default, 13304 # so use the C compiler's -n32 option if that helps. 13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13306/* end confdefs.h. */ 13307#include <sys/types.h> 13308 /* Check that off_t can represent 2**63 - 1 correctly. 13309 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13310 since some C++ compilers masquerading as C compilers 13311 incorrectly reject 9223372036854775807. */ 13312#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13314 && LARGE_OFF_T % 2147483647 == 1) 13315 ? 1 : -1]; 13316int 13317main () 13318{ 13319 13320 ; 13321 return 0; 13322} 13323_ACEOF 13324 if ac_fn_c_try_compile "$LINENO"; then : 13325 break 13326fi 13327rm -f core conftest.err conftest.$ac_objext 13328 CC="$CC -n32" 13329 if ac_fn_c_try_compile "$LINENO"; then : 13330 ac_cv_sys_largefile_CC=' -n32'; break 13331fi 13332rm -f core conftest.err conftest.$ac_objext 13333 break 13334 done 13335 CC=$ac_save_CC 13336 rm -f conftest.$ac_ext 13337 fi 13338fi 13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13340$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13341 if test "$ac_cv_sys_largefile_CC" != no; then 13342 CC=$CC$ac_cv_sys_largefile_CC 13343 fi 13344 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13346$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13347if ${ac_cv_sys_file_offset_bits+:} false; then : 13348 $as_echo_n "(cached) " >&6 13349else 13350 while :; do 13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13352/* end confdefs.h. */ 13353#include <sys/types.h> 13354 /* Check that off_t can represent 2**63 - 1 correctly. 13355 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13356 since some C++ compilers masquerading as C compilers 13357 incorrectly reject 9223372036854775807. */ 13358#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13360 && LARGE_OFF_T % 2147483647 == 1) 13361 ? 1 : -1]; 13362int 13363main () 13364{ 13365 13366 ; 13367 return 0; 13368} 13369_ACEOF 13370if ac_fn_c_try_compile "$LINENO"; then : 13371 ac_cv_sys_file_offset_bits=no; break 13372fi 13373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13375/* end confdefs.h. */ 13376#define _FILE_OFFSET_BITS 64 13377#include <sys/types.h> 13378 /* Check that off_t can represent 2**63 - 1 correctly. 13379 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13380 since some C++ compilers masquerading as C compilers 13381 incorrectly reject 9223372036854775807. */ 13382#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13384 && LARGE_OFF_T % 2147483647 == 1) 13385 ? 1 : -1]; 13386int 13387main () 13388{ 13389 13390 ; 13391 return 0; 13392} 13393_ACEOF 13394if ac_fn_c_try_compile "$LINENO"; then : 13395 ac_cv_sys_file_offset_bits=64; break 13396fi 13397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13398 ac_cv_sys_file_offset_bits=unknown 13399 break 13400done 13401fi 13402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13403$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13404case $ac_cv_sys_file_offset_bits in #( 13405 no | unknown) ;; 13406 *) 13407cat >>confdefs.h <<_ACEOF 13408#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13409_ACEOF 13410;; 13411esac 13412rm -rf conftest* 13413 if test $ac_cv_sys_file_offset_bits = unknown; then 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13415$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13416if ${ac_cv_sys_large_files+:} false; then : 13417 $as_echo_n "(cached) " >&6 13418else 13419 while :; do 13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422#include <sys/types.h> 13423 /* Check that off_t can represent 2**63 - 1 correctly. 13424 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13425 since some C++ compilers masquerading as C compilers 13426 incorrectly reject 9223372036854775807. */ 13427#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13429 && LARGE_OFF_T % 2147483647 == 1) 13430 ? 1 : -1]; 13431int 13432main () 13433{ 13434 13435 ; 13436 return 0; 13437} 13438_ACEOF 13439if ac_fn_c_try_compile "$LINENO"; then : 13440 ac_cv_sys_large_files=no; break 13441fi 13442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13444/* end confdefs.h. */ 13445#define _LARGE_FILES 1 13446#include <sys/types.h> 13447 /* Check that off_t can represent 2**63 - 1 correctly. 13448 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13449 since some C++ compilers masquerading as C compilers 13450 incorrectly reject 9223372036854775807. */ 13451#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13453 && LARGE_OFF_T % 2147483647 == 1) 13454 ? 1 : -1]; 13455int 13456main () 13457{ 13458 13459 ; 13460 return 0; 13461} 13462_ACEOF 13463if ac_fn_c_try_compile "$LINENO"; then : 13464 ac_cv_sys_large_files=1; break 13465fi 13466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13467 ac_cv_sys_large_files=unknown 13468 break 13469done 13470fi 13471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13472$as_echo "$ac_cv_sys_large_files" >&6; } 13473case $ac_cv_sys_large_files in #( 13474 no | unknown) ;; 13475 *) 13476cat >>confdefs.h <<_ACEOF 13477#define _LARGE_FILES $ac_cv_sys_large_files 13478_ACEOF 13479;; 13480esac 13481rm -rf conftest* 13482 fi 13483 13484 13485fi 13486 13487 13488 if test -d ${srcdir}/../docbook; then 13489 HAVE_SGML_TRUE= 13490 HAVE_SGML_FALSE='#' 13491else 13492 HAVE_SGML_TRUE='#' 13493 HAVE_SGML_FALSE= 13494fi 13495 13496 13497 13498ac_config_files="$ac_config_files Makefile" 13499 13500cat >confcache <<\_ACEOF 13501# This file is a shell script that caches the results of configure 13502# tests run on this system so they can be shared between configure 13503# scripts and configure runs, see configure's option --config-cache. 13504# It is not useful on other systems. If it contains results you don't 13505# want to keep, you may remove or edit it. 13506# 13507# config.status only pays attention to the cache file if you give it 13508# the --recheck option to rerun configure. 13509# 13510# `ac_cv_env_foo' variables (set or unset) will be overridden when 13511# loading this file, other *unset* `ac_cv_foo' will be assigned the 13512# following values. 13513 13514_ACEOF 13515 13516# The following way of writing the cache mishandles newlines in values, 13517# but we know of no workaround that is simple, portable, and efficient. 13518# So, we kill variables containing newlines. 13519# Ultrix sh set writes to stderr and can't be redirected directly, 13520# and sets the high bit in the cache file unless we assign to the vars. 13521( 13522 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13523 eval ac_val=\$$ac_var 13524 case $ac_val in #( 13525 *${as_nl}*) 13526 case $ac_var in #( 13527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13528$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13529 esac 13530 case $ac_var in #( 13531 _ | IFS | as_nl) ;; #( 13532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13533 *) { eval $ac_var=; unset $ac_var;} ;; 13534 esac ;; 13535 esac 13536 done 13537 13538 (set) 2>&1 | 13539 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13540 *${as_nl}ac_space=\ *) 13541 # `set' does not quote correctly, so add quotes: double-quote 13542 # substitution turns \\\\ into \\, and sed turns \\ into \. 13543 sed -n \ 13544 "s/'/'\\\\''/g; 13545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13546 ;; #( 13547 *) 13548 # `set' quotes correctly as required by POSIX, so do not add quotes. 13549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13550 ;; 13551 esac | 13552 sort 13553) | 13554 sed ' 13555 /^ac_cv_env_/b end 13556 t clear 13557 :clear 13558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13559 t end 13560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13561 :end' >>confcache 13562if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13563 if test -w "$cache_file"; then 13564 if test "x$cache_file" != "x/dev/null"; then 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13566$as_echo "$as_me: updating cache $cache_file" >&6;} 13567 if test ! -f "$cache_file" || test -h "$cache_file"; then 13568 cat confcache >"$cache_file" 13569 else 13570 case $cache_file in #( 13571 */* | ?:*) 13572 mv -f confcache "$cache_file"$$ && 13573 mv -f "$cache_file"$$ "$cache_file" ;; #( 13574 *) 13575 mv -f confcache "$cache_file" ;; 13576 esac 13577 fi 13578 fi 13579 else 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13581$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13582 fi 13583fi 13584rm -f confcache 13585 13586test "x$prefix" = xNONE && prefix=$ac_default_prefix 13587# Let make expand exec_prefix. 13588test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13589 13590DEFS=-DHAVE_CONFIG_H 13591 13592ac_libobjs= 13593ac_ltlibobjs= 13594U= 13595for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13596 # 1. Remove the extension, and $U if already installed. 13597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13598 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13600 # will be set to the directory where LIBOBJS objects are built. 13601 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13602 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13603done 13604LIBOBJS=$ac_libobjs 13605 13606LTLIBOBJS=$ac_ltlibobjs 13607 13608 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13610$as_echo_n "checking that generated files are newer than configure... " >&6; } 13611 if test -n "$am_sleep_pid"; then 13612 # Hide warnings about reused PIDs. 13613 wait $am_sleep_pid 2>/dev/null 13614 fi 13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13616$as_echo "done" >&6; } 13617 if test -n "$EXEEXT"; then 13618 am__EXEEXT_TRUE= 13619 am__EXEEXT_FALSE='#' 13620else 13621 am__EXEEXT_TRUE='#' 13622 am__EXEEXT_FALSE= 13623fi 13624 13625if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13626 as_fn_error $? "conditional \"AMDEP\" was never defined. 13627Usually this means the macro was only invoked conditionally." "$LINENO" 5 13628fi 13629if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13630 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13631Usually this means the macro was only invoked conditionally." "$LINENO" 5 13632fi 13633if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13634 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13635Usually this means the macro was only invoked conditionally." "$LINENO" 5 13636fi 13637if test -z "${HAVE_OPENLDAP_TRUE}" && test -z "${HAVE_OPENLDAP_FALSE}"; then 13638 as_fn_error $? "conditional \"HAVE_OPENLDAP\" was never defined. 13639Usually this means the macro was only invoked conditionally." "$LINENO" 5 13640fi 13641if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 13642 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 13643Usually this means the macro was only invoked conditionally." "$LINENO" 5 13644fi 13645 13646: "${CONFIG_STATUS=./config.status}" 13647ac_write_fail=0 13648ac_clean_files_save=$ac_clean_files 13649ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13650{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13651$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13652as_write_fail=0 13653cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13654#! $SHELL 13655# Generated by $as_me. 13656# Run this file to recreate the current configuration. 13657# Compiler output produced by configure, useful for debugging 13658# configure, is in config.log if it exists. 13659 13660debug=false 13661ac_cs_recheck=false 13662ac_cs_silent=false 13663 13664SHELL=\${CONFIG_SHELL-$SHELL} 13665export SHELL 13666_ASEOF 13667cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13668## -------------------- ## 13669## M4sh Initialization. ## 13670## -------------------- ## 13671 13672# Be more Bourne compatible 13673DUALCASE=1; export DUALCASE # for MKS sh 13674if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13675 emulate sh 13676 NULLCMD=: 13677 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13678 # is contrary to our usage. Disable this feature. 13679 alias -g '${1+"$@"}'='"$@"' 13680 setopt NO_GLOB_SUBST 13681else 13682 case `(set -o) 2>/dev/null` in #( 13683 *posix*) : 13684 set -o posix ;; #( 13685 *) : 13686 ;; 13687esac 13688fi 13689 13690 13691as_nl=' 13692' 13693export as_nl 13694# Printing a long string crashes Solaris 7 /usr/bin/printf. 13695as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13696as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13697as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13698# Prefer a ksh shell builtin over an external printf program on Solaris, 13699# but without wasting forks for bash or zsh. 13700if test -z "$BASH_VERSION$ZSH_VERSION" \ 13701 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13702 as_echo='print -r --' 13703 as_echo_n='print -rn --' 13704elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13705 as_echo='printf %s\n' 13706 as_echo_n='printf %s' 13707else 13708 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13709 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13710 as_echo_n='/usr/ucb/echo -n' 13711 else 13712 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13713 as_echo_n_body='eval 13714 arg=$1; 13715 case $arg in #( 13716 *"$as_nl"*) 13717 expr "X$arg" : "X\\(.*\\)$as_nl"; 13718 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13719 esac; 13720 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13721 ' 13722 export as_echo_n_body 13723 as_echo_n='sh -c $as_echo_n_body as_echo' 13724 fi 13725 export as_echo_body 13726 as_echo='sh -c $as_echo_body as_echo' 13727fi 13728 13729# The user is always right. 13730if test "${PATH_SEPARATOR+set}" != set; then 13731 PATH_SEPARATOR=: 13732 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13733 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13734 PATH_SEPARATOR=';' 13735 } 13736fi 13737 13738 13739# IFS 13740# We need space, tab and new line, in precisely that order. Quoting is 13741# there to prevent editors from complaining about space-tab. 13742# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13743# splitting by setting IFS to empty value.) 13744IFS=" "" $as_nl" 13745 13746# Find who we are. Look in the path if we contain no directory separator. 13747as_myself= 13748case $0 in #(( 13749 *[\\/]* ) as_myself=$0 ;; 13750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13751for as_dir in $PATH 13752do 13753 IFS=$as_save_IFS 13754 test -z "$as_dir" && as_dir=. 13755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13756 done 13757IFS=$as_save_IFS 13758 13759 ;; 13760esac 13761# We did not find ourselves, most probably we were run as `sh COMMAND' 13762# in which case we are not to be found in the path. 13763if test "x$as_myself" = x; then 13764 as_myself=$0 13765fi 13766if test ! -f "$as_myself"; then 13767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13768 exit 1 13769fi 13770 13771# Unset variables that we do not need and which cause bugs (e.g. in 13772# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13773# suppresses any "Segmentation fault" message there. '((' could 13774# trigger a bug in pdksh 5.2.14. 13775for as_var in BASH_ENV ENV MAIL MAILPATH 13776do eval test x\${$as_var+set} = xset \ 13777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13778done 13779PS1='$ ' 13780PS2='> ' 13781PS4='+ ' 13782 13783# NLS nuisances. 13784LC_ALL=C 13785export LC_ALL 13786LANGUAGE=C 13787export LANGUAGE 13788 13789# CDPATH. 13790(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13791 13792 13793# as_fn_error STATUS ERROR [LINENO LOG_FD] 13794# ---------------------------------------- 13795# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13796# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13797# script with STATUS, using 1 if that was 0. 13798as_fn_error () 13799{ 13800 as_status=$1; test $as_status -eq 0 && as_status=1 13801 if test "$4"; then 13802 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13804 fi 13805 $as_echo "$as_me: error: $2" >&2 13806 as_fn_exit $as_status 13807} # as_fn_error 13808 13809 13810# as_fn_set_status STATUS 13811# ----------------------- 13812# Set $? to STATUS, without forking. 13813as_fn_set_status () 13814{ 13815 return $1 13816} # as_fn_set_status 13817 13818# as_fn_exit STATUS 13819# ----------------- 13820# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13821as_fn_exit () 13822{ 13823 set +e 13824 as_fn_set_status $1 13825 exit $1 13826} # as_fn_exit 13827 13828# as_fn_unset VAR 13829# --------------- 13830# Portably unset VAR. 13831as_fn_unset () 13832{ 13833 { eval $1=; unset $1;} 13834} 13835as_unset=as_fn_unset 13836# as_fn_append VAR VALUE 13837# ---------------------- 13838# Append the text in VALUE to the end of the definition contained in VAR. Take 13839# advantage of any shell optimizations that allow amortized linear growth over 13840# repeated appends, instead of the typical quadratic growth present in naive 13841# implementations. 13842if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13843 eval 'as_fn_append () 13844 { 13845 eval $1+=\$2 13846 }' 13847else 13848 as_fn_append () 13849 { 13850 eval $1=\$$1\$2 13851 } 13852fi # as_fn_append 13853 13854# as_fn_arith ARG... 13855# ------------------ 13856# Perform arithmetic evaluation on the ARGs, and store the result in the 13857# global $as_val. Take advantage of shells that can avoid forks. The arguments 13858# must be portable across $(()) and expr. 13859if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13860 eval 'as_fn_arith () 13861 { 13862 as_val=$(( $* )) 13863 }' 13864else 13865 as_fn_arith () 13866 { 13867 as_val=`expr "$@" || test $? -eq 1` 13868 } 13869fi # as_fn_arith 13870 13871 13872if expr a : '\(a\)' >/dev/null 2>&1 && 13873 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13874 as_expr=expr 13875else 13876 as_expr=false 13877fi 13878 13879if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13880 as_basename=basename 13881else 13882 as_basename=false 13883fi 13884 13885if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13886 as_dirname=dirname 13887else 13888 as_dirname=false 13889fi 13890 13891as_me=`$as_basename -- "$0" || 13892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13893 X"$0" : 'X\(//\)$' \| \ 13894 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13895$as_echo X/"$0" | 13896 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13897 s//\1/ 13898 q 13899 } 13900 /^X\/\(\/\/\)$/{ 13901 s//\1/ 13902 q 13903 } 13904 /^X\/\(\/\).*/{ 13905 s//\1/ 13906 q 13907 } 13908 s/.*/./; q'` 13909 13910# Avoid depending upon Character Ranges. 13911as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13912as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13913as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13914as_cr_digits='0123456789' 13915as_cr_alnum=$as_cr_Letters$as_cr_digits 13916 13917ECHO_C= ECHO_N= ECHO_T= 13918case `echo -n x` in #((((( 13919-n*) 13920 case `echo 'xy\c'` in 13921 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13922 xy) ECHO_C='\c';; 13923 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13924 ECHO_T=' ';; 13925 esac;; 13926*) 13927 ECHO_N='-n';; 13928esac 13929 13930rm -f conf$$ conf$$.exe conf$$.file 13931if test -d conf$$.dir; then 13932 rm -f conf$$.dir/conf$$.file 13933else 13934 rm -f conf$$.dir 13935 mkdir conf$$.dir 2>/dev/null 13936fi 13937if (echo >conf$$.file) 2>/dev/null; then 13938 if ln -s conf$$.file conf$$ 2>/dev/null; then 13939 as_ln_s='ln -s' 13940 # ... but there are two gotchas: 13941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13943 # In both cases, we have to default to `cp -pR'. 13944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13945 as_ln_s='cp -pR' 13946 elif ln conf$$.file conf$$ 2>/dev/null; then 13947 as_ln_s=ln 13948 else 13949 as_ln_s='cp -pR' 13950 fi 13951else 13952 as_ln_s='cp -pR' 13953fi 13954rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13955rmdir conf$$.dir 2>/dev/null 13956 13957 13958# as_fn_mkdir_p 13959# ------------- 13960# Create "$as_dir" as a directory, including parents if necessary. 13961as_fn_mkdir_p () 13962{ 13963 13964 case $as_dir in #( 13965 -*) as_dir=./$as_dir;; 13966 esac 13967 test -d "$as_dir" || eval $as_mkdir_p || { 13968 as_dirs= 13969 while :; do 13970 case $as_dir in #( 13971 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13972 *) as_qdir=$as_dir;; 13973 esac 13974 as_dirs="'$as_qdir' $as_dirs" 13975 as_dir=`$as_dirname -- "$as_dir" || 13976$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13977 X"$as_dir" : 'X\(//\)[^/]' \| \ 13978 X"$as_dir" : 'X\(//\)$' \| \ 13979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13980$as_echo X"$as_dir" | 13981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13982 s//\1/ 13983 q 13984 } 13985 /^X\(\/\/\)[^/].*/{ 13986 s//\1/ 13987 q 13988 } 13989 /^X\(\/\/\)$/{ 13990 s//\1/ 13991 q 13992 } 13993 /^X\(\/\).*/{ 13994 s//\1/ 13995 q 13996 } 13997 s/.*/./; q'` 13998 test -d "$as_dir" && break 13999 done 14000 test -z "$as_dirs" || eval "mkdir $as_dirs" 14001 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14002 14003 14004} # as_fn_mkdir_p 14005if mkdir -p . 2>/dev/null; then 14006 as_mkdir_p='mkdir -p "$as_dir"' 14007else 14008 test -d ./-p && rmdir ./-p 14009 as_mkdir_p=false 14010fi 14011 14012 14013# as_fn_executable_p FILE 14014# ----------------------- 14015# Test if FILE is an executable regular file. 14016as_fn_executable_p () 14017{ 14018 test -f "$1" && test -x "$1" 14019} # as_fn_executable_p 14020as_test_x='test -x' 14021as_executable_p=as_fn_executable_p 14022 14023# Sed expression to map a string onto a valid CPP name. 14024as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14025 14026# Sed expression to map a string onto a valid variable name. 14027as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14028 14029 14030exec 6>&1 14031## ----------------------------------- ## 14032## Main body of $CONFIG_STATUS script. ## 14033## ----------------------------------- ## 14034_ASEOF 14035test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14036 14037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14038# Save the log message, to keep $0 and so on meaningful, and to 14039# report actual input values of CONFIG_FILES etc. instead of their 14040# values after options handling. 14041ac_log=" 14042This file was extended by ldapaddressbook $as_me 0.10, which was 14043generated by GNU Autoconf 2.69. Invocation command line was 14044 14045 CONFIG_FILES = $CONFIG_FILES 14046 CONFIG_HEADERS = $CONFIG_HEADERS 14047 CONFIG_LINKS = $CONFIG_LINKS 14048 CONFIG_COMMANDS = $CONFIG_COMMANDS 14049 $ $0 $@ 14050 14051on `(hostname || uname -n) 2>/dev/null | sed 1q` 14052" 14053 14054_ACEOF 14055 14056case $ac_config_files in *" 14057"*) set x $ac_config_files; shift; ac_config_files=$*;; 14058esac 14059 14060case $ac_config_headers in *" 14061"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14062esac 14063 14064 14065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14066# Files that config.status was made for. 14067config_files="$ac_config_files" 14068config_headers="$ac_config_headers" 14069config_commands="$ac_config_commands" 14070 14071_ACEOF 14072 14073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14074ac_cs_usage="\ 14075\`$as_me' instantiates files and other configuration actions 14076from templates according to the current configuration. Unless the files 14077and actions are specified as TAGs, all are instantiated by default. 14078 14079Usage: $0 [OPTION]... [TAG]... 14080 14081 -h, --help print this help, then exit 14082 -V, --version print version number and configuration settings, then exit 14083 --config print configuration, then exit 14084 -q, --quiet, --silent 14085 do not print progress messages 14086 -d, --debug don't remove temporary files 14087 --recheck update $as_me by reconfiguring in the same conditions 14088 --file=FILE[:TEMPLATE] 14089 instantiate the configuration file FILE 14090 --header=FILE[:TEMPLATE] 14091 instantiate the configuration header FILE 14092 14093Configuration files: 14094$config_files 14095 14096Configuration headers: 14097$config_headers 14098 14099Configuration commands: 14100$config_commands 14101 14102Report bugs to <courier-users@lists.sourceforge.net>." 14103 14104_ACEOF 14105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14106ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14107ac_cs_version="\\ 14108ldapaddressbook config.status 0.10 14109configured by $0, generated by GNU Autoconf 2.69, 14110 with options \\"\$ac_cs_config\\" 14111 14112Copyright (C) 2012 Free Software Foundation, Inc. 14113This config.status script is free software; the Free Software Foundation 14114gives unlimited permission to copy, distribute and modify it." 14115 14116ac_pwd='$ac_pwd' 14117srcdir='$srcdir' 14118INSTALL='$INSTALL' 14119MKDIR_P='$MKDIR_P' 14120AWK='$AWK' 14121test -n "\$AWK" || AWK=awk 14122_ACEOF 14123 14124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14125# The default lists apply if the user does not specify any file. 14126ac_need_defaults=: 14127while test $# != 0 14128do 14129 case $1 in 14130 --*=?*) 14131 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14132 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14133 ac_shift=: 14134 ;; 14135 --*=) 14136 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14137 ac_optarg= 14138 ac_shift=: 14139 ;; 14140 *) 14141 ac_option=$1 14142 ac_optarg=$2 14143 ac_shift=shift 14144 ;; 14145 esac 14146 14147 case $ac_option in 14148 # Handling of the options. 14149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14150 ac_cs_recheck=: ;; 14151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14152 $as_echo "$ac_cs_version"; exit ;; 14153 --config | --confi | --conf | --con | --co | --c ) 14154 $as_echo "$ac_cs_config"; exit ;; 14155 --debug | --debu | --deb | --de | --d | -d ) 14156 debug=: ;; 14157 --file | --fil | --fi | --f ) 14158 $ac_shift 14159 case $ac_optarg in 14160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14161 '') as_fn_error $? "missing file argument" ;; 14162 esac 14163 as_fn_append CONFIG_FILES " '$ac_optarg'" 14164 ac_need_defaults=false;; 14165 --header | --heade | --head | --hea ) 14166 $ac_shift 14167 case $ac_optarg in 14168 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14169 esac 14170 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14171 ac_need_defaults=false;; 14172 --he | --h) 14173 # Conflict between --help and --header 14174 as_fn_error $? "ambiguous option: \`$1' 14175Try \`$0 --help' for more information.";; 14176 --help | --hel | -h ) 14177 $as_echo "$ac_cs_usage"; exit ;; 14178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14179 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14180 ac_cs_silent=: ;; 14181 14182 # This is an error. 14183 -*) as_fn_error $? "unrecognized option: \`$1' 14184Try \`$0 --help' for more information." ;; 14185 14186 *) as_fn_append ac_config_targets " $1" 14187 ac_need_defaults=false ;; 14188 14189 esac 14190 shift 14191done 14192 14193ac_configure_extra_args= 14194 14195if $ac_cs_silent; then 14196 exec 6>/dev/null 14197 ac_configure_extra_args="$ac_configure_extra_args --silent" 14198fi 14199 14200_ACEOF 14201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14202if \$ac_cs_recheck; then 14203 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14204 shift 14205 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14206 CONFIG_SHELL='$SHELL' 14207 export CONFIG_SHELL 14208 exec "\$@" 14209fi 14210 14211_ACEOF 14212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14213exec 5>>config.log 14214{ 14215 echo 14216 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14217## Running $as_me. ## 14218_ASBOX 14219 $as_echo "$ac_log" 14220} >&5 14221 14222_ACEOF 14223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14224# 14225# INIT-COMMANDS 14226# 14227AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14228 14229 14230# The HP-UX ksh and POSIX shell print the target directory to stdout 14231# if CDPATH is set. 14232(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14233 14234sed_quote_subst='$sed_quote_subst' 14235double_quote_subst='$double_quote_subst' 14236delay_variable_subst='$delay_variable_subst' 14237macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14238macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14239enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14240enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14241pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14242enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14243shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14244SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14245ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14246PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14247host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14248host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14249host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14250build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14251build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14252build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14253SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14254Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14255GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14256EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14257FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14258LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14259NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14260LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14261max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14262ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14263exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14264lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14265lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14266lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14267lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14268lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14269reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14270reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14271OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14272deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14273file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14274file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14275want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14276DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14277sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14278AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14279AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14280archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14281STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14282RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14283old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14284old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14285old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14286lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14287CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14288CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14289compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14290GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14291lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14292lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14293lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14294lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14295lt_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"`' 14296lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14297nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14298lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14299lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14300objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14301MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14302lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14303lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14304lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14305lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14306lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14307need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14308MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14309DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14310NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14311LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14312OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14313OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14314libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14315shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14316extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14317archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14318enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14319export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14320whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14321compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14322old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14323old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14324archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14325archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14326module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14327module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14328with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14329allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14330no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14331hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14332hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14333hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14334hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14335hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14336hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14337hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14338inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14339link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14340always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14341export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14342exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14343include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14344prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14345postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14346file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14347variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14348need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14349need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14350version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14351runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14352shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14353shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14354libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14355library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14356soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14357install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14358postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14359postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14360finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14361finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14362hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14363sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14364configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14365configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14366hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14367enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14368enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14369enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14370old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14371striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14372 14373LTCC='$LTCC' 14374LTCFLAGS='$LTCFLAGS' 14375compiler='$compiler_DEFAULT' 14376 14377# A function that is used when there is no print builtin or printf. 14378func_fallback_echo () 14379{ 14380 eval 'cat <<_LTECHO_EOF 14381\$1 14382_LTECHO_EOF' 14383} 14384 14385# Quote evaled strings. 14386for var in SHELL \ 14387ECHO \ 14388PATH_SEPARATOR \ 14389SED \ 14390GREP \ 14391EGREP \ 14392FGREP \ 14393LD \ 14394NM \ 14395LN_S \ 14396lt_SP2NL \ 14397lt_NL2SP \ 14398reload_flag \ 14399OBJDUMP \ 14400deplibs_check_method \ 14401file_magic_cmd \ 14402file_magic_glob \ 14403want_nocaseglob \ 14404DLLTOOL \ 14405sharedlib_from_linklib_cmd \ 14406AR \ 14407AR_FLAGS \ 14408archiver_list_spec \ 14409STRIP \ 14410RANLIB \ 14411CC \ 14412CFLAGS \ 14413compiler \ 14414lt_cv_sys_global_symbol_pipe \ 14415lt_cv_sys_global_symbol_to_cdecl \ 14416lt_cv_sys_global_symbol_to_import \ 14417lt_cv_sys_global_symbol_to_c_name_address \ 14418lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14419lt_cv_nm_interface \ 14420nm_file_list_spec \ 14421lt_cv_truncate_bin \ 14422lt_prog_compiler_no_builtin_flag \ 14423lt_prog_compiler_pic \ 14424lt_prog_compiler_wl \ 14425lt_prog_compiler_static \ 14426lt_cv_prog_compiler_c_o \ 14427need_locks \ 14428MANIFEST_TOOL \ 14429DSYMUTIL \ 14430NMEDIT \ 14431LIPO \ 14432OTOOL \ 14433OTOOL64 \ 14434shrext_cmds \ 14435export_dynamic_flag_spec \ 14436whole_archive_flag_spec \ 14437compiler_needs_object \ 14438with_gnu_ld \ 14439allow_undefined_flag \ 14440no_undefined_flag \ 14441hardcode_libdir_flag_spec \ 14442hardcode_libdir_separator \ 14443exclude_expsyms \ 14444include_expsyms \ 14445file_list_spec \ 14446variables_saved_for_relink \ 14447libname_spec \ 14448library_names_spec \ 14449soname_spec \ 14450install_override_mode \ 14451finish_eval \ 14452old_striplib \ 14453striplib; do 14454 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14455 *[\\\\\\\`\\"\\\$]*) 14456 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14457 ;; 14458 *) 14459 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14460 ;; 14461 esac 14462done 14463 14464# Double-quote double-evaled strings. 14465for var in reload_cmds \ 14466old_postinstall_cmds \ 14467old_postuninstall_cmds \ 14468old_archive_cmds \ 14469extract_expsyms_cmds \ 14470old_archive_from_new_cmds \ 14471old_archive_from_expsyms_cmds \ 14472archive_cmds \ 14473archive_expsym_cmds \ 14474module_cmds \ 14475module_expsym_cmds \ 14476export_symbols_cmds \ 14477prelink_cmds \ 14478postlink_cmds \ 14479postinstall_cmds \ 14480postuninstall_cmds \ 14481finish_cmds \ 14482sys_lib_search_path_spec \ 14483configure_time_dlsearch_path \ 14484configure_time_lt_sys_library_path; do 14485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14486 *[\\\\\\\`\\"\\\$]*) 14487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14488 ;; 14489 *) 14490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14491 ;; 14492 esac 14493done 14494 14495ac_aux_dir='$ac_aux_dir' 14496 14497# See if we are running on zsh, and set the options that allow our 14498# commands through without removal of \ escapes INIT. 14499if test -n "\${ZSH_VERSION+set}"; then 14500 setopt NO_GLOB_SUBST 14501fi 14502 14503 14504 PACKAGE='$PACKAGE' 14505 VERSION='$VERSION' 14506 RM='$RM' 14507 ofile='$ofile' 14508 14509 14510 14511 14512_ACEOF 14513 14514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14515 14516# Handling of arguments. 14517for ac_config_target in $ac_config_targets 14518do 14519 case $ac_config_target in 14520 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14521 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14522 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14523 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14524 14525 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14526 esac 14527done 14528 14529 14530# If the user did not use the arguments to specify the items to instantiate, 14531# then the envvar interface is used. Set only those that are not. 14532# We use the long form for the default assignment because of an extremely 14533# bizarre bug on SunOS 4.1.3. 14534if $ac_need_defaults; then 14535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14536 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14538fi 14539 14540# Have a temporary directory for convenience. Make it in the build tree 14541# simply because there is no reason against having it here, and in addition, 14542# creating and moving files from /tmp can sometimes cause problems. 14543# Hook for its removal unless debugging. 14544# Note that there is a small window in which the directory will not be cleaned: 14545# after its creation but before its name has been assigned to `$tmp'. 14546$debug || 14547{ 14548 tmp= ac_tmp= 14549 trap 'exit_status=$? 14550 : "${ac_tmp:=$tmp}" 14551 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14552' 0 14553 trap 'as_fn_exit 1' 1 2 13 15 14554} 14555# Create a (secure) tmp directory for tmp files. 14556 14557{ 14558 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14559 test -d "$tmp" 14560} || 14561{ 14562 tmp=./conf$$-$RANDOM 14563 (umask 077 && mkdir "$tmp") 14564} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14565ac_tmp=$tmp 14566 14567# Set up the scripts for CONFIG_FILES section. 14568# No need to generate them if there are no CONFIG_FILES. 14569# This happens for instance with `./config.status config.h'. 14570if test -n "$CONFIG_FILES"; then 14571 14572 14573ac_cr=`echo X | tr X '\015'` 14574# On cygwin, bash can eat \r inside `` if the user requested igncr. 14575# But we know of no other shell where ac_cr would be empty at this 14576# point, so we can use a bashism as a fallback. 14577if test "x$ac_cr" = x; then 14578 eval ac_cr=\$\'\\r\' 14579fi 14580ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14581if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14582 ac_cs_awk_cr='\\r' 14583else 14584 ac_cs_awk_cr=$ac_cr 14585fi 14586 14587echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14588_ACEOF 14589 14590 14591{ 14592 echo "cat >conf$$subs.awk <<_ACEOF" && 14593 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14594 echo "_ACEOF" 14595} >conf$$subs.sh || 14596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14597ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14598ac_delim='%!_!# ' 14599for ac_last_try in false false false false false :; do 14600 . ./conf$$subs.sh || 14601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14602 14603 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14604 if test $ac_delim_n = $ac_delim_num; then 14605 break 14606 elif $ac_last_try; then 14607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14608 else 14609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14610 fi 14611done 14612rm -f conf$$subs.sh 14613 14614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14615cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14616_ACEOF 14617sed -n ' 14618h 14619s/^/S["/; s/!.*/"]=/ 14620p 14621g 14622s/^[^!]*!// 14623:repl 14624t repl 14625s/'"$ac_delim"'$// 14626t delim 14627:nl 14628h 14629s/\(.\{148\}\)..*/\1/ 14630t more1 14631s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14632p 14633n 14634b repl 14635:more1 14636s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14637p 14638g 14639s/.\{148\}// 14640t nl 14641:delim 14642h 14643s/\(.\{148\}\)..*/\1/ 14644t more2 14645s/["\\]/\\&/g; s/^/"/; s/$/"/ 14646p 14647b 14648:more2 14649s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14650p 14651g 14652s/.\{148\}// 14653t delim 14654' <conf$$subs.awk | sed ' 14655/^[^""]/{ 14656 N 14657 s/\n// 14658} 14659' >>$CONFIG_STATUS || ac_write_fail=1 14660rm -f conf$$subs.awk 14661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14662_ACAWK 14663cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14664 for (key in S) S_is_set[key] = 1 14665 FS = "" 14666 14667} 14668{ 14669 line = $ 0 14670 nfields = split(line, field, "@") 14671 substed = 0 14672 len = length(field[1]) 14673 for (i = 2; i < nfields; i++) { 14674 key = field[i] 14675 keylen = length(key) 14676 if (S_is_set[key]) { 14677 value = S[key] 14678 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14679 len += length(value) + length(field[++i]) 14680 substed = 1 14681 } else 14682 len += 1 + keylen 14683 } 14684 14685 print line 14686} 14687 14688_ACAWK 14689_ACEOF 14690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14691if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14692 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14693else 14694 cat 14695fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14696 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14697_ACEOF 14698 14699# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14700# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14701# trailing colons and then remove the whole line if VPATH becomes empty 14702# (actually we leave an empty line to preserve line numbers). 14703if test "x$srcdir" = x.; then 14704 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14705h 14706s/// 14707s/^/:/ 14708s/[ ]*$/:/ 14709s/:\$(srcdir):/:/g 14710s/:\${srcdir}:/:/g 14711s/:@srcdir@:/:/g 14712s/^:*// 14713s/:*$// 14714x 14715s/\(=[ ]*\).*/\1/ 14716G 14717s/\n// 14718s/^[^=]*=[ ]*$// 14719}' 14720fi 14721 14722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14723fi # test -n "$CONFIG_FILES" 14724 14725# Set up the scripts for CONFIG_HEADERS section. 14726# No need to generate them if there are no CONFIG_HEADERS. 14727# This happens for instance with `./config.status Makefile'. 14728if test -n "$CONFIG_HEADERS"; then 14729cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14730BEGIN { 14731_ACEOF 14732 14733# Transform confdefs.h into an awk script `defines.awk', embedded as 14734# here-document in config.status, that substitutes the proper values into 14735# config.h.in to produce config.h. 14736 14737# Create a delimiter string that does not exist in confdefs.h, to ease 14738# handling of long lines. 14739ac_delim='%!_!# ' 14740for ac_last_try in false false :; do 14741 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14742 if test -z "$ac_tt"; then 14743 break 14744 elif $ac_last_try; then 14745 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14746 else 14747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14748 fi 14749done 14750 14751# For the awk script, D is an array of macro values keyed by name, 14752# likewise P contains macro parameters if any. Preserve backslash 14753# newline sequences. 14754 14755ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14756sed -n ' 14757s/.\{148\}/&'"$ac_delim"'/g 14758t rset 14759:rset 14760s/^[ ]*#[ ]*define[ ][ ]*/ / 14761t def 14762d 14763:def 14764s/\\$// 14765t bsnl 14766s/["\\]/\\&/g 14767s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14768D["\1"]=" \3"/p 14769s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14770d 14771:bsnl 14772s/["\\]/\\&/g 14773s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14774D["\1"]=" \3\\\\\\n"\\/p 14775t cont 14776s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14777t cont 14778d 14779:cont 14780n 14781s/.\{148\}/&'"$ac_delim"'/g 14782t clear 14783:clear 14784s/\\$// 14785t bsnlc 14786s/["\\]/\\&/g; s/^/"/; s/$/"/p 14787d 14788:bsnlc 14789s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14790b cont 14791' <confdefs.h | sed ' 14792s/'"$ac_delim"'/"\\\ 14793"/g' >>$CONFIG_STATUS || ac_write_fail=1 14794 14795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14796 for (key in D) D_is_set[key] = 1 14797 FS = "" 14798} 14799/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14800 line = \$ 0 14801 split(line, arg, " ") 14802 if (arg[1] == "#") { 14803 defundef = arg[2] 14804 mac1 = arg[3] 14805 } else { 14806 defundef = substr(arg[1], 2) 14807 mac1 = arg[2] 14808 } 14809 split(mac1, mac2, "(") #) 14810 macro = mac2[1] 14811 prefix = substr(line, 1, index(line, defundef) - 1) 14812 if (D_is_set[macro]) { 14813 # Preserve the white space surrounding the "#". 14814 print prefix "define", macro P[macro] D[macro] 14815 next 14816 } else { 14817 # Replace #undef with comments. This is necessary, for example, 14818 # in the case of _POSIX_SOURCE, which is predefined and required 14819 # on some systems where configure will not decide to define it. 14820 if (defundef == "undef") { 14821 print "/*", prefix defundef, macro, "*/" 14822 next 14823 } 14824 } 14825} 14826{ print } 14827_ACAWK 14828_ACEOF 14829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14830 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14831fi # test -n "$CONFIG_HEADERS" 14832 14833 14834eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14835shift 14836for ac_tag 14837do 14838 case $ac_tag in 14839 :[FHLC]) ac_mode=$ac_tag; continue;; 14840 esac 14841 case $ac_mode$ac_tag in 14842 :[FHL]*:*);; 14843 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14844 :[FH]-) ac_tag=-:-;; 14845 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14846 esac 14847 ac_save_IFS=$IFS 14848 IFS=: 14849 set x $ac_tag 14850 IFS=$ac_save_IFS 14851 shift 14852 ac_file=$1 14853 shift 14854 14855 case $ac_mode in 14856 :L) ac_source=$1;; 14857 :[FH]) 14858 ac_file_inputs= 14859 for ac_f 14860 do 14861 case $ac_f in 14862 -) ac_f="$ac_tmp/stdin";; 14863 *) # Look for the file first in the build tree, then in the source tree 14864 # (if the path is not absolute). The absolute path cannot be DOS-style, 14865 # because $ac_f cannot contain `:'. 14866 test -f "$ac_f" || 14867 case $ac_f in 14868 [\\/$]*) false;; 14869 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14870 esac || 14871 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14872 esac 14873 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14874 as_fn_append ac_file_inputs " '$ac_f'" 14875 done 14876 14877 # Let's still pretend it is `configure' which instantiates (i.e., don't 14878 # use $as_me), people would be surprised to read: 14879 # /* config.h. Generated by config.status. */ 14880 configure_input='Generated from '` 14881 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14882 `' by configure.' 14883 if test x"$ac_file" != x-; then 14884 configure_input="$ac_file. $configure_input" 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14886$as_echo "$as_me: creating $ac_file" >&6;} 14887 fi 14888 # Neutralize special characters interpreted by sed in replacement strings. 14889 case $configure_input in #( 14890 *\&* | *\|* | *\\* ) 14891 ac_sed_conf_input=`$as_echo "$configure_input" | 14892 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14893 *) ac_sed_conf_input=$configure_input;; 14894 esac 14895 14896 case $ac_tag in 14897 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14899 esac 14900 ;; 14901 esac 14902 14903 ac_dir=`$as_dirname -- "$ac_file" || 14904$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14905 X"$ac_file" : 'X\(//\)[^/]' \| \ 14906 X"$ac_file" : 'X\(//\)$' \| \ 14907 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14908$as_echo X"$ac_file" | 14909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14910 s//\1/ 14911 q 14912 } 14913 /^X\(\/\/\)[^/].*/{ 14914 s//\1/ 14915 q 14916 } 14917 /^X\(\/\/\)$/{ 14918 s//\1/ 14919 q 14920 } 14921 /^X\(\/\).*/{ 14922 s//\1/ 14923 q 14924 } 14925 s/.*/./; q'` 14926 as_dir="$ac_dir"; as_fn_mkdir_p 14927 ac_builddir=. 14928 14929case "$ac_dir" in 14930.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14931*) 14932 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14933 # A ".." for each directory in $ac_dir_suffix. 14934 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14935 case $ac_top_builddir_sub in 14936 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14937 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14938 esac ;; 14939esac 14940ac_abs_top_builddir=$ac_pwd 14941ac_abs_builddir=$ac_pwd$ac_dir_suffix 14942# for backward compatibility: 14943ac_top_builddir=$ac_top_build_prefix 14944 14945case $srcdir in 14946 .) # We are building in place. 14947 ac_srcdir=. 14948 ac_top_srcdir=$ac_top_builddir_sub 14949 ac_abs_top_srcdir=$ac_pwd ;; 14950 [\\/]* | ?:[\\/]* ) # Absolute name. 14951 ac_srcdir=$srcdir$ac_dir_suffix; 14952 ac_top_srcdir=$srcdir 14953 ac_abs_top_srcdir=$srcdir ;; 14954 *) # Relative name. 14955 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14956 ac_top_srcdir=$ac_top_build_prefix$srcdir 14957 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14958esac 14959ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14960 14961 14962 case $ac_mode in 14963 :F) 14964 # 14965 # CONFIG_FILE 14966 # 14967 14968 case $INSTALL in 14969 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14970 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14971 esac 14972 ac_MKDIR_P=$MKDIR_P 14973 case $MKDIR_P in 14974 [\\/$]* | ?:[\\/]* ) ;; 14975 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14976 esac 14977_ACEOF 14978 14979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14980# If the template does not know about datarootdir, expand it. 14981# FIXME: This hack should be removed a few years after 2.60. 14982ac_datarootdir_hack=; ac_datarootdir_seen= 14983ac_sed_dataroot=' 14984/datarootdir/ { 14985 p 14986 q 14987} 14988/@datadir@/p 14989/@docdir@/p 14990/@infodir@/p 14991/@localedir@/p 14992/@mandir@/p' 14993case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14994*datarootdir*) ac_datarootdir_seen=yes;; 14995*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14997$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14998_ACEOF 14999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15000 ac_datarootdir_hack=' 15001 s&@datadir@&$datadir&g 15002 s&@docdir@&$docdir&g 15003 s&@infodir@&$infodir&g 15004 s&@localedir@&$localedir&g 15005 s&@mandir@&$mandir&g 15006 s&\\\${datarootdir}&$datarootdir&g' ;; 15007esac 15008_ACEOF 15009 15010# Neutralize VPATH when `$srcdir' = `.'. 15011# Shell code in configure.ac might set extrasub. 15012# FIXME: do we really want to maintain this feature? 15013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15014ac_sed_extra="$ac_vpsub 15015$extrasub 15016_ACEOF 15017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15018:t 15019/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15020s|@configure_input@|$ac_sed_conf_input|;t t 15021s&@top_builddir@&$ac_top_builddir_sub&;t t 15022s&@top_build_prefix@&$ac_top_build_prefix&;t t 15023s&@srcdir@&$ac_srcdir&;t t 15024s&@abs_srcdir@&$ac_abs_srcdir&;t t 15025s&@top_srcdir@&$ac_top_srcdir&;t t 15026s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15027s&@builddir@&$ac_builddir&;t t 15028s&@abs_builddir@&$ac_abs_builddir&;t t 15029s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15030s&@INSTALL@&$ac_INSTALL&;t t 15031s&@MKDIR_P@&$ac_MKDIR_P&;t t 15032$ac_datarootdir_hack 15033" 15034eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15035 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15036 15037test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15038 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15040 "$ac_tmp/out"`; test -z "$ac_out"; } && 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15042which seems to be undefined. Please make sure it is defined" >&5 15043$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15044which seems to be undefined. Please make sure it is defined" >&2;} 15045 15046 rm -f "$ac_tmp/stdin" 15047 case $ac_file in 15048 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15049 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15050 esac \ 15051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15052 ;; 15053 :H) 15054 # 15055 # CONFIG_HEADER 15056 # 15057 if test x"$ac_file" != x-; then 15058 { 15059 $as_echo "/* $configure_input */" \ 15060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15061 } >"$ac_tmp/config.h" \ 15062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15063 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15064 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15065$as_echo "$as_me: $ac_file is unchanged" >&6;} 15066 else 15067 rm -f "$ac_file" 15068 mv "$ac_tmp/config.h" "$ac_file" \ 15069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15070 fi 15071 else 15072 $as_echo "/* $configure_input */" \ 15073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15074 || as_fn_error $? "could not create -" "$LINENO" 5 15075 fi 15076# Compute "$ac_file"'s index in $config_headers. 15077_am_arg="$ac_file" 15078_am_stamp_count=1 15079for _am_header in $config_headers :; do 15080 case $_am_header in 15081 $_am_arg | $_am_arg:* ) 15082 break ;; 15083 * ) 15084 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15085 esac 15086done 15087echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15088$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15089 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15090 X"$_am_arg" : 'X\(//\)$' \| \ 15091 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15092$as_echo X"$_am_arg" | 15093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15094 s//\1/ 15095 q 15096 } 15097 /^X\(\/\/\)[^/].*/{ 15098 s//\1/ 15099 q 15100 } 15101 /^X\(\/\/\)$/{ 15102 s//\1/ 15103 q 15104 } 15105 /^X\(\/\).*/{ 15106 s//\1/ 15107 q 15108 } 15109 s/.*/./; q'`/stamp-h$_am_stamp_count 15110 ;; 15111 15112 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15113$as_echo "$as_me: executing $ac_file commands" >&6;} 15114 ;; 15115 esac 15116 15117 15118 case $ac_file$ac_mode in 15119 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15120 # Older Autoconf quotes --file arguments for eval, but not when files 15121 # are listed without --file. Let's play safe and only enable the eval 15122 # if we detect the quoting. 15123 # TODO: see whether this extra hack can be removed once we start 15124 # requiring Autoconf 2.70 or later. 15125 case $CONFIG_FILES in #( 15126 *\'*) : 15127 eval set x "$CONFIG_FILES" ;; #( 15128 *) : 15129 set x $CONFIG_FILES ;; #( 15130 *) : 15131 ;; 15132esac 15133 shift 15134 # Used to flag and report bootstrapping failures. 15135 am_rc=0 15136 for am_mf 15137 do 15138 # Strip MF so we end up with the name of the file. 15139 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15140 # Check whether this is an Automake generated Makefile which includes 15141 # dependency-tracking related rules and includes. 15142 # Grep'ing the whole file directly is not great: AIX grep has a line 15143 # limit of 2048, but all sed's we know have understand at least 4000. 15144 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15145 || continue 15146 am_dirpart=`$as_dirname -- "$am_mf" || 15147$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15148 X"$am_mf" : 'X\(//\)[^/]' \| \ 15149 X"$am_mf" : 'X\(//\)$' \| \ 15150 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15151$as_echo X"$am_mf" | 15152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15153 s//\1/ 15154 q 15155 } 15156 /^X\(\/\/\)[^/].*/{ 15157 s//\1/ 15158 q 15159 } 15160 /^X\(\/\/\)$/{ 15161 s//\1/ 15162 q 15163 } 15164 /^X\(\/\).*/{ 15165 s//\1/ 15166 q 15167 } 15168 s/.*/./; q'` 15169 am_filepart=`$as_basename -- "$am_mf" || 15170$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15171 X"$am_mf" : 'X\(//\)$' \| \ 15172 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15173$as_echo X/"$am_mf" | 15174 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15175 s//\1/ 15176 q 15177 } 15178 /^X\/\(\/\/\)$/{ 15179 s//\1/ 15180 q 15181 } 15182 /^X\/\(\/\).*/{ 15183 s//\1/ 15184 q 15185 } 15186 s/.*/./; q'` 15187 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15188 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15189 | $MAKE -f - am--depfiles" >&5 15190 (cd "$am_dirpart" \ 15191 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15192 | $MAKE -f - am--depfiles) >&5 2>&5 15193 ac_status=$? 15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15195 (exit $ac_status); } || am_rc=$? 15196 done 15197 if test $am_rc -ne 0; then 15198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15200as_fn_error $? "Something went wrong bootstrapping makefile fragments 15201 for automatic dependency tracking. Try re-running configure with the 15202 '--disable-dependency-tracking' option to at least be able to build 15203 the package (albeit without support for automatic dependency tracking). 15204See \`config.log' for more details" "$LINENO" 5; } 15205 fi 15206 { am_dirpart=; unset am_dirpart;} 15207 { am_filepart=; unset am_filepart;} 15208 { am_mf=; unset am_mf;} 15209 { am_rc=; unset am_rc;} 15210 rm -f conftest-deps.mk 15211} 15212 ;; 15213 "libtool":C) 15214 15215 # See if we are running on zsh, and set the options that allow our 15216 # commands through without removal of \ escapes. 15217 if test -n "${ZSH_VERSION+set}"; then 15218 setopt NO_GLOB_SUBST 15219 fi 15220 15221 cfgfile=${ofile}T 15222 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15223 $RM "$cfgfile" 15224 15225 cat <<_LT_EOF >> "$cfgfile" 15226#! $SHELL 15227# Generated automatically by $as_me ($PACKAGE) $VERSION 15228# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15229# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15230 15231# Provide generalized library-building support services. 15232# Written by Gordon Matzigkeit, 1996 15233 15234# Copyright (C) 2014 Free Software Foundation, Inc. 15235# This is free software; see the source for copying conditions. There is NO 15236# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15237 15238# GNU Libtool is free software; you can redistribute it and/or modify 15239# it under the terms of the GNU General Public License as published by 15240# the Free Software Foundation; either version 2 of of the License, or 15241# (at your option) any later version. 15242# 15243# As a special exception to the GNU General Public License, if you 15244# distribute this file as part of a program or library that is built 15245# using GNU Libtool, you may include this file under the same 15246# distribution terms that you use for the rest of that program. 15247# 15248# GNU Libtool is distributed in the hope that it will be useful, but 15249# WITHOUT ANY WARRANTY; without even the implied warranty of 15250# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15251# GNU General Public License for more details. 15252# 15253# You should have received a copy of the GNU General Public License 15254# along with this program. If not, see <http://www.gnu.org/licenses/>. 15255 15256 15257# The names of the tagged configurations supported by this script. 15258available_tags='' 15259 15260# Configured defaults for sys_lib_dlsearch_path munging. 15261: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15262 15263# ### BEGIN LIBTOOL CONFIG 15264 15265# Which release of libtool.m4 was used? 15266macro_version=$macro_version 15267macro_revision=$macro_revision 15268 15269# Whether or not to build shared libraries. 15270build_libtool_libs=$enable_shared 15271 15272# Whether or not to build static libraries. 15273build_old_libs=$enable_static 15274 15275# What type of objects to build. 15276pic_mode=$pic_mode 15277 15278# Whether or not to optimize for fast installation. 15279fast_install=$enable_fast_install 15280 15281# Shared archive member basename,for filename based shared library versioning on AIX. 15282shared_archive_member_spec=$shared_archive_member_spec 15283 15284# Shell to use when invoking shell scripts. 15285SHELL=$lt_SHELL 15286 15287# An echo program that protects backslashes. 15288ECHO=$lt_ECHO 15289 15290# The PATH separator for the build system. 15291PATH_SEPARATOR=$lt_PATH_SEPARATOR 15292 15293# The host system. 15294host_alias=$host_alias 15295host=$host 15296host_os=$host_os 15297 15298# The build system. 15299build_alias=$build_alias 15300build=$build 15301build_os=$build_os 15302 15303# A sed program that does not truncate output. 15304SED=$lt_SED 15305 15306# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15307Xsed="\$SED -e 1s/^X//" 15308 15309# A grep program that handles long lines. 15310GREP=$lt_GREP 15311 15312# An ERE matcher. 15313EGREP=$lt_EGREP 15314 15315# A literal string matcher. 15316FGREP=$lt_FGREP 15317 15318# A BSD- or MS-compatible name lister. 15319NM=$lt_NM 15320 15321# Whether we need soft or hard links. 15322LN_S=$lt_LN_S 15323 15324# What is the maximum length of a command? 15325max_cmd_len=$max_cmd_len 15326 15327# Object file suffix (normally "o"). 15328objext=$ac_objext 15329 15330# Executable file suffix (normally ""). 15331exeext=$exeext 15332 15333# whether the shell understands "unset". 15334lt_unset=$lt_unset 15335 15336# turn spaces into newlines. 15337SP2NL=$lt_lt_SP2NL 15338 15339# turn newlines into spaces. 15340NL2SP=$lt_lt_NL2SP 15341 15342# convert \$build file names to \$host format. 15343to_host_file_cmd=$lt_cv_to_host_file_cmd 15344 15345# convert \$build files to toolchain format. 15346to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15347 15348# An object symbol dumper. 15349OBJDUMP=$lt_OBJDUMP 15350 15351# Method to check whether dependent libraries are shared objects. 15352deplibs_check_method=$lt_deplibs_check_method 15353 15354# Command to use when deplibs_check_method = "file_magic". 15355file_magic_cmd=$lt_file_magic_cmd 15356 15357# How to find potential files when deplibs_check_method = "file_magic". 15358file_magic_glob=$lt_file_magic_glob 15359 15360# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15361want_nocaseglob=$lt_want_nocaseglob 15362 15363# DLL creation program. 15364DLLTOOL=$lt_DLLTOOL 15365 15366# Command to associate shared and link libraries. 15367sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15368 15369# The archiver. 15370AR=$lt_AR 15371 15372# Flags to create an archive. 15373AR_FLAGS=$lt_AR_FLAGS 15374 15375# How to feed a file listing to the archiver. 15376archiver_list_spec=$lt_archiver_list_spec 15377 15378# A symbol stripping program. 15379STRIP=$lt_STRIP 15380 15381# Commands used to install an old-style archive. 15382RANLIB=$lt_RANLIB 15383old_postinstall_cmds=$lt_old_postinstall_cmds 15384old_postuninstall_cmds=$lt_old_postuninstall_cmds 15385 15386# Whether to use a lock for old archive extraction. 15387lock_old_archive_extraction=$lock_old_archive_extraction 15388 15389# A C compiler. 15390LTCC=$lt_CC 15391 15392# LTCC compiler flags. 15393LTCFLAGS=$lt_CFLAGS 15394 15395# Take the output of nm and produce a listing of raw symbols and C names. 15396global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15397 15398# Transform the output of nm in a proper C declaration. 15399global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15400 15401# Transform the output of nm into a list of symbols to manually relocate. 15402global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15403 15404# Transform the output of nm in a C name address pair. 15405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15406 15407# Transform the output of nm in a C name address pair when lib prefix is needed. 15408global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15409 15410# The name lister interface. 15411nm_interface=$lt_lt_cv_nm_interface 15412 15413# Specify filename containing input files for \$NM. 15414nm_file_list_spec=$lt_nm_file_list_spec 15415 15416# The root where to search for dependent libraries,and where our libraries should be installed. 15417lt_sysroot=$lt_sysroot 15418 15419# Command to truncate a binary pipe. 15420lt_truncate_bin=$lt_lt_cv_truncate_bin 15421 15422# The name of the directory that contains temporary libtool files. 15423objdir=$objdir 15424 15425# Used to examine libraries when file_magic_cmd begins with "file". 15426MAGIC_CMD=$MAGIC_CMD 15427 15428# Must we lock files when doing compilation? 15429need_locks=$lt_need_locks 15430 15431# Manifest tool. 15432MANIFEST_TOOL=$lt_MANIFEST_TOOL 15433 15434# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15435DSYMUTIL=$lt_DSYMUTIL 15436 15437# Tool to change global to local symbols on Mac OS X. 15438NMEDIT=$lt_NMEDIT 15439 15440# Tool to manipulate fat objects and archives on Mac OS X. 15441LIPO=$lt_LIPO 15442 15443# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15444OTOOL=$lt_OTOOL 15445 15446# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15447OTOOL64=$lt_OTOOL64 15448 15449# Old archive suffix (normally "a"). 15450libext=$libext 15451 15452# Shared library suffix (normally ".so"). 15453shrext_cmds=$lt_shrext_cmds 15454 15455# The commands to extract the exported symbol list from a shared archive. 15456extract_expsyms_cmds=$lt_extract_expsyms_cmds 15457 15458# Variables whose values should be saved in libtool wrapper scripts and 15459# restored at link time. 15460variables_saved_for_relink=$lt_variables_saved_for_relink 15461 15462# Do we need the "lib" prefix for modules? 15463need_lib_prefix=$need_lib_prefix 15464 15465# Do we need a version for libraries? 15466need_version=$need_version 15467 15468# Library versioning type. 15469version_type=$version_type 15470 15471# Shared library runtime path variable. 15472runpath_var=$runpath_var 15473 15474# Shared library path variable. 15475shlibpath_var=$shlibpath_var 15476 15477# Is shlibpath searched before the hard-coded library search path? 15478shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15479 15480# Format of library name prefix. 15481libname_spec=$lt_libname_spec 15482 15483# List of archive names. First name is the real one, the rest are links. 15484# The last name is the one that the linker finds with -lNAME 15485library_names_spec=$lt_library_names_spec 15486 15487# The coded name of the library, if different from the real name. 15488soname_spec=$lt_soname_spec 15489 15490# Permission mode override for installation of shared libraries. 15491install_override_mode=$lt_install_override_mode 15492 15493# Command to use after installation of a shared archive. 15494postinstall_cmds=$lt_postinstall_cmds 15495 15496# Command to use after uninstallation of a shared archive. 15497postuninstall_cmds=$lt_postuninstall_cmds 15498 15499# Commands used to finish a libtool library installation in a directory. 15500finish_cmds=$lt_finish_cmds 15501 15502# As "finish_cmds", except a single script fragment to be evaled but 15503# not shown. 15504finish_eval=$lt_finish_eval 15505 15506# Whether we should hardcode library paths into libraries. 15507hardcode_into_libs=$hardcode_into_libs 15508 15509# Compile-time system search path for libraries. 15510sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15511 15512# Detected run-time system search path for libraries. 15513sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15514 15515# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15516configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15517 15518# Whether dlopen is supported. 15519dlopen_support=$enable_dlopen 15520 15521# Whether dlopen of programs is supported. 15522dlopen_self=$enable_dlopen_self 15523 15524# Whether dlopen of statically linked programs is supported. 15525dlopen_self_static=$enable_dlopen_self_static 15526 15527# Commands to strip libraries. 15528old_striplib=$lt_old_striplib 15529striplib=$lt_striplib 15530 15531 15532# The linker used to build libraries. 15533LD=$lt_LD 15534 15535# How to create reloadable object files. 15536reload_flag=$lt_reload_flag 15537reload_cmds=$lt_reload_cmds 15538 15539# Commands used to build an old-style archive. 15540old_archive_cmds=$lt_old_archive_cmds 15541 15542# A language specific compiler. 15543CC=$lt_compiler 15544 15545# Is the compiler the GNU compiler? 15546with_gcc=$GCC 15547 15548# Compiler flag to turn off builtin functions. 15549no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15550 15551# Additional compiler flags for building library objects. 15552pic_flag=$lt_lt_prog_compiler_pic 15553 15554# How to pass a linker flag through the compiler. 15555wl=$lt_lt_prog_compiler_wl 15556 15557# Compiler flag to prevent dynamic linking. 15558link_static_flag=$lt_lt_prog_compiler_static 15559 15560# Does compiler simultaneously support -c and -o options? 15561compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15562 15563# Whether or not to add -lc for building shared libraries. 15564build_libtool_need_lc=$archive_cmds_need_lc 15565 15566# Whether or not to disallow shared libs when runtime libs are static. 15567allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15568 15569# Compiler flag to allow reflexive dlopens. 15570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15571 15572# Compiler flag to generate shared objects directly from archives. 15573whole_archive_flag_spec=$lt_whole_archive_flag_spec 15574 15575# Whether the compiler copes with passing no objects directly. 15576compiler_needs_object=$lt_compiler_needs_object 15577 15578# Create an old-style archive from a shared archive. 15579old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15580 15581# Create a temporary old-style archive to link instead of a shared archive. 15582old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15583 15584# Commands used to build a shared archive. 15585archive_cmds=$lt_archive_cmds 15586archive_expsym_cmds=$lt_archive_expsym_cmds 15587 15588# Commands used to build a loadable module if different from building 15589# a shared archive. 15590module_cmds=$lt_module_cmds 15591module_expsym_cmds=$lt_module_expsym_cmds 15592 15593# Whether we are building with GNU ld or not. 15594with_gnu_ld=$lt_with_gnu_ld 15595 15596# Flag that allows shared libraries with undefined symbols to be built. 15597allow_undefined_flag=$lt_allow_undefined_flag 15598 15599# Flag that enforces no undefined symbols. 15600no_undefined_flag=$lt_no_undefined_flag 15601 15602# Flag to hardcode \$libdir into a binary during linking. 15603# This must work even if \$libdir does not exist 15604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15605 15606# Whether we need a single "-rpath" flag with a separated argument. 15607hardcode_libdir_separator=$lt_hardcode_libdir_separator 15608 15609# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15610# DIR into the resulting binary. 15611hardcode_direct=$hardcode_direct 15612 15613# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15614# DIR into the resulting binary and the resulting library dependency is 15615# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15616# library is relocated. 15617hardcode_direct_absolute=$hardcode_direct_absolute 15618 15619# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15620# into the resulting binary. 15621hardcode_minus_L=$hardcode_minus_L 15622 15623# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15624# into the resulting binary. 15625hardcode_shlibpath_var=$hardcode_shlibpath_var 15626 15627# Set to "yes" if building a shared library automatically hardcodes DIR 15628# into the library and all subsequent libraries and executables linked 15629# against it. 15630hardcode_automatic=$hardcode_automatic 15631 15632# Set to yes if linker adds runtime paths of dependent libraries 15633# to runtime path list. 15634inherit_rpath=$inherit_rpath 15635 15636# Whether libtool must link a program against all its dependency libraries. 15637link_all_deplibs=$link_all_deplibs 15638 15639# Set to "yes" if exported symbols are required. 15640always_export_symbols=$always_export_symbols 15641 15642# The commands to list exported symbols. 15643export_symbols_cmds=$lt_export_symbols_cmds 15644 15645# Symbols that should not be listed in the preloaded symbols. 15646exclude_expsyms=$lt_exclude_expsyms 15647 15648# Symbols that must always be exported. 15649include_expsyms=$lt_include_expsyms 15650 15651# Commands necessary for linking programs (against libraries) with templates. 15652prelink_cmds=$lt_prelink_cmds 15653 15654# Commands necessary for finishing linking programs. 15655postlink_cmds=$lt_postlink_cmds 15656 15657# Specify filename containing input files. 15658file_list_spec=$lt_file_list_spec 15659 15660# How to hardcode a shared library path into an executable. 15661hardcode_action=$hardcode_action 15662 15663# ### END LIBTOOL CONFIG 15664 15665_LT_EOF 15666 15667 cat <<'_LT_EOF' >> "$cfgfile" 15668 15669# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15670 15671# func_munge_path_list VARIABLE PATH 15672# ----------------------------------- 15673# VARIABLE is name of variable containing _space_ separated list of 15674# directories to be munged by the contents of PATH, which is string 15675# having a format: 15676# "DIR[:DIR]:" 15677# string "DIR[ DIR]" will be prepended to VARIABLE 15678# ":DIR[:DIR]" 15679# string "DIR[ DIR]" will be appended to VARIABLE 15680# "DIRP[:DIRP]::[DIRA:]DIRA" 15681# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15682# "DIRA[ DIRA]" will be appended to VARIABLE 15683# "DIR[:DIR]" 15684# VARIABLE will be replaced by "DIR[ DIR]" 15685func_munge_path_list () 15686{ 15687 case x$2 in 15688 x) 15689 ;; 15690 *:) 15691 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15692 ;; 15693 x:*) 15694 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15695 ;; 15696 *::*) 15697 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15698 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15699 ;; 15700 *) 15701 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15702 ;; 15703 esac 15704} 15705 15706 15707# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15708func_cc_basename () 15709{ 15710 for cc_temp in $*""; do 15711 case $cc_temp in 15712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15714 \-*) ;; 15715 *) break;; 15716 esac 15717 done 15718 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15719} 15720 15721 15722# ### END FUNCTIONS SHARED WITH CONFIGURE 15723 15724_LT_EOF 15725 15726 case $host_os in 15727 aix3*) 15728 cat <<\_LT_EOF >> "$cfgfile" 15729# AIX sometimes has problems with the GCC collect2 program. For some 15730# reason, if we set the COLLECT_NAMES environment variable, the problems 15731# vanish in a puff of smoke. 15732if test set != "${COLLECT_NAMES+set}"; then 15733 COLLECT_NAMES= 15734 export COLLECT_NAMES 15735fi 15736_LT_EOF 15737 ;; 15738 esac 15739 15740 15741ltmain=$ac_aux_dir/ltmain.sh 15742 15743 15744 # We use sed instead of cat because bash on DJGPP gets confused if 15745 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15746 # text mode, it properly converts lines to CR/LF. This bash problem 15747 # is reportedly fixed, but why not run on old versions too? 15748 sed '$q' "$ltmain" >> "$cfgfile" \ 15749 || (rm -f "$cfgfile"; exit 1) 15750 15751 mv -f "$cfgfile" "$ofile" || 15752 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15753 chmod +x "$ofile" 15754 15755 ;; 15756 15757 esac 15758done # for ac_tag 15759 15760 15761as_fn_exit 0 15762_ACEOF 15763ac_clean_files=$ac_clean_files_save 15764 15765test $ac_write_fail = 0 || 15766 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15767 15768 15769# configure is writing to config.log, and then calls config.status. 15770# config.status does its own redirection, appending to config.log. 15771# Unfortunately, on DOS this fails, as config.log is still kept open 15772# by configure, so config.status won't be able to write to it; its 15773# output is simply discarded. So we exec the FD to /dev/null, 15774# effectively closing config.log, so it can be properly (re)opened and 15775# appended to by config.status. When coming back to configure, we 15776# need to make the FD available again. 15777if test "$no_create" != yes; then 15778 ac_cs_success=: 15779 ac_config_status_args= 15780 test "$silent" = yes && 15781 ac_config_status_args="$ac_config_status_args --quiet" 15782 exec 5>/dev/null 15783 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15784 exec 5>>config.log 15785 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15786 # would make configure fail if this is the last instruction. 15787 $ac_cs_success || as_fn_exit 1 15788fi 15789if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15791$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15792fi 15793 15794