1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for rfc822lib 0.13. 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='rfc822lib' 592PACKAGE_TARNAME='rfc822lib' 593PACKAGE_VERSION='0.13' 594PACKAGE_STRING='rfc822lib 0.13' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="rfc822.c" 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 641LIBIDN_LIBS 642LIBIDN_CFLAGS 643PKG_CONFIG_LIBDIR 644PKG_CONFIG_PATH 645PKG_CONFIG 646LT_SYS_LIBRARY_PATH 647OTOOL64 648OTOOL 649LIPO 650NMEDIT 651DSYMUTIL 652MANIFEST_TOOL 653RANLIB 654ac_ct_AR 655AR 656DLLTOOL 657OBJDUMP 658LN_S 659NM 660ac_ct_DUMPBIN 661DUMPBIN 662LD 663FGREP 664SED 665host_os 666host_vendor 667host_cpu 668host 669build_os 670build_vendor 671build_cpu 672build 673LIBTOOL 674EGREP 675GREP 676CPP 677am__fastdepCC_FALSE 678am__fastdepCC_TRUE 679CCDEPMODE 680am__nodep 681AMDEPBACKSLASH 682AMDEP_FALSE 683AMDEP_TRUE 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693AM_BACKSLASH 694AM_DEFAULT_VERBOSITY 695AM_DEFAULT_V 696AM_V 697am__untar 698am__tar 699AMTAR 700am__leading_dot 701SET_MAKE 702AWK 703mkdir_p 704MKDIR_P 705INSTALL_STRIP_PROGRAM 706STRIP 707install_sh 708MAKEINFO 709AUTOHEADER 710AUTOMAKE 711AUTOCONF 712ACLOCAL 713VERSION 714PACKAGE 715CYGPATH_W 716am__isrc 717INSTALL_DATA 718INSTALL_SCRIPT 719INSTALL_PROGRAM 720target_alias 721host_alias 722build_alias 723LIBS 724ECHO_T 725ECHO_N 726ECHO_C 727DEFS 728mandir 729localedir 730libdir 731psdir 732pdfdir 733dvidir 734htmldir 735infodir 736docdir 737oldincludedir 738includedir 739localstatedir 740sharedstatedir 741sysconfdir 742datadir 743datarootdir 744libexecdir 745sbindir 746bindir 747program_transform_name 748prefix 749exec_prefix 750PACKAGE_URL 751PACKAGE_BUGREPORT 752PACKAGE_STRING 753PACKAGE_VERSION 754PACKAGE_TARNAME 755PACKAGE_NAME 756PATH_SEPARATOR 757SHELL 758am__quote' 759ac_subst_files='' 760ac_user_opts=' 761enable_option_checking 762enable_silent_rules 763enable_dependency_tracking 764enable_shared 765enable_static 766with_pic 767enable_fast_install 768with_aix_soname 769with_gnu_ld 770with_sysroot 771enable_libtool_lock 772enable_largefile 773with_libidn 774' 775 ac_precious_vars='build_alias 776host_alias 777target_alias 778CC 779CFLAGS 780LDFLAGS 781LIBS 782CPPFLAGS 783CPP 784LT_SYS_LIBRARY_PATH 785PKG_CONFIG 786PKG_CONFIG_PATH 787PKG_CONFIG_LIBDIR 788LIBIDN_CFLAGS 789LIBIDN_LIBS' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828includedir='${prefix}/include' 829oldincludedir='/usr/include' 830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 831infodir='${datarootdir}/info' 832htmldir='${docdir}' 833dvidir='${docdir}' 834pdfdir='${docdir}' 835psdir='${docdir}' 836libdir='${exec_prefix}/lib' 837localedir='${datarootdir}/locale' 838mandir='${datarootdir}/man' 839 840ac_prev= 841ac_dashdash= 842for ac_option 843do 844 # If the previous option needs an argument, assign it. 845 if test -n "$ac_prev"; then 846 eval $ac_prev=\$ac_option 847 ac_prev= 848 continue 849 fi 850 851 case $ac_option in 852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 853 *=) ac_optarg= ;; 854 *) ac_optarg=yes ;; 855 esac 856 857 # Accept the important Cygnus configure options, so we can diagnose typos. 858 859 case $ac_dashdash$ac_option in 860 --) 861 ac_dashdash=yes ;; 862 863 -bindir | --bindir | --bindi | --bind | --bin | --bi) 864 ac_prev=bindir ;; 865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 866 bindir=$ac_optarg ;; 867 868 -build | --build | --buil | --bui | --bu) 869 ac_prev=build_alias ;; 870 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 871 build_alias=$ac_optarg ;; 872 873 -cache-file | --cache-file | --cache-fil | --cache-fi \ 874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 875 ac_prev=cache_file ;; 876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 878 cache_file=$ac_optarg ;; 879 880 --config-cache | -C) 881 cache_file=config.cache ;; 882 883 -datadir | --datadir | --datadi | --datad) 884 ac_prev=datadir ;; 885 -datadir=* | --datadir=* | --datadi=* | --datad=*) 886 datadir=$ac_optarg ;; 887 888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 889 | --dataroo | --dataro | --datar) 890 ac_prev=datarootdir ;; 891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 893 datarootdir=$ac_optarg ;; 894 895 -disable-* | --disable-*) 896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 897 # Reject names that are not valid shell variable names. 898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 899 as_fn_error $? "invalid feature name: $ac_useropt" 900 ac_useropt_orig=$ac_useropt 901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 902 case $ac_user_opts in 903 *" 904"enable_$ac_useropt" 905"*) ;; 906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 907 ac_unrecognized_sep=', ';; 908 esac 909 eval enable_$ac_useropt=no ;; 910 911 -docdir | --docdir | --docdi | --doc | --do) 912 ac_prev=docdir ;; 913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 914 docdir=$ac_optarg ;; 915 916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 917 ac_prev=dvidir ;; 918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 919 dvidir=$ac_optarg ;; 920 921 -enable-* | --enable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=\$ac_optarg ;; 936 937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 939 | --exec | --exe | --ex) 940 ac_prev=exec_prefix ;; 941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 943 | --exec=* | --exe=* | --ex=*) 944 exec_prefix=$ac_optarg ;; 945 946 -gas | --gas | --ga | --g) 947 # Obsolete; use --with-gas. 948 with_gas=yes ;; 949 950 -help | --help | --hel | --he | -h) 951 ac_init_help=long ;; 952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 953 ac_init_help=recursive ;; 954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 955 ac_init_help=short ;; 956 957 -host | --host | --hos | --ho) 958 ac_prev=host_alias ;; 959 -host=* | --host=* | --hos=* | --ho=*) 960 host_alias=$ac_optarg ;; 961 962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 963 ac_prev=htmldir ;; 964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 965 | --ht=*) 966 htmldir=$ac_optarg ;; 967 968 -includedir | --includedir | --includedi | --included | --include \ 969 | --includ | --inclu | --incl | --inc) 970 ac_prev=includedir ;; 971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 972 | --includ=* | --inclu=* | --incl=* | --inc=*) 973 includedir=$ac_optarg ;; 974 975 -infodir | --infodir | --infodi | --infod | --info | --inf) 976 ac_prev=infodir ;; 977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 978 infodir=$ac_optarg ;; 979 980 -libdir | --libdir | --libdi | --libd) 981 ac_prev=libdir ;; 982 -libdir=* | --libdir=* | --libdi=* | --libd=*) 983 libdir=$ac_optarg ;; 984 985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 986 | --libexe | --libex | --libe) 987 ac_prev=libexecdir ;; 988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 989 | --libexe=* | --libex=* | --libe=*) 990 libexecdir=$ac_optarg ;; 991 992 -localedir | --localedir | --localedi | --localed | --locale) 993 ac_prev=localedir ;; 994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 995 localedir=$ac_optarg ;; 996 997 -localstatedir | --localstatedir | --localstatedi | --localstated \ 998 | --localstate | --localstat | --localsta | --localst | --locals) 999 ac_prev=localstatedir ;; 1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1002 localstatedir=$ac_optarg ;; 1003 1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1005 ac_prev=mandir ;; 1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1007 mandir=$ac_optarg ;; 1008 1009 -nfp | --nfp | --nf) 1010 # Obsolete; use --without-fp. 1011 with_fp=no ;; 1012 1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1014 | --no-cr | --no-c | -n) 1015 no_create=yes ;; 1016 1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1019 no_recursion=yes ;; 1020 1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1023 | --oldin | --oldi | --old | --ol | --o) 1024 ac_prev=oldincludedir ;; 1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1028 oldincludedir=$ac_optarg ;; 1029 1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1031 ac_prev=prefix ;; 1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1033 prefix=$ac_optarg ;; 1034 1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1036 | --program-pre | --program-pr | --program-p) 1037 ac_prev=program_prefix ;; 1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1040 program_prefix=$ac_optarg ;; 1041 1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1043 | --program-suf | --program-su | --program-s) 1044 ac_prev=program_suffix ;; 1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1047 program_suffix=$ac_optarg ;; 1048 1049 -program-transform-name | --program-transform-name \ 1050 | --program-transform-nam | --program-transform-na \ 1051 | --program-transform-n | --program-transform- \ 1052 | --program-transform | --program-transfor \ 1053 | --program-transfo | --program-transf \ 1054 | --program-trans | --program-tran \ 1055 | --progr-tra | --program-tr | --program-t) 1056 ac_prev=program_transform_name ;; 1057 -program-transform-name=* | --program-transform-name=* \ 1058 | --program-transform-nam=* | --program-transform-na=* \ 1059 | --program-transform-n=* | --program-transform-=* \ 1060 | --program-transform=* | --program-transfor=* \ 1061 | --program-transfo=* | --program-transf=* \ 1062 | --program-trans=* | --program-tran=* \ 1063 | --progr-tra=* | --program-tr=* | --program-t=*) 1064 program_transform_name=$ac_optarg ;; 1065 1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1067 ac_prev=pdfdir ;; 1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1069 pdfdir=$ac_optarg ;; 1070 1071 -psdir | --psdir | --psdi | --psd | --ps) 1072 ac_prev=psdir ;; 1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1074 psdir=$ac_optarg ;; 1075 1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1077 | -silent | --silent | --silen | --sile | --sil) 1078 silent=yes ;; 1079 1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1081 ac_prev=sbindir ;; 1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1083 | --sbi=* | --sb=*) 1084 sbindir=$ac_optarg ;; 1085 1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1088 | --sharedst | --shareds | --shared | --share | --shar \ 1089 | --sha | --sh) 1090 ac_prev=sharedstatedir ;; 1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1094 | --sha=* | --sh=*) 1095 sharedstatedir=$ac_optarg ;; 1096 1097 -site | --site | --sit) 1098 ac_prev=site ;; 1099 -site=* | --site=* | --sit=*) 1100 site=$ac_optarg ;; 1101 1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1103 ac_prev=srcdir ;; 1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1105 srcdir=$ac_optarg ;; 1106 1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1108 | --syscon | --sysco | --sysc | --sys | --sy) 1109 ac_prev=sysconfdir ;; 1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1112 sysconfdir=$ac_optarg ;; 1113 1114 -target | --target | --targe | --targ | --tar | --ta | --t) 1115 ac_prev=target_alias ;; 1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1117 target_alias=$ac_optarg ;; 1118 1119 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1120 verbose=yes ;; 1121 1122 -version | --version | --versio | --versi | --vers | -V) 1123 ac_init_version=: ;; 1124 1125 -with-* | --with-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=\$ac_optarg ;; 1140 1141 -without-* | --without-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=no ;; 1156 1157 --x) 1158 # Obsolete; use --with-x. 1159 with_x=yes ;; 1160 1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1162 | --x-incl | --x-inc | --x-in | --x-i) 1163 ac_prev=x_includes ;; 1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1166 x_includes=$ac_optarg ;; 1167 1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1170 ac_prev=x_libraries ;; 1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1173 x_libraries=$ac_optarg ;; 1174 1175 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1176Try \`$0 --help' for more information" 1177 ;; 1178 1179 *=*) 1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1181 # Reject names that are not valid shell variable names. 1182 case $ac_envvar in #( 1183 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1185 esac 1186 eval $ac_envvar=\$ac_optarg 1187 export $ac_envvar ;; 1188 1189 *) 1190 # FIXME: should be removed in autoconf 3.0. 1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1195 ;; 1196 1197 esac 1198done 1199 1200if test -n "$ac_prev"; then 1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1202 as_fn_error $? "missing argument to $ac_option" 1203fi 1204 1205if test -n "$ac_unrecognized_opts"; then 1206 case $enable_option_checking in 1207 no) ;; 1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1210 esac 1211fi 1212 1213# Check all directory arguments for consistency. 1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1215 datadir sysconfdir sharedstatedir localstatedir includedir \ 1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1217 libdir localedir mandir 1218do 1219 eval ac_val=\$$ac_var 1220 # Remove trailing slashes. 1221 case $ac_val in 1222 */ ) 1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1224 eval $ac_var=\$ac_val;; 1225 esac 1226 # Be sure to have absolute directory names. 1227 case $ac_val in 1228 [\\/$]* | ?:[\\/]* ) continue;; 1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1230 esac 1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1232done 1233 1234# There might be people who depend on the old broken behavior: `$host' 1235# used to hold the argument of --host etc. 1236# FIXME: To remove some day. 1237build=$build_alias 1238host=$host_alias 1239target=$target_alias 1240 1241# FIXME: To remove some day. 1242if test "x$host_alias" != x; then 1243 if test "x$build_alias" = x; then 1244 cross_compiling=maybe 1245 elif test "x$build_alias" != "x$host_alias"; then 1246 cross_compiling=yes 1247 fi 1248fi 1249 1250ac_tool_prefix= 1251test -n "$host_alias" && ac_tool_prefix=$host_alias- 1252 1253test "$silent" = yes && exec 6>/dev/null 1254 1255 1256ac_pwd=`pwd` && test -n "$ac_pwd" && 1257ac_ls_di=`ls -di .` && 1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1259 as_fn_error $? "working directory cannot be determined" 1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1261 as_fn_error $? "pwd does not report name of working directory" 1262 1263 1264# Find the source files, if location was not specified. 1265if test -z "$srcdir"; then 1266 ac_srcdir_defaulted=yes 1267 # Try the directory containing this script, then the parent directory. 1268 ac_confdir=`$as_dirname -- "$as_myself" || 1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1270 X"$as_myself" : 'X\(//\)[^/]' \| \ 1271 X"$as_myself" : 'X\(//\)$' \| \ 1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1273$as_echo X"$as_myself" | 1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)[^/].*/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\).*/{ 1287 s//\1/ 1288 q 1289 } 1290 s/.*/./; q'` 1291 srcdir=$ac_confdir 1292 if test ! -r "$srcdir/$ac_unique_file"; then 1293 srcdir=.. 1294 fi 1295else 1296 ac_srcdir_defaulted=no 1297fi 1298if test ! -r "$srcdir/$ac_unique_file"; then 1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1301fi 1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1303ac_abs_confdir=`( 1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1305 pwd)` 1306# When building in place, set srcdir=. 1307if test "$ac_abs_confdir" = "$ac_pwd"; then 1308 srcdir=. 1309fi 1310# Remove unnecessary trailing slashes from srcdir. 1311# Double slashes in file names in object file debugging info 1312# mess up M-x gdb in Emacs. 1313case $srcdir in 1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1315esac 1316for ac_var in $ac_precious_vars; do 1317 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_env_${ac_var}_value=\$${ac_var} 1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1321done 1322 1323# 1324# Report the --help message. 1325# 1326if test "$ac_init_help" = "long"; then 1327 # Omit some internal or obsolete options to make the list less imposing. 1328 # This message is too long to be a string in the A/UX 3.1 sh. 1329 cat <<_ACEOF 1330\`configure' configures rfc822lib 0.13 to adapt to many kinds of systems. 1331 1332Usage: $0 [OPTION]... [VAR=VALUE]... 1333 1334To assign environment variables (e.g., CC, CFLAGS...), specify them as 1335VAR=VALUE. See below for descriptions of some of the useful variables. 1336 1337Defaults for the options are specified in brackets. 1338 1339Configuration: 1340 -h, --help display this help and exit 1341 --help=short display options specific to this package 1342 --help=recursive display the short help of all the included packages 1343 -V, --version display version information and exit 1344 -q, --quiet, --silent do not print \`checking ...' messages 1345 --cache-file=FILE cache test results in FILE [disabled] 1346 -C, --config-cache alias for \`--cache-file=config.cache' 1347 -n, --no-create do not create output files 1348 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1349 1350Installation directories: 1351 --prefix=PREFIX install architecture-independent files in PREFIX 1352 [$ac_default_prefix] 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1354 [PREFIX] 1355 1356By default, \`make install' will install all the files in 1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1358an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1359for instance \`--prefix=\$HOME'. 1360 1361For better control, use the options below. 1362 1363Fine tuning of the installation directories: 1364 --bindir=DIR user executables [EPREFIX/bin] 1365 --sbindir=DIR system admin executables [EPREFIX/sbin] 1366 --libexecdir=DIR program executables [EPREFIX/libexec] 1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1370 --libdir=DIR object code libraries [EPREFIX/lib] 1371 --includedir=DIR C header files [PREFIX/include] 1372 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1375 --infodir=DIR info documentation [DATAROOTDIR/info] 1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1377 --mandir=DIR man documentation [DATAROOTDIR/man] 1378 --docdir=DIR documentation root [DATAROOTDIR/doc/rfc822lib] 1379 --htmldir=DIR html documentation [DOCDIR] 1380 --dvidir=DIR dvi documentation [DOCDIR] 1381 --pdfdir=DIR pdf documentation [DOCDIR] 1382 --psdir=DIR ps documentation [DOCDIR] 1383_ACEOF 1384 1385 cat <<\_ACEOF 1386 1387Program names: 1388 --program-prefix=PREFIX prepend PREFIX to installed program names 1389 --program-suffix=SUFFIX append SUFFIX to installed program names 1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1391 1392System types: 1393 --build=BUILD configure for building on BUILD [guessed] 1394 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1395_ACEOF 1396fi 1397 1398if test -n "$ac_init_help"; then 1399 case $ac_init_help in 1400 short | recursive ) echo "Configuration of rfc822lib 0.13:";; 1401 esac 1402 cat <<\_ACEOF 1403 1404Optional Features: 1405 --disable-option-checking ignore unrecognized --enable/--with options 1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1408 --enable-silent-rules less verbose build output (undo: "make V=1") 1409 --disable-silent-rules verbose build output (undo: "make V=0") 1410 --enable-dependency-tracking 1411 do not reject slow dependency extractors 1412 --disable-dependency-tracking 1413 speeds up one-time build 1414 --enable-shared[=PKGS] build shared libraries [default=yes] 1415 --enable-static[=PKGS] build static libraries [default=yes] 1416 --enable-fast-install[=PKGS] 1417 optimize for fast installation [default=yes] 1418 --disable-libtool-lock avoid locking (might break parallel builds) 1419 --disable-largefile omit support for large files 1420 1421Optional Packages: 1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1424 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1425 both] 1426 --with-aix-soname=aix|svr4|both 1427 shared library versioning (aka "SONAME") variant to 1428 provide on AIX, [default=aix]. 1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1430 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1431 compiler's sysroot if not specified). 1432 --with-libidn=DIR Support IDN (needs GNU Libidn) 1433 1434Some influential environment variables: 1435 CC C compiler command 1436 CFLAGS C compiler flags 1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1438 nonstandard directory <lib dir> 1439 LIBS libraries to pass to the linker, e.g. -l<library> 1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1441 you have headers in a nonstandard directory <include dir> 1442 CPP C preprocessor 1443 LT_SYS_LIBRARY_PATH 1444 User-defined run-time library search path. 1445 PKG_CONFIG path to pkg-config utility 1446 PKG_CONFIG_PATH 1447 directories to add to pkg-config's search path 1448 PKG_CONFIG_LIBDIR 1449 path overriding pkg-config's built-in search path 1450 LIBIDN_CFLAGS 1451 C compiler flags for LIBIDN, overriding pkg-config 1452 LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config 1453 1454Use these variables to override the choices made by `configure' or to help 1455it to find libraries and programs with nonstandard names/locations. 1456 1457Report bugs to <courier-users@lists.sourceforge.net>. 1458_ACEOF 1459ac_status=$? 1460fi 1461 1462if test "$ac_init_help" = "recursive"; then 1463 # If there are subdirs, report their specific --help. 1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1465 test -d "$ac_dir" || 1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1467 continue 1468 ac_builddir=. 1469 1470case "$ac_dir" in 1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1472*) 1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1474 # A ".." for each directory in $ac_dir_suffix. 1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1476 case $ac_top_builddir_sub in 1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1479 esac ;; 1480esac 1481ac_abs_top_builddir=$ac_pwd 1482ac_abs_builddir=$ac_pwd$ac_dir_suffix 1483# for backward compatibility: 1484ac_top_builddir=$ac_top_build_prefix 1485 1486case $srcdir in 1487 .) # We are building in place. 1488 ac_srcdir=. 1489 ac_top_srcdir=$ac_top_builddir_sub 1490 ac_abs_top_srcdir=$ac_pwd ;; 1491 [\\/]* | ?:[\\/]* ) # Absolute name. 1492 ac_srcdir=$srcdir$ac_dir_suffix; 1493 ac_top_srcdir=$srcdir 1494 ac_abs_top_srcdir=$srcdir ;; 1495 *) # Relative name. 1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1497 ac_top_srcdir=$ac_top_build_prefix$srcdir 1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1499esac 1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1501 1502 cd "$ac_dir" || { ac_status=$?; continue; } 1503 # Check for guested configure. 1504 if test -f "$ac_srcdir/configure.gnu"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1507 elif test -f "$ac_srcdir/configure"; then 1508 echo && 1509 $SHELL "$ac_srcdir/configure" --help=recursive 1510 else 1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1512 fi || ac_status=$? 1513 cd "$ac_pwd" || { ac_status=$?; break; } 1514 done 1515fi 1516 1517test -n "$ac_init_help" && exit $ac_status 1518if $ac_init_version; then 1519 cat <<\_ACEOF 1520rfc822lib configure 0.13 1521generated by GNU Autoconf 2.69 1522 1523Copyright (C) 2012 Free Software Foundation, Inc. 1524This configure script is free software; the Free Software Foundation 1525gives unlimited permission to copy, distribute and modify it. 1526_ACEOF 1527 exit 1528fi 1529 1530## ------------------------ ## 1531## Autoconf initialization. ## 1532## ------------------------ ## 1533 1534# ac_fn_c_try_compile LINENO 1535# -------------------------- 1536# Try to compile conftest.$ac_ext, and return whether this succeeded. 1537ac_fn_c_try_compile () 1538{ 1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540 rm -f conftest.$ac_objext 1541 if { { ac_try="$ac_compile" 1542case "(($ac_try" in 1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1544 *) ac_try_echo=$ac_try;; 1545esac 1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1547$as_echo "$ac_try_echo"; } >&5 1548 (eval "$ac_compile") 2>conftest.err 1549 ac_status=$? 1550 if test -s conftest.err; then 1551 grep -v '^ *+' conftest.err >conftest.er1 1552 cat conftest.er1 >&5 1553 mv -f conftest.er1 conftest.err 1554 fi 1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1556 test $ac_status = 0; } && { 1557 test -z "$ac_c_werror_flag" || 1558 test ! -s conftest.err 1559 } && test -s conftest.$ac_objext; then : 1560 ac_retval=0 1561else 1562 $as_echo "$as_me: failed program was:" >&5 1563sed 's/^/| /' conftest.$ac_ext >&5 1564 1565 ac_retval=1 1566fi 1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1568 as_fn_set_status $ac_retval 1569 1570} # ac_fn_c_try_compile 1571 1572# ac_fn_c_try_cpp LINENO 1573# ---------------------- 1574# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1575ac_fn_c_try_cpp () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 if { { ac_try="$ac_cpp conftest.$ac_ext" 1579case "(($ac_try" in 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1581 *) ac_try_echo=$ac_try;; 1582esac 1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1584$as_echo "$ac_try_echo"; } >&5 1585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1586 ac_status=$? 1587 if test -s conftest.err; then 1588 grep -v '^ *+' conftest.err >conftest.er1 1589 cat conftest.er1 >&5 1590 mv -f conftest.er1 conftest.err 1591 fi 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1593 test $ac_status = 0; } > conftest.i && { 1594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1595 test ! -s conftest.err 1596 }; then : 1597 ac_retval=0 1598else 1599 $as_echo "$as_me: failed program was:" >&5 1600sed 's/^/| /' conftest.$ac_ext >&5 1601 1602 ac_retval=1 1603fi 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605 as_fn_set_status $ac_retval 1606 1607} # ac_fn_c_try_cpp 1608 1609# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1610# ------------------------------------------------------- 1611# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1612# the include files in INCLUDES and setting the cache variable VAR 1613# accordingly. 1614ac_fn_c_check_header_mongrel () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 if eval \${$3+:} false; then : 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1619$as_echo_n "checking for $2... " >&6; } 1620if eval \${$3+:} false; then : 1621 $as_echo_n "(cached) " >&6 1622fi 1623eval ac_res=\$$3 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1625$as_echo "$ac_res" >&6; } 1626else 1627 # Is the header compilable? 1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1629$as_echo_n "checking $2 usability... " >&6; } 1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1631/* end confdefs.h. */ 1632$4 1633#include <$2> 1634_ACEOF 1635if ac_fn_c_try_compile "$LINENO"; then : 1636 ac_header_compiler=yes 1637else 1638 ac_header_compiler=no 1639fi 1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1642$as_echo "$ac_header_compiler" >&6; } 1643 1644# Is the header present? 1645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1646$as_echo_n "checking $2 presence... " >&6; } 1647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1648/* end confdefs.h. */ 1649#include <$2> 1650_ACEOF 1651if ac_fn_c_try_cpp "$LINENO"; then : 1652 ac_header_preproc=yes 1653else 1654 ac_header_preproc=no 1655fi 1656rm -f conftest.err conftest.i conftest.$ac_ext 1657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1658$as_echo "$ac_header_preproc" >&6; } 1659 1660# So? What about this header? 1661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1662 yes:no: ) 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1664$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1666$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1667 ;; 1668 no:yes:* ) 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1670$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1672$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1674$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1676$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1678$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1679( $as_echo "## -------------------------------------------------- ## 1680## Report this to courier-users@lists.sourceforge.net ## 1681## -------------------------------------------------- ##" 1682 ) | sed "s/^/$as_me: WARNING: /" >&2 1683 ;; 1684esac 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1686$as_echo_n "checking for $2... " >&6; } 1687if eval \${$3+:} false; then : 1688 $as_echo_n "(cached) " >&6 1689else 1690 eval "$3=\$ac_header_compiler" 1691fi 1692eval ac_res=\$$3 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1694$as_echo "$ac_res" >&6; } 1695fi 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 1698} # ac_fn_c_check_header_mongrel 1699 1700# ac_fn_c_try_run LINENO 1701# ---------------------- 1702# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1703# that executables *can* be run. 1704ac_fn_c_try_run () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 if { { ac_try="$ac_link" 1708case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_link") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1718 { { case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723$as_echo "$ac_try_echo"; } >&5 1724 (eval "$ac_try") 2>&5 1725 ac_status=$? 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; }; }; then : 1728 ac_retval=0 1729else 1730 $as_echo "$as_me: program exited with status $ac_status" >&5 1731 $as_echo "$as_me: failed program was:" >&5 1732sed 's/^/| /' conftest.$ac_ext >&5 1733 1734 ac_retval=$ac_status 1735fi 1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 as_fn_set_status $ac_retval 1739 1740} # ac_fn_c_try_run 1741 1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1743# ------------------------------------------------------- 1744# Tests whether HEADER exists and can be compiled using the include files in 1745# INCLUDES, setting the cache variable VAR accordingly. 1746ac_fn_c_check_header_compile () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1750$as_echo_n "checking for $2... " >&6; } 1751if eval \${$3+:} false; then : 1752 $as_echo_n "(cached) " >&6 1753else 1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1755/* end confdefs.h. */ 1756$4 1757#include <$2> 1758_ACEOF 1759if ac_fn_c_try_compile "$LINENO"; then : 1760 eval "$3=yes" 1761else 1762 eval "$3=no" 1763fi 1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1765fi 1766eval ac_res=\$$3 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1768$as_echo "$ac_res" >&6; } 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 1771} # ac_fn_c_check_header_compile 1772 1773# ac_fn_c_try_link LINENO 1774# ----------------------- 1775# Try to link conftest.$ac_ext, and return whether this succeeded. 1776ac_fn_c_try_link () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 rm -f conftest.$ac_objext conftest$ac_exeext 1780 if { { ac_try="$ac_link" 1781case "(($ac_try" in 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1783 *) ac_try_echo=$ac_try;; 1784esac 1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1786$as_echo "$ac_try_echo"; } >&5 1787 (eval "$ac_link") 2>conftest.err 1788 ac_status=$? 1789 if test -s conftest.err; then 1790 grep -v '^ *+' conftest.err >conftest.er1 1791 cat conftest.er1 >&5 1792 mv -f conftest.er1 conftest.err 1793 fi 1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1795 test $ac_status = 0; } && { 1796 test -z "$ac_c_werror_flag" || 1797 test ! -s conftest.err 1798 } && test -s conftest$ac_exeext && { 1799 test "$cross_compiling" = yes || 1800 test -x conftest$ac_exeext 1801 }; then : 1802 ac_retval=0 1803else 1804 $as_echo "$as_me: failed program was:" >&5 1805sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=1 1808fi 1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1811 # interfere with the next link command; also delete a directory that is 1812 # left behind by Apple's compiler. We do this before executing the actions. 1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 as_fn_set_status $ac_retval 1816 1817} # ac_fn_c_try_link 1818 1819# ac_fn_c_check_func LINENO FUNC VAR 1820# ---------------------------------- 1821# Tests whether FUNC exists, setting the cache variable VAR accordingly 1822ac_fn_c_check_func () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1826$as_echo_n "checking for $2... " >&6; } 1827if eval \${$3+:} false; then : 1828 $as_echo_n "(cached) " >&6 1829else 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1834#define $2 innocuous_$2 1835 1836/* System header to define __stub macros and hopefully few prototypes, 1837 which can conflict with char $2 (); below. 1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1839 <limits.h> exists even on freestanding compilers. */ 1840 1841#ifdef __STDC__ 1842# include <limits.h> 1843#else 1844# include <assert.h> 1845#endif 1846 1847#undef $2 1848 1849/* Override any GCC internal prototype to avoid an error. 1850 Use char because int might match the return type of a GCC 1851 builtin and then its argument prototype would still apply. */ 1852#ifdef __cplusplus 1853extern "C" 1854#endif 1855char $2 (); 1856/* The GNU C library defines this for functions which it implements 1857 to always fail with ENOSYS. Some functions are actually named 1858 something starting with __ and the normal name is an alias. */ 1859#if defined __stub_$2 || defined __stub___$2 1860choke me 1861#endif 1862 1863int 1864main () 1865{ 1866return $2 (); 1867 ; 1868 return 0; 1869} 1870_ACEOF 1871if ac_fn_c_try_link "$LINENO"; then : 1872 eval "$3=yes" 1873else 1874 eval "$3=no" 1875fi 1876rm -f core conftest.err conftest.$ac_objext \ 1877 conftest$ac_exeext conftest.$ac_ext 1878fi 1879eval ac_res=\$$3 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1881$as_echo "$ac_res" >&6; } 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 1884} # ac_fn_c_check_func 1885 1886# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1887# ------------------------------------------- 1888# Tests whether TYPE exists after having included INCLUDES, setting cache 1889# variable VAR accordingly. 1890ac_fn_c_check_type () 1891{ 1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1894$as_echo_n "checking for $2... " >&6; } 1895if eval \${$3+:} false; then : 1896 $as_echo_n "(cached) " >&6 1897else 1898 eval "$3=no" 1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900/* end confdefs.h. */ 1901$4 1902int 1903main () 1904{ 1905if (sizeof ($2)) 1906 return 0; 1907 ; 1908 return 0; 1909} 1910_ACEOF 1911if ac_fn_c_try_compile "$LINENO"; then : 1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1913/* end confdefs.h. */ 1914$4 1915int 1916main () 1917{ 1918if (sizeof (($2))) 1919 return 0; 1920 ; 1921 return 0; 1922} 1923_ACEOF 1924if ac_fn_c_try_compile "$LINENO"; then : 1925 1926else 1927 eval "$3=yes" 1928fi 1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1930fi 1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1932fi 1933eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935$as_echo "$ac_res" >&6; } 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1937 1938} # ac_fn_c_check_type 1939cat >config.log <<_ACEOF 1940This file contains any messages produced by compilers while 1941running configure, to aid debugging if configure makes a mistake. 1942 1943It was created by rfc822lib $as_me 0.13, which was 1944generated by GNU Autoconf 2.69. Invocation command line was 1945 1946 $ $0 $@ 1947 1948_ACEOF 1949exec 5>>config.log 1950{ 1951cat <<_ASUNAME 1952## --------- ## 1953## Platform. ## 1954## --------- ## 1955 1956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1957uname -m = `(uname -m) 2>/dev/null || echo unknown` 1958uname -r = `(uname -r) 2>/dev/null || echo unknown` 1959uname -s = `(uname -s) 2>/dev/null || echo unknown` 1960uname -v = `(uname -v) 2>/dev/null || echo unknown` 1961 1962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1963/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1964 1965/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1966/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1968/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1969/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1970/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1971/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1972 1973_ASUNAME 1974 1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1976for as_dir in $PATH 1977do 1978 IFS=$as_save_IFS 1979 test -z "$as_dir" && as_dir=. 1980 $as_echo "PATH: $as_dir" 1981 done 1982IFS=$as_save_IFS 1983 1984} >&5 1985 1986cat >&5 <<_ACEOF 1987 1988 1989## ----------- ## 1990## Core tests. ## 1991## ----------- ## 1992 1993_ACEOF 1994 1995 1996# Keep a trace of the command line. 1997# Strip out --no-create and --no-recursion so they do not pile up. 1998# Strip out --silent because we don't want to record it for future runs. 1999# Also quote any args containing shell meta-characters. 2000# Make two passes to allow for proper duplicate-argument suppression. 2001ac_configure_args= 2002ac_configure_args0= 2003ac_configure_args1= 2004ac_must_keep_next=false 2005for ac_pass in 1 2 2006do 2007 for ac_arg 2008 do 2009 case $ac_arg in 2010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2012 | -silent | --silent | --silen | --sile | --sil) 2013 continue ;; 2014 *\'*) 2015 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2016 esac 2017 case $ac_pass in 2018 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2019 2) 2020 as_fn_append ac_configure_args1 " '$ac_arg'" 2021 if test $ac_must_keep_next = true; then 2022 ac_must_keep_next=false # Got value, back to normal. 2023 else 2024 case $ac_arg in 2025 *=* | --config-cache | -C | -disable-* | --disable-* \ 2026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2028 | -with-* | --with-* | -without-* | --without-* | --x) 2029 case "$ac_configure_args0 " in 2030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2031 esac 2032 ;; 2033 -* ) ac_must_keep_next=true ;; 2034 esac 2035 fi 2036 as_fn_append ac_configure_args " '$ac_arg'" 2037 ;; 2038 esac 2039 done 2040done 2041{ ac_configure_args0=; unset ac_configure_args0;} 2042{ ac_configure_args1=; unset ac_configure_args1;} 2043 2044# When interrupted or exit'd, cleanup temporary files, and complete 2045# config.log. We remove comments because anyway the quotes in there 2046# would cause problems or look ugly. 2047# WARNING: Use '\'' to represent an apostrophe within the trap. 2048# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2049trap 'exit_status=$? 2050 # Save into config.log some information that might help in debugging. 2051 { 2052 echo 2053 2054 $as_echo "## ---------------- ## 2055## Cache variables. ## 2056## ---------------- ##" 2057 echo 2058 # The following way of writing the cache mishandles newlines in values, 2059( 2060 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2061 eval ac_val=\$$ac_var 2062 case $ac_val in #( 2063 *${as_nl}*) 2064 case $ac_var in #( 2065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2066$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2067 esac 2068 case $ac_var in #( 2069 _ | IFS | as_nl) ;; #( 2070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2071 *) { eval $ac_var=; unset $ac_var;} ;; 2072 esac ;; 2073 esac 2074 done 2075 (set) 2>&1 | 2076 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2077 *${as_nl}ac_space=\ *) 2078 sed -n \ 2079 "s/'\''/'\''\\\\'\'''\''/g; 2080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2081 ;; #( 2082 *) 2083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2084 ;; 2085 esac | 2086 sort 2087) 2088 echo 2089 2090 $as_echo "## ----------------- ## 2091## Output variables. ## 2092## ----------------- ##" 2093 echo 2094 for ac_var in $ac_subst_vars 2095 do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in 2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2099 esac 2100 $as_echo "$ac_var='\''$ac_val'\''" 2101 done | sort 2102 echo 2103 2104 if test -n "$ac_subst_files"; then 2105 $as_echo "## ------------------- ## 2106## File substitutions. ## 2107## ------------------- ##" 2108 echo 2109 for ac_var in $ac_subst_files 2110 do 2111 eval ac_val=\$$ac_var 2112 case $ac_val in 2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2114 esac 2115 $as_echo "$ac_var='\''$ac_val'\''" 2116 done | sort 2117 echo 2118 fi 2119 2120 if test -s confdefs.h; then 2121 $as_echo "## ----------- ## 2122## confdefs.h. ## 2123## ----------- ##" 2124 echo 2125 cat confdefs.h 2126 echo 2127 fi 2128 test "$ac_signal" != 0 && 2129 $as_echo "$as_me: caught signal $ac_signal" 2130 $as_echo "$as_me: exit $exit_status" 2131 } >&5 2132 rm -f core *.core core.conftest.* && 2133 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2134 exit $exit_status 2135' 0 2136for ac_signal in 1 2 13 15; do 2137 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2138done 2139ac_signal=0 2140 2141# confdefs.h avoids OS command line length limits that DEFS can exceed. 2142rm -f -r conftest* confdefs.h 2143 2144$as_echo "/* confdefs.h */" > confdefs.h 2145 2146# Predefined preprocessor variables. 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_NAME "$PACKAGE_NAME" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2154_ACEOF 2155 2156cat >>confdefs.h <<_ACEOF 2157#define PACKAGE_VERSION "$PACKAGE_VERSION" 2158_ACEOF 2159 2160cat >>confdefs.h <<_ACEOF 2161#define PACKAGE_STRING "$PACKAGE_STRING" 2162_ACEOF 2163 2164cat >>confdefs.h <<_ACEOF 2165#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2166_ACEOF 2167 2168cat >>confdefs.h <<_ACEOF 2169#define PACKAGE_URL "$PACKAGE_URL" 2170_ACEOF 2171 2172 2173# Let the site file select an alternate cache file if it wants to. 2174# Prefer an explicitly selected file to automatically selected ones. 2175ac_site_file1=NONE 2176ac_site_file2=NONE 2177if test -n "$CONFIG_SITE"; then 2178 # We do not want a PATH search for config.site. 2179 case $CONFIG_SITE in #(( 2180 -*) ac_site_file1=./$CONFIG_SITE;; 2181 */*) ac_site_file1=$CONFIG_SITE;; 2182 *) ac_site_file1=./$CONFIG_SITE;; 2183 esac 2184elif test "x$prefix" != xNONE; then 2185 ac_site_file1=$prefix/share/config.site 2186 ac_site_file2=$prefix/etc/config.site 2187else 2188 ac_site_file1=$ac_default_prefix/share/config.site 2189 ac_site_file2=$ac_default_prefix/etc/config.site 2190fi 2191for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2192do 2193 test "x$ac_site_file" = xNONE && continue 2194 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2196$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2197 sed 's/^/| /' "$ac_site_file" >&5 2198 . "$ac_site_file" \ 2199 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2201as_fn_error $? "failed to load site script $ac_site_file 2202See \`config.log' for more details" "$LINENO" 5; } 2203 fi 2204done 2205 2206if test -r "$cache_file"; then 2207 # Some versions of bash will fail to source /dev/null (special files 2208 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2209 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2211$as_echo "$as_me: loading cache $cache_file" >&6;} 2212 case $cache_file in 2213 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2214 *) . "./$cache_file";; 2215 esac 2216 fi 2217else 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2219$as_echo "$as_me: creating cache $cache_file" >&6;} 2220 >$cache_file 2221fi 2222 2223# Check that the precious variables saved in the cache have kept the same 2224# value. 2225ac_cache_corrupted=false 2226for ac_var in $ac_precious_vars; do 2227 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2228 eval ac_new_set=\$ac_env_${ac_var}_set 2229 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2230 eval ac_new_val=\$ac_env_${ac_var}_value 2231 case $ac_old_set,$ac_new_set in 2232 set,) 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2234$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2235 ac_cache_corrupted=: ;; 2236 ,set) 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2238$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2239 ac_cache_corrupted=: ;; 2240 ,);; 2241 *) 2242 if test "x$ac_old_val" != "x$ac_new_val"; then 2243 # differences in whitespace do not lead to failure. 2244 ac_old_val_w=`echo x $ac_old_val` 2245 ac_new_val_w=`echo x $ac_new_val` 2246 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2248$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2249 ac_cache_corrupted=: 2250 else 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2252$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2253 eval $ac_var=\$ac_old_val 2254 fi 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2256$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2258$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2259 fi;; 2260 esac 2261 # Pass precious variables to config.status. 2262 if test "$ac_new_set" = set; then 2263 case $ac_new_val in 2264 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2265 *) ac_arg=$ac_var=$ac_new_val ;; 2266 esac 2267 case " $ac_configure_args " in 2268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2269 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2270 esac 2271 fi 2272done 2273if $ac_cache_corrupted; then 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2277$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2278 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2279fi 2280## -------------------- ## 2281## Main body of script. ## 2282## -------------------- ## 2283 2284ac_ext=c 2285ac_cpp='$CPP $CPPFLAGS' 2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2288ac_compiler_gnu=$ac_cv_c_compiler_gnu 2289 2290 2291 2292>confdefs.h # Kill PACKAGE_ macros 2293 2294 2295ac_aux_dir= 2296for ac_dir in ../.. "$srcdir"/../..; do 2297 if test -f "$ac_dir/install-sh"; then 2298 ac_aux_dir=$ac_dir 2299 ac_install_sh="$ac_aux_dir/install-sh -c" 2300 break 2301 elif test -f "$ac_dir/install.sh"; then 2302 ac_aux_dir=$ac_dir 2303 ac_install_sh="$ac_aux_dir/install.sh -c" 2304 break 2305 elif test -f "$ac_dir/shtool"; then 2306 ac_aux_dir=$ac_dir 2307 ac_install_sh="$ac_aux_dir/shtool install -c" 2308 break 2309 fi 2310done 2311if test -z "$ac_aux_dir"; then 2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2313fi 2314 2315# These three variables are undocumented and unsupported, 2316# and are intended to be withdrawn in a future Autoconf release. 2317# They can cause serious problems if a builder's source tree is in a directory 2318# whose full name contains unusual characters. 2319ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2320ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2321ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2322 2323 2324am__api_version='1.16' 2325 2326# Find a good install program. We prefer a C program (faster), 2327# so one script is as good as another. But avoid the broken or 2328# incompatible versions: 2329# SysV /etc/install, /usr/sbin/install 2330# SunOS /usr/etc/install 2331# IRIX /sbin/install 2332# AIX /bin/install 2333# AmigaOS /C/install, which installs bootblocks on floppy discs 2334# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2335# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2336# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2337# OS/2's system install, which has a completely different semantic 2338# ./install, which can be erroneously created by make from ./install.sh. 2339# Reject install programs that cannot install multiple files. 2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2341$as_echo_n "checking for a BSD-compatible install... " >&6; } 2342if test -z "$INSTALL"; then 2343if ${ac_cv_path_install+:} false; then : 2344 $as_echo_n "(cached) " >&6 2345else 2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2347for as_dir in $PATH 2348do 2349 IFS=$as_save_IFS 2350 test -z "$as_dir" && as_dir=. 2351 # Account for people who put trailing slashes in PATH elements. 2352case $as_dir/ in #(( 2353 ./ | .// | /[cC]/* | \ 2354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2356 /usr/ucb/* ) ;; 2357 *) 2358 # OSF1 and SCO ODT 3.0 have their own names for install. 2359 # Don't use installbsd from OSF since it installs stuff as root 2360 # by default. 2361 for ac_prog in ginstall scoinst install; do 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2364 if test $ac_prog = install && 2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2366 # AIX install. It has an incompatible calling convention. 2367 : 2368 elif test $ac_prog = install && 2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2370 # program-specific install script used by HP pwplus--don't use. 2371 : 2372 else 2373 rm -rf conftest.one conftest.two conftest.dir 2374 echo one > conftest.one 2375 echo two > conftest.two 2376 mkdir conftest.dir 2377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2378 test -s conftest.one && test -s conftest.two && 2379 test -s conftest.dir/conftest.one && 2380 test -s conftest.dir/conftest.two 2381 then 2382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2383 break 3 2384 fi 2385 fi 2386 fi 2387 done 2388 done 2389 ;; 2390esac 2391 2392 done 2393IFS=$as_save_IFS 2394 2395rm -rf conftest.one conftest.two conftest.dir 2396 2397fi 2398 if test "${ac_cv_path_install+set}" = set; then 2399 INSTALL=$ac_cv_path_install 2400 else 2401 # As a last resort, use the slow shell script. Don't cache a 2402 # value for INSTALL within a source directory, because that will 2403 # break other packages using the cache if that directory is 2404 # removed, or if the value is a relative name. 2405 INSTALL=$ac_install_sh 2406 fi 2407fi 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2409$as_echo "$INSTALL" >&6; } 2410 2411# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2412# It thinks the first close brace ends the variable substitution. 2413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2414 2415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2416 2417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2418 2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2420$as_echo_n "checking whether build environment is sane... " >&6; } 2421# Reject unsafe characters in $srcdir or the absolute working directory 2422# name. Accept space and tab only in the latter. 2423am_lf=' 2424' 2425case `pwd` in 2426 *[\\\"\#\$\&\'\`$am_lf]*) 2427 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2428esac 2429case $srcdir in 2430 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2431 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2432esac 2433 2434# Do 'set' in a subshell so we don't clobber the current shell's 2435# arguments. Must try -L first in case configure is actually a 2436# symlink; some systems play weird games with the mod time of symlinks 2437# (eg FreeBSD returns the mod time of the symlink's containing 2438# directory). 2439if ( 2440 am_has_slept=no 2441 for am_try in 1 2; do 2442 echo "timestamp, slept: $am_has_slept" > conftest.file 2443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2444 if test "$*" = "X"; then 2445 # -L didn't work. 2446 set X `ls -t "$srcdir/configure" conftest.file` 2447 fi 2448 if test "$*" != "X $srcdir/configure conftest.file" \ 2449 && test "$*" != "X conftest.file $srcdir/configure"; then 2450 2451 # If neither matched, then we have a broken ls. This can happen 2452 # if, for instance, CONFIG_SHELL is bash and it inherits a 2453 # broken ls alias from the environment. This has actually 2454 # happened. Such a system could not be considered "sane". 2455 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2456 alias in your environment" "$LINENO" 5 2457 fi 2458 if test "$2" = conftest.file || test $am_try -eq 2; then 2459 break 2460 fi 2461 # Just in case. 2462 sleep 1 2463 am_has_slept=yes 2464 done 2465 test "$2" = conftest.file 2466 ) 2467then 2468 # Ok. 2469 : 2470else 2471 as_fn_error $? "newly created file is older than distributed files! 2472Check your system clock" "$LINENO" 5 2473fi 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2475$as_echo "yes" >&6; } 2476# If we didn't sleep, we still need to ensure time stamps of config.status and 2477# generated files are strictly newer. 2478am_sleep_pid= 2479if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2480 ( sleep 1 ) & 2481 am_sleep_pid=$! 2482fi 2483 2484rm -f conftest.file 2485 2486test "$program_prefix" != NONE && 2487 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2488# Use a double $ so make ignores it. 2489test "$program_suffix" != NONE && 2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2491# Double any \ or $. 2492# By default was `s,x,x', remove it if useless. 2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2495 2496# Expand $ac_aux_dir to an absolute path. 2497am_aux_dir=`cd "$ac_aux_dir" && pwd` 2498 2499if test x"${MISSING+set}" != xset; then 2500 case $am_aux_dir in 2501 *\ * | *\ *) 2502 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2503 *) 2504 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2505 esac 2506fi 2507# Use eval to expand $SHELL 2508if eval "$MISSING --is-lightweight"; then 2509 am_missing_run="$MISSING " 2510else 2511 am_missing_run= 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2513$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2514fi 2515 2516if test x"${install_sh+set}" != xset; then 2517 case $am_aux_dir in 2518 *\ * | *\ *) 2519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2520 *) 2521 install_sh="\${SHELL} $am_aux_dir/install-sh" 2522 esac 2523fi 2524 2525# Installed binaries are usually stripped using 'strip' when the user 2526# run "make install-strip". However 'strip' might not be the right 2527# tool to use in cross-compilation environments, therefore Automake 2528# will honor the 'STRIP' environment variable to overrule this program. 2529if test "$cross_compiling" != no; then 2530 if test -n "$ac_tool_prefix"; then 2531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2532set dummy ${ac_tool_prefix}strip; ac_word=$2 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2534$as_echo_n "checking for $ac_word... " >&6; } 2535if ${ac_cv_prog_STRIP+:} false; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 if test -n "$STRIP"; then 2539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2540else 2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2542for as_dir in $PATH 2543do 2544 IFS=$as_save_IFS 2545 test -z "$as_dir" && as_dir=. 2546 for ac_exec_ext in '' $ac_executable_extensions; do 2547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2548 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2550 break 2 2551 fi 2552done 2553 done 2554IFS=$as_save_IFS 2555 2556fi 2557fi 2558STRIP=$ac_cv_prog_STRIP 2559if test -n "$STRIP"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2561$as_echo "$STRIP" >&6; } 2562else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2564$as_echo "no" >&6; } 2565fi 2566 2567 2568fi 2569if test -z "$ac_cv_prog_STRIP"; then 2570 ac_ct_STRIP=$STRIP 2571 # Extract the first word of "strip", so it can be a program name with args. 2572set dummy strip; ac_word=$2 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2574$as_echo_n "checking for $ac_word... " >&6; } 2575if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2576 $as_echo_n "(cached) " >&6 2577else 2578 if test -n "$ac_ct_STRIP"; then 2579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2580else 2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2582for as_dir in $PATH 2583do 2584 IFS=$as_save_IFS 2585 test -z "$as_dir" && as_dir=. 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2588 ac_cv_prog_ac_ct_STRIP="strip" 2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593 done 2594IFS=$as_save_IFS 2595 2596fi 2597fi 2598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2599if test -n "$ac_ct_STRIP"; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2601$as_echo "$ac_ct_STRIP" >&6; } 2602else 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2604$as_echo "no" >&6; } 2605fi 2606 2607 if test "x$ac_ct_STRIP" = x; then 2608 STRIP=":" 2609 else 2610 case $cross_compiling:$ac_tool_warned in 2611yes:) 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2614ac_tool_warned=yes ;; 2615esac 2616 STRIP=$ac_ct_STRIP 2617 fi 2618else 2619 STRIP="$ac_cv_prog_STRIP" 2620fi 2621 2622fi 2623INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2624 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2626$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2627if test -z "$MKDIR_P"; then 2628 if ${ac_cv_path_mkdir+:} false; then : 2629 $as_echo_n "(cached) " >&6 2630else 2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_prog in mkdir gmkdir; do 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2640 'mkdir (GNU coreutils) '* | \ 2641 'mkdir (coreutils) '* | \ 2642 'mkdir (fileutils) '4.1*) 2643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2644 break 3;; 2645 esac 2646 done 2647 done 2648 done 2649IFS=$as_save_IFS 2650 2651fi 2652 2653 test -d ./--version && rmdir ./--version 2654 if test "${ac_cv_path_mkdir+set}" = set; then 2655 MKDIR_P="$ac_cv_path_mkdir -p" 2656 else 2657 # As a last resort, use the slow shell script. Don't cache a 2658 # value for MKDIR_P within a source directory, because that will 2659 # break other packages using the cache if that directory is 2660 # removed, or if the value is a relative name. 2661 MKDIR_P="$ac_install_sh -d" 2662 fi 2663fi 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2665$as_echo "$MKDIR_P" >&6; } 2666 2667for ac_prog in gawk mawk nawk awk 2668do 2669 # Extract the first word of "$ac_prog", so it can be a program name with args. 2670set dummy $ac_prog; ac_word=$2 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2672$as_echo_n "checking for $ac_word... " >&6; } 2673if ${ac_cv_prog_AWK+:} false; then : 2674 $as_echo_n "(cached) " >&6 2675else 2676 if test -n "$AWK"; then 2677 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2678else 2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2680for as_dir in $PATH 2681do 2682 IFS=$as_save_IFS 2683 test -z "$as_dir" && as_dir=. 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2686 ac_cv_prog_AWK="$ac_prog" 2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2688 break 2 2689 fi 2690done 2691 done 2692IFS=$as_save_IFS 2693 2694fi 2695fi 2696AWK=$ac_cv_prog_AWK 2697if test -n "$AWK"; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2699$as_echo "$AWK" >&6; } 2700else 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2702$as_echo "no" >&6; } 2703fi 2704 2705 2706 test -n "$AWK" && break 2707done 2708 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2710$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2711set x ${MAKE-make} 2712ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2713if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 cat >conftest.make <<\_ACEOF 2717SHELL = /bin/sh 2718all: 2719 @echo '@@@%%%=$(MAKE)=@@@%%%' 2720_ACEOF 2721# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2722case `${MAKE-make} -f conftest.make 2>/dev/null` in 2723 *@@@%%%=?*=@@@%%%*) 2724 eval ac_cv_prog_make_${ac_make}_set=yes;; 2725 *) 2726 eval ac_cv_prog_make_${ac_make}_set=no;; 2727esac 2728rm -f conftest.make 2729fi 2730if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2732$as_echo "yes" >&6; } 2733 SET_MAKE= 2734else 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2736$as_echo "no" >&6; } 2737 SET_MAKE="MAKE=${MAKE-make}" 2738fi 2739 2740rm -rf .tst 2>/dev/null 2741mkdir .tst 2>/dev/null 2742if test -d .tst; then 2743 am__leading_dot=. 2744else 2745 am__leading_dot=_ 2746fi 2747rmdir .tst 2>/dev/null 2748 2749# Check whether --enable-silent-rules was given. 2750if test "${enable_silent_rules+set}" = set; then : 2751 enableval=$enable_silent_rules; 2752fi 2753 2754case $enable_silent_rules in # ((( 2755 yes) AM_DEFAULT_VERBOSITY=0;; 2756 no) AM_DEFAULT_VERBOSITY=1;; 2757 *) AM_DEFAULT_VERBOSITY=1;; 2758esac 2759am_make=${MAKE-make} 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2761$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2762if ${am_cv_make_support_nested_variables+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if $as_echo 'TRUE=$(BAR$(V)) 2766BAR0=false 2767BAR1=true 2768V=1 2769am__doit: 2770 @$(TRUE) 2771.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2772 am_cv_make_support_nested_variables=yes 2773else 2774 am_cv_make_support_nested_variables=no 2775fi 2776fi 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2778$as_echo "$am_cv_make_support_nested_variables" >&6; } 2779if test $am_cv_make_support_nested_variables = yes; then 2780 AM_V='$(V)' 2781 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2782else 2783 AM_V=$AM_DEFAULT_VERBOSITY 2784 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2785fi 2786AM_BACKSLASH='\' 2787 2788if test "`cd $srcdir && pwd`" != "`pwd`"; then 2789 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2790 # is not polluted with repeated "-I." 2791 am__isrc=' -I$(srcdir)' 2792 # test to see if srcdir already configured 2793 if test -f $srcdir/config.status; then 2794 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2795 fi 2796fi 2797 2798# test whether we have cygpath 2799if test -z "$CYGPATH_W"; then 2800 if (cygpath --version) >/dev/null 2>/dev/null; then 2801 CYGPATH_W='cygpath -w' 2802 else 2803 CYGPATH_W=echo 2804 fi 2805fi 2806 2807 2808# Define the identity of the package. 2809 PACKAGE='rfc822lib' 2810 VERSION='0.13' 2811 2812 2813# Some tools Automake needs. 2814 2815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2816 2817 2818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2819 2820 2821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2822 2823 2824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2825 2826 2827MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2828 2829# For better backward compatibility. To be removed once Automake 1.9.x 2830# dies out for good. For more background, see: 2831# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2832# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2833mkdir_p='$(MKDIR_P)' 2834 2835# We need awk for the "check" target (and possibly the TAP driver). The 2836# system "awk" is bad on some platforms. 2837# Always define AMTAR for backward compatibility. Yes, it's still used 2838# in the wild :-( We should find a proper way to deprecate it ... 2839AMTAR='$${TAR-tar}' 2840 2841 2842# We'll loop over all known methods to create a tar archive until one works. 2843_am_tools='gnutar pax cpio none' 2844 2845am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2846 2847 2848 2849 2850 2851 2852# POSIX will say in a future version that running "rm -f" with no argument 2853# is OK; and we want to be able to make that assumption in our Makefile 2854# recipes. So use an aggressive probe to check that the usage we want is 2855# actually supported "in the wild" to an acceptable degree. 2856# See automake bug#10828. 2857# To make any issue more visible, cause the running configure to be aborted 2858# by default if the 'rm' program in use doesn't match our expectations; the 2859# user can still override this though. 2860if rm -f && rm -fr && rm -rf; then : OK; else 2861 cat >&2 <<'END' 2862Oops! 2863 2864Your 'rm' program seems unable to run without file operands specified 2865on the command line, even when the '-f' option is present. This is contrary 2866to the behaviour of most rm programs out there, and not conforming with 2867the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2868 2869Please tell bug-automake@gnu.org about your system, including the value 2870of your $PATH and any error possibly output before this message. This 2871can help us improve future automake versions. 2872 2873END 2874 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2875 echo 'Configuration will proceed anyway, since you have set the' >&2 2876 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2877 echo >&2 2878 else 2879 cat >&2 <<'END' 2880Aborting the configuration process, to ensure you take notice of the issue. 2881 2882You can download and install GNU coreutils to get an 'rm' implementation 2883that behaves properly: <https://www.gnu.org/software/coreutils/>. 2884 2885If you want to complete the configuration process using your problematic 2886'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2887to "yes", and re-run configure. 2888 2889END 2890 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2891 fi 2892fi 2893 2894ac_config_headers="$ac_config_headers config.h" 2895 2896 2897DEPDIR="${am__leading_dot}deps" 2898 2899ac_config_commands="$ac_config_commands depfiles" 2900 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2902$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2903cat > confinc.mk << 'END' 2904am__doit: 2905 @echo this is the am__doit target >confinc.out 2906.PHONY: am__doit 2907END 2908am__include="#" 2909am__quote= 2910# BSD make does it like this. 2911echo '.include "confinc.mk" # ignored' > confmf.BSD 2912# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2913echo 'include confinc.mk # ignored' > confmf.GNU 2914_am_result=no 2915for s in GNU BSD; do 2916 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2917 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2918 ac_status=$? 2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2920 (exit $ac_status); } 2921 case $?:`cat confinc.out 2>/dev/null` in #( 2922 '0:this is the am__doit target') : 2923 case $s in #( 2924 BSD) : 2925 am__include='.include' am__quote='"' ;; #( 2926 *) : 2927 am__include='include' am__quote='' ;; 2928esac ;; #( 2929 *) : 2930 ;; 2931esac 2932 if test "$am__include" != "#"; then 2933 _am_result="yes ($s style)" 2934 break 2935 fi 2936done 2937rm -f confinc.* confmf.* 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2939$as_echo "${_am_result}" >&6; } 2940 2941# Check whether --enable-dependency-tracking was given. 2942if test "${enable_dependency_tracking+set}" = set; then : 2943 enableval=$enable_dependency_tracking; 2944fi 2945 2946if test "x$enable_dependency_tracking" != xno; then 2947 am_depcomp="$ac_aux_dir/depcomp" 2948 AMDEPBACKSLASH='\' 2949 am__nodep='_no' 2950fi 2951 if test "x$enable_dependency_tracking" != xno; then 2952 AMDEP_TRUE= 2953 AMDEP_FALSE='#' 2954else 2955 AMDEP_TRUE='#' 2956 AMDEP_FALSE= 2957fi 2958 2959 2960ac_ext=c 2961ac_cpp='$CPP $CPPFLAGS' 2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2964ac_compiler_gnu=$ac_cv_c_compiler_gnu 2965if test -n "$ac_tool_prefix"; then 2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2967set dummy ${ac_tool_prefix}gcc; ac_word=$2 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969$as_echo_n "checking for $ac_word... " >&6; } 2970if ${ac_cv_prog_CC+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 if test -n "$CC"; then 2974 ac_cv_prog_CC="$CC" # Let the user override the test. 2975else 2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH 2978do 2979 IFS=$as_save_IFS 2980 test -z "$as_dir" && as_dir=. 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2983 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2985 break 2 2986 fi 2987done 2988 done 2989IFS=$as_save_IFS 2990 2991fi 2992fi 2993CC=$ac_cv_prog_CC 2994if test -n "$CC"; then 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2996$as_echo "$CC" >&6; } 2997else 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2999$as_echo "no" >&6; } 3000fi 3001 3002 3003fi 3004if test -z "$ac_cv_prog_CC"; then 3005 ac_ct_CC=$CC 3006 # Extract the first word of "gcc", so it can be a program name with args. 3007set dummy gcc; ac_word=$2 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3009$as_echo_n "checking for $ac_word... " >&6; } 3010if ${ac_cv_prog_ac_ct_CC+:} false; then : 3011 $as_echo_n "(cached) " >&6 3012else 3013 if test -n "$ac_ct_CC"; then 3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3015else 3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3017for as_dir in $PATH 3018do 3019 IFS=$as_save_IFS 3020 test -z "$as_dir" && as_dir=. 3021 for ac_exec_ext in '' $ac_executable_extensions; do 3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3023 ac_cv_prog_ac_ct_CC="gcc" 3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3025 break 2 3026 fi 3027done 3028 done 3029IFS=$as_save_IFS 3030 3031fi 3032fi 3033ac_ct_CC=$ac_cv_prog_ac_ct_CC 3034if test -n "$ac_ct_CC"; then 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3036$as_echo "$ac_ct_CC" >&6; } 3037else 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3039$as_echo "no" >&6; } 3040fi 3041 3042 if test "x$ac_ct_CC" = x; then 3043 CC="" 3044 else 3045 case $cross_compiling:$ac_tool_warned in 3046yes:) 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3049ac_tool_warned=yes ;; 3050esac 3051 CC=$ac_ct_CC 3052 fi 3053else 3054 CC="$ac_cv_prog_CC" 3055fi 3056 3057if test -z "$CC"; then 3058 if test -n "$ac_tool_prefix"; then 3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3060set dummy ${ac_tool_prefix}cc; ac_word=$2 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062$as_echo_n "checking for $ac_word... " >&6; } 3063if ${ac_cv_prog_CC+:} false; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 if test -n "$CC"; then 3067 ac_cv_prog_CC="$CC" # Let the user override the test. 3068else 3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070for as_dir in $PATH 3071do 3072 IFS=$as_save_IFS 3073 test -z "$as_dir" && as_dir=. 3074 for ac_exec_ext in '' $ac_executable_extensions; do 3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3076 ac_cv_prog_CC="${ac_tool_prefix}cc" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084fi 3085fi 3086CC=$ac_cv_prog_CC 3087if test -n "$CC"; then 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3089$as_echo "$CC" >&6; } 3090else 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092$as_echo "no" >&6; } 3093fi 3094 3095 3096 fi 3097fi 3098if test -z "$CC"; then 3099 # Extract the first word of "cc", so it can be a program name with args. 3100set dummy cc; ac_word=$2 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3102$as_echo_n "checking for $ac_word... " >&6; } 3103if ${ac_cv_prog_CC+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 if test -n "$CC"; then 3107 ac_cv_prog_CC="$CC" # Let the user override the test. 3108else 3109 ac_prog_rejected=no 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3118 ac_prog_rejected=yes 3119 continue 3120 fi 3121 ac_cv_prog_CC="cc" 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3123 break 2 3124 fi 3125done 3126 done 3127IFS=$as_save_IFS 3128 3129if test $ac_prog_rejected = yes; then 3130 # We found a bogon in the path, so make sure we never use it. 3131 set dummy $ac_cv_prog_CC 3132 shift 3133 if test $# != 0; then 3134 # We chose a different compiler from the bogus one. 3135 # However, it has the same basename, so the bogon will be chosen 3136 # first if we set CC to just the basename; use the full file name. 3137 shift 3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3139 fi 3140fi 3141fi 3142fi 3143CC=$ac_cv_prog_CC 3144if test -n "$CC"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3146$as_echo "$CC" >&6; } 3147else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153fi 3154if test -z "$CC"; then 3155 if test -n "$ac_tool_prefix"; then 3156 for ac_prog in cl.exe 3157 do 3158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3159set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161$as_echo_n "checking for $ac_word... " >&6; } 3162if ${ac_cv_prog_CC+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if test -n "$CC"; then 3166 ac_cv_prog_CC="$CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183fi 3184fi 3185CC=$ac_cv_prog_CC 3186if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188$as_echo "$CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195 test -n "$CC" && break 3196 done 3197fi 3198if test -z "$CC"; then 3199 ac_ct_CC=$CC 3200 for ac_prog in cl.exe 3201do 3202 # Extract the first word of "$ac_prog", so it can be a program name with args. 3203set dummy $ac_prog; ac_word=$2 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3205$as_echo_n "checking for $ac_word... " >&6; } 3206if ${ac_cv_prog_ac_ct_CC+:} false; then : 3207 $as_echo_n "(cached) " >&6 3208else 3209 if test -n "$ac_ct_CC"; then 3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3211else 3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3213for as_dir in $PATH 3214do 3215 IFS=$as_save_IFS 3216 test -z "$as_dir" && as_dir=. 3217 for ac_exec_ext in '' $ac_executable_extensions; do 3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3219 ac_cv_prog_ac_ct_CC="$ac_prog" 3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3221 break 2 3222 fi 3223done 3224 done 3225IFS=$as_save_IFS 3226 3227fi 3228fi 3229ac_ct_CC=$ac_cv_prog_ac_ct_CC 3230if test -n "$ac_ct_CC"; then 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3232$as_echo "$ac_ct_CC" >&6; } 3233else 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3235$as_echo "no" >&6; } 3236fi 3237 3238 3239 test -n "$ac_ct_CC" && break 3240done 3241 3242 if test "x$ac_ct_CC" = x; then 3243 CC="" 3244 else 3245 case $cross_compiling:$ac_tool_warned in 3246yes:) 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3249ac_tool_warned=yes ;; 3250esac 3251 CC=$ac_ct_CC 3252 fi 3253fi 3254 3255fi 3256 3257 3258test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3260as_fn_error $? "no acceptable C compiler found in \$PATH 3261See \`config.log' for more details" "$LINENO" 5; } 3262 3263# Provide some information about the compiler. 3264$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3265set X $ac_compile 3266ac_compiler=$2 3267for ac_option in --version -v -V -qversion; do 3268 { { ac_try="$ac_compiler $ac_option >&5" 3269case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272esac 3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3274$as_echo "$ac_try_echo"; } >&5 3275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3276 ac_status=$? 3277 if test -s conftest.err; then 3278 sed '10a\ 3279... rest of stderr output deleted ... 3280 10q' conftest.err >conftest.er1 3281 cat conftest.er1 >&5 3282 fi 3283 rm -f conftest.er1 conftest.err 3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3285 test $ac_status = 0; } 3286done 3287 3288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294 3295 ; 3296 return 0; 3297} 3298_ACEOF 3299ac_clean_files_save=$ac_clean_files 3300ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3301# Try to create an executable without -o first, disregard a.out. 3302# It will help us diagnose broken compilers, and finding out an intuition 3303# of exeext. 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3305$as_echo_n "checking whether the C compiler works... " >&6; } 3306ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3307 3308# The possible output files: 3309ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3310 3311ac_rmfiles= 3312for ac_file in $ac_files 3313do 3314 case $ac_file in 3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3316 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3317 esac 3318done 3319rm -f $ac_rmfiles 3320 3321if { { ac_try="$ac_link_default" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3327$as_echo "$ac_try_echo"; } >&5 3328 (eval "$ac_link_default") 2>&5 3329 ac_status=$? 3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3331 test $ac_status = 0; }; then : 3332 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3333# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3334# in a Makefile. We should not override ac_cv_exeext if it was cached, 3335# so that the user can short-circuit this test for compilers unknown to 3336# Autoconf. 3337for ac_file in $ac_files '' 3338do 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 ;; 3343 [ab].out ) 3344 # We found the default executable, but exeext='' is most 3345 # certainly right. 3346 break;; 3347 *.* ) 3348 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3349 then :; else 3350 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3351 fi 3352 # We set ac_cv_exeext here because the later test for it is not 3353 # safe: cross compilers may not add the suffix if given an `-o' 3354 # argument, so we may need to know it at that point already. 3355 # Even if this section looks crufty: it has the advantage of 3356 # actually working. 3357 break;; 3358 * ) 3359 break;; 3360 esac 3361done 3362test "$ac_cv_exeext" = no && ac_cv_exeext= 3363 3364else 3365 ac_file='' 3366fi 3367if test -z "$ac_file"; then : 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3369$as_echo "no" >&6; } 3370$as_echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3375as_fn_error 77 "C compiler cannot create executables 3376See \`config.log' for more details" "$LINENO" 5; } 3377else 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3379$as_echo "yes" >&6; } 3380fi 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3382$as_echo_n "checking for C compiler default output file name... " >&6; } 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3384$as_echo "$ac_file" >&6; } 3385ac_exeext=$ac_cv_exeext 3386 3387rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3388ac_clean_files=$ac_clean_files_save 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3390$as_echo_n "checking for suffix of executables... " >&6; } 3391if { { ac_try="$ac_link" 3392case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395esac 3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3397$as_echo "$ac_try_echo"; } >&5 3398 (eval "$ac_link") 2>&5 3399 ac_status=$? 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401 test $ac_status = 0; }; then : 3402 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3403# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3404# work properly (i.e., refer to `conftest.exe'), while it won't with 3405# `rm'. 3406for ac_file in conftest.exe conftest conftest.*; do 3407 test -f "$ac_file" || continue 3408 case $ac_file in 3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3411 break;; 3412 * ) break;; 3413 esac 3414done 3415else 3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3418as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3419See \`config.log' for more details" "$LINENO" 5; } 3420fi 3421rm -f conftest conftest$ac_cv_exeext 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3423$as_echo "$ac_cv_exeext" >&6; } 3424 3425rm -f conftest.$ac_ext 3426EXEEXT=$ac_cv_exeext 3427ac_exeext=$EXEEXT 3428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430#include <stdio.h> 3431int 3432main () 3433{ 3434FILE *f = fopen ("conftest.out", "w"); 3435 return ferror (f) || fclose (f) != 0; 3436 3437 ; 3438 return 0; 3439} 3440_ACEOF 3441ac_clean_files="$ac_clean_files conftest.out" 3442# Check that the compiler produces executables we can run. If not, either 3443# the compiler is broken, or we cross compile. 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3445$as_echo_n "checking whether we are cross compiling... " >&6; } 3446if test "$cross_compiling" != yes; then 3447 { { ac_try="$ac_link" 3448case "(($ac_try" in 3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *) ac_try_echo=$ac_try;; 3451esac 3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3453$as_echo "$ac_try_echo"; } >&5 3454 (eval "$ac_link") 2>&5 3455 ac_status=$? 3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3457 test $ac_status = 0; } 3458 if { ac_try='./conftest$ac_cv_exeext' 3459 { { case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3464$as_echo "$ac_try_echo"; } >&5 3465 (eval "$ac_try") 2>&5 3466 ac_status=$? 3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3468 test $ac_status = 0; }; }; then 3469 cross_compiling=no 3470 else 3471 if test "$cross_compiling" = maybe; then 3472 cross_compiling=yes 3473 else 3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3476as_fn_error $? "cannot run C compiled programs. 3477If you meant to cross compile, use \`--host'. 3478See \`config.log' for more details" "$LINENO" 5; } 3479 fi 3480 fi 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3483$as_echo "$cross_compiling" >&6; } 3484 3485rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3486ac_clean_files=$ac_clean_files_save 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3488$as_echo_n "checking for suffix of object files... " >&6; } 3489if ${ac_cv_objext+:} false; then : 3490 $as_echo_n "(cached) " >&6 3491else 3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3493/* end confdefs.h. */ 3494 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503rm -f conftest.o conftest.obj 3504if { { ac_try="$ac_compile" 3505case "(($ac_try" in 3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3507 *) ac_try_echo=$ac_try;; 3508esac 3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3510$as_echo "$ac_try_echo"; } >&5 3511 (eval "$ac_compile") 2>&5 3512 ac_status=$? 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3514 test $ac_status = 0; }; then : 3515 for ac_file in conftest.o conftest.obj conftest.*; do 3516 test -f "$ac_file" || continue; 3517 case $ac_file in 3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3520 break;; 3521 esac 3522done 3523else 3524 $as_echo "$as_me: failed program was:" >&5 3525sed 's/^/| /' conftest.$ac_ext >&5 3526 3527{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error $? "cannot compute suffix of object files: cannot compile 3530See \`config.log' for more details" "$LINENO" 5; } 3531fi 3532rm -f conftest.$ac_cv_objext conftest.$ac_ext 3533fi 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3535$as_echo "$ac_cv_objext" >&6; } 3536OBJEXT=$ac_cv_objext 3537ac_objext=$OBJEXT 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3539$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3540if ${ac_cv_c_compiler_gnu+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544/* end confdefs.h. */ 3545 3546int 3547main () 3548{ 3549#ifndef __GNUC__ 3550 choke me 3551#endif 3552 3553 ; 3554 return 0; 3555} 3556_ACEOF 3557if ac_fn_c_try_compile "$LINENO"; then : 3558 ac_compiler_gnu=yes 3559else 3560 ac_compiler_gnu=no 3561fi 3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3563ac_cv_c_compiler_gnu=$ac_compiler_gnu 3564 3565fi 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3567$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3568if test $ac_compiler_gnu = yes; then 3569 GCC=yes 3570else 3571 GCC= 3572fi 3573ac_test_CFLAGS=${CFLAGS+set} 3574ac_save_CFLAGS=$CFLAGS 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3576$as_echo_n "checking whether $CC accepts -g... " >&6; } 3577if ${ac_cv_prog_cc_g+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 ac_save_c_werror_flag=$ac_c_werror_flag 3581 ac_c_werror_flag=yes 3582 ac_cv_prog_cc_g=no 3583 CFLAGS="-g" 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595if ac_fn_c_try_compile "$LINENO"; then : 3596 ac_cv_prog_cc_g=yes 3597else 3598 CFLAGS="" 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601 3602int 3603main () 3604{ 3605 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610if ac_fn_c_try_compile "$LINENO"; then : 3611 3612else 3613 ac_c_werror_flag=$ac_save_c_werror_flag 3614 CFLAGS="-g" 3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616/* end confdefs.h. */ 3617 3618int 3619main () 3620{ 3621 3622 ; 3623 return 0; 3624} 3625_ACEOF 3626if ac_fn_c_try_compile "$LINENO"; then : 3627 ac_cv_prog_cc_g=yes 3628fi 3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3630fi 3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3632fi 3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3634 ac_c_werror_flag=$ac_save_c_werror_flag 3635fi 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3637$as_echo "$ac_cv_prog_cc_g" >&6; } 3638if test "$ac_test_CFLAGS" = set; then 3639 CFLAGS=$ac_save_CFLAGS 3640elif test $ac_cv_prog_cc_g = yes; then 3641 if test "$GCC" = yes; then 3642 CFLAGS="-g -O2" 3643 else 3644 CFLAGS="-g" 3645 fi 3646else 3647 if test "$GCC" = yes; then 3648 CFLAGS="-O2" 3649 else 3650 CFLAGS= 3651 fi 3652fi 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3654$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3655if ${ac_cv_prog_cc_c89+:} false; then : 3656 $as_echo_n "(cached) " >&6 3657else 3658 ac_cv_prog_cc_c89=no 3659ac_save_CC=$CC 3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662#include <stdarg.h> 3663#include <stdio.h> 3664struct stat; 3665/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3666struct buf { int x; }; 3667FILE * (*rcsopen) (struct buf *, struct stat *, int); 3668static char *e (p, i) 3669 char **p; 3670 int i; 3671{ 3672 return p[i]; 3673} 3674static char *f (char * (*g) (char **, int), char **p, ...) 3675{ 3676 char *s; 3677 va_list v; 3678 va_start (v,p); 3679 s = g (p, va_arg (v,int)); 3680 va_end (v); 3681 return s; 3682} 3683 3684/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3685 function prototypes and stuff, but not '\xHH' hex character constants. 3686 These don't provoke an error unfortunately, instead are silently treated 3687 as 'x'. The following induces an error, until -std is added to get 3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3689 array size at least. It's necessary to write '\x00'==0 to get something 3690 that's true only with -std. */ 3691int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3692 3693/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3694 inside strings and character constants. */ 3695#define FOO(x) 'x' 3696int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3697 3698int test (int i, double x); 3699struct s1 {int (*f) (int a);}; 3700struct s2 {int (*f) (double a);}; 3701int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3702int argc; 3703char **argv; 3704int 3705main () 3706{ 3707return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3714do 3715 CC="$ac_save_CC $ac_arg" 3716 if ac_fn_c_try_compile "$LINENO"; then : 3717 ac_cv_prog_cc_c89=$ac_arg 3718fi 3719rm -f core conftest.err conftest.$ac_objext 3720 test "x$ac_cv_prog_cc_c89" != "xno" && break 3721done 3722rm -f conftest.$ac_ext 3723CC=$ac_save_CC 3724 3725fi 3726# AC_CACHE_VAL 3727case "x$ac_cv_prog_cc_c89" in 3728 x) 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3730$as_echo "none needed" >&6; } ;; 3731 xno) 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3733$as_echo "unsupported" >&6; } ;; 3734 *) 3735 CC="$CC $ac_cv_prog_cc_c89" 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3737$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3738esac 3739if test "x$ac_cv_prog_cc_c89" != xno; then : 3740 3741fi 3742 3743ac_ext=c 3744ac_cpp='$CPP $CPPFLAGS' 3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3747ac_compiler_gnu=$ac_cv_c_compiler_gnu 3748 3749ac_ext=c 3750ac_cpp='$CPP $CPPFLAGS' 3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3753ac_compiler_gnu=$ac_cv_c_compiler_gnu 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3755$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3756if ${am_cv_prog_cc_c_o+:} false; then : 3757 $as_echo_n "(cached) " >&6 3758else 3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761 3762int 3763main () 3764{ 3765 3766 ; 3767 return 0; 3768} 3769_ACEOF 3770 # Make sure it works both with $CC and with simple cc. 3771 # Following AC_PROG_CC_C_O, we do the test twice because some 3772 # compilers refuse to overwrite an existing .o file with -o, 3773 # though they will create one. 3774 am_cv_prog_cc_c_o=yes 3775 for am_i in 1 2; do 3776 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3777 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3778 ac_status=$? 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3780 (exit $ac_status); } \ 3781 && test -f conftest2.$ac_objext; then 3782 : OK 3783 else 3784 am_cv_prog_cc_c_o=no 3785 break 3786 fi 3787 done 3788 rm -f core conftest* 3789 unset am_i 3790fi 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3792$as_echo "$am_cv_prog_cc_c_o" >&6; } 3793if test "$am_cv_prog_cc_c_o" != yes; then 3794 # Losing compiler, so override with the script. 3795 # FIXME: It is wrong to rewrite CC. 3796 # But if we don't then we get into trouble of one sort or another. 3797 # A longer-term fix would be to have automake use am__CC in this case, 3798 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3799 CC="$am_aux_dir/compile $CC" 3800fi 3801ac_ext=c 3802ac_cpp='$CPP $CPPFLAGS' 3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3805ac_compiler_gnu=$ac_cv_c_compiler_gnu 3806 3807 3808depcc="$CC" am_compiler_list= 3809 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3811$as_echo_n "checking dependency style of $depcc... " >&6; } 3812if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3813 $as_echo_n "(cached) " >&6 3814else 3815 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3816 # We make a subdir and do the tests there. Otherwise we can end up 3817 # making bogus files that we don't know about and never remove. For 3818 # instance it was reported that on HP-UX the gcc test will end up 3819 # making a dummy file named 'D' -- because '-MD' means "put the output 3820 # in D". 3821 rm -rf conftest.dir 3822 mkdir conftest.dir 3823 # Copy depcomp to subdir because otherwise we won't find it if we're 3824 # using a relative directory. 3825 cp "$am_depcomp" conftest.dir 3826 cd conftest.dir 3827 # We will build objects and dependencies in a subdirectory because 3828 # it helps to detect inapplicable dependency modes. For instance 3829 # both Tru64's cc and ICC support -MD to output dependencies as a 3830 # side effect of compilation, but ICC will put the dependencies in 3831 # the current directory while Tru64 will put them in the object 3832 # directory. 3833 mkdir sub 3834 3835 am_cv_CC_dependencies_compiler_type=none 3836 if test "$am_compiler_list" = ""; then 3837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3838 fi 3839 am__universal=false 3840 case " $depcc " in #( 3841 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3842 esac 3843 3844 for depmode in $am_compiler_list; do 3845 # Setup a source with many dependencies, because some compilers 3846 # like to wrap large dependency lists on column 80 (with \), and 3847 # we should not choose a depcomp mode which is confused by this. 3848 # 3849 # We need to recreate these files for each test, as the compiler may 3850 # overwrite some of them when testing with obscure command lines. 3851 # This happens at least with the AIX C compiler. 3852 : > sub/conftest.c 3853 for i in 1 2 3 4 5 6; do 3854 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3855 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3856 # Solaris 10 /bin/sh. 3857 echo '/* dummy */' > sub/conftst$i.h 3858 done 3859 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3860 3861 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3862 # mode. It turns out that the SunPro C++ compiler does not properly 3863 # handle '-M -o', and we need to detect this. Also, some Intel 3864 # versions had trouble with output in subdirs. 3865 am__obj=sub/conftest.${OBJEXT-o} 3866 am__minus_obj="-o $am__obj" 3867 case $depmode in 3868 gcc) 3869 # This depmode causes a compiler race in universal mode. 3870 test "$am__universal" = false || continue 3871 ;; 3872 nosideeffect) 3873 # After this tag, mechanisms are not by side-effect, so they'll 3874 # only be used when explicitly requested. 3875 if test "x$enable_dependency_tracking" = xyes; then 3876 continue 3877 else 3878 break 3879 fi 3880 ;; 3881 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3882 # This compiler won't grok '-c -o', but also, the minuso test has 3883 # not run yet. These depmodes are late enough in the game, and 3884 # so weak that their functioning should not be impacted. 3885 am__obj=conftest.${OBJEXT-o} 3886 am__minus_obj= 3887 ;; 3888 none) break ;; 3889 esac 3890 if depmode=$depmode \ 3891 source=sub/conftest.c object=$am__obj \ 3892 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3893 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3894 >/dev/null 2>conftest.err && 3895 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3896 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3897 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3898 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3899 # icc doesn't choke on unknown options, it will just issue warnings 3900 # or remarks (even with -Werror). So we grep stderr for any message 3901 # that says an option was ignored or not supported. 3902 # When given -MP, icc 7.0 and 7.1 complain thusly: 3903 # icc: Command line warning: ignoring option '-M'; no argument required 3904 # The diagnosis changed in icc 8.0: 3905 # icc: Command line remark: option '-MP' not supported 3906 if (grep 'ignoring option' conftest.err || 3907 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3908 am_cv_CC_dependencies_compiler_type=$depmode 3909 break 3910 fi 3911 fi 3912 done 3913 3914 cd .. 3915 rm -rf conftest.dir 3916else 3917 am_cv_CC_dependencies_compiler_type=none 3918fi 3919 3920fi 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3922$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3923CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3924 3925 if 3926 test "x$enable_dependency_tracking" != xno \ 3927 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3928 am__fastdepCC_TRUE= 3929 am__fastdepCC_FALSE='#' 3930else 3931 am__fastdepCC_TRUE='#' 3932 am__fastdepCC_FALSE= 3933fi 3934 3935 3936 3937ac_ext=c 3938ac_cpp='$CPP $CPPFLAGS' 3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3941ac_compiler_gnu=$ac_cv_c_compiler_gnu 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3943$as_echo_n "checking how to run the C preprocessor... " >&6; } 3944# On Suns, sometimes $CPP names a directory. 3945if test -n "$CPP" && test -d "$CPP"; then 3946 CPP= 3947fi 3948if test -z "$CPP"; then 3949 if ${ac_cv_prog_CPP+:} false; then : 3950 $as_echo_n "(cached) " >&6 3951else 3952 # Double quotes because CPP needs to be expanded 3953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3954 do 3955 ac_preproc_ok=false 3956for ac_c_preproc_warn_flag in '' yes 3957do 3958 # Use a header file that comes with gcc, so configuring glibc 3959 # with a fresh cross-compiler works. 3960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3961 # <limits.h> exists even on freestanding compilers. 3962 # On the NeXT, cc -E runs the code through the compiler's parser, 3963 # not just through cpp. "Syntax error" is here to catch this case. 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966#ifdef __STDC__ 3967# include <limits.h> 3968#else 3969# include <assert.h> 3970#endif 3971 Syntax error 3972_ACEOF 3973if ac_fn_c_try_cpp "$LINENO"; then : 3974 3975else 3976 # Broken: fails on valid input. 3977continue 3978fi 3979rm -f conftest.err conftest.i conftest.$ac_ext 3980 3981 # OK, works on sane cases. Now check whether nonexistent headers 3982 # can be detected and how. 3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984/* end confdefs.h. */ 3985#include <ac_nonexistent.h> 3986_ACEOF 3987if ac_fn_c_try_cpp "$LINENO"; then : 3988 # Broken: success on invalid input. 3989continue 3990else 3991 # Passes both tests. 3992ac_preproc_ok=: 3993break 3994fi 3995rm -f conftest.err conftest.i conftest.$ac_ext 3996 3997done 3998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3999rm -f conftest.i conftest.err conftest.$ac_ext 4000if $ac_preproc_ok; then : 4001 break 4002fi 4003 4004 done 4005 ac_cv_prog_CPP=$CPP 4006 4007fi 4008 CPP=$ac_cv_prog_CPP 4009else 4010 ac_cv_prog_CPP=$CPP 4011fi 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4013$as_echo "$CPP" >&6; } 4014ac_preproc_ok=false 4015for ac_c_preproc_warn_flag in '' yes 4016do 4017 # Use a header file that comes with gcc, so configuring glibc 4018 # with a fresh cross-compiler works. 4019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4020 # <limits.h> exists even on freestanding compilers. 4021 # On the NeXT, cc -E runs the code through the compiler's parser, 4022 # not just through cpp. "Syntax error" is here to catch this case. 4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024/* end confdefs.h. */ 4025#ifdef __STDC__ 4026# include <limits.h> 4027#else 4028# include <assert.h> 4029#endif 4030 Syntax error 4031_ACEOF 4032if ac_fn_c_try_cpp "$LINENO"; then : 4033 4034else 4035 # Broken: fails on valid input. 4036continue 4037fi 4038rm -f conftest.err conftest.i conftest.$ac_ext 4039 4040 # OK, works on sane cases. Now check whether nonexistent headers 4041 # can be detected and how. 4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4043/* end confdefs.h. */ 4044#include <ac_nonexistent.h> 4045_ACEOF 4046if ac_fn_c_try_cpp "$LINENO"; then : 4047 # Broken: success on invalid input. 4048continue 4049else 4050 # Passes both tests. 4051ac_preproc_ok=: 4052break 4053fi 4054rm -f conftest.err conftest.i conftest.$ac_ext 4055 4056done 4057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4058rm -f conftest.i conftest.err conftest.$ac_ext 4059if $ac_preproc_ok; then : 4060 4061else 4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4064as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4065See \`config.log' for more details" "$LINENO" 5; } 4066fi 4067 4068ac_ext=c 4069ac_cpp='$CPP $CPPFLAGS' 4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4072ac_compiler_gnu=$ac_cv_c_compiler_gnu 4073 4074 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4076$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4077if ${ac_cv_path_GREP+:} false; then : 4078 $as_echo_n "(cached) " >&6 4079else 4080 if test -z "$GREP"; then 4081 ac_path_GREP_found=false 4082 # Loop through the user's path and test for each of PROGNAME-LIST 4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4085do 4086 IFS=$as_save_IFS 4087 test -z "$as_dir" && as_dir=. 4088 for ac_prog in grep ggrep; do 4089 for ac_exec_ext in '' $ac_executable_extensions; do 4090 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4091 as_fn_executable_p "$ac_path_GREP" || continue 4092# Check for GNU ac_path_GREP and select it if it is found. 4093 # Check for GNU $ac_path_GREP 4094case `"$ac_path_GREP" --version 2>&1` in 4095*GNU*) 4096 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4097*) 4098 ac_count=0 4099 $as_echo_n 0123456789 >"conftest.in" 4100 while : 4101 do 4102 cat "conftest.in" "conftest.in" >"conftest.tmp" 4103 mv "conftest.tmp" "conftest.in" 4104 cp "conftest.in" "conftest.nl" 4105 $as_echo 'GREP' >> "conftest.nl" 4106 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4108 as_fn_arith $ac_count + 1 && ac_count=$as_val 4109 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4110 # Best one so far, save it but keep looking for a better one 4111 ac_cv_path_GREP="$ac_path_GREP" 4112 ac_path_GREP_max=$ac_count 4113 fi 4114 # 10*(2^10) chars as input seems more than enough 4115 test $ac_count -gt 10 && break 4116 done 4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4118esac 4119 4120 $ac_path_GREP_found && break 3 4121 done 4122 done 4123 done 4124IFS=$as_save_IFS 4125 if test -z "$ac_cv_path_GREP"; then 4126 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4127 fi 4128else 4129 ac_cv_path_GREP=$GREP 4130fi 4131 4132fi 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4134$as_echo "$ac_cv_path_GREP" >&6; } 4135 GREP="$ac_cv_path_GREP" 4136 4137 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4139$as_echo_n "checking for egrep... " >&6; } 4140if ${ac_cv_path_EGREP+:} false; then : 4141 $as_echo_n "(cached) " >&6 4142else 4143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4144 then ac_cv_path_EGREP="$GREP -E" 4145 else 4146 if test -z "$EGREP"; then 4147 ac_path_EGREP_found=false 4148 # Loop through the user's path and test for each of PROGNAME-LIST 4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4151do 4152 IFS=$as_save_IFS 4153 test -z "$as_dir" && as_dir=. 4154 for ac_prog in egrep; do 4155 for ac_exec_ext in '' $ac_executable_extensions; do 4156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4157 as_fn_executable_p "$ac_path_EGREP" || continue 4158# Check for GNU ac_path_EGREP and select it if it is found. 4159 # Check for GNU $ac_path_EGREP 4160case `"$ac_path_EGREP" --version 2>&1` in 4161*GNU*) 4162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4163*) 4164 ac_count=0 4165 $as_echo_n 0123456789 >"conftest.in" 4166 while : 4167 do 4168 cat "conftest.in" "conftest.in" >"conftest.tmp" 4169 mv "conftest.tmp" "conftest.in" 4170 cp "conftest.in" "conftest.nl" 4171 $as_echo 'EGREP' >> "conftest.nl" 4172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4174 as_fn_arith $ac_count + 1 && ac_count=$as_val 4175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4176 # Best one so far, save it but keep looking for a better one 4177 ac_cv_path_EGREP="$ac_path_EGREP" 4178 ac_path_EGREP_max=$ac_count 4179 fi 4180 # 10*(2^10) chars as input seems more than enough 4181 test $ac_count -gt 10 && break 4182 done 4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4184esac 4185 4186 $ac_path_EGREP_found && break 3 4187 done 4188 done 4189 done 4190IFS=$as_save_IFS 4191 if test -z "$ac_cv_path_EGREP"; then 4192 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4193 fi 4194else 4195 ac_cv_path_EGREP=$EGREP 4196fi 4197 4198 fi 4199fi 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4201$as_echo "$ac_cv_path_EGREP" >&6; } 4202 EGREP="$ac_cv_path_EGREP" 4203 4204 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4206$as_echo_n "checking for ANSI C header files... " >&6; } 4207if ${ac_cv_header_stdc+:} false; then : 4208 $as_echo_n "(cached) " >&6 4209else 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211/* end confdefs.h. */ 4212#include <stdlib.h> 4213#include <stdarg.h> 4214#include <string.h> 4215#include <float.h> 4216 4217int 4218main () 4219{ 4220 4221 ; 4222 return 0; 4223} 4224_ACEOF 4225if ac_fn_c_try_compile "$LINENO"; then : 4226 ac_cv_header_stdc=yes 4227else 4228 ac_cv_header_stdc=no 4229fi 4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4231 4232if test $ac_cv_header_stdc = yes; then 4233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4235/* end confdefs.h. */ 4236#include <string.h> 4237 4238_ACEOF 4239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4240 $EGREP "memchr" >/dev/null 2>&1; then : 4241 4242else 4243 ac_cv_header_stdc=no 4244fi 4245rm -f conftest* 4246 4247fi 4248 4249if test $ac_cv_header_stdc = yes; then 4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4252/* end confdefs.h. */ 4253#include <stdlib.h> 4254 4255_ACEOF 4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4257 $EGREP "free" >/dev/null 2>&1; then : 4258 4259else 4260 ac_cv_header_stdc=no 4261fi 4262rm -f conftest* 4263 4264fi 4265 4266if test $ac_cv_header_stdc = yes; then 4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4268 if test "$cross_compiling" = yes; then : 4269 : 4270else 4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273#include <ctype.h> 4274#include <stdlib.h> 4275#if ((' ' & 0x0FF) == 0x020) 4276# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4277# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4278#else 4279# define ISLOWER(c) \ 4280 (('a' <= (c) && (c) <= 'i') \ 4281 || ('j' <= (c) && (c) <= 'r') \ 4282 || ('s' <= (c) && (c) <= 'z')) 4283# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4284#endif 4285 4286#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4287int 4288main () 4289{ 4290 int i; 4291 for (i = 0; i < 256; i++) 4292 if (XOR (islower (i), ISLOWER (i)) 4293 || toupper (i) != TOUPPER (i)) 4294 return 2; 4295 return 0; 4296} 4297_ACEOF 4298if ac_fn_c_try_run "$LINENO"; then : 4299 4300else 4301 ac_cv_header_stdc=no 4302fi 4303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4304 conftest.$ac_objext conftest.beam conftest.$ac_ext 4305fi 4306 4307fi 4308fi 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4310$as_echo "$ac_cv_header_stdc" >&6; } 4311if test $ac_cv_header_stdc = yes; then 4312 4313$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4314 4315fi 4316 4317# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4318for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4319 inttypes.h stdint.h unistd.h 4320do : 4321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4322ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4323" 4324if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4325 cat >>confdefs.h <<_ACEOF 4326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4327_ACEOF 4328 4329fi 4330 4331done 4332 4333 4334 4335 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4336if test "x$ac_cv_header_minix_config_h" = xyes; then : 4337 MINIX=yes 4338else 4339 MINIX= 4340fi 4341 4342 4343 if test "$MINIX" = yes; then 4344 4345$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4346 4347 4348$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4349 4350 4351$as_echo "#define _MINIX 1" >>confdefs.h 4352 4353 fi 4354 4355 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4357$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4358if ${ac_cv_safe_to_define___extensions__+:} false; then : 4359 $as_echo_n "(cached) " >&6 4360else 4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4362/* end confdefs.h. */ 4363 4364# define __EXTENSIONS__ 1 4365 $ac_includes_default 4366int 4367main () 4368{ 4369 4370 ; 4371 return 0; 4372} 4373_ACEOF 4374if ac_fn_c_try_compile "$LINENO"; then : 4375 ac_cv_safe_to_define___extensions__=yes 4376else 4377 ac_cv_safe_to_define___extensions__=no 4378fi 4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4380fi 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4382$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4383 test $ac_cv_safe_to_define___extensions__ = yes && 4384 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4385 4386 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4387 4388 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4389 4390 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4391 4392 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4393 4394 4395ac_ext=c 4396ac_cpp='$CPP $CPPFLAGS' 4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4399ac_compiler_gnu=$ac_cv_c_compiler_gnu 4400if test -n "$ac_tool_prefix"; then 4401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4402set dummy ${ac_tool_prefix}gcc; ac_word=$2 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4404$as_echo_n "checking for $ac_word... " >&6; } 4405if ${ac_cv_prog_CC+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 if test -n "$CC"; then 4409 ac_cv_prog_CC="$CC" # Let the user override the test. 4410else 4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4412for as_dir in $PATH 4413do 4414 IFS=$as_save_IFS 4415 test -z "$as_dir" && as_dir=. 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4418 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4420 break 2 4421 fi 4422done 4423 done 4424IFS=$as_save_IFS 4425 4426fi 4427fi 4428CC=$ac_cv_prog_CC 4429if test -n "$CC"; then 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4431$as_echo "$CC" >&6; } 4432else 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4434$as_echo "no" >&6; } 4435fi 4436 4437 4438fi 4439if test -z "$ac_cv_prog_CC"; then 4440 ac_ct_CC=$CC 4441 # Extract the first word of "gcc", so it can be a program name with args. 4442set dummy gcc; ac_word=$2 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4444$as_echo_n "checking for $ac_word... " >&6; } 4445if ${ac_cv_prog_ac_ct_CC+:} false; then : 4446 $as_echo_n "(cached) " >&6 4447else 4448 if test -n "$ac_ct_CC"; then 4449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4450else 4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4452for as_dir in $PATH 4453do 4454 IFS=$as_save_IFS 4455 test -z "$as_dir" && as_dir=. 4456 for ac_exec_ext in '' $ac_executable_extensions; do 4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4458 ac_cv_prog_ac_ct_CC="gcc" 4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4460 break 2 4461 fi 4462done 4463 done 4464IFS=$as_save_IFS 4465 4466fi 4467fi 4468ac_ct_CC=$ac_cv_prog_ac_ct_CC 4469if test -n "$ac_ct_CC"; then 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4471$as_echo "$ac_ct_CC" >&6; } 4472else 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4474$as_echo "no" >&6; } 4475fi 4476 4477 if test "x$ac_ct_CC" = x; then 4478 CC="" 4479 else 4480 case $cross_compiling:$ac_tool_warned in 4481yes:) 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4484ac_tool_warned=yes ;; 4485esac 4486 CC=$ac_ct_CC 4487 fi 4488else 4489 CC="$ac_cv_prog_CC" 4490fi 4491 4492if test -z "$CC"; then 4493 if test -n "$ac_tool_prefix"; then 4494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4495set dummy ${ac_tool_prefix}cc; ac_word=$2 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4497$as_echo_n "checking for $ac_word... " >&6; } 4498if ${ac_cv_prog_CC+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 if test -n "$CC"; then 4502 ac_cv_prog_CC="$CC" # Let the user override the test. 4503else 4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4505for as_dir in $PATH 4506do 4507 IFS=$as_save_IFS 4508 test -z "$as_dir" && as_dir=. 4509 for ac_exec_ext in '' $ac_executable_extensions; do 4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4511 ac_cv_prog_CC="${ac_tool_prefix}cc" 4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4513 break 2 4514 fi 4515done 4516 done 4517IFS=$as_save_IFS 4518 4519fi 4520fi 4521CC=$ac_cv_prog_CC 4522if test -n "$CC"; then 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4524$as_echo "$CC" >&6; } 4525else 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4527$as_echo "no" >&6; } 4528fi 4529 4530 4531 fi 4532fi 4533if test -z "$CC"; then 4534 # Extract the first word of "cc", so it can be a program name with args. 4535set dummy cc; ac_word=$2 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4537$as_echo_n "checking for $ac_word... " >&6; } 4538if ${ac_cv_prog_CC+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 if test -n "$CC"; then 4542 ac_cv_prog_CC="$CC" # Let the user override the test. 4543else 4544 ac_prog_rejected=no 4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4553 ac_prog_rejected=yes 4554 continue 4555 fi 4556 ac_cv_prog_CC="cc" 4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4558 break 2 4559 fi 4560done 4561 done 4562IFS=$as_save_IFS 4563 4564if test $ac_prog_rejected = yes; then 4565 # We found a bogon in the path, so make sure we never use it. 4566 set dummy $ac_cv_prog_CC 4567 shift 4568 if test $# != 0; then 4569 # We chose a different compiler from the bogus one. 4570 # However, it has the same basename, so the bogon will be chosen 4571 # first if we set CC to just the basename; use the full file name. 4572 shift 4573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4574 fi 4575fi 4576fi 4577fi 4578CC=$ac_cv_prog_CC 4579if test -n "$CC"; then 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4581$as_echo "$CC" >&6; } 4582else 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4584$as_echo "no" >&6; } 4585fi 4586 4587 4588fi 4589if test -z "$CC"; then 4590 if test -n "$ac_tool_prefix"; then 4591 for ac_prog in cl.exe 4592 do 4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4594set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4596$as_echo_n "checking for $ac_word... " >&6; } 4597if ${ac_cv_prog_CC+:} false; then : 4598 $as_echo_n "(cached) " >&6 4599else 4600 if test -n "$CC"; then 4601 ac_cv_prog_CC="$CC" # Let the user override the test. 4602else 4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4604for as_dir in $PATH 4605do 4606 IFS=$as_save_IFS 4607 test -z "$as_dir" && as_dir=. 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4612 break 2 4613 fi 4614done 4615 done 4616IFS=$as_save_IFS 4617 4618fi 4619fi 4620CC=$ac_cv_prog_CC 4621if test -n "$CC"; then 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4623$as_echo "$CC" >&6; } 4624else 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4626$as_echo "no" >&6; } 4627fi 4628 4629 4630 test -n "$CC" && break 4631 done 4632fi 4633if test -z "$CC"; then 4634 ac_ct_CC=$CC 4635 for ac_prog in cl.exe 4636do 4637 # Extract the first word of "$ac_prog", so it can be a program name with args. 4638set dummy $ac_prog; ac_word=$2 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4640$as_echo_n "checking for $ac_word... " >&6; } 4641if ${ac_cv_prog_ac_ct_CC+:} false; then : 4642 $as_echo_n "(cached) " >&6 4643else 4644 if test -n "$ac_ct_CC"; then 4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4646else 4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4648for as_dir in $PATH 4649do 4650 IFS=$as_save_IFS 4651 test -z "$as_dir" && as_dir=. 4652 for ac_exec_ext in '' $ac_executable_extensions; do 4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4654 ac_cv_prog_ac_ct_CC="$ac_prog" 4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4656 break 2 4657 fi 4658done 4659 done 4660IFS=$as_save_IFS 4661 4662fi 4663fi 4664ac_ct_CC=$ac_cv_prog_ac_ct_CC 4665if test -n "$ac_ct_CC"; then 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4667$as_echo "$ac_ct_CC" >&6; } 4668else 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4670$as_echo "no" >&6; } 4671fi 4672 4673 4674 test -n "$ac_ct_CC" && break 4675done 4676 4677 if test "x$ac_ct_CC" = x; then 4678 CC="" 4679 else 4680 case $cross_compiling:$ac_tool_warned in 4681yes:) 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4684ac_tool_warned=yes ;; 4685esac 4686 CC=$ac_ct_CC 4687 fi 4688fi 4689 4690fi 4691 4692 4693test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4695as_fn_error $? "no acceptable C compiler found in \$PATH 4696See \`config.log' for more details" "$LINENO" 5; } 4697 4698# Provide some information about the compiler. 4699$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4700set X $ac_compile 4701ac_compiler=$2 4702for ac_option in --version -v -V -qversion; do 4703 { { ac_try="$ac_compiler $ac_option >&5" 4704case "(($ac_try" in 4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4706 *) ac_try_echo=$ac_try;; 4707esac 4708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4709$as_echo "$ac_try_echo"; } >&5 4710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4711 ac_status=$? 4712 if test -s conftest.err; then 4713 sed '10a\ 4714... rest of stderr output deleted ... 4715 10q' conftest.err >conftest.er1 4716 cat conftest.er1 >&5 4717 fi 4718 rm -f conftest.er1 conftest.err 4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4720 test $ac_status = 0; } 4721done 4722 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4724$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4725if ${ac_cv_c_compiler_gnu+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4729/* end confdefs.h. */ 4730 4731int 4732main () 4733{ 4734#ifndef __GNUC__ 4735 choke me 4736#endif 4737 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742if ac_fn_c_try_compile "$LINENO"; then : 4743 ac_compiler_gnu=yes 4744else 4745 ac_compiler_gnu=no 4746fi 4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4748ac_cv_c_compiler_gnu=$ac_compiler_gnu 4749 4750fi 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4752$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4753if test $ac_compiler_gnu = yes; then 4754 GCC=yes 4755else 4756 GCC= 4757fi 4758ac_test_CFLAGS=${CFLAGS+set} 4759ac_save_CFLAGS=$CFLAGS 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4761$as_echo_n "checking whether $CC accepts -g... " >&6; } 4762if ${ac_cv_prog_cc_g+:} false; then : 4763 $as_echo_n "(cached) " >&6 4764else 4765 ac_save_c_werror_flag=$ac_c_werror_flag 4766 ac_c_werror_flag=yes 4767 ac_cv_prog_cc_g=no 4768 CFLAGS="-g" 4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770/* end confdefs.h. */ 4771 4772int 4773main () 4774{ 4775 4776 ; 4777 return 0; 4778} 4779_ACEOF 4780if ac_fn_c_try_compile "$LINENO"; then : 4781 ac_cv_prog_cc_g=yes 4782else 4783 CFLAGS="" 4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4785/* end confdefs.h. */ 4786 4787int 4788main () 4789{ 4790 4791 ; 4792 return 0; 4793} 4794_ACEOF 4795if ac_fn_c_try_compile "$LINENO"; then : 4796 4797else 4798 ac_c_werror_flag=$ac_save_c_werror_flag 4799 CFLAGS="-g" 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802 4803int 4804main () 4805{ 4806 4807 ; 4808 return 0; 4809} 4810_ACEOF 4811if ac_fn_c_try_compile "$LINENO"; then : 4812 ac_cv_prog_cc_g=yes 4813fi 4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4815fi 4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4817fi 4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4819 ac_c_werror_flag=$ac_save_c_werror_flag 4820fi 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4822$as_echo "$ac_cv_prog_cc_g" >&6; } 4823if test "$ac_test_CFLAGS" = set; then 4824 CFLAGS=$ac_save_CFLAGS 4825elif test $ac_cv_prog_cc_g = yes; then 4826 if test "$GCC" = yes; then 4827 CFLAGS="-g -O2" 4828 else 4829 CFLAGS="-g" 4830 fi 4831else 4832 if test "$GCC" = yes; then 4833 CFLAGS="-O2" 4834 else 4835 CFLAGS= 4836 fi 4837fi 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4839$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4840if ${ac_cv_prog_cc_c89+:} false; then : 4841 $as_echo_n "(cached) " >&6 4842else 4843 ac_cv_prog_cc_c89=no 4844ac_save_CC=$CC 4845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4846/* end confdefs.h. */ 4847#include <stdarg.h> 4848#include <stdio.h> 4849struct stat; 4850/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4851struct buf { int x; }; 4852FILE * (*rcsopen) (struct buf *, struct stat *, int); 4853static char *e (p, i) 4854 char **p; 4855 int i; 4856{ 4857 return p[i]; 4858} 4859static char *f (char * (*g) (char **, int), char **p, ...) 4860{ 4861 char *s; 4862 va_list v; 4863 va_start (v,p); 4864 s = g (p, va_arg (v,int)); 4865 va_end (v); 4866 return s; 4867} 4868 4869/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4870 function prototypes and stuff, but not '\xHH' hex character constants. 4871 These don't provoke an error unfortunately, instead are silently treated 4872 as 'x'. The following induces an error, until -std is added to get 4873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4874 array size at least. It's necessary to write '\x00'==0 to get something 4875 that's true only with -std. */ 4876int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4877 4878/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4879 inside strings and character constants. */ 4880#define FOO(x) 'x' 4881int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4882 4883int test (int i, double x); 4884struct s1 {int (*f) (int a);}; 4885struct s2 {int (*f) (double a);}; 4886int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4887int argc; 4888char **argv; 4889int 4890main () 4891{ 4892return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4899do 4900 CC="$ac_save_CC $ac_arg" 4901 if ac_fn_c_try_compile "$LINENO"; then : 4902 ac_cv_prog_cc_c89=$ac_arg 4903fi 4904rm -f core conftest.err conftest.$ac_objext 4905 test "x$ac_cv_prog_cc_c89" != "xno" && break 4906done 4907rm -f conftest.$ac_ext 4908CC=$ac_save_CC 4909 4910fi 4911# AC_CACHE_VAL 4912case "x$ac_cv_prog_cc_c89" in 4913 x) 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4915$as_echo "none needed" >&6; } ;; 4916 xno) 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4918$as_echo "unsupported" >&6; } ;; 4919 *) 4920 CC="$CC $ac_cv_prog_cc_c89" 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4922$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4923esac 4924if test "x$ac_cv_prog_cc_c89" != xno; then : 4925 4926fi 4927 4928ac_ext=c 4929ac_cpp='$CPP $CPPFLAGS' 4930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4932ac_compiler_gnu=$ac_cv_c_compiler_gnu 4933 4934ac_ext=c 4935ac_cpp='$CPP $CPPFLAGS' 4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4938ac_compiler_gnu=$ac_cv_c_compiler_gnu 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4940$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4941if ${am_cv_prog_cc_c_o+:} false; then : 4942 $as_echo_n "(cached) " >&6 4943else 4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4945/* end confdefs.h. */ 4946 4947int 4948main () 4949{ 4950 4951 ; 4952 return 0; 4953} 4954_ACEOF 4955 # Make sure it works both with $CC and with simple cc. 4956 # Following AC_PROG_CC_C_O, we do the test twice because some 4957 # compilers refuse to overwrite an existing .o file with -o, 4958 # though they will create one. 4959 am_cv_prog_cc_c_o=yes 4960 for am_i in 1 2; do 4961 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4962 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4963 ac_status=$? 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4965 (exit $ac_status); } \ 4966 && test -f conftest2.$ac_objext; then 4967 : OK 4968 else 4969 am_cv_prog_cc_c_o=no 4970 break 4971 fi 4972 done 4973 rm -f core conftest* 4974 unset am_i 4975fi 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4977$as_echo "$am_cv_prog_cc_c_o" >&6; } 4978if test "$am_cv_prog_cc_c_o" != yes; then 4979 # Losing compiler, so override with the script. 4980 # FIXME: It is wrong to rewrite CC. 4981 # But if we don't then we get into trouble of one sort or another. 4982 # A longer-term fix would be to have automake use am__CC in this case, 4983 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4984 CC="$am_aux_dir/compile $CC" 4985fi 4986ac_ext=c 4987ac_cpp='$CPP $CPPFLAGS' 4988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4990ac_compiler_gnu=$ac_cv_c_compiler_gnu 4991 4992 4993depcc="$CC" am_compiler_list= 4994 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4996$as_echo_n "checking dependency style of $depcc... " >&6; } 4997if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5001 # We make a subdir and do the tests there. Otherwise we can end up 5002 # making bogus files that we don't know about and never remove. For 5003 # instance it was reported that on HP-UX the gcc test will end up 5004 # making a dummy file named 'D' -- because '-MD' means "put the output 5005 # in D". 5006 rm -rf conftest.dir 5007 mkdir conftest.dir 5008 # Copy depcomp to subdir because otherwise we won't find it if we're 5009 # using a relative directory. 5010 cp "$am_depcomp" conftest.dir 5011 cd conftest.dir 5012 # We will build objects and dependencies in a subdirectory because 5013 # it helps to detect inapplicable dependency modes. For instance 5014 # both Tru64's cc and ICC support -MD to output dependencies as a 5015 # side effect of compilation, but ICC will put the dependencies in 5016 # the current directory while Tru64 will put them in the object 5017 # directory. 5018 mkdir sub 5019 5020 am_cv_CC_dependencies_compiler_type=none 5021 if test "$am_compiler_list" = ""; then 5022 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5023 fi 5024 am__universal=false 5025 case " $depcc " in #( 5026 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5027 esac 5028 5029 for depmode in $am_compiler_list; do 5030 # Setup a source with many dependencies, because some compilers 5031 # like to wrap large dependency lists on column 80 (with \), and 5032 # we should not choose a depcomp mode which is confused by this. 5033 # 5034 # We need to recreate these files for each test, as the compiler may 5035 # overwrite some of them when testing with obscure command lines. 5036 # This happens at least with the AIX C compiler. 5037 : > sub/conftest.c 5038 for i in 1 2 3 4 5 6; do 5039 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5040 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5041 # Solaris 10 /bin/sh. 5042 echo '/* dummy */' > sub/conftst$i.h 5043 done 5044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5045 5046 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5047 # mode. It turns out that the SunPro C++ compiler does not properly 5048 # handle '-M -o', and we need to detect this. Also, some Intel 5049 # versions had trouble with output in subdirs. 5050 am__obj=sub/conftest.${OBJEXT-o} 5051 am__minus_obj="-o $am__obj" 5052 case $depmode in 5053 gcc) 5054 # This depmode causes a compiler race in universal mode. 5055 test "$am__universal" = false || continue 5056 ;; 5057 nosideeffect) 5058 # After this tag, mechanisms are not by side-effect, so they'll 5059 # only be used when explicitly requested. 5060 if test "x$enable_dependency_tracking" = xyes; then 5061 continue 5062 else 5063 break 5064 fi 5065 ;; 5066 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5067 # This compiler won't grok '-c -o', but also, the minuso test has 5068 # not run yet. These depmodes are late enough in the game, and 5069 # so weak that their functioning should not be impacted. 5070 am__obj=conftest.${OBJEXT-o} 5071 am__minus_obj= 5072 ;; 5073 none) break ;; 5074 esac 5075 if depmode=$depmode \ 5076 source=sub/conftest.c object=$am__obj \ 5077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5079 >/dev/null 2>conftest.err && 5080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5084 # icc doesn't choke on unknown options, it will just issue warnings 5085 # or remarks (even with -Werror). So we grep stderr for any message 5086 # that says an option was ignored or not supported. 5087 # When given -MP, icc 7.0 and 7.1 complain thusly: 5088 # icc: Command line warning: ignoring option '-M'; no argument required 5089 # The diagnosis changed in icc 8.0: 5090 # icc: Command line remark: option '-MP' not supported 5091 if (grep 'ignoring option' conftest.err || 5092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5093 am_cv_CC_dependencies_compiler_type=$depmode 5094 break 5095 fi 5096 fi 5097 done 5098 5099 cd .. 5100 rm -rf conftest.dir 5101else 5102 am_cv_CC_dependencies_compiler_type=none 5103fi 5104 5105fi 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5107$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5108CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5109 5110 if 5111 test "x$enable_dependency_tracking" != xno \ 5112 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5113 am__fastdepCC_TRUE= 5114 am__fastdepCC_FALSE='#' 5115else 5116 am__fastdepCC_TRUE='#' 5117 am__fastdepCC_FALSE= 5118fi 5119 5120 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5122$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5123if ${ac_cv_prog_cc_c99+:} false; then : 5124 $as_echo_n "(cached) " >&6 5125else 5126 ac_cv_prog_cc_c99=no 5127ac_save_CC=$CC 5128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5129/* end confdefs.h. */ 5130#include <stdarg.h> 5131#include <stdbool.h> 5132#include <stdlib.h> 5133#include <wchar.h> 5134#include <stdio.h> 5135 5136// Check varargs macros. These examples are taken from C99 6.10.3.5. 5137#define debug(...) fprintf (stderr, __VA_ARGS__) 5138#define showlist(...) puts (#__VA_ARGS__) 5139#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5140static void 5141test_varargs_macros (void) 5142{ 5143 int x = 1234; 5144 int y = 5678; 5145 debug ("Flag"); 5146 debug ("X = %d\n", x); 5147 showlist (The first, second, and third items.); 5148 report (x>y, "x is %d but y is %d", x, y); 5149} 5150 5151// Check long long types. 5152#define BIG64 18446744073709551615ull 5153#define BIG32 4294967295ul 5154#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5155#if !BIG_OK 5156 your preprocessor is broken; 5157#endif 5158#if BIG_OK 5159#else 5160 your preprocessor is broken; 5161#endif 5162static long long int bignum = -9223372036854775807LL; 5163static unsigned long long int ubignum = BIG64; 5164 5165struct incomplete_array 5166{ 5167 int datasize; 5168 double data[]; 5169}; 5170 5171struct named_init { 5172 int number; 5173 const wchar_t *name; 5174 double average; 5175}; 5176 5177typedef const char *ccp; 5178 5179static inline int 5180test_restrict (ccp restrict text) 5181{ 5182 // See if C++-style comments work. 5183 // Iterate through items via the restricted pointer. 5184 // Also check for declarations in for loops. 5185 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5186 continue; 5187 return 0; 5188} 5189 5190// Check varargs and va_copy. 5191static void 5192test_varargs (const char *format, ...) 5193{ 5194 va_list args; 5195 va_start (args, format); 5196 va_list args_copy; 5197 va_copy (args_copy, args); 5198 5199 const char *str; 5200 int number; 5201 float fnumber; 5202 5203 while (*format) 5204 { 5205 switch (*format++) 5206 { 5207 case 's': // string 5208 str = va_arg (args_copy, const char *); 5209 break; 5210 case 'd': // int 5211 number = va_arg (args_copy, int); 5212 break; 5213 case 'f': // float 5214 fnumber = va_arg (args_copy, double); 5215 break; 5216 default: 5217 break; 5218 } 5219 } 5220 va_end (args_copy); 5221 va_end (args); 5222} 5223 5224int 5225main () 5226{ 5227 5228 // Check bool. 5229 _Bool success = false; 5230 5231 // Check restrict. 5232 if (test_restrict ("String literal") == 0) 5233 success = true; 5234 char *restrict newvar = "Another string"; 5235 5236 // Check varargs. 5237 test_varargs ("s, d' f .", "string", 65, 34.234); 5238 test_varargs_macros (); 5239 5240 // Check flexible array members. 5241 struct incomplete_array *ia = 5242 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5243 ia->datasize = 10; 5244 for (int i = 0; i < ia->datasize; ++i) 5245 ia->data[i] = i * 1.234; 5246 5247 // Check named initializers. 5248 struct named_init ni = { 5249 .number = 34, 5250 .name = L"Test wide string", 5251 .average = 543.34343, 5252 }; 5253 5254 ni.number = 58; 5255 5256 int dynamic_array[ni.number]; 5257 dynamic_array[ni.number - 1] = 543; 5258 5259 // work around unused variable warnings 5260 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5261 || dynamic_array[ni.number - 1] != 543); 5262 5263 ; 5264 return 0; 5265} 5266_ACEOF 5267for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5268do 5269 CC="$ac_save_CC $ac_arg" 5270 if ac_fn_c_try_compile "$LINENO"; then : 5271 ac_cv_prog_cc_c99=$ac_arg 5272fi 5273rm -f core conftest.err conftest.$ac_objext 5274 test "x$ac_cv_prog_cc_c99" != "xno" && break 5275done 5276rm -f conftest.$ac_ext 5277CC=$ac_save_CC 5278 5279fi 5280# AC_CACHE_VAL 5281case "x$ac_cv_prog_cc_c99" in 5282 x) 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5284$as_echo "none needed" >&6; } ;; 5285 xno) 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5287$as_echo "unsupported" >&6; } ;; 5288 *) 5289 CC="$CC $ac_cv_prog_cc_c99" 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5291$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5292esac 5293if test "x$ac_cv_prog_cc_c99" != xno; then : 5294 5295fi 5296 5297 5298case `pwd` in 5299 *\ * | *\ *) 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5301$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5302esac 5303 5304 5305 5306macro_version='2.4.6' 5307macro_revision='2.4.6' 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321ltmain=$ac_aux_dir/ltmain.sh 5322 5323# Make sure we can run config.sub. 5324$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5325 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5326 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5328$as_echo_n "checking build system type... " >&6; } 5329if ${ac_cv_build+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 ac_build_alias=$build_alias 5333test "x$ac_build_alias" = x && 5334 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5335test "x$ac_build_alias" = x && 5336 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5337ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5338 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5339 5340fi 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5342$as_echo "$ac_cv_build" >&6; } 5343case $ac_cv_build in 5344*-*-*) ;; 5345*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5346esac 5347build=$ac_cv_build 5348ac_save_IFS=$IFS; IFS='-' 5349set x $ac_cv_build 5350shift 5351build_cpu=$1 5352build_vendor=$2 5353shift; shift 5354# Remember, the first character of IFS is used to create $*, 5355# except with old shells: 5356build_os=$* 5357IFS=$ac_save_IFS 5358case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5359 5360 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5362$as_echo_n "checking host system type... " >&6; } 5363if ${ac_cv_host+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 if test "x$host_alias" = x; then 5367 ac_cv_host=$ac_cv_build 5368else 5369 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5370 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5371fi 5372 5373fi 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5375$as_echo "$ac_cv_host" >&6; } 5376case $ac_cv_host in 5377*-*-*) ;; 5378*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5379esac 5380host=$ac_cv_host 5381ac_save_IFS=$IFS; IFS='-' 5382set x $ac_cv_host 5383shift 5384host_cpu=$1 5385host_vendor=$2 5386shift; shift 5387# Remember, the first character of IFS is used to create $*, 5388# except with old shells: 5389host_os=$* 5390IFS=$ac_save_IFS 5391case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5392 5393 5394# Backslashify metacharacters that are still active within 5395# double-quoted strings. 5396sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5397 5398# Same as above, but do not quote variable references. 5399double_quote_subst='s/\(["`\\]\)/\\\1/g' 5400 5401# Sed substitution to delay expansion of an escaped shell variable in a 5402# double_quote_subst'ed string. 5403delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5404 5405# Sed substitution to delay expansion of an escaped single quote. 5406delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5407 5408# Sed substitution to avoid accidental globbing in evaled expressions 5409no_glob_subst='s/\*/\\\*/g' 5410 5411ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5412ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5413ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5414 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5416$as_echo_n "checking how to print strings... " >&6; } 5417# Test print first, because it will be a builtin if present. 5418if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5419 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5420 ECHO='print -r --' 5421elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5422 ECHO='printf %s\n' 5423else 5424 # Use this function as a fallback that always works. 5425 func_fallback_echo () 5426 { 5427 eval 'cat <<_LTECHO_EOF 5428$1 5429_LTECHO_EOF' 5430 } 5431 ECHO='func_fallback_echo' 5432fi 5433 5434# func_echo_all arg... 5435# Invoke $ECHO with all args, space-separated. 5436func_echo_all () 5437{ 5438 $ECHO "" 5439} 5440 5441case $ECHO in 5442 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5443$as_echo "printf" >&6; } ;; 5444 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5445$as_echo "print -r" >&6; } ;; 5446 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5447$as_echo "cat" >&6; } ;; 5448esac 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5464$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5465if ${ac_cv_path_SED+:} false; then : 5466 $as_echo_n "(cached) " >&6 5467else 5468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5469 for ac_i in 1 2 3 4 5 6 7; do 5470 ac_script="$ac_script$as_nl$ac_script" 5471 done 5472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5473 { ac_script=; unset ac_script;} 5474 if test -z "$SED"; then 5475 ac_path_SED_found=false 5476 # Loop through the user's path and test for each of PROGNAME-LIST 5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5478for as_dir in $PATH 5479do 5480 IFS=$as_save_IFS 5481 test -z "$as_dir" && as_dir=. 5482 for ac_prog in sed gsed; do 5483 for ac_exec_ext in '' $ac_executable_extensions; do 5484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5485 as_fn_executable_p "$ac_path_SED" || continue 5486# Check for GNU ac_path_SED and select it if it is found. 5487 # Check for GNU $ac_path_SED 5488case `"$ac_path_SED" --version 2>&1` in 5489*GNU*) 5490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5491*) 5492 ac_count=0 5493 $as_echo_n 0123456789 >"conftest.in" 5494 while : 5495 do 5496 cat "conftest.in" "conftest.in" >"conftest.tmp" 5497 mv "conftest.tmp" "conftest.in" 5498 cp "conftest.in" "conftest.nl" 5499 $as_echo '' >> "conftest.nl" 5500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5502 as_fn_arith $ac_count + 1 && ac_count=$as_val 5503 if test $ac_count -gt ${ac_path_SED_max-0}; then 5504 # Best one so far, save it but keep looking for a better one 5505 ac_cv_path_SED="$ac_path_SED" 5506 ac_path_SED_max=$ac_count 5507 fi 5508 # 10*(2^10) chars as input seems more than enough 5509 test $ac_count -gt 10 && break 5510 done 5511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5512esac 5513 5514 $ac_path_SED_found && break 3 5515 done 5516 done 5517 done 5518IFS=$as_save_IFS 5519 if test -z "$ac_cv_path_SED"; then 5520 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5521 fi 5522else 5523 ac_cv_path_SED=$SED 5524fi 5525 5526fi 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5528$as_echo "$ac_cv_path_SED" >&6; } 5529 SED="$ac_cv_path_SED" 5530 rm -f conftest.sed 5531 5532test -z "$SED" && SED=sed 5533Xsed="$SED -e 1s/^X//" 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5546$as_echo_n "checking for fgrep... " >&6; } 5547if ${ac_cv_path_FGREP+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5551 then ac_cv_path_FGREP="$GREP -F" 5552 else 5553 if test -z "$FGREP"; then 5554 ac_path_FGREP_found=false 5555 # Loop through the user's path and test for each of PROGNAME-LIST 5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5558do 5559 IFS=$as_save_IFS 5560 test -z "$as_dir" && as_dir=. 5561 for ac_prog in fgrep; do 5562 for ac_exec_ext in '' $ac_executable_extensions; do 5563 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5564 as_fn_executable_p "$ac_path_FGREP" || continue 5565# Check for GNU ac_path_FGREP and select it if it is found. 5566 # Check for GNU $ac_path_FGREP 5567case `"$ac_path_FGREP" --version 2>&1` in 5568*GNU*) 5569 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5570*) 5571 ac_count=0 5572 $as_echo_n 0123456789 >"conftest.in" 5573 while : 5574 do 5575 cat "conftest.in" "conftest.in" >"conftest.tmp" 5576 mv "conftest.tmp" "conftest.in" 5577 cp "conftest.in" "conftest.nl" 5578 $as_echo 'FGREP' >> "conftest.nl" 5579 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5581 as_fn_arith $ac_count + 1 && ac_count=$as_val 5582 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5583 # Best one so far, save it but keep looking for a better one 5584 ac_cv_path_FGREP="$ac_path_FGREP" 5585 ac_path_FGREP_max=$ac_count 5586 fi 5587 # 10*(2^10) chars as input seems more than enough 5588 test $ac_count -gt 10 && break 5589 done 5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5591esac 5592 5593 $ac_path_FGREP_found && break 3 5594 done 5595 done 5596 done 5597IFS=$as_save_IFS 5598 if test -z "$ac_cv_path_FGREP"; then 5599 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5600 fi 5601else 5602 ac_cv_path_FGREP=$FGREP 5603fi 5604 5605 fi 5606fi 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5608$as_echo "$ac_cv_path_FGREP" >&6; } 5609 FGREP="$ac_cv_path_FGREP" 5610 5611 5612test -z "$GREP" && GREP=grep 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632# Check whether --with-gnu-ld was given. 5633if test "${with_gnu_ld+set}" = set; then : 5634 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5635else 5636 with_gnu_ld=no 5637fi 5638 5639ac_prog=ld 5640if test yes = "$GCC"; then 5641 # Check if gcc -print-prog-name=ld gives a path. 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5643$as_echo_n "checking for ld used by $CC... " >&6; } 5644 case $host in 5645 *-*-mingw*) 5646 # gcc leaves a trailing carriage return, which upsets mingw 5647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5648 *) 5649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5650 esac 5651 case $ac_prog in 5652 # Accept absolute paths. 5653 [\\/]* | ?:[\\/]*) 5654 re_direlt='/[^/][^/]*/\.\./' 5655 # Canonicalize the pathname of ld 5656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5659 done 5660 test -z "$LD" && LD=$ac_prog 5661 ;; 5662 "") 5663 # If it fails, then pretend we aren't using GCC. 5664 ac_prog=ld 5665 ;; 5666 *) 5667 # If it is relative, then search for the first ld in PATH. 5668 with_gnu_ld=unknown 5669 ;; 5670 esac 5671elif test yes = "$with_gnu_ld"; then 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5673$as_echo_n "checking for GNU ld... " >&6; } 5674else 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5676$as_echo_n "checking for non-GNU ld... " >&6; } 5677fi 5678if ${lt_cv_path_LD+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 if test -z "$LD"; then 5682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5683 for ac_dir in $PATH; do 5684 IFS=$lt_save_ifs 5685 test -z "$ac_dir" && ac_dir=. 5686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5687 lt_cv_path_LD=$ac_dir/$ac_prog 5688 # Check to see if the program is GNU ld. I'd rather use --version, 5689 # but apparently some variants of GNU ld only accept -v. 5690 # Break only if it was the GNU/non-GNU ld that we prefer. 5691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5692 *GNU* | *'with BFD'*) 5693 test no != "$with_gnu_ld" && break 5694 ;; 5695 *) 5696 test yes != "$with_gnu_ld" && break 5697 ;; 5698 esac 5699 fi 5700 done 5701 IFS=$lt_save_ifs 5702else 5703 lt_cv_path_LD=$LD # Let the user override the test with a path. 5704fi 5705fi 5706 5707LD=$lt_cv_path_LD 5708if test -n "$LD"; then 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5710$as_echo "$LD" >&6; } 5711else 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713$as_echo "no" >&6; } 5714fi 5715test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5717$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5718if ${lt_cv_prog_gnu_ld+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5722case `$LD -v 2>&1 </dev/null` in 5723*GNU* | *'with BFD'*) 5724 lt_cv_prog_gnu_ld=yes 5725 ;; 5726*) 5727 lt_cv_prog_gnu_ld=no 5728 ;; 5729esac 5730fi 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5732$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5733with_gnu_ld=$lt_cv_prog_gnu_ld 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5744$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5745if ${lt_cv_path_NM+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 if test -n "$NM"; then 5749 # Let the user override the test. 5750 lt_cv_path_NM=$NM 5751else 5752 lt_nm_to_check=${ac_tool_prefix}nm 5753 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5754 lt_nm_to_check="$lt_nm_to_check nm" 5755 fi 5756 for lt_tmp_nm in $lt_nm_to_check; do 5757 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5758 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5759 IFS=$lt_save_ifs 5760 test -z "$ac_dir" && ac_dir=. 5761 tmp_nm=$ac_dir/$lt_tmp_nm 5762 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5763 # Check to see if the nm accepts a BSD-compat flag. 5764 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5765 # nm: unknown option "B" ignored 5766 # Tru64's nm complains that /dev/null is an invalid object file 5767 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5768 case $build_os in 5769 mingw*) lt_bad_file=conftest.nm/nofile ;; 5770 *) lt_bad_file=/dev/null ;; 5771 esac 5772 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5773 *$lt_bad_file* | *'Invalid file or object type'*) 5774 lt_cv_path_NM="$tmp_nm -B" 5775 break 2 5776 ;; 5777 *) 5778 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5779 */dev/null*) 5780 lt_cv_path_NM="$tmp_nm -p" 5781 break 2 5782 ;; 5783 *) 5784 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5785 continue # so that we can try to find one that supports BSD flags 5786 ;; 5787 esac 5788 ;; 5789 esac 5790 fi 5791 done 5792 IFS=$lt_save_ifs 5793 done 5794 : ${lt_cv_path_NM=no} 5795fi 5796fi 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5798$as_echo "$lt_cv_path_NM" >&6; } 5799if test no != "$lt_cv_path_NM"; then 5800 NM=$lt_cv_path_NM 5801else 5802 # Didn't find any BSD compatible name lister, look for dumpbin. 5803 if test -n "$DUMPBIN"; then : 5804 # Let the user override the test. 5805 else 5806 if test -n "$ac_tool_prefix"; then 5807 for ac_prog in dumpbin "link -dump" 5808 do 5809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5810set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5812$as_echo_n "checking for $ac_word... " >&6; } 5813if ${ac_cv_prog_DUMPBIN+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 if test -n "$DUMPBIN"; then 5817 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5818else 5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5820for as_dir in $PATH 5821do 5822 IFS=$as_save_IFS 5823 test -z "$as_dir" && as_dir=. 5824 for ac_exec_ext in '' $ac_executable_extensions; do 5825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5826 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5828 break 2 5829 fi 5830done 5831 done 5832IFS=$as_save_IFS 5833 5834fi 5835fi 5836DUMPBIN=$ac_cv_prog_DUMPBIN 5837if test -n "$DUMPBIN"; then 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5839$as_echo "$DUMPBIN" >&6; } 5840else 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5842$as_echo "no" >&6; } 5843fi 5844 5845 5846 test -n "$DUMPBIN" && break 5847 done 5848fi 5849if test -z "$DUMPBIN"; then 5850 ac_ct_DUMPBIN=$DUMPBIN 5851 for ac_prog in dumpbin "link -dump" 5852do 5853 # Extract the first word of "$ac_prog", so it can be a program name with args. 5854set dummy $ac_prog; ac_word=$2 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5856$as_echo_n "checking for $ac_word... " >&6; } 5857if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 if test -n "$ac_ct_DUMPBIN"; then 5861 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5862else 5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5864for as_dir in $PATH 5865do 5866 IFS=$as_save_IFS 5867 test -z "$as_dir" && as_dir=. 5868 for ac_exec_ext in '' $ac_executable_extensions; do 5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5870 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5872 break 2 5873 fi 5874done 5875 done 5876IFS=$as_save_IFS 5877 5878fi 5879fi 5880ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5881if test -n "$ac_ct_DUMPBIN"; then 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5883$as_echo "$ac_ct_DUMPBIN" >&6; } 5884else 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886$as_echo "no" >&6; } 5887fi 5888 5889 5890 test -n "$ac_ct_DUMPBIN" && break 5891done 5892 5893 if test "x$ac_ct_DUMPBIN" = x; then 5894 DUMPBIN=":" 5895 else 5896 case $cross_compiling:$ac_tool_warned in 5897yes:) 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5900ac_tool_warned=yes ;; 5901esac 5902 DUMPBIN=$ac_ct_DUMPBIN 5903 fi 5904fi 5905 5906 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5907 *COFF*) 5908 DUMPBIN="$DUMPBIN -symbols -headers" 5909 ;; 5910 *) 5911 DUMPBIN=: 5912 ;; 5913 esac 5914 fi 5915 5916 if test : != "$DUMPBIN"; then 5917 NM=$DUMPBIN 5918 fi 5919fi 5920test -z "$NM" && NM=nm 5921 5922 5923 5924 5925 5926 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5928$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5929if ${lt_cv_nm_interface+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 lt_cv_nm_interface="BSD nm" 5933 echo "int some_variable = 0;" > conftest.$ac_ext 5934 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5935 (eval "$ac_compile" 2>conftest.err) 5936 cat conftest.err >&5 5937 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5938 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5939 cat conftest.err >&5 5940 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5941 cat conftest.out >&5 5942 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5943 lt_cv_nm_interface="MS dumpbin" 5944 fi 5945 rm -f conftest* 5946fi 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5948$as_echo "$lt_cv_nm_interface" >&6; } 5949 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5951$as_echo_n "checking whether ln -s works... " >&6; } 5952LN_S=$as_ln_s 5953if test "$LN_S" = "ln -s"; then 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5955$as_echo "yes" >&6; } 5956else 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5958$as_echo "no, using $LN_S" >&6; } 5959fi 5960 5961# find the maximum length of command line arguments 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5963$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5964if ${lt_cv_sys_max_cmd_len+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 i=0 5968 teststring=ABCD 5969 5970 case $build_os in 5971 msdosdjgpp*) 5972 # On DJGPP, this test can blow up pretty badly due to problems in libc 5973 # (any single argument exceeding 2000 bytes causes a buffer overrun 5974 # during glob expansion). Even if it were fixed, the result of this 5975 # check would be larger than it should be. 5976 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5977 ;; 5978 5979 gnu*) 5980 # Under GNU Hurd, this test is not required because there is 5981 # no limit to the length of command line arguments. 5982 # Libtool will interpret -1 as no limit whatsoever 5983 lt_cv_sys_max_cmd_len=-1; 5984 ;; 5985 5986 cygwin* | mingw* | cegcc*) 5987 # On Win9x/ME, this test blows up -- it succeeds, but takes 5988 # about 5 minutes as the teststring grows exponentially. 5989 # Worse, since 9x/ME are not pre-emptively multitasking, 5990 # you end up with a "frozen" computer, even though with patience 5991 # the test eventually succeeds (with a max line length of 256k). 5992 # Instead, let's just punt: use the minimum linelength reported by 5993 # all of the supported platforms: 8192 (on NT/2K/XP). 5994 lt_cv_sys_max_cmd_len=8192; 5995 ;; 5996 5997 mint*) 5998 # On MiNT this can take a long time and run out of memory. 5999 lt_cv_sys_max_cmd_len=8192; 6000 ;; 6001 6002 amigaos*) 6003 # On AmigaOS with pdksh, this test takes hours, literally. 6004 # So we just punt and use a minimum line length of 8192. 6005 lt_cv_sys_max_cmd_len=8192; 6006 ;; 6007 6008 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6009 # This has been around since 386BSD, at least. Likely further. 6010 if test -x /sbin/sysctl; then 6011 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6012 elif test -x /usr/sbin/sysctl; then 6013 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6014 else 6015 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6016 fi 6017 # And add a safety zone 6018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6020 ;; 6021 6022 interix*) 6023 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6024 lt_cv_sys_max_cmd_len=196608 6025 ;; 6026 6027 os2*) 6028 # The test takes a long time on OS/2. 6029 lt_cv_sys_max_cmd_len=8192 6030 ;; 6031 6032 osf*) 6033 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6034 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6035 # nice to cause kernel panics so lets avoid the loop below. 6036 # First set a reasonable default. 6037 lt_cv_sys_max_cmd_len=16384 6038 # 6039 if test -x /sbin/sysconfig; then 6040 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6041 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6042 esac 6043 fi 6044 ;; 6045 sco3.2v5*) 6046 lt_cv_sys_max_cmd_len=102400 6047 ;; 6048 sysv5* | sco5v6* | sysv4.2uw2*) 6049 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6050 if test -n "$kargmax"; then 6051 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6052 else 6053 lt_cv_sys_max_cmd_len=32768 6054 fi 6055 ;; 6056 *) 6057 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6058 if test -n "$lt_cv_sys_max_cmd_len" && \ 6059 test undefined != "$lt_cv_sys_max_cmd_len"; then 6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6062 else 6063 # Make teststring a little bigger before we do anything with it. 6064 # a 1K string should be a reasonable start. 6065 for i in 1 2 3 4 5 6 7 8; do 6066 teststring=$teststring$teststring 6067 done 6068 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6069 # If test is not a shell built-in, we'll probably end up computing a 6070 # maximum length that is only half of the actual maximum length, but 6071 # we can't tell. 6072 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6073 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6074 test 17 != "$i" # 1/2 MB should be enough 6075 do 6076 i=`expr $i + 1` 6077 teststring=$teststring$teststring 6078 done 6079 # Only check the string length outside the loop. 6080 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6081 teststring= 6082 # Add a significant safety factor because C++ compilers can tack on 6083 # massive amounts of additional arguments before passing them to the 6084 # linker. It appears as though 1/2 is a usable value. 6085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6086 fi 6087 ;; 6088 esac 6089 6090fi 6091 6092if test -n "$lt_cv_sys_max_cmd_len"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6094$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6095else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6097$as_echo "none" >&6; } 6098fi 6099max_cmd_len=$lt_cv_sys_max_cmd_len 6100 6101 6102 6103 6104 6105 6106: ${CP="cp -f"} 6107: ${MV="mv -f"} 6108: ${RM="rm -f"} 6109 6110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6111 lt_unset=unset 6112else 6113 lt_unset=false 6114fi 6115 6116 6117 6118 6119 6120# test EBCDIC or ASCII 6121case `echo X|tr X '\101'` in 6122 A) # ASCII based system 6123 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6124 lt_SP2NL='tr \040 \012' 6125 lt_NL2SP='tr \015\012 \040\040' 6126 ;; 6127 *) # EBCDIC based system 6128 lt_SP2NL='tr \100 \n' 6129 lt_NL2SP='tr \r\n \100\100' 6130 ;; 6131esac 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6142$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6143if ${lt_cv_to_host_file_cmd+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 case $host in 6147 *-*-mingw* ) 6148 case $build in 6149 *-*-mingw* ) # actually msys 6150 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6151 ;; 6152 *-*-cygwin* ) 6153 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6154 ;; 6155 * ) # otherwise, assume *nix 6156 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6157 ;; 6158 esac 6159 ;; 6160 *-*-cygwin* ) 6161 case $build in 6162 *-*-mingw* ) # actually msys 6163 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6164 ;; 6165 *-*-cygwin* ) 6166 lt_cv_to_host_file_cmd=func_convert_file_noop 6167 ;; 6168 * ) # otherwise, assume *nix 6169 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6170 ;; 6171 esac 6172 ;; 6173 * ) # unhandled hosts (and "normal" native builds) 6174 lt_cv_to_host_file_cmd=func_convert_file_noop 6175 ;; 6176esac 6177 6178fi 6179 6180to_host_file_cmd=$lt_cv_to_host_file_cmd 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6182$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6183 6184 6185 6186 6187 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6189$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6190if ${lt_cv_to_tool_file_cmd+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192else 6193 #assume ordinary cross tools, or native build. 6194lt_cv_to_tool_file_cmd=func_convert_file_noop 6195case $host in 6196 *-*-mingw* ) 6197 case $build in 6198 *-*-mingw* ) # actually msys 6199 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6200 ;; 6201 esac 6202 ;; 6203esac 6204 6205fi 6206 6207to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6209$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6210 6211 6212 6213 6214 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6216$as_echo_n "checking for $LD option to reload object files... " >&6; } 6217if ${lt_cv_ld_reload_flag+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 lt_cv_ld_reload_flag='-r' 6221fi 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6223$as_echo "$lt_cv_ld_reload_flag" >&6; } 6224reload_flag=$lt_cv_ld_reload_flag 6225case $reload_flag in 6226"" | " "*) ;; 6227*) reload_flag=" $reload_flag" ;; 6228esac 6229reload_cmds='$LD$reload_flag -o $output$reload_objs' 6230case $host_os in 6231 cygwin* | mingw* | pw32* | cegcc*) 6232 if test yes != "$GCC"; then 6233 reload_cmds=false 6234 fi 6235 ;; 6236 darwin*) 6237 if test yes = "$GCC"; then 6238 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6239 else 6240 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6241 fi 6242 ;; 6243esac 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253if test -n "$ac_tool_prefix"; then 6254 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6255set dummy ${ac_tool_prefix}objdump; ac_word=$2 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257$as_echo_n "checking for $ac_word... " >&6; } 6258if ${ac_cv_prog_OBJDUMP+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 if test -n "$OBJDUMP"; then 6262 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6263else 6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265for as_dir in $PATH 6266do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6271 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275done 6276 done 6277IFS=$as_save_IFS 6278 6279fi 6280fi 6281OBJDUMP=$ac_cv_prog_OBJDUMP 6282if test -n "$OBJDUMP"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6284$as_echo "$OBJDUMP" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289 6290 6291fi 6292if test -z "$ac_cv_prog_OBJDUMP"; then 6293 ac_ct_OBJDUMP=$OBJDUMP 6294 # Extract the first word of "objdump", so it can be a program name with args. 6295set dummy objdump; ac_word=$2 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6297$as_echo_n "checking for $ac_word... " >&6; } 6298if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6299 $as_echo_n "(cached) " >&6 6300else 6301 if test -n "$ac_ct_OBJDUMP"; then 6302 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6303else 6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6305for as_dir in $PATH 6306do 6307 IFS=$as_save_IFS 6308 test -z "$as_dir" && as_dir=. 6309 for ac_exec_ext in '' $ac_executable_extensions; do 6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6311 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6313 break 2 6314 fi 6315done 6316 done 6317IFS=$as_save_IFS 6318 6319fi 6320fi 6321ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6322if test -n "$ac_ct_OBJDUMP"; then 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6324$as_echo "$ac_ct_OBJDUMP" >&6; } 6325else 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6327$as_echo "no" >&6; } 6328fi 6329 6330 if test "x$ac_ct_OBJDUMP" = x; then 6331 OBJDUMP="false" 6332 else 6333 case $cross_compiling:$ac_tool_warned in 6334yes:) 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6337ac_tool_warned=yes ;; 6338esac 6339 OBJDUMP=$ac_ct_OBJDUMP 6340 fi 6341else 6342 OBJDUMP="$ac_cv_prog_OBJDUMP" 6343fi 6344 6345test -z "$OBJDUMP" && OBJDUMP=objdump 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6356$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6357if ${lt_cv_deplibs_check_method+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 lt_cv_file_magic_cmd='$MAGIC_CMD' 6361lt_cv_file_magic_test_file= 6362lt_cv_deplibs_check_method='unknown' 6363# Need to set the preceding variable on all platforms that support 6364# interlibrary dependencies. 6365# 'none' -- dependencies not supported. 6366# 'unknown' -- same as none, but documents that we really don't know. 6367# 'pass_all' -- all dependencies passed with no checks. 6368# 'test_compile' -- check by making test program. 6369# 'file_magic [[regex]]' -- check by looking for files in library path 6370# that responds to the $file_magic_cmd with a given extended regex. 6371# If you have 'file' or equivalent on your system and you're not sure 6372# whether 'pass_all' will *always* work, you probably want this one. 6373 6374case $host_os in 6375aix[4-9]*) 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378 6379beos*) 6380 lt_cv_deplibs_check_method=pass_all 6381 ;; 6382 6383bsdi[45]*) 6384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6385 lt_cv_file_magic_cmd='/usr/bin/file -L' 6386 lt_cv_file_magic_test_file=/shlib/libc.so 6387 ;; 6388 6389cygwin*) 6390 # func_win32_libid is a shell function defined in ltmain.sh 6391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6392 lt_cv_file_magic_cmd='func_win32_libid' 6393 ;; 6394 6395mingw* | pw32*) 6396 # Base MSYS/MinGW do not provide the 'file' command needed by 6397 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6398 # unless we find 'file', for example because we are cross-compiling. 6399 if ( file / ) >/dev/null 2>&1; then 6400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6401 lt_cv_file_magic_cmd='func_win32_libid' 6402 else 6403 # Keep this pattern in sync with the one in func_win32_libid. 6404 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6405 lt_cv_file_magic_cmd='$OBJDUMP -f' 6406 fi 6407 ;; 6408 6409cegcc*) 6410 # use the weaker test based on 'objdump'. See mingw*. 6411 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6412 lt_cv_file_magic_cmd='$OBJDUMP -f' 6413 ;; 6414 6415darwin* | rhapsody*) 6416 lt_cv_deplibs_check_method=pass_all 6417 ;; 6418 6419freebsd* | dragonfly*) 6420 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6421 case $host_cpu in 6422 i*86 ) 6423 # Not sure whether the presence of OpenBSD here was a mistake. 6424 # Let's accept both of them until this is cleared up. 6425 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6426 lt_cv_file_magic_cmd=/usr/bin/file 6427 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6428 ;; 6429 esac 6430 else 6431 lt_cv_deplibs_check_method=pass_all 6432 fi 6433 ;; 6434 6435haiku*) 6436 lt_cv_deplibs_check_method=pass_all 6437 ;; 6438 6439hpux10.20* | hpux11*) 6440 lt_cv_file_magic_cmd=/usr/bin/file 6441 case $host_cpu in 6442 ia64*) 6443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6444 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6445 ;; 6446 hppa*64*) 6447 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]' 6448 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6449 ;; 6450 *) 6451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6452 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6453 ;; 6454 esac 6455 ;; 6456 6457interix[3-9]*) 6458 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6460 ;; 6461 6462irix5* | irix6* | nonstopux*) 6463 case $LD in 6464 *-32|*"-32 ") libmagic=32-bit;; 6465 *-n32|*"-n32 ") libmagic=N32;; 6466 *-64|*"-64 ") libmagic=64-bit;; 6467 *) libmagic=never-match;; 6468 esac 6469 lt_cv_deplibs_check_method=pass_all 6470 ;; 6471 6472# This must be glibc/ELF. 6473linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6474 lt_cv_deplibs_check_method=pass_all 6475 ;; 6476 6477netbsd*) 6478 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6480 else 6481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6482 fi 6483 ;; 6484 6485newos6*) 6486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6487 lt_cv_file_magic_cmd=/usr/bin/file 6488 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6489 ;; 6490 6491*nto* | *qnx*) 6492 lt_cv_deplibs_check_method=pass_all 6493 ;; 6494 6495openbsd* | bitrig*) 6496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6498 else 6499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6500 fi 6501 ;; 6502 6503osf3* | osf4* | osf5*) 6504 lt_cv_deplibs_check_method=pass_all 6505 ;; 6506 6507rdos*) 6508 lt_cv_deplibs_check_method=pass_all 6509 ;; 6510 6511solaris*) 6512 lt_cv_deplibs_check_method=pass_all 6513 ;; 6514 6515sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6516 lt_cv_deplibs_check_method=pass_all 6517 ;; 6518 6519sysv4 | sysv4.3*) 6520 case $host_vendor in 6521 motorola) 6522 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]' 6523 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6524 ;; 6525 ncr) 6526 lt_cv_deplibs_check_method=pass_all 6527 ;; 6528 sequent) 6529 lt_cv_file_magic_cmd='/bin/file' 6530 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6531 ;; 6532 sni) 6533 lt_cv_file_magic_cmd='/bin/file' 6534 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6535 lt_cv_file_magic_test_file=/lib/libc.so 6536 ;; 6537 siemens) 6538 lt_cv_deplibs_check_method=pass_all 6539 ;; 6540 pc) 6541 lt_cv_deplibs_check_method=pass_all 6542 ;; 6543 esac 6544 ;; 6545 6546tpf*) 6547 lt_cv_deplibs_check_method=pass_all 6548 ;; 6549os2*) 6550 lt_cv_deplibs_check_method=pass_all 6551 ;; 6552esac 6553 6554fi 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6556$as_echo "$lt_cv_deplibs_check_method" >&6; } 6557 6558file_magic_glob= 6559want_nocaseglob=no 6560if test "$build" = "$host"; then 6561 case $host_os in 6562 mingw* | pw32*) 6563 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6564 want_nocaseglob=yes 6565 else 6566 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6567 fi 6568 ;; 6569 esac 6570fi 6571 6572file_magic_cmd=$lt_cv_file_magic_cmd 6573deplibs_check_method=$lt_cv_deplibs_check_method 6574test -z "$deplibs_check_method" && deplibs_check_method=unknown 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597if test -n "$ac_tool_prefix"; then 6598 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6599set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6601$as_echo_n "checking for $ac_word... " >&6; } 6602if ${ac_cv_prog_DLLTOOL+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 if test -n "$DLLTOOL"; then 6606 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 test -z "$as_dir" && as_dir=. 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619done 6620 done 6621IFS=$as_save_IFS 6622 6623fi 6624fi 6625DLLTOOL=$ac_cv_prog_DLLTOOL 6626if test -n "$DLLTOOL"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6628$as_echo "$DLLTOOL" >&6; } 6629else 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6631$as_echo "no" >&6; } 6632fi 6633 6634 6635fi 6636if test -z "$ac_cv_prog_DLLTOOL"; then 6637 ac_ct_DLLTOOL=$DLLTOOL 6638 # Extract the first word of "dlltool", so it can be a program name with args. 6639set dummy dlltool; ac_word=$2 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6641$as_echo_n "checking for $ac_word... " >&6; } 6642if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 if test -n "$ac_ct_DLLTOOL"; then 6646 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6647else 6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6649for as_dir in $PATH 6650do 6651 IFS=$as_save_IFS 6652 test -z "$as_dir" && as_dir=. 6653 for ac_exec_ext in '' $ac_executable_extensions; do 6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6655 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6657 break 2 6658 fi 6659done 6660 done 6661IFS=$as_save_IFS 6662 6663fi 6664fi 6665ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6666if test -n "$ac_ct_DLLTOOL"; then 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6668$as_echo "$ac_ct_DLLTOOL" >&6; } 6669else 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671$as_echo "no" >&6; } 6672fi 6673 6674 if test "x$ac_ct_DLLTOOL" = x; then 6675 DLLTOOL="false" 6676 else 6677 case $cross_compiling:$ac_tool_warned in 6678yes:) 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6681ac_tool_warned=yes ;; 6682esac 6683 DLLTOOL=$ac_ct_DLLTOOL 6684 fi 6685else 6686 DLLTOOL="$ac_cv_prog_DLLTOOL" 6687fi 6688 6689test -z "$DLLTOOL" && DLLTOOL=dlltool 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6701$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6702if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 lt_cv_sharedlib_from_linklib_cmd='unknown' 6706 6707case $host_os in 6708cygwin* | mingw* | pw32* | cegcc*) 6709 # two different shell functions defined in ltmain.sh; 6710 # decide which one to use based on capabilities of $DLLTOOL 6711 case `$DLLTOOL --help 2>&1` in 6712 *--identify-strict*) 6713 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6714 ;; 6715 *) 6716 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6717 ;; 6718 esac 6719 ;; 6720*) 6721 # fallback: assume linklib IS sharedlib 6722 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6723 ;; 6724esac 6725 6726fi 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6728$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6729sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6730test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6731 6732 6733 6734 6735 6736 6737 6738if test -n "$ac_tool_prefix"; then 6739 for ac_prog in ar 6740 do 6741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6742set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6744$as_echo_n "checking for $ac_word... " >&6; } 6745if ${ac_cv_prog_AR+:} false; then : 6746 $as_echo_n "(cached) " >&6 6747else 6748 if test -n "$AR"; then 6749 ac_cv_prog_AR="$AR" # Let the user override the test. 6750else 6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6752for as_dir in $PATH 6753do 6754 IFS=$as_save_IFS 6755 test -z "$as_dir" && as_dir=. 6756 for ac_exec_ext in '' $ac_executable_extensions; do 6757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6758 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6760 break 2 6761 fi 6762done 6763 done 6764IFS=$as_save_IFS 6765 6766fi 6767fi 6768AR=$ac_cv_prog_AR 6769if test -n "$AR"; then 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6771$as_echo "$AR" >&6; } 6772else 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6774$as_echo "no" >&6; } 6775fi 6776 6777 6778 test -n "$AR" && break 6779 done 6780fi 6781if test -z "$AR"; then 6782 ac_ct_AR=$AR 6783 for ac_prog in ar 6784do 6785 # Extract the first word of "$ac_prog", so it can be a program name with args. 6786set dummy $ac_prog; ac_word=$2 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if ${ac_cv_prog_ac_ct_AR+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 if test -n "$ac_ct_AR"; then 6793 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6802 ac_cv_prog_ac_ct_AR="$ac_prog" 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_AR=$ac_cv_prog_ac_ct_AR 6813if test -n "$ac_ct_AR"; then 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6815$as_echo "$ac_ct_AR" >&6; } 6816else 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818$as_echo "no" >&6; } 6819fi 6820 6821 6822 test -n "$ac_ct_AR" && break 6823done 6824 6825 if test "x$ac_ct_AR" = x; then 6826 AR="false" 6827 else 6828 case $cross_compiling:$ac_tool_warned in 6829yes:) 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6832ac_tool_warned=yes ;; 6833esac 6834 AR=$ac_ct_AR 6835 fi 6836fi 6837 6838: ${AR=ar} 6839: ${AR_FLAGS=cru} 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6852$as_echo_n "checking for archiver @FILE support... " >&6; } 6853if ${lt_cv_ar_at_file+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 lt_cv_ar_at_file=no 6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859 6860int 6861main () 6862{ 6863 6864 ; 6865 return 0; 6866} 6867_ACEOF 6868if ac_fn_c_try_compile "$LINENO"; then : 6869 echo conftest.$ac_objext > conftest.lst 6870 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6872 (eval $lt_ar_try) 2>&5 6873 ac_status=$? 6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6875 test $ac_status = 0; } 6876 if test 0 -eq "$ac_status"; then 6877 # Ensure the archiver fails upon bogus file names. 6878 rm -f conftest.$ac_objext libconftest.a 6879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6880 (eval $lt_ar_try) 2>&5 6881 ac_status=$? 6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6883 test $ac_status = 0; } 6884 if test 0 -ne "$ac_status"; then 6885 lt_cv_ar_at_file=@ 6886 fi 6887 fi 6888 rm -f conftest.* libconftest.a 6889 6890fi 6891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6892 6893fi 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6895$as_echo "$lt_cv_ar_at_file" >&6; } 6896 6897if test no = "$lt_cv_ar_at_file"; then 6898 archiver_list_spec= 6899else 6900 archiver_list_spec=$lt_cv_ar_at_file 6901fi 6902 6903 6904 6905 6906 6907 6908 6909if test -n "$ac_tool_prefix"; then 6910 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6911set dummy ${ac_tool_prefix}strip; ac_word=$2 6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6913$as_echo_n "checking for $ac_word... " >&6; } 6914if ${ac_cv_prog_STRIP+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916else 6917 if test -n "$STRIP"; then 6918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6919else 6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6921for as_dir in $PATH 6922do 6923 IFS=$as_save_IFS 6924 test -z "$as_dir" && as_dir=. 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6927 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931done 6932 done 6933IFS=$as_save_IFS 6934 6935fi 6936fi 6937STRIP=$ac_cv_prog_STRIP 6938if test -n "$STRIP"; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6940$as_echo "$STRIP" >&6; } 6941else 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6943$as_echo "no" >&6; } 6944fi 6945 6946 6947fi 6948if test -z "$ac_cv_prog_STRIP"; then 6949 ac_ct_STRIP=$STRIP 6950 # Extract the first word of "strip", so it can be a program name with args. 6951set dummy strip; ac_word=$2 6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6953$as_echo_n "checking for $ac_word... " >&6; } 6954if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6955 $as_echo_n "(cached) " >&6 6956else 6957 if test -n "$ac_ct_STRIP"; then 6958 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6959else 6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961for as_dir in $PATH 6962do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6967 ac_cv_prog_ac_ct_STRIP="strip" 6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971done 6972 done 6973IFS=$as_save_IFS 6974 6975fi 6976fi 6977ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6978if test -n "$ac_ct_STRIP"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6980$as_echo "$ac_ct_STRIP" >&6; } 6981else 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6983$as_echo "no" >&6; } 6984fi 6985 6986 if test "x$ac_ct_STRIP" = x; then 6987 STRIP=":" 6988 else 6989 case $cross_compiling:$ac_tool_warned in 6990yes:) 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6993ac_tool_warned=yes ;; 6994esac 6995 STRIP=$ac_ct_STRIP 6996 fi 6997else 6998 STRIP="$ac_cv_prog_STRIP" 6999fi 7000 7001test -z "$STRIP" && STRIP=: 7002 7003 7004 7005 7006 7007 7008if test -n "$ac_tool_prefix"; then 7009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7010set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7012$as_echo_n "checking for $ac_word... " >&6; } 7013if ${ac_cv_prog_RANLIB+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015else 7016 if test -n "$RANLIB"; then 7017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7018else 7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7020for as_dir in $PATH 7021do 7022 IFS=$as_save_IFS 7023 test -z "$as_dir" && as_dir=. 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7026 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030done 7031 done 7032IFS=$as_save_IFS 7033 7034fi 7035fi 7036RANLIB=$ac_cv_prog_RANLIB 7037if test -n "$RANLIB"; then 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7039$as_echo "$RANLIB" >&6; } 7040else 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7042$as_echo "no" >&6; } 7043fi 7044 7045 7046fi 7047if test -z "$ac_cv_prog_RANLIB"; then 7048 ac_ct_RANLIB=$RANLIB 7049 # Extract the first word of "ranlib", so it can be a program name with args. 7050set dummy ranlib; ac_word=$2 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$ac_ct_RANLIB"; then 7057 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7066 ac_cv_prog_ac_ct_RANLIB="ranlib" 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071 done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7077if test -n "$ac_ct_RANLIB"; then 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7079$as_echo "$ac_ct_RANLIB" >&6; } 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 if test "x$ac_ct_RANLIB" = x; then 7086 RANLIB=":" 7087 else 7088 case $cross_compiling:$ac_tool_warned in 7089yes:) 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7092ac_tool_warned=yes ;; 7093esac 7094 RANLIB=$ac_ct_RANLIB 7095 fi 7096else 7097 RANLIB="$ac_cv_prog_RANLIB" 7098fi 7099 7100test -z "$RANLIB" && RANLIB=: 7101 7102 7103 7104 7105 7106 7107# Determine commands to create old-style static archives. 7108old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7109old_postinstall_cmds='chmod 644 $oldlib' 7110old_postuninstall_cmds= 7111 7112if test -n "$RANLIB"; then 7113 case $host_os in 7114 bitrig* | openbsd*) 7115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7116 ;; 7117 *) 7118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7119 ;; 7120 esac 7121 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7122fi 7123 7124case $host_os in 7125 darwin*) 7126 lock_old_archive_extraction=yes ;; 7127 *) 7128 lock_old_archive_extraction=no ;; 7129esac 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169# If no C compiler was specified, use CC. 7170LTCC=${LTCC-"$CC"} 7171 7172# If no C compiler flags were specified, use CFLAGS. 7173LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7174 7175# Allow CC to be a program name with arguments. 7176compiler=$CC 7177 7178 7179# Check for command to grab the raw symbol name followed by C symbol from nm. 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7181$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7182if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7183 $as_echo_n "(cached) " >&6 7184else 7185 7186# These are sane defaults that work on at least a few old systems. 7187# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7188 7189# Character class describing NM global symbol codes. 7190symcode='[BCDEGRST]' 7191 7192# Regexp to match symbols that can be accessed directly from C. 7193sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7194 7195# Define system-specific variables. 7196case $host_os in 7197aix*) 7198 symcode='[BCDT]' 7199 ;; 7200cygwin* | mingw* | pw32* | cegcc*) 7201 symcode='[ABCDGISTW]' 7202 ;; 7203hpux*) 7204 if test ia64 = "$host_cpu"; then 7205 symcode='[ABCDEGRST]' 7206 fi 7207 ;; 7208irix* | nonstopux*) 7209 symcode='[BCDEGRST]' 7210 ;; 7211osf*) 7212 symcode='[BCDEGQRST]' 7213 ;; 7214solaris*) 7215 symcode='[BDRT]' 7216 ;; 7217sco3.2v5*) 7218 symcode='[DT]' 7219 ;; 7220sysv4.2uw2*) 7221 symcode='[DT]' 7222 ;; 7223sysv5* | sco5v6* | unixware* | OpenUNIX*) 7224 symcode='[ABDT]' 7225 ;; 7226sysv4) 7227 symcode='[DFNSTU]' 7228 ;; 7229esac 7230 7231# If we're using GNU nm, then use its standard symbol codes. 7232case `$NM -V 2>&1` in 7233*GNU* | *'with BFD'*) 7234 symcode='[ABCDGIRSTW]' ;; 7235esac 7236 7237if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7238 # Gets list of data symbols to import. 7239 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7240 # Adjust the below global symbol transforms to fixup imported variables. 7241 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7242 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7243 lt_c_name_lib_hook="\ 7244 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7245 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7246else 7247 # Disable hooks by default. 7248 lt_cv_sys_global_symbol_to_import= 7249 lt_cdecl_hook= 7250 lt_c_name_hook= 7251 lt_c_name_lib_hook= 7252fi 7253 7254# Transform an extracted symbol line into a proper C declaration. 7255# Some systems (esp. on ia64) link data and code symbols differently, 7256# so use this general approach. 7257lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7258$lt_cdecl_hook\ 7259" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7260" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7261 7262# Transform an extracted symbol line into symbol name and symbol address 7263lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7264$lt_c_name_hook\ 7265" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7266" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7267 7268# Transform an extracted symbol line into symbol name with lib prefix and 7269# symbol address. 7270lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7271$lt_c_name_lib_hook\ 7272" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7273" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7274" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7275 7276# Handle CRLF in mingw tool chain 7277opt_cr= 7278case $build_os in 7279mingw*) 7280 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7281 ;; 7282esac 7283 7284# Try without a prefix underscore, then with it. 7285for ac_symprfx in "" "_"; do 7286 7287 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7288 symxfrm="\\1 $ac_symprfx\\2 \\2" 7289 7290 # Write the raw and C identifiers. 7291 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7292 # Fake it for dumpbin and say T for any non-static function, 7293 # D for any global variable and I for any imported variable. 7294 # Also find C++ and __fastcall symbols from MSVC++, 7295 # which start with @ or ?. 7296 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7297" {last_section=section; section=\$ 3};"\ 7298" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7299" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7300" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7301" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7302" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7303" \$ 0!~/External *\|/{next};"\ 7304" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7305" {if(hide[section]) next};"\ 7306" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7307" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7308" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7309" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7310" ' prfx=^$ac_symprfx" 7311 else 7312 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7313 fi 7314 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7315 7316 # Check to see that the pipe works correctly. 7317 pipe_works=no 7318 7319 rm -f conftest* 7320 cat > conftest.$ac_ext <<_LT_EOF 7321#ifdef __cplusplus 7322extern "C" { 7323#endif 7324char nm_test_var; 7325void nm_test_func(void); 7326void nm_test_func(void){} 7327#ifdef __cplusplus 7328} 7329#endif 7330int main(){nm_test_var='a';nm_test_func();return(0);} 7331_LT_EOF 7332 7333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7334 (eval $ac_compile) 2>&5 7335 ac_status=$? 7336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7337 test $ac_status = 0; }; then 7338 # Now try to grab the symbols. 7339 nlist=conftest.nm 7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7341 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7342 ac_status=$? 7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7344 test $ac_status = 0; } && test -s "$nlist"; then 7345 # Try sorting and uniquifying the output. 7346 if sort "$nlist" | uniq > "$nlist"T; then 7347 mv -f "$nlist"T "$nlist" 7348 else 7349 rm -f "$nlist"T 7350 fi 7351 7352 # Make sure that we snagged all the symbols we need. 7353 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7354 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7355 cat <<_LT_EOF > conftest.$ac_ext 7356/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7357#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7358/* DATA imports from DLLs on WIN32 can't be const, because runtime 7359 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7360# define LT_DLSYM_CONST 7361#elif defined __osf__ 7362/* This system does not cope well with relocations in const data. */ 7363# define LT_DLSYM_CONST 7364#else 7365# define LT_DLSYM_CONST const 7366#endif 7367 7368#ifdef __cplusplus 7369extern "C" { 7370#endif 7371 7372_LT_EOF 7373 # Now generate the symbol file. 7374 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7375 7376 cat <<_LT_EOF >> conftest.$ac_ext 7377 7378/* The mapping between symbol names and symbols. */ 7379LT_DLSYM_CONST struct { 7380 const char *name; 7381 void *address; 7382} 7383lt__PROGRAM__LTX_preloaded_symbols[] = 7384{ 7385 { "@PROGRAM@", (void *) 0 }, 7386_LT_EOF 7387 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7388 cat <<\_LT_EOF >> conftest.$ac_ext 7389 {0, (void *) 0} 7390}; 7391 7392/* This works around a problem in FreeBSD linker */ 7393#ifdef FREEBSD_WORKAROUND 7394static const void *lt_preloaded_setup() { 7395 return lt__PROGRAM__LTX_preloaded_symbols; 7396} 7397#endif 7398 7399#ifdef __cplusplus 7400} 7401#endif 7402_LT_EOF 7403 # Now try linking the two files. 7404 mv conftest.$ac_objext conftstm.$ac_objext 7405 lt_globsym_save_LIBS=$LIBS 7406 lt_globsym_save_CFLAGS=$CFLAGS 7407 LIBS=conftstm.$ac_objext 7408 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7410 (eval $ac_link) 2>&5 7411 ac_status=$? 7412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7413 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7414 pipe_works=yes 7415 fi 7416 LIBS=$lt_globsym_save_LIBS 7417 CFLAGS=$lt_globsym_save_CFLAGS 7418 else 7419 echo "cannot find nm_test_func in $nlist" >&5 7420 fi 7421 else 7422 echo "cannot find nm_test_var in $nlist" >&5 7423 fi 7424 else 7425 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7426 fi 7427 else 7428 echo "$progname: failed program was:" >&5 7429 cat conftest.$ac_ext >&5 7430 fi 7431 rm -rf conftest* conftst* 7432 7433 # Do not use the global_symbol_pipe unless it works. 7434 if test yes = "$pipe_works"; then 7435 break 7436 else 7437 lt_cv_sys_global_symbol_pipe= 7438 fi 7439done 7440 7441fi 7442 7443if test -z "$lt_cv_sys_global_symbol_pipe"; then 7444 lt_cv_sys_global_symbol_to_cdecl= 7445fi 7446if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7448$as_echo "failed" >&6; } 7449else 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7451$as_echo "ok" >&6; } 7452fi 7453 7454# Response file support. 7455if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7456 nm_file_list_spec='@' 7457elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7458 nm_file_list_spec='@' 7459fi 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7498$as_echo_n "checking for sysroot... " >&6; } 7499 7500# Check whether --with-sysroot was given. 7501if test "${with_sysroot+set}" = set; then : 7502 withval=$with_sysroot; 7503else 7504 with_sysroot=no 7505fi 7506 7507 7508lt_sysroot= 7509case $with_sysroot in #( 7510 yes) 7511 if test yes = "$GCC"; then 7512 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7513 fi 7514 ;; #( 7515 /*) 7516 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7517 ;; #( 7518 no|'') 7519 ;; #( 7520 *) 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7522$as_echo "$with_sysroot" >&6; } 7523 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7524 ;; 7525esac 7526 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7528$as_echo "${lt_sysroot:-no}" >&6; } 7529 7530 7531 7532 7533 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7535$as_echo_n "checking for a working dd... " >&6; } 7536if ${ac_cv_path_lt_DD+:} false; then : 7537 $as_echo_n "(cached) " >&6 7538else 7539 printf 0123456789abcdef0123456789abcdef >conftest.i 7540cat conftest.i conftest.i >conftest2.i 7541: ${lt_DD:=$DD} 7542if test -z "$lt_DD"; then 7543 ac_path_lt_DD_found=false 7544 # Loop through the user's path and test for each of PROGNAME-LIST 7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7546for as_dir in $PATH 7547do 7548 IFS=$as_save_IFS 7549 test -z "$as_dir" && as_dir=. 7550 for ac_prog in dd; do 7551 for ac_exec_ext in '' $ac_executable_extensions; do 7552 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7553 as_fn_executable_p "$ac_path_lt_DD" || continue 7554if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7555 cmp -s conftest.i conftest.out \ 7556 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7557fi 7558 $ac_path_lt_DD_found && break 3 7559 done 7560 done 7561 done 7562IFS=$as_save_IFS 7563 if test -z "$ac_cv_path_lt_DD"; then 7564 : 7565 fi 7566else 7567 ac_cv_path_lt_DD=$lt_DD 7568fi 7569 7570rm -f conftest.i conftest2.i conftest.out 7571fi 7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7573$as_echo "$ac_cv_path_lt_DD" >&6; } 7574 7575 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7577$as_echo_n "checking how to truncate binary pipes... " >&6; } 7578if ${lt_cv_truncate_bin+:} false; then : 7579 $as_echo_n "(cached) " >&6 7580else 7581 printf 0123456789abcdef0123456789abcdef >conftest.i 7582cat conftest.i conftest.i >conftest2.i 7583lt_cv_truncate_bin= 7584if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7585 cmp -s conftest.i conftest.out \ 7586 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7587fi 7588rm -f conftest.i conftest2.i conftest.out 7589test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7590fi 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7592$as_echo "$lt_cv_truncate_bin" >&6; } 7593 7594 7595 7596 7597 7598 7599 7600# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7601func_cc_basename () 7602{ 7603 for cc_temp in $*""; do 7604 case $cc_temp in 7605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7607 \-*) ;; 7608 *) break;; 7609 esac 7610 done 7611 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7612} 7613 7614# Check whether --enable-libtool-lock was given. 7615if test "${enable_libtool_lock+set}" = set; then : 7616 enableval=$enable_libtool_lock; 7617fi 7618 7619test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7620 7621# Some flags need to be propagated to the compiler or linker for good 7622# libtool support. 7623case $host in 7624ia64-*-hpux*) 7625 # Find out what ABI is being produced by ac_compile, and set mode 7626 # options accordingly. 7627 echo 'int i;' > conftest.$ac_ext 7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7629 (eval $ac_compile) 2>&5 7630 ac_status=$? 7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7632 test $ac_status = 0; }; then 7633 case `/usr/bin/file conftest.$ac_objext` in 7634 *ELF-32*) 7635 HPUX_IA64_MODE=32 7636 ;; 7637 *ELF-64*) 7638 HPUX_IA64_MODE=64 7639 ;; 7640 esac 7641 fi 7642 rm -rf conftest* 7643 ;; 7644*-*-irix6*) 7645 # Find out what ABI is being produced by ac_compile, and set linker 7646 # options accordingly. 7647 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7649 (eval $ac_compile) 2>&5 7650 ac_status=$? 7651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7652 test $ac_status = 0; }; then 7653 if test yes = "$lt_cv_prog_gnu_ld"; then 7654 case `/usr/bin/file conftest.$ac_objext` in 7655 *32-bit*) 7656 LD="${LD-ld} -melf32bsmip" 7657 ;; 7658 *N32*) 7659 LD="${LD-ld} -melf32bmipn32" 7660 ;; 7661 *64-bit*) 7662 LD="${LD-ld} -melf64bmip" 7663 ;; 7664 esac 7665 else 7666 case `/usr/bin/file conftest.$ac_objext` in 7667 *32-bit*) 7668 LD="${LD-ld} -32" 7669 ;; 7670 *N32*) 7671 LD="${LD-ld} -n32" 7672 ;; 7673 *64-bit*) 7674 LD="${LD-ld} -64" 7675 ;; 7676 esac 7677 fi 7678 fi 7679 rm -rf conftest* 7680 ;; 7681 7682mips64*-*linux*) 7683 # Find out what ABI is being produced by ac_compile, and set linker 7684 # options accordingly. 7685 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7687 (eval $ac_compile) 2>&5 7688 ac_status=$? 7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7690 test $ac_status = 0; }; then 7691 emul=elf 7692 case `/usr/bin/file conftest.$ac_objext` in 7693 *32-bit*) 7694 emul="${emul}32" 7695 ;; 7696 *64-bit*) 7697 emul="${emul}64" 7698 ;; 7699 esac 7700 case `/usr/bin/file conftest.$ac_objext` in 7701 *MSB*) 7702 emul="${emul}btsmip" 7703 ;; 7704 *LSB*) 7705 emul="${emul}ltsmip" 7706 ;; 7707 esac 7708 case `/usr/bin/file conftest.$ac_objext` in 7709 *N32*) 7710 emul="${emul}n32" 7711 ;; 7712 esac 7713 LD="${LD-ld} -m $emul" 7714 fi 7715 rm -rf conftest* 7716 ;; 7717 7718x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7719s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7720 # Find out what ABI is being produced by ac_compile, and set linker 7721 # options accordingly. Note that the listed cases only cover the 7722 # situations where additional linker options are needed (such as when 7723 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7724 # vice versa); the common cases where no linker options are needed do 7725 # not appear in the list. 7726 echo 'int i;' > conftest.$ac_ext 7727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7728 (eval $ac_compile) 2>&5 7729 ac_status=$? 7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7731 test $ac_status = 0; }; then 7732 case `/usr/bin/file conftest.o` in 7733 *32-bit*) 7734 case $host in 7735 x86_64-*kfreebsd*-gnu) 7736 LD="${LD-ld} -m elf_i386_fbsd" 7737 ;; 7738 x86_64-*linux*) 7739 case `/usr/bin/file conftest.o` in 7740 *x86-64*) 7741 LD="${LD-ld} -m elf32_x86_64" 7742 ;; 7743 *) 7744 LD="${LD-ld} -m elf_i386" 7745 ;; 7746 esac 7747 ;; 7748 powerpc64le-*linux*) 7749 LD="${LD-ld} -m elf32lppclinux" 7750 ;; 7751 powerpc64-*linux*) 7752 LD="${LD-ld} -m elf32ppclinux" 7753 ;; 7754 s390x-*linux*) 7755 LD="${LD-ld} -m elf_s390" 7756 ;; 7757 sparc64-*linux*) 7758 LD="${LD-ld} -m elf32_sparc" 7759 ;; 7760 esac 7761 ;; 7762 *64-bit*) 7763 case $host in 7764 x86_64-*kfreebsd*-gnu) 7765 LD="${LD-ld} -m elf_x86_64_fbsd" 7766 ;; 7767 x86_64-*linux*) 7768 LD="${LD-ld} -m elf_x86_64" 7769 ;; 7770 powerpcle-*linux*) 7771 LD="${LD-ld} -m elf64lppc" 7772 ;; 7773 powerpc-*linux*) 7774 LD="${LD-ld} -m elf64ppc" 7775 ;; 7776 s390*-*linux*|s390*-*tpf*) 7777 LD="${LD-ld} -m elf64_s390" 7778 ;; 7779 sparc*-*linux*) 7780 LD="${LD-ld} -m elf64_sparc" 7781 ;; 7782 esac 7783 ;; 7784 esac 7785 fi 7786 rm -rf conftest* 7787 ;; 7788 7789*-*-sco3.2v5*) 7790 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7791 SAVE_CFLAGS=$CFLAGS 7792 CFLAGS="$CFLAGS -belf" 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7794$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7795if ${lt_cv_cc_needs_belf+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 ac_ext=c 7799ac_cpp='$CPP $CPPFLAGS' 7800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7802ac_compiler_gnu=$ac_cv_c_compiler_gnu 7803 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806 7807int 7808main () 7809{ 7810 7811 ; 7812 return 0; 7813} 7814_ACEOF 7815if ac_fn_c_try_link "$LINENO"; then : 7816 lt_cv_cc_needs_belf=yes 7817else 7818 lt_cv_cc_needs_belf=no 7819fi 7820rm -f core conftest.err conftest.$ac_objext \ 7821 conftest$ac_exeext conftest.$ac_ext 7822 ac_ext=c 7823ac_cpp='$CPP $CPPFLAGS' 7824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7826ac_compiler_gnu=$ac_cv_c_compiler_gnu 7827 7828fi 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7830$as_echo "$lt_cv_cc_needs_belf" >&6; } 7831 if test yes != "$lt_cv_cc_needs_belf"; then 7832 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7833 CFLAGS=$SAVE_CFLAGS 7834 fi 7835 ;; 7836*-*solaris*) 7837 # Find out what ABI is being produced by ac_compile, and set linker 7838 # options accordingly. 7839 echo 'int i;' > conftest.$ac_ext 7840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7841 (eval $ac_compile) 2>&5 7842 ac_status=$? 7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7844 test $ac_status = 0; }; then 7845 case `/usr/bin/file conftest.o` in 7846 *64-bit*) 7847 case $lt_cv_prog_gnu_ld in 7848 yes*) 7849 case $host in 7850 i?86-*-solaris*|x86_64-*-solaris*) 7851 LD="${LD-ld} -m elf_x86_64" 7852 ;; 7853 sparc*-*-solaris*) 7854 LD="${LD-ld} -m elf64_sparc" 7855 ;; 7856 esac 7857 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7858 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7859 LD=${LD-ld}_sol2 7860 fi 7861 ;; 7862 *) 7863 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7864 LD="${LD-ld} -64" 7865 fi 7866 ;; 7867 esac 7868 ;; 7869 esac 7870 fi 7871 rm -rf conftest* 7872 ;; 7873esac 7874 7875need_locks=$enable_libtool_lock 7876 7877if test -n "$ac_tool_prefix"; then 7878 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7879set dummy ${ac_tool_prefix}mt; ac_word=$2 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7881$as_echo_n "checking for $ac_word... " >&6; } 7882if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 if test -n "$MANIFEST_TOOL"; then 7886 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7887else 7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889for as_dir in $PATH 7890do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7895 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899done 7900 done 7901IFS=$as_save_IFS 7902 7903fi 7904fi 7905MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7906if test -n "$MANIFEST_TOOL"; then 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7908$as_echo "$MANIFEST_TOOL" >&6; } 7909else 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7911$as_echo "no" >&6; } 7912fi 7913 7914 7915fi 7916if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7917 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7918 # Extract the first word of "mt", so it can be a program name with args. 7919set dummy mt; ac_word=$2 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7921$as_echo_n "checking for $ac_word... " >&6; } 7922if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 if test -n "$ac_ct_MANIFEST_TOOL"; then 7926 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7927else 7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7929for as_dir in $PATH 7930do 7931 IFS=$as_save_IFS 7932 test -z "$as_dir" && as_dir=. 7933 for ac_exec_ext in '' $ac_executable_extensions; do 7934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7935 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7937 break 2 7938 fi 7939done 7940 done 7941IFS=$as_save_IFS 7942 7943fi 7944fi 7945ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7946if test -n "$ac_ct_MANIFEST_TOOL"; then 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7948$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7949else 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7951$as_echo "no" >&6; } 7952fi 7953 7954 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7955 MANIFEST_TOOL=":" 7956 else 7957 case $cross_compiling:$ac_tool_warned in 7958yes:) 7959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7961ac_tool_warned=yes ;; 7962esac 7963 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7964 fi 7965else 7966 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7967fi 7968 7969test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7971$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7972if ${lt_cv_path_mainfest_tool+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 lt_cv_path_mainfest_tool=no 7976 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7977 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7978 cat conftest.err >&5 7979 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7980 lt_cv_path_mainfest_tool=yes 7981 fi 7982 rm -f conftest* 7983fi 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7985$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7986if test yes != "$lt_cv_path_mainfest_tool"; then 7987 MANIFEST_TOOL=: 7988fi 7989 7990 7991 7992 7993 7994 7995 case $host_os in 7996 rhapsody* | darwin*) 7997 if test -n "$ac_tool_prefix"; then 7998 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7999set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8001$as_echo_n "checking for $ac_word... " >&6; } 8002if ${ac_cv_prog_DSYMUTIL+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 if test -n "$DSYMUTIL"; then 8006 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8007else 8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8009for as_dir in $PATH 8010do 8011 IFS=$as_save_IFS 8012 test -z "$as_dir" && as_dir=. 8013 for ac_exec_ext in '' $ac_executable_extensions; do 8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8015 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8017 break 2 8018 fi 8019done 8020 done 8021IFS=$as_save_IFS 8022 8023fi 8024fi 8025DSYMUTIL=$ac_cv_prog_DSYMUTIL 8026if test -n "$DSYMUTIL"; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8028$as_echo "$DSYMUTIL" >&6; } 8029else 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031$as_echo "no" >&6; } 8032fi 8033 8034 8035fi 8036if test -z "$ac_cv_prog_DSYMUTIL"; then 8037 ac_ct_DSYMUTIL=$DSYMUTIL 8038 # Extract the first word of "dsymutil", so it can be a program name with args. 8039set dummy dsymutil; ac_word=$2 8040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8041$as_echo_n "checking for $ac_word... " >&6; } 8042if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8043 $as_echo_n "(cached) " >&6 8044else 8045 if test -n "$ac_ct_DSYMUTIL"; then 8046 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8047else 8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8049for as_dir in $PATH 8050do 8051 IFS=$as_save_IFS 8052 test -z "$as_dir" && as_dir=. 8053 for ac_exec_ext in '' $ac_executable_extensions; do 8054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8055 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8057 break 2 8058 fi 8059done 8060 done 8061IFS=$as_save_IFS 8062 8063fi 8064fi 8065ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8066if test -n "$ac_ct_DSYMUTIL"; then 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8068$as_echo "$ac_ct_DSYMUTIL" >&6; } 8069else 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8071$as_echo "no" >&6; } 8072fi 8073 8074 if test "x$ac_ct_DSYMUTIL" = x; then 8075 DSYMUTIL=":" 8076 else 8077 case $cross_compiling:$ac_tool_warned in 8078yes:) 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8081ac_tool_warned=yes ;; 8082esac 8083 DSYMUTIL=$ac_ct_DSYMUTIL 8084 fi 8085else 8086 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8087fi 8088 8089 if test -n "$ac_tool_prefix"; then 8090 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8091set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8093$as_echo_n "checking for $ac_word... " >&6; } 8094if ${ac_cv_prog_NMEDIT+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096else 8097 if test -n "$NMEDIT"; then 8098 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8099else 8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8101for as_dir in $PATH 8102do 8103 IFS=$as_save_IFS 8104 test -z "$as_dir" && as_dir=. 8105 for ac_exec_ext in '' $ac_executable_extensions; do 8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8107 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8109 break 2 8110 fi 8111done 8112 done 8113IFS=$as_save_IFS 8114 8115fi 8116fi 8117NMEDIT=$ac_cv_prog_NMEDIT 8118if test -n "$NMEDIT"; then 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8120$as_echo "$NMEDIT" >&6; } 8121else 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8123$as_echo "no" >&6; } 8124fi 8125 8126 8127fi 8128if test -z "$ac_cv_prog_NMEDIT"; then 8129 ac_ct_NMEDIT=$NMEDIT 8130 # Extract the first word of "nmedit", so it can be a program name with args. 8131set dummy nmedit; ac_word=$2 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8133$as_echo_n "checking for $ac_word... " >&6; } 8134if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8135 $as_echo_n "(cached) " >&6 8136else 8137 if test -n "$ac_ct_NMEDIT"; then 8138 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8139else 8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141for as_dir in $PATH 8142do 8143 IFS=$as_save_IFS 8144 test -z "$as_dir" && as_dir=. 8145 for ac_exec_ext in '' $ac_executable_extensions; do 8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8147 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8149 break 2 8150 fi 8151done 8152 done 8153IFS=$as_save_IFS 8154 8155fi 8156fi 8157ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8158if test -n "$ac_ct_NMEDIT"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8160$as_echo "$ac_ct_NMEDIT" >&6; } 8161else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163$as_echo "no" >&6; } 8164fi 8165 8166 if test "x$ac_ct_NMEDIT" = x; then 8167 NMEDIT=":" 8168 else 8169 case $cross_compiling:$ac_tool_warned in 8170yes:) 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8173ac_tool_warned=yes ;; 8174esac 8175 NMEDIT=$ac_ct_NMEDIT 8176 fi 8177else 8178 NMEDIT="$ac_cv_prog_NMEDIT" 8179fi 8180 8181 if test -n "$ac_tool_prefix"; then 8182 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8183set dummy ${ac_tool_prefix}lipo; ac_word=$2 8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8185$as_echo_n "checking for $ac_word... " >&6; } 8186if ${ac_cv_prog_LIPO+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188else 8189 if test -n "$LIPO"; then 8190 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8191else 8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8193for as_dir in $PATH 8194do 8195 IFS=$as_save_IFS 8196 test -z "$as_dir" && as_dir=. 8197 for ac_exec_ext in '' $ac_executable_extensions; do 8198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8199 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8201 break 2 8202 fi 8203done 8204 done 8205IFS=$as_save_IFS 8206 8207fi 8208fi 8209LIPO=$ac_cv_prog_LIPO 8210if test -n "$LIPO"; then 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8212$as_echo "$LIPO" >&6; } 8213else 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8215$as_echo "no" >&6; } 8216fi 8217 8218 8219fi 8220if test -z "$ac_cv_prog_LIPO"; then 8221 ac_ct_LIPO=$LIPO 8222 # Extract the first word of "lipo", so it can be a program name with args. 8223set dummy lipo; ac_word=$2 8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8225$as_echo_n "checking for $ac_word... " >&6; } 8226if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228else 8229 if test -n "$ac_ct_LIPO"; then 8230 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8231else 8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8233for as_dir in $PATH 8234do 8235 IFS=$as_save_IFS 8236 test -z "$as_dir" && as_dir=. 8237 for ac_exec_ext in '' $ac_executable_extensions; do 8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8239 ac_cv_prog_ac_ct_LIPO="lipo" 8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8241 break 2 8242 fi 8243done 8244 done 8245IFS=$as_save_IFS 8246 8247fi 8248fi 8249ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8250if test -n "$ac_ct_LIPO"; then 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8252$as_echo "$ac_ct_LIPO" >&6; } 8253else 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8255$as_echo "no" >&6; } 8256fi 8257 8258 if test "x$ac_ct_LIPO" = x; then 8259 LIPO=":" 8260 else 8261 case $cross_compiling:$ac_tool_warned in 8262yes:) 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8265ac_tool_warned=yes ;; 8266esac 8267 LIPO=$ac_ct_LIPO 8268 fi 8269else 8270 LIPO="$ac_cv_prog_LIPO" 8271fi 8272 8273 if test -n "$ac_tool_prefix"; then 8274 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8275set dummy ${ac_tool_prefix}otool; ac_word=$2 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8277$as_echo_n "checking for $ac_word... " >&6; } 8278if ${ac_cv_prog_OTOOL+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280else 8281 if test -n "$OTOOL"; then 8282 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8283else 8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8285for as_dir in $PATH 8286do 8287 IFS=$as_save_IFS 8288 test -z "$as_dir" && as_dir=. 8289 for ac_exec_ext in '' $ac_executable_extensions; do 8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8291 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8293 break 2 8294 fi 8295done 8296 done 8297IFS=$as_save_IFS 8298 8299fi 8300fi 8301OTOOL=$ac_cv_prog_OTOOL 8302if test -n "$OTOOL"; then 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8304$as_echo "$OTOOL" >&6; } 8305else 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8307$as_echo "no" >&6; } 8308fi 8309 8310 8311fi 8312if test -z "$ac_cv_prog_OTOOL"; then 8313 ac_ct_OTOOL=$OTOOL 8314 # Extract the first word of "otool", so it can be a program name with args. 8315set dummy otool; ac_word=$2 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8317$as_echo_n "checking for $ac_word... " >&6; } 8318if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320else 8321 if test -n "$ac_ct_OTOOL"; then 8322 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8323else 8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8325for as_dir in $PATH 8326do 8327 IFS=$as_save_IFS 8328 test -z "$as_dir" && as_dir=. 8329 for ac_exec_ext in '' $ac_executable_extensions; do 8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8331 ac_cv_prog_ac_ct_OTOOL="otool" 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8333 break 2 8334 fi 8335done 8336 done 8337IFS=$as_save_IFS 8338 8339fi 8340fi 8341ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8342if test -n "$ac_ct_OTOOL"; then 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8344$as_echo "$ac_ct_OTOOL" >&6; } 8345else 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8347$as_echo "no" >&6; } 8348fi 8349 8350 if test "x$ac_ct_OTOOL" = x; then 8351 OTOOL=":" 8352 else 8353 case $cross_compiling:$ac_tool_warned in 8354yes:) 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8357ac_tool_warned=yes ;; 8358esac 8359 OTOOL=$ac_ct_OTOOL 8360 fi 8361else 8362 OTOOL="$ac_cv_prog_OTOOL" 8363fi 8364 8365 if test -n "$ac_tool_prefix"; then 8366 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8367set dummy ${ac_tool_prefix}otool64; ac_word=$2 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8369$as_echo_n "checking for $ac_word... " >&6; } 8370if ${ac_cv_prog_OTOOL64+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 if test -n "$OTOOL64"; then 8374 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8375else 8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8377for as_dir in $PATH 8378do 8379 IFS=$as_save_IFS 8380 test -z "$as_dir" && as_dir=. 8381 for ac_exec_ext in '' $ac_executable_extensions; do 8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8383 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8385 break 2 8386 fi 8387done 8388 done 8389IFS=$as_save_IFS 8390 8391fi 8392fi 8393OTOOL64=$ac_cv_prog_OTOOL64 8394if test -n "$OTOOL64"; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8396$as_echo "$OTOOL64" >&6; } 8397else 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8399$as_echo "no" >&6; } 8400fi 8401 8402 8403fi 8404if test -z "$ac_cv_prog_OTOOL64"; then 8405 ac_ct_OTOOL64=$OTOOL64 8406 # Extract the first word of "otool64", so it can be a program name with args. 8407set dummy otool64; ac_word=$2 8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8409$as_echo_n "checking for $ac_word... " >&6; } 8410if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8411 $as_echo_n "(cached) " >&6 8412else 8413 if test -n "$ac_ct_OTOOL64"; then 8414 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8415else 8416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8417for as_dir in $PATH 8418do 8419 IFS=$as_save_IFS 8420 test -z "$as_dir" && as_dir=. 8421 for ac_exec_ext in '' $ac_executable_extensions; do 8422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8423 ac_cv_prog_ac_ct_OTOOL64="otool64" 8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8425 break 2 8426 fi 8427done 8428 done 8429IFS=$as_save_IFS 8430 8431fi 8432fi 8433ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8434if test -n "$ac_ct_OTOOL64"; then 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8436$as_echo "$ac_ct_OTOOL64" >&6; } 8437else 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8439$as_echo "no" >&6; } 8440fi 8441 8442 if test "x$ac_ct_OTOOL64" = x; then 8443 OTOOL64=":" 8444 else 8445 case $cross_compiling:$ac_tool_warned in 8446yes:) 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8449ac_tool_warned=yes ;; 8450esac 8451 OTOOL64=$ac_ct_OTOOL64 8452 fi 8453else 8454 OTOOL64="$ac_cv_prog_OTOOL64" 8455fi 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8484$as_echo_n "checking for -single_module linker flag... " >&6; } 8485if ${lt_cv_apple_cc_single_mod+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 lt_cv_apple_cc_single_mod=no 8489 if test -z "$LT_MULTI_MODULE"; then 8490 # By default we will add the -single_module flag. You can override 8491 # by either setting the environment variable LT_MULTI_MODULE 8492 # non-empty at configure time, or by adding -multi_module to the 8493 # link flags. 8494 rm -rf libconftest.dylib* 8495 echo "int foo(void){return 1;}" > conftest.c 8496 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8497-dynamiclib -Wl,-single_module conftest.c" >&5 8498 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8499 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8500 _lt_result=$? 8501 # If there is a non-empty error log, and "single_module" 8502 # appears in it, assume the flag caused a linker warning 8503 if test -s conftest.err && $GREP single_module conftest.err; then 8504 cat conftest.err >&5 8505 # Otherwise, if the output was created with a 0 exit code from 8506 # the compiler, it worked. 8507 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8508 lt_cv_apple_cc_single_mod=yes 8509 else 8510 cat conftest.err >&5 8511 fi 8512 rm -rf libconftest.dylib* 8513 rm -f conftest.* 8514 fi 8515fi 8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8517$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8518 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8520$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8521if ${lt_cv_ld_exported_symbols_list+:} false; then : 8522 $as_echo_n "(cached) " >&6 8523else 8524 lt_cv_ld_exported_symbols_list=no 8525 save_LDFLAGS=$LDFLAGS 8526 echo "_main" > conftest.sym 8527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8529/* end confdefs.h. */ 8530 8531int 8532main () 8533{ 8534 8535 ; 8536 return 0; 8537} 8538_ACEOF 8539if ac_fn_c_try_link "$LINENO"; then : 8540 lt_cv_ld_exported_symbols_list=yes 8541else 8542 lt_cv_ld_exported_symbols_list=no 8543fi 8544rm -f core conftest.err conftest.$ac_objext \ 8545 conftest$ac_exeext conftest.$ac_ext 8546 LDFLAGS=$save_LDFLAGS 8547 8548fi 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8550$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8551 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8553$as_echo_n "checking for -force_load linker flag... " >&6; } 8554if ${lt_cv_ld_force_load+:} false; then : 8555 $as_echo_n "(cached) " >&6 8556else 8557 lt_cv_ld_force_load=no 8558 cat > conftest.c << _LT_EOF 8559int forced_loaded() { return 2;} 8560_LT_EOF 8561 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8562 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8563 echo "$AR cru libconftest.a conftest.o" >&5 8564 $AR cru libconftest.a conftest.o 2>&5 8565 echo "$RANLIB libconftest.a" >&5 8566 $RANLIB libconftest.a 2>&5 8567 cat > conftest.c << _LT_EOF 8568int main() { return 0;} 8569_LT_EOF 8570 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8571 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8572 _lt_result=$? 8573 if test -s conftest.err && $GREP force_load conftest.err; then 8574 cat conftest.err >&5 8575 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8576 lt_cv_ld_force_load=yes 8577 else 8578 cat conftest.err >&5 8579 fi 8580 rm -f conftest.err libconftest.a conftest conftest.c 8581 rm -rf conftest.dSYM 8582 8583fi 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8585$as_echo "$lt_cv_ld_force_load" >&6; } 8586 case $host_os in 8587 rhapsody* | darwin1.[012]) 8588 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8589 darwin1.*) 8590 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8591 darwin*) # darwin 5.x on 8592 # if running on 10.5 or later, the deployment target defaults 8593 # to the OS version, if on x86, and 10.4, the deployment 8594 # target defaults to 10.4. Don't you love it? 8595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8596 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8597 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8598 10.[012][,.]*) 8599 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8600 10.*) 8601 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8602 esac 8603 ;; 8604 esac 8605 if test yes = "$lt_cv_apple_cc_single_mod"; then 8606 _lt_dar_single_mod='$single_module' 8607 fi 8608 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8609 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8610 else 8611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8612 fi 8613 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8614 _lt_dsymutil='~$DSYMUTIL $lib || :' 8615 else 8616 _lt_dsymutil= 8617 fi 8618 ;; 8619 esac 8620 8621# func_munge_path_list VARIABLE PATH 8622# ----------------------------------- 8623# VARIABLE is name of variable containing _space_ separated list of 8624# directories to be munged by the contents of PATH, which is string 8625# having a format: 8626# "DIR[:DIR]:" 8627# string "DIR[ DIR]" will be prepended to VARIABLE 8628# ":DIR[:DIR]" 8629# string "DIR[ DIR]" will be appended to VARIABLE 8630# "DIRP[:DIRP]::[DIRA:]DIRA" 8631# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8632# "DIRA[ DIRA]" will be appended to VARIABLE 8633# "DIR[:DIR]" 8634# VARIABLE will be replaced by "DIR[ DIR]" 8635func_munge_path_list () 8636{ 8637 case x$2 in 8638 x) 8639 ;; 8640 *:) 8641 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8642 ;; 8643 x:*) 8644 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8645 ;; 8646 *::*) 8647 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8648 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8649 ;; 8650 *) 8651 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8652 ;; 8653 esac 8654} 8655 8656for ac_header in dlfcn.h 8657do : 8658 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8659" 8660if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8661 cat >>confdefs.h <<_ACEOF 8662#define HAVE_DLFCN_H 1 8663_ACEOF 8664 8665fi 8666 8667done 8668 8669 8670 8671 8672 8673# Set options 8674 8675 8676 8677 enable_dlopen=no 8678 8679 8680 enable_win32_dll=no 8681 8682 8683 # Check whether --enable-shared was given. 8684if test "${enable_shared+set}" = set; then : 8685 enableval=$enable_shared; p=${PACKAGE-default} 8686 case $enableval in 8687 yes) enable_shared=yes ;; 8688 no) enable_shared=no ;; 8689 *) 8690 enable_shared=no 8691 # Look at the argument we got. We use all the common list separators. 8692 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8693 for pkg in $enableval; do 8694 IFS=$lt_save_ifs 8695 if test "X$pkg" = "X$p"; then 8696 enable_shared=yes 8697 fi 8698 done 8699 IFS=$lt_save_ifs 8700 ;; 8701 esac 8702else 8703 enable_shared=yes 8704fi 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 # Check whether --enable-static was given. 8715if test "${enable_static+set}" = set; then : 8716 enableval=$enable_static; p=${PACKAGE-default} 8717 case $enableval in 8718 yes) enable_static=yes ;; 8719 no) enable_static=no ;; 8720 *) 8721 enable_static=no 8722 # Look at the argument we got. We use all the common list separators. 8723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8724 for pkg in $enableval; do 8725 IFS=$lt_save_ifs 8726 if test "X$pkg" = "X$p"; then 8727 enable_static=yes 8728 fi 8729 done 8730 IFS=$lt_save_ifs 8731 ;; 8732 esac 8733else 8734 enable_static=yes 8735fi 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746# Check whether --with-pic was given. 8747if test "${with_pic+set}" = set; then : 8748 withval=$with_pic; lt_p=${PACKAGE-default} 8749 case $withval in 8750 yes|no) pic_mode=$withval ;; 8751 *) 8752 pic_mode=default 8753 # Look at the argument we got. We use all the common list separators. 8754 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8755 for lt_pkg in $withval; do 8756 IFS=$lt_save_ifs 8757 if test "X$lt_pkg" = "X$lt_p"; then 8758 pic_mode=yes 8759 fi 8760 done 8761 IFS=$lt_save_ifs 8762 ;; 8763 esac 8764else 8765 pic_mode=default 8766fi 8767 8768 8769 8770 8771 8772 8773 8774 8775 # Check whether --enable-fast-install was given. 8776if test "${enable_fast_install+set}" = set; then : 8777 enableval=$enable_fast_install; p=${PACKAGE-default} 8778 case $enableval in 8779 yes) enable_fast_install=yes ;; 8780 no) enable_fast_install=no ;; 8781 *) 8782 enable_fast_install=no 8783 # Look at the argument we got. We use all the common list separators. 8784 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8785 for pkg in $enableval; do 8786 IFS=$lt_save_ifs 8787 if test "X$pkg" = "X$p"; then 8788 enable_fast_install=yes 8789 fi 8790 done 8791 IFS=$lt_save_ifs 8792 ;; 8793 esac 8794else 8795 enable_fast_install=yes 8796fi 8797 8798 8799 8800 8801 8802 8803 8804 8805 shared_archive_member_spec= 8806case $host,$enable_shared in 8807power*-*-aix[5-9]*,yes) 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8809$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8810 8811# Check whether --with-aix-soname was given. 8812if test "${with_aix_soname+set}" = set; then : 8813 withval=$with_aix_soname; case $withval in 8814 aix|svr4|both) 8815 ;; 8816 *) 8817 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8818 ;; 8819 esac 8820 lt_cv_with_aix_soname=$with_aix_soname 8821else 8822 if ${lt_cv_with_aix_soname+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 lt_cv_with_aix_soname=aix 8826fi 8827 8828 with_aix_soname=$lt_cv_with_aix_soname 8829fi 8830 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8832$as_echo "$with_aix_soname" >&6; } 8833 if test aix != "$with_aix_soname"; then 8834 # For the AIX way of multilib, we name the shared archive member 8835 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8836 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8837 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8838 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8839 if test 64 = "${OBJECT_MODE-32}"; then 8840 shared_archive_member_spec=shr_64 8841 else 8842 shared_archive_member_spec=shr 8843 fi 8844 fi 8845 ;; 8846*) 8847 with_aix_soname=aix 8848 ;; 8849esac 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860# This can be used to rebuild libtool when needed 8861LIBTOOL_DEPS=$ltmain 8862 8863# Always use our own libtool. 8864LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895test -z "$LN_S" && LN_S="ln -s" 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910if test -n "${ZSH_VERSION+set}"; then 8911 setopt NO_GLOB_SUBST 8912fi 8913 8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8915$as_echo_n "checking for objdir... " >&6; } 8916if ${lt_cv_objdir+:} false; then : 8917 $as_echo_n "(cached) " >&6 8918else 8919 rm -f .libs 2>/dev/null 8920mkdir .libs 2>/dev/null 8921if test -d .libs; then 8922 lt_cv_objdir=.libs 8923else 8924 # MS-DOS does not allow filenames that begin with a dot. 8925 lt_cv_objdir=_libs 8926fi 8927rmdir .libs 2>/dev/null 8928fi 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8930$as_echo "$lt_cv_objdir" >&6; } 8931objdir=$lt_cv_objdir 8932 8933 8934 8935 8936 8937cat >>confdefs.h <<_ACEOF 8938#define LT_OBJDIR "$lt_cv_objdir/" 8939_ACEOF 8940 8941 8942 8943 8944case $host_os in 8945aix3*) 8946 # AIX sometimes has problems with the GCC collect2 program. For some 8947 # reason, if we set the COLLECT_NAMES environment variable, the problems 8948 # vanish in a puff of smoke. 8949 if test set != "${COLLECT_NAMES+set}"; then 8950 COLLECT_NAMES= 8951 export COLLECT_NAMES 8952 fi 8953 ;; 8954esac 8955 8956# Global variables: 8957ofile=libtool 8958can_build_shared=yes 8959 8960# All known linkers require a '.a' archive for static linking (except MSVC, 8961# which needs '.lib'). 8962libext=a 8963 8964with_gnu_ld=$lt_cv_prog_gnu_ld 8965 8966old_CC=$CC 8967old_CFLAGS=$CFLAGS 8968 8969# Set sane defaults for various variables 8970test -z "$CC" && CC=cc 8971test -z "$LTCC" && LTCC=$CC 8972test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8973test -z "$LD" && LD=ld 8974test -z "$ac_objext" && ac_objext=o 8975 8976func_cc_basename $compiler 8977cc_basename=$func_cc_basename_result 8978 8979 8980# Only perform the check for file, if the check method requires it 8981test -z "$MAGIC_CMD" && MAGIC_CMD=file 8982case $deplibs_check_method in 8983file_magic*) 8984 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8986$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8987if ${lt_cv_path_MAGIC_CMD+:} false; then : 8988 $as_echo_n "(cached) " >&6 8989else 8990 case $MAGIC_CMD in 8991[\\/*] | ?:[\\/]*) 8992 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8993 ;; 8994*) 8995 lt_save_MAGIC_CMD=$MAGIC_CMD 8996 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8998 for ac_dir in $ac_dummy; do 8999 IFS=$lt_save_ifs 9000 test -z "$ac_dir" && ac_dir=. 9001 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9002 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9003 if test -n "$file_magic_test_file"; then 9004 case $deplibs_check_method in 9005 "file_magic "*) 9006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9007 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9009 $EGREP "$file_magic_regex" > /dev/null; then 9010 : 9011 else 9012 cat <<_LT_EOF 1>&2 9013 9014*** Warning: the command libtool uses to detect shared libraries, 9015*** $file_magic_cmd, produces output that libtool cannot recognize. 9016*** The result is that libtool may fail to recognize shared libraries 9017*** as such. This will affect the creation of libtool libraries that 9018*** depend on shared libraries, but programs linked with such libtool 9019*** libraries will work regardless of this problem. Nevertheless, you 9020*** may want to report the problem to your system manager and/or to 9021*** bug-libtool@gnu.org 9022 9023_LT_EOF 9024 fi ;; 9025 esac 9026 fi 9027 break 9028 fi 9029 done 9030 IFS=$lt_save_ifs 9031 MAGIC_CMD=$lt_save_MAGIC_CMD 9032 ;; 9033esac 9034fi 9035 9036MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9037if test -n "$MAGIC_CMD"; then 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9039$as_echo "$MAGIC_CMD" >&6; } 9040else 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9042$as_echo "no" >&6; } 9043fi 9044 9045 9046 9047 9048 9049if test -z "$lt_cv_path_MAGIC_CMD"; then 9050 if test -n "$ac_tool_prefix"; then 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9052$as_echo_n "checking for file... " >&6; } 9053if ${lt_cv_path_MAGIC_CMD+:} false; then : 9054 $as_echo_n "(cached) " >&6 9055else 9056 case $MAGIC_CMD in 9057[\\/*] | ?:[\\/]*) 9058 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9059 ;; 9060*) 9061 lt_save_MAGIC_CMD=$MAGIC_CMD 9062 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9064 for ac_dir in $ac_dummy; do 9065 IFS=$lt_save_ifs 9066 test -z "$ac_dir" && ac_dir=. 9067 if test -f "$ac_dir/file"; then 9068 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9069 if test -n "$file_magic_test_file"; then 9070 case $deplibs_check_method in 9071 "file_magic "*) 9072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9073 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9075 $EGREP "$file_magic_regex" > /dev/null; then 9076 : 9077 else 9078 cat <<_LT_EOF 1>&2 9079 9080*** Warning: the command libtool uses to detect shared libraries, 9081*** $file_magic_cmd, produces output that libtool cannot recognize. 9082*** The result is that libtool may fail to recognize shared libraries 9083*** as such. This will affect the creation of libtool libraries that 9084*** depend on shared libraries, but programs linked with such libtool 9085*** libraries will work regardless of this problem. Nevertheless, you 9086*** may want to report the problem to your system manager and/or to 9087*** bug-libtool@gnu.org 9088 9089_LT_EOF 9090 fi ;; 9091 esac 9092 fi 9093 break 9094 fi 9095 done 9096 IFS=$lt_save_ifs 9097 MAGIC_CMD=$lt_save_MAGIC_CMD 9098 ;; 9099esac 9100fi 9101 9102MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9103if test -n "$MAGIC_CMD"; then 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9105$as_echo "$MAGIC_CMD" >&6; } 9106else 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9108$as_echo "no" >&6; } 9109fi 9110 9111 9112 else 9113 MAGIC_CMD=: 9114 fi 9115fi 9116 9117 fi 9118 ;; 9119esac 9120 9121# Use C for the default configuration in the libtool script 9122 9123lt_save_CC=$CC 9124ac_ext=c 9125ac_cpp='$CPP $CPPFLAGS' 9126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9128ac_compiler_gnu=$ac_cv_c_compiler_gnu 9129 9130 9131# Source file extension for C test sources. 9132ac_ext=c 9133 9134# Object file extension for compiled C test sources. 9135objext=o 9136objext=$objext 9137 9138# Code to be used in simple compile tests 9139lt_simple_compile_test_code="int some_variable = 0;" 9140 9141# Code to be used in simple link tests 9142lt_simple_link_test_code='int main(){return(0);}' 9143 9144 9145 9146 9147 9148 9149 9150# If no C compiler was specified, use CC. 9151LTCC=${LTCC-"$CC"} 9152 9153# If no C compiler flags were specified, use CFLAGS. 9154LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9155 9156# Allow CC to be a program name with arguments. 9157compiler=$CC 9158 9159# Save the default compiler, since it gets overwritten when the other 9160# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9161compiler_DEFAULT=$CC 9162 9163# save warnings/boilerplate of simple test code 9164ac_outfile=conftest.$ac_objext 9165echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9166eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9167_lt_compiler_boilerplate=`cat conftest.err` 9168$RM conftest* 9169 9170ac_outfile=conftest.$ac_objext 9171echo "$lt_simple_link_test_code" >conftest.$ac_ext 9172eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9173_lt_linker_boilerplate=`cat conftest.err` 9174$RM -r conftest* 9175 9176 9177if test -n "$compiler"; then 9178 9179lt_prog_compiler_no_builtin_flag= 9180 9181if test yes = "$GCC"; then 9182 case $cc_basename in 9183 nvcc*) 9184 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9185 *) 9186 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9187 esac 9188 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9190$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9191if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 lt_cv_prog_compiler_rtti_exceptions=no 9195 ac_outfile=conftest.$ac_objext 9196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9197 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9198 # Insert the option either (1) after the last *FLAGS variable, or 9199 # (2) before a word containing "conftest.", or (3) at the end. 9200 # Note that $ac_compile itself does not contain backslashes and begins 9201 # with a dollar sign (not a hyphen), so the echo should work correctly. 9202 # The option is referenced via a variable to avoid confusing sed. 9203 lt_compile=`echo "$ac_compile" | $SED \ 9204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9206 -e 's:$: $lt_compiler_flag:'` 9207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9208 (eval "$lt_compile" 2>conftest.err) 9209 ac_status=$? 9210 cat conftest.err >&5 9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9212 if (exit $ac_status) && test -s "$ac_outfile"; then 9213 # The compiler can only warn and ignore the option if not recognized 9214 # So say no if there are warnings other than the usual output. 9215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9218 lt_cv_prog_compiler_rtti_exceptions=yes 9219 fi 9220 fi 9221 $RM conftest* 9222 9223fi 9224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9225$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9226 9227if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9228 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9229else 9230 : 9231fi 9232 9233fi 9234 9235 9236 9237 9238 9239 9240 lt_prog_compiler_wl= 9241lt_prog_compiler_pic= 9242lt_prog_compiler_static= 9243 9244 9245 if test yes = "$GCC"; then 9246 lt_prog_compiler_wl='-Wl,' 9247 lt_prog_compiler_static='-static' 9248 9249 case $host_os in 9250 aix*) 9251 # All AIX code is PIC. 9252 if test ia64 = "$host_cpu"; then 9253 # AIX 5 now supports IA64 processor 9254 lt_prog_compiler_static='-Bstatic' 9255 fi 9256 lt_prog_compiler_pic='-fPIC' 9257 ;; 9258 9259 amigaos*) 9260 case $host_cpu in 9261 powerpc) 9262 # see comment about AmigaOS4 .so support 9263 lt_prog_compiler_pic='-fPIC' 9264 ;; 9265 m68k) 9266 # FIXME: we need at least 68020 code to build shared libraries, but 9267 # adding the '-m68020' flag to GCC prevents building anything better, 9268 # like '-m68040'. 9269 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9270 ;; 9271 esac 9272 ;; 9273 9274 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9275 # PIC is the default for these OSes. 9276 ;; 9277 9278 mingw* | cygwin* | pw32* | os2* | cegcc*) 9279 # This hack is so that the source file can tell whether it is being 9280 # built for inclusion in a dll (and should export symbols for example). 9281 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9282 # (--disable-auto-import) libraries 9283 lt_prog_compiler_pic='-DDLL_EXPORT' 9284 case $host_os in 9285 os2*) 9286 lt_prog_compiler_static='$wl-static' 9287 ;; 9288 esac 9289 ;; 9290 9291 darwin* | rhapsody*) 9292 # PIC is the default on this platform 9293 # Common symbols not allowed in MH_DYLIB files 9294 lt_prog_compiler_pic='-fno-common' 9295 ;; 9296 9297 haiku*) 9298 # PIC is the default for Haiku. 9299 # The "-static" flag exists, but is broken. 9300 lt_prog_compiler_static= 9301 ;; 9302 9303 hpux*) 9304 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9305 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9306 # sets the default TLS model and affects inlining. 9307 case $host_cpu in 9308 hppa*64*) 9309 # +Z the default 9310 ;; 9311 *) 9312 lt_prog_compiler_pic='-fPIC' 9313 ;; 9314 esac 9315 ;; 9316 9317 interix[3-9]*) 9318 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9319 # Instead, we relocate shared libraries at runtime. 9320 ;; 9321 9322 msdosdjgpp*) 9323 # Just because we use GCC doesn't mean we suddenly get shared libraries 9324 # on systems that don't support them. 9325 lt_prog_compiler_can_build_shared=no 9326 enable_shared=no 9327 ;; 9328 9329 *nto* | *qnx*) 9330 # QNX uses GNU C++, but need to define -shared option too, otherwise 9331 # it will coredump. 9332 lt_prog_compiler_pic='-fPIC -shared' 9333 ;; 9334 9335 sysv4*MP*) 9336 if test -d /usr/nec; then 9337 lt_prog_compiler_pic=-Kconform_pic 9338 fi 9339 ;; 9340 9341 *) 9342 lt_prog_compiler_pic='-fPIC' 9343 ;; 9344 esac 9345 9346 case $cc_basename in 9347 nvcc*) # Cuda Compiler Driver 2.2 9348 lt_prog_compiler_wl='-Xlinker ' 9349 if test -n "$lt_prog_compiler_pic"; then 9350 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9351 fi 9352 ;; 9353 esac 9354 else 9355 # PORTME Check for flag to pass linker flags through the system compiler. 9356 case $host_os in 9357 aix*) 9358 lt_prog_compiler_wl='-Wl,' 9359 if test ia64 = "$host_cpu"; then 9360 # AIX 5 now supports IA64 processor 9361 lt_prog_compiler_static='-Bstatic' 9362 else 9363 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9364 fi 9365 ;; 9366 9367 darwin* | rhapsody*) 9368 # PIC is the default on this platform 9369 # Common symbols not allowed in MH_DYLIB files 9370 lt_prog_compiler_pic='-fno-common' 9371 case $cc_basename in 9372 nagfor*) 9373 # NAG Fortran compiler 9374 lt_prog_compiler_wl='-Wl,-Wl,,' 9375 lt_prog_compiler_pic='-PIC' 9376 lt_prog_compiler_static='-Bstatic' 9377 ;; 9378 esac 9379 ;; 9380 9381 mingw* | cygwin* | pw32* | os2* | cegcc*) 9382 # This hack is so that the source file can tell whether it is being 9383 # built for inclusion in a dll (and should export symbols for example). 9384 lt_prog_compiler_pic='-DDLL_EXPORT' 9385 case $host_os in 9386 os2*) 9387 lt_prog_compiler_static='$wl-static' 9388 ;; 9389 esac 9390 ;; 9391 9392 hpux9* | hpux10* | hpux11*) 9393 lt_prog_compiler_wl='-Wl,' 9394 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9395 # not for PA HP-UX. 9396 case $host_cpu in 9397 hppa*64*|ia64*) 9398 # +Z the default 9399 ;; 9400 *) 9401 lt_prog_compiler_pic='+Z' 9402 ;; 9403 esac 9404 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9405 lt_prog_compiler_static='$wl-a ${wl}archive' 9406 ;; 9407 9408 irix5* | irix6* | nonstopux*) 9409 lt_prog_compiler_wl='-Wl,' 9410 # PIC (with -KPIC) is the default. 9411 lt_prog_compiler_static='-non_shared' 9412 ;; 9413 9414 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9415 case $cc_basename in 9416 # old Intel for x86_64, which still supported -KPIC. 9417 ecc*) 9418 lt_prog_compiler_wl='-Wl,' 9419 lt_prog_compiler_pic='-KPIC' 9420 lt_prog_compiler_static='-static' 9421 ;; 9422 # icc used to be incompatible with GCC. 9423 # ICC 10 doesn't accept -KPIC any more. 9424 icc* | ifort*) 9425 lt_prog_compiler_wl='-Wl,' 9426 lt_prog_compiler_pic='-fPIC' 9427 lt_prog_compiler_static='-static' 9428 ;; 9429 # Lahey Fortran 8.1. 9430 lf95*) 9431 lt_prog_compiler_wl='-Wl,' 9432 lt_prog_compiler_pic='--shared' 9433 lt_prog_compiler_static='--static' 9434 ;; 9435 nagfor*) 9436 # NAG Fortran compiler 9437 lt_prog_compiler_wl='-Wl,-Wl,,' 9438 lt_prog_compiler_pic='-PIC' 9439 lt_prog_compiler_static='-Bstatic' 9440 ;; 9441 tcc*) 9442 # Fabrice Bellard et al's Tiny C Compiler 9443 lt_prog_compiler_wl='-Wl,' 9444 lt_prog_compiler_pic='-fPIC' 9445 lt_prog_compiler_static='-static' 9446 ;; 9447 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9448 # Portland Group compilers (*not* the Pentium gcc compiler, 9449 # which looks to be a dead project) 9450 lt_prog_compiler_wl='-Wl,' 9451 lt_prog_compiler_pic='-fpic' 9452 lt_prog_compiler_static='-Bstatic' 9453 ;; 9454 ccc*) 9455 lt_prog_compiler_wl='-Wl,' 9456 # All Alpha code is PIC. 9457 lt_prog_compiler_static='-non_shared' 9458 ;; 9459 xl* | bgxl* | bgf* | mpixl*) 9460 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9461 lt_prog_compiler_wl='-Wl,' 9462 lt_prog_compiler_pic='-qpic' 9463 lt_prog_compiler_static='-qstaticlink' 9464 ;; 9465 *) 9466 case `$CC -V 2>&1 | sed 5q` in 9467 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9468 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9469 lt_prog_compiler_pic='-KPIC' 9470 lt_prog_compiler_static='-Bstatic' 9471 lt_prog_compiler_wl='' 9472 ;; 9473 *Sun\ F* | *Sun*Fortran*) 9474 lt_prog_compiler_pic='-KPIC' 9475 lt_prog_compiler_static='-Bstatic' 9476 lt_prog_compiler_wl='-Qoption ld ' 9477 ;; 9478 *Sun\ C*) 9479 # Sun C 5.9 9480 lt_prog_compiler_pic='-KPIC' 9481 lt_prog_compiler_static='-Bstatic' 9482 lt_prog_compiler_wl='-Wl,' 9483 ;; 9484 *Intel*\ [CF]*Compiler*) 9485 lt_prog_compiler_wl='-Wl,' 9486 lt_prog_compiler_pic='-fPIC' 9487 lt_prog_compiler_static='-static' 9488 ;; 9489 *Portland\ Group*) 9490 lt_prog_compiler_wl='-Wl,' 9491 lt_prog_compiler_pic='-fpic' 9492 lt_prog_compiler_static='-Bstatic' 9493 ;; 9494 esac 9495 ;; 9496 esac 9497 ;; 9498 9499 newsos6) 9500 lt_prog_compiler_pic='-KPIC' 9501 lt_prog_compiler_static='-Bstatic' 9502 ;; 9503 9504 *nto* | *qnx*) 9505 # QNX uses GNU C++, but need to define -shared option too, otherwise 9506 # it will coredump. 9507 lt_prog_compiler_pic='-fPIC -shared' 9508 ;; 9509 9510 osf3* | osf4* | osf5*) 9511 lt_prog_compiler_wl='-Wl,' 9512 # All OSF/1 code is PIC. 9513 lt_prog_compiler_static='-non_shared' 9514 ;; 9515 9516 rdos*) 9517 lt_prog_compiler_static='-non_shared' 9518 ;; 9519 9520 solaris*) 9521 lt_prog_compiler_pic='-KPIC' 9522 lt_prog_compiler_static='-Bstatic' 9523 case $cc_basename in 9524 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9525 lt_prog_compiler_wl='-Qoption ld ';; 9526 *) 9527 lt_prog_compiler_wl='-Wl,';; 9528 esac 9529 ;; 9530 9531 sunos4*) 9532 lt_prog_compiler_wl='-Qoption ld ' 9533 lt_prog_compiler_pic='-PIC' 9534 lt_prog_compiler_static='-Bstatic' 9535 ;; 9536 9537 sysv4 | sysv4.2uw2* | sysv4.3*) 9538 lt_prog_compiler_wl='-Wl,' 9539 lt_prog_compiler_pic='-KPIC' 9540 lt_prog_compiler_static='-Bstatic' 9541 ;; 9542 9543 sysv4*MP*) 9544 if test -d /usr/nec; then 9545 lt_prog_compiler_pic='-Kconform_pic' 9546 lt_prog_compiler_static='-Bstatic' 9547 fi 9548 ;; 9549 9550 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9551 lt_prog_compiler_wl='-Wl,' 9552 lt_prog_compiler_pic='-KPIC' 9553 lt_prog_compiler_static='-Bstatic' 9554 ;; 9555 9556 unicos*) 9557 lt_prog_compiler_wl='-Wl,' 9558 lt_prog_compiler_can_build_shared=no 9559 ;; 9560 9561 uts4*) 9562 lt_prog_compiler_pic='-pic' 9563 lt_prog_compiler_static='-Bstatic' 9564 ;; 9565 9566 *) 9567 lt_prog_compiler_can_build_shared=no 9568 ;; 9569 esac 9570 fi 9571 9572case $host_os in 9573 # For platforms that do not support PIC, -DPIC is meaningless: 9574 *djgpp*) 9575 lt_prog_compiler_pic= 9576 ;; 9577 *) 9578 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9579 ;; 9580esac 9581 9582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9583$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9584if ${lt_cv_prog_compiler_pic+:} false; then : 9585 $as_echo_n "(cached) " >&6 9586else 9587 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9588fi 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9590$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9591lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9592 9593# 9594# Check to make sure the PIC flag actually works. 9595# 9596if test -n "$lt_prog_compiler_pic"; then 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9598$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9599if ${lt_cv_prog_compiler_pic_works+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 lt_cv_prog_compiler_pic_works=no 9603 ac_outfile=conftest.$ac_objext 9604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9605 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9606 # Insert the option either (1) after the last *FLAGS variable, or 9607 # (2) before a word containing "conftest.", or (3) at the end. 9608 # Note that $ac_compile itself does not contain backslashes and begins 9609 # with a dollar sign (not a hyphen), so the echo should work correctly. 9610 # The option is referenced via a variable to avoid confusing sed. 9611 lt_compile=`echo "$ac_compile" | $SED \ 9612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9614 -e 's:$: $lt_compiler_flag:'` 9615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9616 (eval "$lt_compile" 2>conftest.err) 9617 ac_status=$? 9618 cat conftest.err >&5 9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9620 if (exit $ac_status) && test -s "$ac_outfile"; then 9621 # The compiler can only warn and ignore the option if not recognized 9622 # So say no if there are warnings other than the usual output. 9623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9626 lt_cv_prog_compiler_pic_works=yes 9627 fi 9628 fi 9629 $RM conftest* 9630 9631fi 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9633$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9634 9635if test yes = "$lt_cv_prog_compiler_pic_works"; then 9636 case $lt_prog_compiler_pic in 9637 "" | " "*) ;; 9638 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9639 esac 9640else 9641 lt_prog_compiler_pic= 9642 lt_prog_compiler_can_build_shared=no 9643fi 9644 9645fi 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657# 9658# Check to make sure the static flag actually works. 9659# 9660wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9662$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9663if ${lt_cv_prog_compiler_static_works+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 lt_cv_prog_compiler_static_works=no 9667 save_LDFLAGS=$LDFLAGS 9668 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9669 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9671 # The linker can only warn and ignore the option if not recognized 9672 # So say no if there are warnings 9673 if test -s conftest.err; then 9674 # Append any errors to the config.log. 9675 cat conftest.err 1>&5 9676 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9678 if diff conftest.exp conftest.er2 >/dev/null; then 9679 lt_cv_prog_compiler_static_works=yes 9680 fi 9681 else 9682 lt_cv_prog_compiler_static_works=yes 9683 fi 9684 fi 9685 $RM -r conftest* 9686 LDFLAGS=$save_LDFLAGS 9687 9688fi 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9690$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9691 9692if test yes = "$lt_cv_prog_compiler_static_works"; then 9693 : 9694else 9695 lt_prog_compiler_static= 9696fi 9697 9698 9699 9700 9701 9702 9703 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9705$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9706if ${lt_cv_prog_compiler_c_o+:} false; then : 9707 $as_echo_n "(cached) " >&6 9708else 9709 lt_cv_prog_compiler_c_o=no 9710 $RM -r conftest 2>/dev/null 9711 mkdir conftest 9712 cd conftest 9713 mkdir out 9714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9715 9716 lt_compiler_flag="-o out/conftest2.$ac_objext" 9717 # Insert the option either (1) after the last *FLAGS variable, or 9718 # (2) before a word containing "conftest.", or (3) at the end. 9719 # Note that $ac_compile itself does not contain backslashes and begins 9720 # with a dollar sign (not a hyphen), so the echo should work correctly. 9721 lt_compile=`echo "$ac_compile" | $SED \ 9722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9724 -e 's:$: $lt_compiler_flag:'` 9725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9726 (eval "$lt_compile" 2>out/conftest.err) 9727 ac_status=$? 9728 cat out/conftest.err >&5 9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9730 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9731 then 9732 # The compiler can only warn and ignore the option if not recognized 9733 # So say no if there are warnings 9734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9737 lt_cv_prog_compiler_c_o=yes 9738 fi 9739 fi 9740 chmod u+w . 2>&5 9741 $RM conftest* 9742 # SGI C++ compiler will create directory out/ii_files/ for 9743 # template instantiation 9744 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9745 $RM out/* && rmdir out 9746 cd .. 9747 $RM -r conftest 9748 $RM conftest* 9749 9750fi 9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9752$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9753 9754 9755 9756 9757 9758 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9760$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9761if ${lt_cv_prog_compiler_c_o+:} false; then : 9762 $as_echo_n "(cached) " >&6 9763else 9764 lt_cv_prog_compiler_c_o=no 9765 $RM -r conftest 2>/dev/null 9766 mkdir conftest 9767 cd conftest 9768 mkdir out 9769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9770 9771 lt_compiler_flag="-o out/conftest2.$ac_objext" 9772 # Insert the option either (1) after the last *FLAGS variable, or 9773 # (2) before a word containing "conftest.", or (3) at the end. 9774 # Note that $ac_compile itself does not contain backslashes and begins 9775 # with a dollar sign (not a hyphen), so the echo should work correctly. 9776 lt_compile=`echo "$ac_compile" | $SED \ 9777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9779 -e 's:$: $lt_compiler_flag:'` 9780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9781 (eval "$lt_compile" 2>out/conftest.err) 9782 ac_status=$? 9783 cat out/conftest.err >&5 9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9785 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9786 then 9787 # The compiler can only warn and ignore the option if not recognized 9788 # So say no if there are warnings 9789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9792 lt_cv_prog_compiler_c_o=yes 9793 fi 9794 fi 9795 chmod u+w . 2>&5 9796 $RM conftest* 9797 # SGI C++ compiler will create directory out/ii_files/ for 9798 # template instantiation 9799 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9800 $RM out/* && rmdir out 9801 cd .. 9802 $RM -r conftest 9803 $RM conftest* 9804 9805fi 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9807$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9808 9809 9810 9811 9812hard_links=nottested 9813if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9814 # do not overwrite the value of need_locks provided by the user 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9816$as_echo_n "checking if we can lock with hard links... " >&6; } 9817 hard_links=yes 9818 $RM conftest* 9819 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9820 touch conftest.a 9821 ln conftest.a conftest.b 2>&5 || hard_links=no 9822 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9824$as_echo "$hard_links" >&6; } 9825 if test no = "$hard_links"; then 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9827$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9828 need_locks=warn 9829 fi 9830else 9831 need_locks=no 9832fi 9833 9834 9835 9836 9837 9838 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9840$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9841 9842 runpath_var= 9843 allow_undefined_flag= 9844 always_export_symbols=no 9845 archive_cmds= 9846 archive_expsym_cmds= 9847 compiler_needs_object=no 9848 enable_shared_with_static_runtimes=no 9849 export_dynamic_flag_spec= 9850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9851 hardcode_automatic=no 9852 hardcode_direct=no 9853 hardcode_direct_absolute=no 9854 hardcode_libdir_flag_spec= 9855 hardcode_libdir_separator= 9856 hardcode_minus_L=no 9857 hardcode_shlibpath_var=unsupported 9858 inherit_rpath=no 9859 link_all_deplibs=unknown 9860 module_cmds= 9861 module_expsym_cmds= 9862 old_archive_from_new_cmds= 9863 old_archive_from_expsyms_cmds= 9864 thread_safe_flag_spec= 9865 whole_archive_flag_spec= 9866 # include_expsyms should be a list of space-separated symbols to be *always* 9867 # included in the symbol list 9868 include_expsyms= 9869 # exclude_expsyms can be an extended regexp of symbols to exclude 9870 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9871 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9872 # as well as any symbol that contains 'd'. 9873 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9874 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9875 # platforms (ab)use it in PIC code, but their linkers get confused if 9876 # the symbol is explicitly referenced. Since portable code cannot 9877 # rely on this symbol name, it's probably fine to never include it in 9878 # preloaded symbol tables. 9879 # Exclude shared library initialization/finalization symbols. 9880 extract_expsyms_cmds= 9881 9882 case $host_os in 9883 cygwin* | mingw* | pw32* | cegcc*) 9884 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9885 # When not using gcc, we currently assume that we are using 9886 # Microsoft Visual C++. 9887 if test yes != "$GCC"; then 9888 with_gnu_ld=no 9889 fi 9890 ;; 9891 interix*) 9892 # we just hope/assume this is gcc and not c89 (= MSVC++) 9893 with_gnu_ld=yes 9894 ;; 9895 openbsd* | bitrig*) 9896 with_gnu_ld=no 9897 ;; 9898 esac 9899 9900 ld_shlibs=yes 9901 9902 # On some targets, GNU ld is compatible enough with the native linker 9903 # that we're better off using the native interface for both. 9904 lt_use_gnu_ld_interface=no 9905 if test yes = "$with_gnu_ld"; then 9906 case $host_os in 9907 aix*) 9908 # The AIX port of GNU ld has always aspired to compatibility 9909 # with the native linker. However, as the warning in the GNU ld 9910 # block says, versions before 2.19.5* couldn't really create working 9911 # shared libraries, regardless of the interface used. 9912 case `$LD -v 2>&1` in 9913 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9914 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9915 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9916 *) 9917 lt_use_gnu_ld_interface=yes 9918 ;; 9919 esac 9920 ;; 9921 *) 9922 lt_use_gnu_ld_interface=yes 9923 ;; 9924 esac 9925 fi 9926 9927 if test yes = "$lt_use_gnu_ld_interface"; then 9928 # If archive_cmds runs LD, not CC, wlarc should be empty 9929 wlarc='$wl' 9930 9931 # Set some defaults for GNU ld with shared library support. These 9932 # are reset later if shared libraries are not supported. Putting them 9933 # here allows them to be overridden if necessary. 9934 runpath_var=LD_RUN_PATH 9935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9936 export_dynamic_flag_spec='$wl--export-dynamic' 9937 # ancient GNU ld didn't support --whole-archive et. al. 9938 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9939 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9940 else 9941 whole_archive_flag_spec= 9942 fi 9943 supports_anon_versioning=no 9944 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9945 *GNU\ gold*) supports_anon_versioning=yes ;; 9946 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9947 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9948 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9949 *\ 2.11.*) ;; # other 2.11 versions 9950 *) supports_anon_versioning=yes ;; 9951 esac 9952 9953 # See if GNU ld supports shared libraries. 9954 case $host_os in 9955 aix[3-9]*) 9956 # On AIX/PPC, the GNU linker is very broken 9957 if test ia64 != "$host_cpu"; then 9958 ld_shlibs=no 9959 cat <<_LT_EOF 1>&2 9960 9961*** Warning: the GNU linker, at least up to release 2.19, is reported 9962*** to be unable to reliably create shared libraries on AIX. 9963*** Therefore, libtool is disabling shared libraries support. If you 9964*** really care for shared libraries, you may want to install binutils 9965*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9966*** You will then need to restart the configuration process. 9967 9968_LT_EOF 9969 fi 9970 ;; 9971 9972 amigaos*) 9973 case $host_cpu in 9974 powerpc) 9975 # see comment about AmigaOS4 .so support 9976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9977 archive_expsym_cmds='' 9978 ;; 9979 m68k) 9980 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)' 9981 hardcode_libdir_flag_spec='-L$libdir' 9982 hardcode_minus_L=yes 9983 ;; 9984 esac 9985 ;; 9986 9987 beos*) 9988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9989 allow_undefined_flag=unsupported 9990 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9991 # support --undefined. This deserves some investigation. FIXME 9992 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9993 else 9994 ld_shlibs=no 9995 fi 9996 ;; 9997 9998 cygwin* | mingw* | pw32* | cegcc*) 9999 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10000 # as there is no search path for DLLs. 10001 hardcode_libdir_flag_spec='-L$libdir' 10002 export_dynamic_flag_spec='$wl--export-all-symbols' 10003 allow_undefined_flag=unsupported 10004 always_export_symbols=no 10005 enable_shared_with_static_runtimes=yes 10006 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' 10007 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10008 10009 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10011 # If the export-symbols file already is a .def file, use it as 10012 # is; otherwise, prepend EXPORTS... 10013 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10014 cp $export_symbols $output_objdir/$soname.def; 10015 else 10016 echo EXPORTS > $output_objdir/$soname.def; 10017 cat $export_symbols >> $output_objdir/$soname.def; 10018 fi~ 10019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10020 else 10021 ld_shlibs=no 10022 fi 10023 ;; 10024 10025 haiku*) 10026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10027 link_all_deplibs=yes 10028 ;; 10029 10030 os2*) 10031 hardcode_libdir_flag_spec='-L$libdir' 10032 hardcode_minus_L=yes 10033 allow_undefined_flag=unsupported 10034 shrext_cmds=.dll 10035 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10036 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10037 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10038 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10039 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10040 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10041 emximp -o $lib $output_objdir/$libname.def' 10042 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10043 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10044 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10045 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10046 prefix_cmds="$SED"~ 10047 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10048 prefix_cmds="$prefix_cmds -e 1d"; 10049 fi~ 10050 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10051 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10052 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10053 emximp -o $lib $output_objdir/$libname.def' 10054 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10055 enable_shared_with_static_runtimes=yes 10056 ;; 10057 10058 interix[3-9]*) 10059 hardcode_direct=no 10060 hardcode_shlibpath_var=no 10061 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10062 export_dynamic_flag_spec='$wl-E' 10063 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10064 # Instead, shared libraries are loaded at an image base (0x10000000 by 10065 # default) and relocated if they conflict, which is a slow very memory 10066 # consuming and fragmenting process. To avoid this, we pick a random, 10067 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10068 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10069 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10070 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' 10071 ;; 10072 10073 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10074 tmp_diet=no 10075 if test linux-dietlibc = "$host_os"; then 10076 case $cc_basename in 10077 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10078 esac 10079 fi 10080 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10081 && test no = "$tmp_diet" 10082 then 10083 tmp_addflag=' $pic_flag' 10084 tmp_sharedflag='-shared' 10085 case $cc_basename,$host_cpu in 10086 pgcc*) # Portland Group C compiler 10087 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' 10088 tmp_addflag=' $pic_flag' 10089 ;; 10090 pgf77* | pgf90* | pgf95* | pgfortran*) 10091 # Portland Group f77 and f90 compilers 10092 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' 10093 tmp_addflag=' $pic_flag -Mnomain' ;; 10094 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10095 tmp_addflag=' -i_dynamic' ;; 10096 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10097 tmp_addflag=' -i_dynamic -nofor_main' ;; 10098 ifc* | ifort*) # Intel Fortran compiler 10099 tmp_addflag=' -nofor_main' ;; 10100 lf95*) # Lahey Fortran 8.1 10101 whole_archive_flag_spec= 10102 tmp_sharedflag='--shared' ;; 10103 nagfor*) # NAGFOR 5.3 10104 tmp_sharedflag='-Wl,-shared' ;; 10105 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10106 tmp_sharedflag='-qmkshrobj' 10107 tmp_addflag= ;; 10108 nvcc*) # Cuda Compiler Driver 2.2 10109 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' 10110 compiler_needs_object=yes 10111 ;; 10112 esac 10113 case `$CC -V 2>&1 | sed 5q` in 10114 *Sun\ C*) # Sun C 5.9 10115 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' 10116 compiler_needs_object=yes 10117 tmp_sharedflag='-G' ;; 10118 *Sun\ F*) # Sun Fortran 8.3 10119 tmp_sharedflag='-G' ;; 10120 esac 10121 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10122 10123 if test yes = "$supports_anon_versioning"; then 10124 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10126 echo "local: *; };" >> $output_objdir/$libname.ver~ 10127 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10128 fi 10129 10130 case $cc_basename in 10131 tcc*) 10132 export_dynamic_flag_spec='-rdynamic' 10133 ;; 10134 xlf* | bgf* | bgxlf* | mpixlf*) 10135 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10136 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10138 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10139 if test yes = "$supports_anon_versioning"; then 10140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10142 echo "local: *; };" >> $output_objdir/$libname.ver~ 10143 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10144 fi 10145 ;; 10146 esac 10147 else 10148 ld_shlibs=no 10149 fi 10150 ;; 10151 10152 netbsd*) 10153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10154 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10155 wlarc= 10156 else 10157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10158 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10159 fi 10160 ;; 10161 10162 solaris*) 10163 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10164 ld_shlibs=no 10165 cat <<_LT_EOF 1>&2 10166 10167*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10168*** create shared libraries on Solaris systems. Therefore, libtool 10169*** is disabling shared libraries support. We urge you to upgrade GNU 10170*** binutils to release 2.9.1 or newer. Another option is to modify 10171*** your PATH or compiler configuration so that the native linker is 10172*** used, and then restart. 10173 10174_LT_EOF 10175 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10177 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10178 else 10179 ld_shlibs=no 10180 fi 10181 ;; 10182 10183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10184 case `$LD -v 2>&1` in 10185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10186 ld_shlibs=no 10187 cat <<_LT_EOF 1>&2 10188 10189*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10190*** reliably create shared libraries on SCO systems. Therefore, libtool 10191*** is disabling shared libraries support. We urge you to upgrade GNU 10192*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10193*** your PATH or compiler configuration so that the native linker is 10194*** used, and then restart. 10195 10196_LT_EOF 10197 ;; 10198 *) 10199 # For security reasons, it is highly recommended that you always 10200 # use absolute paths for naming shared libraries, and exclude the 10201 # DT_RUNPATH tag from executables and libraries. But doing so 10202 # requires that you compile everything twice, which is a pain. 10203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10204 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10207 else 10208 ld_shlibs=no 10209 fi 10210 ;; 10211 esac 10212 ;; 10213 10214 sunos4*) 10215 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10216 wlarc= 10217 hardcode_direct=yes 10218 hardcode_shlibpath_var=no 10219 ;; 10220 10221 *) 10222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10223 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10224 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10225 else 10226 ld_shlibs=no 10227 fi 10228 ;; 10229 esac 10230 10231 if test no = "$ld_shlibs"; then 10232 runpath_var= 10233 hardcode_libdir_flag_spec= 10234 export_dynamic_flag_spec= 10235 whole_archive_flag_spec= 10236 fi 10237 else 10238 # PORTME fill in a description of your system's linker (not GNU ld) 10239 case $host_os in 10240 aix3*) 10241 allow_undefined_flag=unsupported 10242 always_export_symbols=yes 10243 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' 10244 # Note: this linker hardcodes the directories in LIBPATH if there 10245 # are no directories specified by -L. 10246 hardcode_minus_L=yes 10247 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10248 # Neither direct hardcoding nor static linking is supported with a 10249 # broken collect2. 10250 hardcode_direct=unsupported 10251 fi 10252 ;; 10253 10254 aix[4-9]*) 10255 if test ia64 = "$host_cpu"; then 10256 # On IA64, the linker does run time linking by default, so we don't 10257 # have to do anything special. 10258 aix_use_runtimelinking=no 10259 exp_sym_flag='-Bexport' 10260 no_entry_flag= 10261 else 10262 # If we're using GNU nm, then we don't want the "-C" option. 10263 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10264 # Without the "-l" option, or with the "-B" option, AIX nm treats 10265 # weak defined symbols like other global defined symbols, whereas 10266 # GNU nm marks them as "W". 10267 # While the 'weak' keyword is ignored in the Export File, we need 10268 # it in the Import File for the 'aix-soname' feature, so we have 10269 # to replace the "-B" option with "-P" for AIX nm. 10270 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10271 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' 10272 else 10273 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' 10274 fi 10275 aix_use_runtimelinking=no 10276 10277 # Test if we are trying to use run time linking or normal 10278 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10279 # have runtime linking enabled, and use it for executables. 10280 # For shared libraries, we enable/disable runtime linking 10281 # depending on the kind of the shared library created - 10282 # when "with_aix_soname,aix_use_runtimelinking" is: 10283 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10284 # "aix,yes" lib.so shared, rtl:yes, for executables 10285 # lib.a static archive 10286 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10287 # lib.a(lib.so.V) shared, rtl:no, for executables 10288 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10289 # lib.a(lib.so.V) shared, rtl:no 10290 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10291 # lib.a static archive 10292 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10293 for ld_flag in $LDFLAGS; do 10294 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10295 aix_use_runtimelinking=yes 10296 break 10297 fi 10298 done 10299 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10300 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10301 # so we don't have lib.a shared libs to link our executables. 10302 # We have to force runtime linking in this case. 10303 aix_use_runtimelinking=yes 10304 LDFLAGS="$LDFLAGS -Wl,-brtl" 10305 fi 10306 ;; 10307 esac 10308 10309 exp_sym_flag='-bexport' 10310 no_entry_flag='-bnoentry' 10311 fi 10312 10313 # When large executables or shared objects are built, AIX ld can 10314 # have problems creating the table of contents. If linking a library 10315 # or program results in "error TOC overflow" add -mminimal-toc to 10316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10318 10319 archive_cmds='' 10320 hardcode_direct=yes 10321 hardcode_direct_absolute=yes 10322 hardcode_libdir_separator=':' 10323 link_all_deplibs=yes 10324 file_list_spec='$wl-f,' 10325 case $with_aix_soname,$aix_use_runtimelinking in 10326 aix,*) ;; # traditional, no import file 10327 svr4,* | *,yes) # use import file 10328 # The Import File defines what to hardcode. 10329 hardcode_direct=no 10330 hardcode_direct_absolute=no 10331 ;; 10332 esac 10333 10334 if test yes = "$GCC"; then 10335 case $host_os in aix4.[012]|aix4.[012].*) 10336 # We only want to do this on AIX 4.2 and lower, the check 10337 # below for broken collect2 doesn't work under 4.3+ 10338 collect2name=`$CC -print-prog-name=collect2` 10339 if test -f "$collect2name" && 10340 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10341 then 10342 # We have reworked collect2 10343 : 10344 else 10345 # We have old collect2 10346 hardcode_direct=unsupported 10347 # It fails to find uninstalled libraries when the uninstalled 10348 # path is not listed in the libpath. Setting hardcode_minus_L 10349 # to unsupported forces relinking 10350 hardcode_minus_L=yes 10351 hardcode_libdir_flag_spec='-L$libdir' 10352 hardcode_libdir_separator= 10353 fi 10354 ;; 10355 esac 10356 shared_flag='-shared' 10357 if test yes = "$aix_use_runtimelinking"; then 10358 shared_flag="$shared_flag "'$wl-G' 10359 fi 10360 # Need to ensure runtime linking is disabled for the traditional 10361 # shared library, or the linker may eventually find shared libraries 10362 # /with/ Import File - we do not want to mix them. 10363 shared_flag_aix='-shared' 10364 shared_flag_svr4='-shared $wl-G' 10365 else 10366 # not using gcc 10367 if test ia64 = "$host_cpu"; then 10368 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10369 # chokes on -Wl,-G. The following line is correct: 10370 shared_flag='-G' 10371 else 10372 if test yes = "$aix_use_runtimelinking"; then 10373 shared_flag='$wl-G' 10374 else 10375 shared_flag='$wl-bM:SRE' 10376 fi 10377 shared_flag_aix='$wl-bM:SRE' 10378 shared_flag_svr4='$wl-G' 10379 fi 10380 fi 10381 10382 export_dynamic_flag_spec='$wl-bexpall' 10383 # It seems that -bexpall does not export symbols beginning with 10384 # underscore (_), so it is better to generate a list of symbols to export. 10385 always_export_symbols=yes 10386 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10387 # Warning - without using the other runtime loading flags (-brtl), 10388 # -berok will link without error, but may produce a broken library. 10389 allow_undefined_flag='-berok' 10390 # Determine the default libpath from the value encoded in an 10391 # empty executable. 10392 if test set = "${lt_cv_aix_libpath+set}"; then 10393 aix_libpath=$lt_cv_aix_libpath 10394else 10395 if ${lt_cv_aix_libpath_+:} false; then : 10396 $as_echo_n "(cached) " >&6 10397else 10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10399/* end confdefs.h. */ 10400 10401int 10402main () 10403{ 10404 10405 ; 10406 return 0; 10407} 10408_ACEOF 10409if ac_fn_c_try_link "$LINENO"; then : 10410 10411 lt_aix_libpath_sed=' 10412 /Import File Strings/,/^$/ { 10413 /^0/ { 10414 s/^0 *\([^ ]*\) *$/\1/ 10415 p 10416 } 10417 }' 10418 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10419 # Check for a 64-bit object if we didn't find anything. 10420 if test -z "$lt_cv_aix_libpath_"; then 10421 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10422 fi 10423fi 10424rm -f core conftest.err conftest.$ac_objext \ 10425 conftest$ac_exeext conftest.$ac_ext 10426 if test -z "$lt_cv_aix_libpath_"; then 10427 lt_cv_aix_libpath_=/usr/lib:/lib 10428 fi 10429 10430fi 10431 10432 aix_libpath=$lt_cv_aix_libpath_ 10433fi 10434 10435 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10436 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 10437 else 10438 if test ia64 = "$host_cpu"; then 10439 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10440 allow_undefined_flag="-z nodefs" 10441 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" 10442 else 10443 # Determine the default libpath from the value encoded in an 10444 # empty executable. 10445 if test set = "${lt_cv_aix_libpath+set}"; then 10446 aix_libpath=$lt_cv_aix_libpath 10447else 10448 if ${lt_cv_aix_libpath_+:} false; then : 10449 $as_echo_n "(cached) " >&6 10450else 10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10452/* end confdefs.h. */ 10453 10454int 10455main () 10456{ 10457 10458 ; 10459 return 0; 10460} 10461_ACEOF 10462if ac_fn_c_try_link "$LINENO"; then : 10463 10464 lt_aix_libpath_sed=' 10465 /Import File Strings/,/^$/ { 10466 /^0/ { 10467 s/^0 *\([^ ]*\) *$/\1/ 10468 p 10469 } 10470 }' 10471 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10472 # Check for a 64-bit object if we didn't find anything. 10473 if test -z "$lt_cv_aix_libpath_"; then 10474 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10475 fi 10476fi 10477rm -f core conftest.err conftest.$ac_objext \ 10478 conftest$ac_exeext conftest.$ac_ext 10479 if test -z "$lt_cv_aix_libpath_"; then 10480 lt_cv_aix_libpath_=/usr/lib:/lib 10481 fi 10482 10483fi 10484 10485 aix_libpath=$lt_cv_aix_libpath_ 10486fi 10487 10488 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10489 # Warning - without using the other run time loading flags, 10490 # -berok will link without error, but may produce a broken library. 10491 no_undefined_flag=' $wl-bernotok' 10492 allow_undefined_flag=' $wl-berok' 10493 if test yes = "$with_gnu_ld"; then 10494 # We only use this code for GNU lds that support --whole-archive. 10495 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10496 else 10497 # Exported symbols can be pulled into shared objects from archives 10498 whole_archive_flag_spec='$convenience' 10499 fi 10500 archive_cmds_need_lc=yes 10501 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10502 # -brtl affects multiple linker settings, -berok does not and is overridden later 10503 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10504 if test svr4 != "$with_aix_soname"; then 10505 # This is similar to how AIX traditionally builds its shared libraries. 10506 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' 10507 fi 10508 if test aix != "$with_aix_soname"; then 10509 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' 10510 else 10511 # used by -dlpreopen to get the symbols 10512 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10513 fi 10514 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10515 fi 10516 fi 10517 ;; 10518 10519 amigaos*) 10520 case $host_cpu in 10521 powerpc) 10522 # see comment about AmigaOS4 .so support 10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10524 archive_expsym_cmds='' 10525 ;; 10526 m68k) 10527 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)' 10528 hardcode_libdir_flag_spec='-L$libdir' 10529 hardcode_minus_L=yes 10530 ;; 10531 esac 10532 ;; 10533 10534 bsdi[45]*) 10535 export_dynamic_flag_spec=-rdynamic 10536 ;; 10537 10538 cygwin* | mingw* | pw32* | cegcc*) 10539 # When not using gcc, we currently assume that we are using 10540 # Microsoft Visual C++. 10541 # hardcode_libdir_flag_spec is actually meaningless, as there is 10542 # no search path for DLLs. 10543 case $cc_basename in 10544 cl*) 10545 # Native MSVC 10546 hardcode_libdir_flag_spec=' ' 10547 allow_undefined_flag=unsupported 10548 always_export_symbols=yes 10549 file_list_spec='@' 10550 # Tell ltmain to make .lib files, not .a files. 10551 libext=lib 10552 # Tell ltmain to make .dll files, not .so files. 10553 shrext_cmds=.dll 10554 # FIXME: Setting linknames here is a bad hack. 10555 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10556 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10557 cp "$export_symbols" "$output_objdir/$soname.def"; 10558 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10559 else 10560 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10561 fi~ 10562 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10563 linknames=' 10564 # The linker will not automatically build a static lib if we build a DLL. 10565 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10566 enable_shared_with_static_runtimes=yes 10567 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10569 # Don't use ranlib 10570 old_postinstall_cmds='chmod 644 $oldlib' 10571 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10572 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10573 case $lt_outputfile in 10574 *.exe|*.EXE) ;; 10575 *) 10576 lt_outputfile=$lt_outputfile.exe 10577 lt_tool_outputfile=$lt_tool_outputfile.exe 10578 ;; 10579 esac~ 10580 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10581 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10582 $RM "$lt_outputfile.manifest"; 10583 fi' 10584 ;; 10585 *) 10586 # Assume MSVC wrapper 10587 hardcode_libdir_flag_spec=' ' 10588 allow_undefined_flag=unsupported 10589 # Tell ltmain to make .lib files, not .a files. 10590 libext=lib 10591 # Tell ltmain to make .dll files, not .so files. 10592 shrext_cmds=.dll 10593 # FIXME: Setting linknames here is a bad hack. 10594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10595 # The linker will automatically build a .lib file if we build a DLL. 10596 old_archive_from_new_cmds='true' 10597 # FIXME: Should let the user specify the lib program. 10598 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10599 enable_shared_with_static_runtimes=yes 10600 ;; 10601 esac 10602 ;; 10603 10604 darwin* | rhapsody*) 10605 10606 10607 archive_cmds_need_lc=no 10608 hardcode_direct=no 10609 hardcode_automatic=yes 10610 hardcode_shlibpath_var=unsupported 10611 if test yes = "$lt_cv_ld_force_load"; then 10612 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\"`' 10613 10614 else 10615 whole_archive_flag_spec='' 10616 fi 10617 link_all_deplibs=yes 10618 allow_undefined_flag=$_lt_dar_allow_undefined 10619 case $cc_basename in 10620 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10621 *) _lt_dar_can_shared=$GCC ;; 10622 esac 10623 if test yes = "$_lt_dar_can_shared"; then 10624 output_verbose_link_cmd=func_echo_all 10625 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10626 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10627 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" 10628 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" 10629 10630 else 10631 ld_shlibs=no 10632 fi 10633 10634 ;; 10635 10636 dgux*) 10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10638 hardcode_libdir_flag_spec='-L$libdir' 10639 hardcode_shlibpath_var=no 10640 ;; 10641 10642 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10643 # support. Future versions do this automatically, but an explicit c++rt0.o 10644 # does not break anything, and helps significantly (at the cost of a little 10645 # extra space). 10646 freebsd2.2*) 10647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10648 hardcode_libdir_flag_spec='-R$libdir' 10649 hardcode_direct=yes 10650 hardcode_shlibpath_var=no 10651 ;; 10652 10653 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10654 freebsd2.*) 10655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10656 hardcode_direct=yes 10657 hardcode_minus_L=yes 10658 hardcode_shlibpath_var=no 10659 ;; 10660 10661 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10662 freebsd* | dragonfly*) 10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10664 hardcode_libdir_flag_spec='-R$libdir' 10665 hardcode_direct=yes 10666 hardcode_shlibpath_var=no 10667 ;; 10668 10669 hpux9*) 10670 if test yes = "$GCC"; then 10671 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' 10672 else 10673 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' 10674 fi 10675 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10676 hardcode_libdir_separator=: 10677 hardcode_direct=yes 10678 10679 # hardcode_minus_L: Not really in the search PATH, 10680 # but as the default location of the library. 10681 hardcode_minus_L=yes 10682 export_dynamic_flag_spec='$wl-E' 10683 ;; 10684 10685 hpux10*) 10686 if test yes,no = "$GCC,$with_gnu_ld"; then 10687 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10688 else 10689 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10690 fi 10691 if test no = "$with_gnu_ld"; then 10692 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10693 hardcode_libdir_separator=: 10694 hardcode_direct=yes 10695 hardcode_direct_absolute=yes 10696 export_dynamic_flag_spec='$wl-E' 10697 # hardcode_minus_L: Not really in the search PATH, 10698 # but as the default location of the library. 10699 hardcode_minus_L=yes 10700 fi 10701 ;; 10702 10703 hpux11*) 10704 if test yes,no = "$GCC,$with_gnu_ld"; then 10705 case $host_cpu in 10706 hppa*64*) 10707 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10708 ;; 10709 ia64*) 10710 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10711 ;; 10712 *) 10713 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10714 ;; 10715 esac 10716 else 10717 case $host_cpu in 10718 hppa*64*) 10719 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10720 ;; 10721 ia64*) 10722 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10723 ;; 10724 *) 10725 10726 # Older versions of the 11.00 compiler do not understand -b yet 10727 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10729$as_echo_n "checking if $CC understands -b... " >&6; } 10730if ${lt_cv_prog_compiler__b+:} false; then : 10731 $as_echo_n "(cached) " >&6 10732else 10733 lt_cv_prog_compiler__b=no 10734 save_LDFLAGS=$LDFLAGS 10735 LDFLAGS="$LDFLAGS -b" 10736 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10737 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10738 # The linker can only warn and ignore the option if not recognized 10739 # So say no if there are warnings 10740 if test -s conftest.err; then 10741 # Append any errors to the config.log. 10742 cat conftest.err 1>&5 10743 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10745 if diff conftest.exp conftest.er2 >/dev/null; then 10746 lt_cv_prog_compiler__b=yes 10747 fi 10748 else 10749 lt_cv_prog_compiler__b=yes 10750 fi 10751 fi 10752 $RM -r conftest* 10753 LDFLAGS=$save_LDFLAGS 10754 10755fi 10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10757$as_echo "$lt_cv_prog_compiler__b" >&6; } 10758 10759if test yes = "$lt_cv_prog_compiler__b"; then 10760 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10761else 10762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10763fi 10764 10765 ;; 10766 esac 10767 fi 10768 if test no = "$with_gnu_ld"; then 10769 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10770 hardcode_libdir_separator=: 10771 10772 case $host_cpu in 10773 hppa*64*|ia64*) 10774 hardcode_direct=no 10775 hardcode_shlibpath_var=no 10776 ;; 10777 *) 10778 hardcode_direct=yes 10779 hardcode_direct_absolute=yes 10780 export_dynamic_flag_spec='$wl-E' 10781 10782 # hardcode_minus_L: Not really in the search PATH, 10783 # but as the default location of the library. 10784 hardcode_minus_L=yes 10785 ;; 10786 esac 10787 fi 10788 ;; 10789 10790 irix5* | irix6* | nonstopux*) 10791 if test yes = "$GCC"; then 10792 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' 10793 # Try to use the -exported_symbol ld option, if it does not 10794 # work, assume that -exports_file does not work either and 10795 # implicitly export all symbols. 10796 # This should be the same for all languages, so no per-tag cache variable. 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10798$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10799if ${lt_cv_irix_exported_symbol+:} false; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 save_LDFLAGS=$LDFLAGS 10803 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10805/* end confdefs.h. */ 10806int foo (void) { return 0; } 10807_ACEOF 10808if ac_fn_c_try_link "$LINENO"; then : 10809 lt_cv_irix_exported_symbol=yes 10810else 10811 lt_cv_irix_exported_symbol=no 10812fi 10813rm -f core conftest.err conftest.$ac_objext \ 10814 conftest$ac_exeext conftest.$ac_ext 10815 LDFLAGS=$save_LDFLAGS 10816fi 10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10818$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10819 if test yes = "$lt_cv_irix_exported_symbol"; then 10820 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' 10821 fi 10822 else 10823 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' 10824 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' 10825 fi 10826 archive_cmds_need_lc='no' 10827 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10828 hardcode_libdir_separator=: 10829 inherit_rpath=yes 10830 link_all_deplibs=yes 10831 ;; 10832 10833 linux*) 10834 case $cc_basename in 10835 tcc*) 10836 # Fabrice Bellard et al's Tiny C Compiler 10837 ld_shlibs=yes 10838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10839 ;; 10840 esac 10841 ;; 10842 10843 netbsd*) 10844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10846 else 10847 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10848 fi 10849 hardcode_libdir_flag_spec='-R$libdir' 10850 hardcode_direct=yes 10851 hardcode_shlibpath_var=no 10852 ;; 10853 10854 newsos6) 10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10856 hardcode_direct=yes 10857 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10858 hardcode_libdir_separator=: 10859 hardcode_shlibpath_var=no 10860 ;; 10861 10862 *nto* | *qnx*) 10863 ;; 10864 10865 openbsd* | bitrig*) 10866 if test -f /usr/libexec/ld.so; then 10867 hardcode_direct=yes 10868 hardcode_shlibpath_var=no 10869 hardcode_direct_absolute=yes 10870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10872 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10873 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10874 export_dynamic_flag_spec='$wl-E' 10875 else 10876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10877 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10878 fi 10879 else 10880 ld_shlibs=no 10881 fi 10882 ;; 10883 10884 os2*) 10885 hardcode_libdir_flag_spec='-L$libdir' 10886 hardcode_minus_L=yes 10887 allow_undefined_flag=unsupported 10888 shrext_cmds=.dll 10889 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10890 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10891 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10892 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10893 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10894 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10895 emximp -o $lib $output_objdir/$libname.def' 10896 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10897 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10898 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10899 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10900 prefix_cmds="$SED"~ 10901 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10902 prefix_cmds="$prefix_cmds -e 1d"; 10903 fi~ 10904 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10905 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10906 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10907 emximp -o $lib $output_objdir/$libname.def' 10908 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10909 enable_shared_with_static_runtimes=yes 10910 ;; 10911 10912 osf3*) 10913 if test yes = "$GCC"; then 10914 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10915 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' 10916 else 10917 allow_undefined_flag=' -expect_unresolved \*' 10918 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' 10919 fi 10920 archive_cmds_need_lc='no' 10921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10922 hardcode_libdir_separator=: 10923 ;; 10924 10925 osf4* | osf5*) # as osf3* with the addition of -msym flag 10926 if test yes = "$GCC"; then 10927 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10928 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' 10929 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10930 else 10931 allow_undefined_flag=' -expect_unresolved \*' 10932 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' 10933 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~ 10934 $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' 10935 10936 # Both c and cxx compiler support -rpath directly 10937 hardcode_libdir_flag_spec='-rpath $libdir' 10938 fi 10939 archive_cmds_need_lc='no' 10940 hardcode_libdir_separator=: 10941 ;; 10942 10943 solaris*) 10944 no_undefined_flag=' -z defs' 10945 if test yes = "$GCC"; then 10946 wlarc='$wl' 10947 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10949 $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' 10950 else 10951 case `$CC -V 2>&1` in 10952 *"Compilers 5.0"*) 10953 wlarc='' 10954 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10956 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10957 ;; 10958 *) 10959 wlarc='$wl' 10960 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10961 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10962 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10963 ;; 10964 esac 10965 fi 10966 hardcode_libdir_flag_spec='-R$libdir' 10967 hardcode_shlibpath_var=no 10968 case $host_os in 10969 solaris2.[0-5] | solaris2.[0-5].*) ;; 10970 *) 10971 # The compiler driver will combine and reorder linker options, 10972 # but understands '-z linker_flag'. GCC discards it without '$wl', 10973 # but is careful enough not to reorder. 10974 # Supported since Solaris 2.6 (maybe 2.5.1?) 10975 if test yes = "$GCC"; then 10976 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10977 else 10978 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10979 fi 10980 ;; 10981 esac 10982 link_all_deplibs=yes 10983 ;; 10984 10985 sunos4*) 10986 if test sequent = "$host_vendor"; then 10987 # Use $CC to link under sequent, because it throws in some extra .o 10988 # files that make .init and .fini sections work. 10989 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10990 else 10991 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10992 fi 10993 hardcode_libdir_flag_spec='-L$libdir' 10994 hardcode_direct=yes 10995 hardcode_minus_L=yes 10996 hardcode_shlibpath_var=no 10997 ;; 10998 10999 sysv4) 11000 case $host_vendor in 11001 sni) 11002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11003 hardcode_direct=yes # is this really true??? 11004 ;; 11005 siemens) 11006 ## LD is ld it makes a PLAMLIB 11007 ## CC just makes a GrossModule. 11008 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11009 reload_cmds='$CC -r -o $output$reload_objs' 11010 hardcode_direct=no 11011 ;; 11012 motorola) 11013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11014 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11015 ;; 11016 esac 11017 runpath_var='LD_RUN_PATH' 11018 hardcode_shlibpath_var=no 11019 ;; 11020 11021 sysv4.3*) 11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11023 hardcode_shlibpath_var=no 11024 export_dynamic_flag_spec='-Bexport' 11025 ;; 11026 11027 sysv4*MP*) 11028 if test -d /usr/nec; then 11029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11030 hardcode_shlibpath_var=no 11031 runpath_var=LD_RUN_PATH 11032 hardcode_runpath_var=yes 11033 ld_shlibs=yes 11034 fi 11035 ;; 11036 11037 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11038 no_undefined_flag='$wl-z,text' 11039 archive_cmds_need_lc=no 11040 hardcode_shlibpath_var=no 11041 runpath_var='LD_RUN_PATH' 11042 11043 if test yes = "$GCC"; then 11044 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11045 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11046 else 11047 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11048 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11049 fi 11050 ;; 11051 11052 sysv5* | sco3.2v5* | sco5v6*) 11053 # Note: We CANNOT use -z defs as we might desire, because we do not 11054 # link with -lc, and that would cause any symbols used from libc to 11055 # always be unresolved, which means just about no library would 11056 # ever link correctly. If we're not using GNU ld we use -z text 11057 # though, which does catch some bad symbols but isn't as heavy-handed 11058 # as -z defs. 11059 no_undefined_flag='$wl-z,text' 11060 allow_undefined_flag='$wl-z,nodefs' 11061 archive_cmds_need_lc=no 11062 hardcode_shlibpath_var=no 11063 hardcode_libdir_flag_spec='$wl-R,$libdir' 11064 hardcode_libdir_separator=':' 11065 link_all_deplibs=yes 11066 export_dynamic_flag_spec='$wl-Bexport' 11067 runpath_var='LD_RUN_PATH' 11068 11069 if test yes = "$GCC"; then 11070 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11071 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11072 else 11073 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11074 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11075 fi 11076 ;; 11077 11078 uts4*) 11079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11080 hardcode_libdir_flag_spec='-L$libdir' 11081 hardcode_shlibpath_var=no 11082 ;; 11083 11084 *) 11085 ld_shlibs=no 11086 ;; 11087 esac 11088 11089 if test sni = "$host_vendor"; then 11090 case $host in 11091 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11092 export_dynamic_flag_spec='$wl-Blargedynsym' 11093 ;; 11094 esac 11095 fi 11096 fi 11097 11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11099$as_echo "$ld_shlibs" >&6; } 11100test no = "$ld_shlibs" && can_build_shared=no 11101 11102with_gnu_ld=$with_gnu_ld 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118# 11119# Do we need to explicitly link libc? 11120# 11121case "x$archive_cmds_need_lc" in 11122x|xyes) 11123 # Assume -lc should be added 11124 archive_cmds_need_lc=yes 11125 11126 if test yes,yes = "$GCC,$enable_shared"; then 11127 case $archive_cmds in 11128 *'~'*) 11129 # FIXME: we may have to deal with multi-command sequences. 11130 ;; 11131 '$CC '*) 11132 # Test whether the compiler implicitly links with -lc since on some 11133 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11134 # to ld, don't add -lc before -lgcc. 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11136$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11137if ${lt_cv_archive_cmds_need_lc+:} false; then : 11138 $as_echo_n "(cached) " >&6 11139else 11140 $RM conftest* 11141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11142 11143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11144 (eval $ac_compile) 2>&5 11145 ac_status=$? 11146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11147 test $ac_status = 0; } 2>conftest.err; then 11148 soname=conftest 11149 lib=conftest 11150 libobjs=conftest.$ac_objext 11151 deplibs= 11152 wl=$lt_prog_compiler_wl 11153 pic_flag=$lt_prog_compiler_pic 11154 compiler_flags=-v 11155 linker_flags=-v 11156 verstring= 11157 output_objdir=. 11158 libname=conftest 11159 lt_save_allow_undefined_flag=$allow_undefined_flag 11160 allow_undefined_flag= 11161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11162 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11163 ac_status=$? 11164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11165 test $ac_status = 0; } 11166 then 11167 lt_cv_archive_cmds_need_lc=no 11168 else 11169 lt_cv_archive_cmds_need_lc=yes 11170 fi 11171 allow_undefined_flag=$lt_save_allow_undefined_flag 11172 else 11173 cat conftest.err 1>&5 11174 fi 11175 $RM conftest* 11176 11177fi 11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11179$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11180 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11181 ;; 11182 esac 11183 fi 11184 ;; 11185esac 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 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11339$as_echo_n "checking dynamic linker characteristics... " >&6; } 11340 11341if test yes = "$GCC"; then 11342 case $host_os in 11343 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11344 *) lt_awk_arg='/^libraries:/' ;; 11345 esac 11346 case $host_os in 11347 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11348 *) lt_sed_strip_eq='s|=/|/|g' ;; 11349 esac 11350 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11351 case $lt_search_path_spec in 11352 *\;*) 11353 # if the path contains ";" then we assume it to be the separator 11354 # otherwise default to the standard path separator (i.e. ":") - it is 11355 # assumed that no part of a normal pathname contains ";" but that should 11356 # okay in the real world where ";" in dirpaths is itself problematic. 11357 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11358 ;; 11359 *) 11360 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11361 ;; 11362 esac 11363 # Ok, now we have the path, separated by spaces, we can step through it 11364 # and add multilib dir if necessary... 11365 lt_tmp_lt_search_path_spec= 11366 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11367 # ...but if some path component already ends with the multilib dir we assume 11368 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11369 case "$lt_multi_os_dir; $lt_search_path_spec " in 11370 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11371 lt_multi_os_dir= 11372 ;; 11373 esac 11374 for lt_sys_path in $lt_search_path_spec; do 11375 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11376 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11377 elif test -n "$lt_multi_os_dir"; then 11378 test -d "$lt_sys_path" && \ 11379 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11380 fi 11381 done 11382 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11383BEGIN {RS = " "; FS = "/|\n";} { 11384 lt_foo = ""; 11385 lt_count = 0; 11386 for (lt_i = NF; lt_i > 0; lt_i--) { 11387 if ($lt_i != "" && $lt_i != ".") { 11388 if ($lt_i == "..") { 11389 lt_count++; 11390 } else { 11391 if (lt_count == 0) { 11392 lt_foo = "/" $lt_i lt_foo; 11393 } else { 11394 lt_count--; 11395 } 11396 } 11397 } 11398 } 11399 if (lt_foo != "") { lt_freq[lt_foo]++; } 11400 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11401}'` 11402 # AWK program above erroneously prepends '/' to C:/dos/paths 11403 # for these hosts. 11404 case $host_os in 11405 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11406 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11407 esac 11408 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11409else 11410 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11411fi 11412library_names_spec= 11413libname_spec='lib$name' 11414soname_spec= 11415shrext_cmds=.so 11416postinstall_cmds= 11417postuninstall_cmds= 11418finish_cmds= 11419finish_eval= 11420shlibpath_var= 11421shlibpath_overrides_runpath=unknown 11422version_type=none 11423dynamic_linker="$host_os ld.so" 11424sys_lib_dlsearch_path_spec="/lib /usr/lib" 11425need_lib_prefix=unknown 11426hardcode_into_libs=no 11427 11428# when you set need_version to no, make sure it does not cause -set_version 11429# flags to be left without arguments 11430need_version=unknown 11431 11432 11433 11434case $host_os in 11435aix3*) 11436 version_type=linux # correct to gnu/linux during the next big refactor 11437 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11438 shlibpath_var=LIBPATH 11439 11440 # AIX 3 has no versioning support, so we append a major version to the name. 11441 soname_spec='$libname$release$shared_ext$major' 11442 ;; 11443 11444aix[4-9]*) 11445 version_type=linux # correct to gnu/linux during the next big refactor 11446 need_lib_prefix=no 11447 need_version=no 11448 hardcode_into_libs=yes 11449 if test ia64 = "$host_cpu"; then 11450 # AIX 5 supports IA64 11451 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11452 shlibpath_var=LD_LIBRARY_PATH 11453 else 11454 # With GCC up to 2.95.x, collect2 would create an import file 11455 # for dependence libraries. The import file would start with 11456 # the line '#! .'. This would cause the generated library to 11457 # depend on '.', always an invalid library. This was fixed in 11458 # development snapshots of GCC prior to 3.0. 11459 case $host_os in 11460 aix4 | aix4.[01] | aix4.[01].*) 11461 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11462 echo ' yes ' 11463 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11464 : 11465 else 11466 can_build_shared=no 11467 fi 11468 ;; 11469 esac 11470 # Using Import Files as archive members, it is possible to support 11471 # filename-based versioning of shared library archives on AIX. While 11472 # this would work for both with and without runtime linking, it will 11473 # prevent static linking of such archives. So we do filename-based 11474 # shared library versioning with .so extension only, which is used 11475 # when both runtime linking and shared linking is enabled. 11476 # Unfortunately, runtime linking may impact performance, so we do 11477 # not want this to be the default eventually. Also, we use the 11478 # versioned .so libs for executables only if there is the -brtl 11479 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11480 # To allow for filename-based versioning support, we need to create 11481 # libNAME.so.V as an archive file, containing: 11482 # *) an Import File, referring to the versioned filename of the 11483 # archive as well as the shared archive member, telling the 11484 # bitwidth (32 or 64) of that shared object, and providing the 11485 # list of exported symbols of that shared object, eventually 11486 # decorated with the 'weak' keyword 11487 # *) the shared object with the F_LOADONLY flag set, to really avoid 11488 # it being seen by the linker. 11489 # At run time we better use the real file rather than another symlink, 11490 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11491 11492 case $with_aix_soname,$aix_use_runtimelinking in 11493 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11494 # soname into executable. Probably we can add versioning support to 11495 # collect2, so additional links can be useful in future. 11496 aix,yes) # traditional libtool 11497 dynamic_linker='AIX unversionable lib.so' 11498 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11499 # instead of lib<name>.a to let people know that these are not 11500 # typical AIX shared libraries. 11501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11502 ;; 11503 aix,no) # traditional AIX only 11504 dynamic_linker='AIX lib.a(lib.so.V)' 11505 # We preserve .a as extension for shared libraries through AIX4.2 11506 # and later when we are not doing run time linking. 11507 library_names_spec='$libname$release.a $libname.a' 11508 soname_spec='$libname$release$shared_ext$major' 11509 ;; 11510 svr4,*) # full svr4 only 11511 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11512 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11513 # We do not specify a path in Import Files, so LIBPATH fires. 11514 shlibpath_overrides_runpath=yes 11515 ;; 11516 *,yes) # both, prefer svr4 11517 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11518 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11519 # unpreferred sharedlib libNAME.a needs extra handling 11520 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"' 11521 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"' 11522 # We do not specify a path in Import Files, so LIBPATH fires. 11523 shlibpath_overrides_runpath=yes 11524 ;; 11525 *,no) # both, prefer aix 11526 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11527 library_names_spec='$libname$release.a $libname.a' 11528 soname_spec='$libname$release$shared_ext$major' 11529 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11530 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)' 11531 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"' 11532 ;; 11533 esac 11534 shlibpath_var=LIBPATH 11535 fi 11536 ;; 11537 11538amigaos*) 11539 case $host_cpu in 11540 powerpc) 11541 # Since July 2007 AmigaOS4 officially supports .so libraries. 11542 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11544 ;; 11545 m68k) 11546 library_names_spec='$libname.ixlibrary $libname.a' 11547 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11548 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' 11549 ;; 11550 esac 11551 ;; 11552 11553beos*) 11554 library_names_spec='$libname$shared_ext' 11555 dynamic_linker="$host_os ld.so" 11556 shlibpath_var=LIBRARY_PATH 11557 ;; 11558 11559bsdi[45]*) 11560 version_type=linux # correct to gnu/linux during the next big refactor 11561 need_version=no 11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11563 soname_spec='$libname$release$shared_ext$major' 11564 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11565 shlibpath_var=LD_LIBRARY_PATH 11566 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11567 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11568 # the default ld.so.conf also contains /usr/contrib/lib and 11569 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11570 # libtool to hard-code these into programs 11571 ;; 11572 11573cygwin* | mingw* | pw32* | cegcc*) 11574 version_type=windows 11575 shrext_cmds=.dll 11576 need_version=no 11577 need_lib_prefix=no 11578 11579 case $GCC,$cc_basename in 11580 yes,*) 11581 # gcc 11582 library_names_spec='$libname.dll.a' 11583 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11584 postinstall_cmds='base_file=`basename \$file`~ 11585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11586 dldir=$destdir/`dirname \$dlpath`~ 11587 test -d \$dldir || mkdir -p \$dldir~ 11588 $install_prog $dir/$dlname \$dldir/$dlname~ 11589 chmod a+x \$dldir/$dlname~ 11590 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11591 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11592 fi' 11593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11594 dlpath=$dir/\$dldll~ 11595 $RM \$dlpath' 11596 shlibpath_overrides_runpath=yes 11597 11598 case $host_os in 11599 cygwin*) 11600 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11601 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11602 11603 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11604 ;; 11605 mingw* | cegcc*) 11606 # MinGW DLLs use traditional 'lib' prefix 11607 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11608 ;; 11609 pw32*) 11610 # pw32 DLLs use 'pw' prefix rather than 'lib' 11611 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11612 ;; 11613 esac 11614 dynamic_linker='Win32 ld.exe' 11615 ;; 11616 11617 *,cl*) 11618 # Native MSVC 11619 libname_spec='$name' 11620 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11621 library_names_spec='$libname.dll.lib' 11622 11623 case $build_os in 11624 mingw*) 11625 sys_lib_search_path_spec= 11626 lt_save_ifs=$IFS 11627 IFS=';' 11628 for lt_path in $LIB 11629 do 11630 IFS=$lt_save_ifs 11631 # Let DOS variable expansion print the short 8.3 style file name. 11632 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11633 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11634 done 11635 IFS=$lt_save_ifs 11636 # Convert to MSYS style. 11637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11638 ;; 11639 cygwin*) 11640 # Convert to unix form, then to dos form, then back to unix form 11641 # but this time dos style (no spaces!) so that the unix form looks 11642 # like /cygdrive/c/PROGRA~1:/cygdr... 11643 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11644 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11645 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11646 ;; 11647 *) 11648 sys_lib_search_path_spec=$LIB 11649 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11650 # It is most probably a Windows format PATH. 11651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11652 else 11653 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11654 fi 11655 # FIXME: find the short name or the path components, as spaces are 11656 # common. (e.g. "Program Files" -> "PROGRA~1") 11657 ;; 11658 esac 11659 11660 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11661 postinstall_cmds='base_file=`basename \$file`~ 11662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11663 dldir=$destdir/`dirname \$dlpath`~ 11664 test -d \$dldir || mkdir -p \$dldir~ 11665 $install_prog $dir/$dlname \$dldir/$dlname' 11666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11667 dlpath=$dir/\$dldll~ 11668 $RM \$dlpath' 11669 shlibpath_overrides_runpath=yes 11670 dynamic_linker='Win32 link.exe' 11671 ;; 11672 11673 *) 11674 # Assume MSVC wrapper 11675 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11676 dynamic_linker='Win32 ld.exe' 11677 ;; 11678 esac 11679 # FIXME: first we should search . and the directory the executable is in 11680 shlibpath_var=PATH 11681 ;; 11682 11683darwin* | rhapsody*) 11684 dynamic_linker="$host_os dyld" 11685 version_type=darwin 11686 need_lib_prefix=no 11687 need_version=no 11688 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11689 soname_spec='$libname$release$major$shared_ext' 11690 shlibpath_overrides_runpath=yes 11691 shlibpath_var=DYLD_LIBRARY_PATH 11692 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11693 11694 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11695 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11696 ;; 11697 11698dgux*) 11699 version_type=linux # correct to gnu/linux during the next big refactor 11700 need_lib_prefix=no 11701 need_version=no 11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11703 soname_spec='$libname$release$shared_ext$major' 11704 shlibpath_var=LD_LIBRARY_PATH 11705 ;; 11706 11707freebsd* | dragonfly*) 11708 # DragonFly does not have aout. When/if they implement a new 11709 # versioning mechanism, adjust this. 11710 if test -x /usr/bin/objformat; then 11711 objformat=`/usr/bin/objformat` 11712 else 11713 case $host_os in 11714 freebsd[23].*) objformat=aout ;; 11715 *) objformat=elf ;; 11716 esac 11717 fi 11718 version_type=freebsd-$objformat 11719 case $version_type in 11720 freebsd-elf*) 11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11722 soname_spec='$libname$release$shared_ext$major' 11723 need_version=no 11724 need_lib_prefix=no 11725 ;; 11726 freebsd-*) 11727 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11728 need_version=yes 11729 ;; 11730 esac 11731 shlibpath_var=LD_LIBRARY_PATH 11732 case $host_os in 11733 freebsd2.*) 11734 shlibpath_overrides_runpath=yes 11735 ;; 11736 freebsd3.[01]* | freebsdelf3.[01]*) 11737 shlibpath_overrides_runpath=yes 11738 hardcode_into_libs=yes 11739 ;; 11740 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11741 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11742 shlibpath_overrides_runpath=no 11743 hardcode_into_libs=yes 11744 ;; 11745 *) # from 4.6 on, and DragonFly 11746 shlibpath_overrides_runpath=yes 11747 hardcode_into_libs=yes 11748 ;; 11749 esac 11750 ;; 11751 11752haiku*) 11753 version_type=linux # correct to gnu/linux during the next big refactor 11754 need_lib_prefix=no 11755 need_version=no 11756 dynamic_linker="$host_os runtime_loader" 11757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11758 soname_spec='$libname$release$shared_ext$major' 11759 shlibpath_var=LIBRARY_PATH 11760 shlibpath_overrides_runpath=no 11761 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11762 hardcode_into_libs=yes 11763 ;; 11764 11765hpux9* | hpux10* | hpux11*) 11766 # Give a soname corresponding to the major version so that dld.sl refuses to 11767 # link against other versions. 11768 version_type=sunos 11769 need_lib_prefix=no 11770 need_version=no 11771 case $host_cpu in 11772 ia64*) 11773 shrext_cmds='.so' 11774 hardcode_into_libs=yes 11775 dynamic_linker="$host_os dld.so" 11776 shlibpath_var=LD_LIBRARY_PATH 11777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11779 soname_spec='$libname$release$shared_ext$major' 11780 if test 32 = "$HPUX_IA64_MODE"; then 11781 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11782 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11783 else 11784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11785 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11786 fi 11787 ;; 11788 hppa*64*) 11789 shrext_cmds='.sl' 11790 hardcode_into_libs=yes 11791 dynamic_linker="$host_os dld.sl" 11792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11795 soname_spec='$libname$release$shared_ext$major' 11796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11798 ;; 11799 *) 11800 shrext_cmds='.sl' 11801 dynamic_linker="$host_os dld.sl" 11802 shlibpath_var=SHLIB_PATH 11803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11805 soname_spec='$libname$release$shared_ext$major' 11806 ;; 11807 esac 11808 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11809 postinstall_cmds='chmod 555 $lib' 11810 # or fails outright, so override atomically: 11811 install_override_mode=555 11812 ;; 11813 11814interix[3-9]*) 11815 version_type=linux # correct to gnu/linux during the next big refactor 11816 need_lib_prefix=no 11817 need_version=no 11818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11819 soname_spec='$libname$release$shared_ext$major' 11820 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11821 shlibpath_var=LD_LIBRARY_PATH 11822 shlibpath_overrides_runpath=no 11823 hardcode_into_libs=yes 11824 ;; 11825 11826irix5* | irix6* | nonstopux*) 11827 case $host_os in 11828 nonstopux*) version_type=nonstopux ;; 11829 *) 11830 if test yes = "$lt_cv_prog_gnu_ld"; then 11831 version_type=linux # correct to gnu/linux during the next big refactor 11832 else 11833 version_type=irix 11834 fi ;; 11835 esac 11836 need_lib_prefix=no 11837 need_version=no 11838 soname_spec='$libname$release$shared_ext$major' 11839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11840 case $host_os in 11841 irix5* | nonstopux*) 11842 libsuff= shlibsuff= 11843 ;; 11844 *) 11845 case $LD in # libtool.m4 will add one of these switches to LD 11846 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11847 libsuff= shlibsuff= libmagic=32-bit;; 11848 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11849 libsuff=32 shlibsuff=N32 libmagic=N32;; 11850 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11851 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11852 *) libsuff= shlibsuff= libmagic=never-match;; 11853 esac 11854 ;; 11855 esac 11856 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11857 shlibpath_overrides_runpath=no 11858 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11859 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11860 hardcode_into_libs=yes 11861 ;; 11862 11863# No shared lib support for Linux oldld, aout, or coff. 11864linux*oldld* | linux*aout* | linux*coff*) 11865 dynamic_linker=no 11866 ;; 11867 11868linux*android*) 11869 version_type=none # Android doesn't support versioned libraries. 11870 need_lib_prefix=no 11871 need_version=no 11872 library_names_spec='$libname$release$shared_ext' 11873 soname_spec='$libname$release$shared_ext' 11874 finish_cmds= 11875 shlibpath_var=LD_LIBRARY_PATH 11876 shlibpath_overrides_runpath=yes 11877 11878 # This implies no fast_install, which is unacceptable. 11879 # Some rework will be needed to allow for fast_install 11880 # before this can be enabled. 11881 hardcode_into_libs=yes 11882 11883 dynamic_linker='Android linker' 11884 # Don't embed -rpath directories since the linker doesn't support them. 11885 hardcode_libdir_flag_spec='-L$libdir' 11886 ;; 11887 11888# This must be glibc/ELF. 11889linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11890 version_type=linux # correct to gnu/linux during the next big refactor 11891 need_lib_prefix=no 11892 need_version=no 11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11894 soname_spec='$libname$release$shared_ext$major' 11895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11896 shlibpath_var=LD_LIBRARY_PATH 11897 shlibpath_overrides_runpath=no 11898 11899 # Some binutils ld are patched to set DT_RUNPATH 11900 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11901 $as_echo_n "(cached) " >&6 11902else 11903 lt_cv_shlibpath_overrides_runpath=no 11904 save_LDFLAGS=$LDFLAGS 11905 save_libdir=$libdir 11906 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11907 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11909/* end confdefs.h. */ 11910 11911int 11912main () 11913{ 11914 11915 ; 11916 return 0; 11917} 11918_ACEOF 11919if ac_fn_c_try_link "$LINENO"; then : 11920 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11921 lt_cv_shlibpath_overrides_runpath=yes 11922fi 11923fi 11924rm -f core conftest.err conftest.$ac_objext \ 11925 conftest$ac_exeext conftest.$ac_ext 11926 LDFLAGS=$save_LDFLAGS 11927 libdir=$save_libdir 11928 11929fi 11930 11931 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11932 11933 # This implies no fast_install, which is unacceptable. 11934 # Some rework will be needed to allow for fast_install 11935 # before this can be enabled. 11936 hardcode_into_libs=yes 11937 11938 # Add ABI-specific directories to the system library path. 11939 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11940 11941 # Ideally, we could use ldconfig to report *all* directores which are 11942 # searched for libraries, however this is still not possible. Aside from not 11943 # being certain /sbin/ldconfig is available, command 11944 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11945 # even though it is searched at run-time. Try to do the best guess by 11946 # appending ld.so.conf contents (and includes) to the search path. 11947 if test -f /etc/ld.so.conf; then 11948 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' ' '` 11949 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11950 fi 11951 11952 # We used to test for /lib/ld.so.1 and disable shared libraries on 11953 # powerpc, because MkLinux only supported shared libraries with the 11954 # GNU dynamic linker. Since this was broken with cross compilers, 11955 # most powerpc-linux boxes support dynamic linking these days and 11956 # people can always --disable-shared, the test was removed, and we 11957 # assume the GNU/Linux dynamic linker is in use. 11958 dynamic_linker='GNU/Linux ld.so' 11959 ;; 11960 11961netbsd*) 11962 version_type=sunos 11963 need_lib_prefix=no 11964 need_version=no 11965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11968 dynamic_linker='NetBSD (a.out) ld.so' 11969 else 11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11971 soname_spec='$libname$release$shared_ext$major' 11972 dynamic_linker='NetBSD ld.elf_so' 11973 fi 11974 shlibpath_var=LD_LIBRARY_PATH 11975 shlibpath_overrides_runpath=yes 11976 hardcode_into_libs=yes 11977 ;; 11978 11979newsos6) 11980 version_type=linux # correct to gnu/linux during the next big refactor 11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 shlibpath_overrides_runpath=yes 11984 ;; 11985 11986*nto* | *qnx*) 11987 version_type=qnx 11988 need_lib_prefix=no 11989 need_version=no 11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11991 soname_spec='$libname$release$shared_ext$major' 11992 shlibpath_var=LD_LIBRARY_PATH 11993 shlibpath_overrides_runpath=no 11994 hardcode_into_libs=yes 11995 dynamic_linker='ldqnx.so' 11996 ;; 11997 11998openbsd* | bitrig*) 11999 version_type=sunos 12000 sys_lib_dlsearch_path_spec=/usr/lib 12001 need_lib_prefix=no 12002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12003 need_version=no 12004 else 12005 need_version=yes 12006 fi 12007 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12009 shlibpath_var=LD_LIBRARY_PATH 12010 shlibpath_overrides_runpath=yes 12011 ;; 12012 12013os2*) 12014 libname_spec='$name' 12015 version_type=windows 12016 shrext_cmds=.dll 12017 need_version=no 12018 need_lib_prefix=no 12019 # OS/2 can only load a DLL with a base name of 8 characters or less. 12020 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12021 v=$($ECHO $release$versuffix | tr -d .-); 12022 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12023 $ECHO $n$v`$shared_ext' 12024 library_names_spec='${libname}_dll.$libext' 12025 dynamic_linker='OS/2 ld.exe' 12026 shlibpath_var=BEGINLIBPATH 12027 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12029 postinstall_cmds='base_file=`basename \$file`~ 12030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12031 dldir=$destdir/`dirname \$dlpath`~ 12032 test -d \$dldir || mkdir -p \$dldir~ 12033 $install_prog $dir/$dlname \$dldir/$dlname~ 12034 chmod a+x \$dldir/$dlname~ 12035 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12036 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12037 fi' 12038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12039 dlpath=$dir/\$dldll~ 12040 $RM \$dlpath' 12041 ;; 12042 12043osf3* | osf4* | osf5*) 12044 version_type=osf 12045 need_lib_prefix=no 12046 need_version=no 12047 soname_spec='$libname$release$shared_ext$major' 12048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12049 shlibpath_var=LD_LIBRARY_PATH 12050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12052 ;; 12053 12054rdos*) 12055 dynamic_linker=no 12056 ;; 12057 12058solaris*) 12059 version_type=linux # correct to gnu/linux during the next big refactor 12060 need_lib_prefix=no 12061 need_version=no 12062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12063 soname_spec='$libname$release$shared_ext$major' 12064 shlibpath_var=LD_LIBRARY_PATH 12065 shlibpath_overrides_runpath=yes 12066 hardcode_into_libs=yes 12067 # ldd complains unless libraries are executable 12068 postinstall_cmds='chmod +x $lib' 12069 ;; 12070 12071sunos4*) 12072 version_type=sunos 12073 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12075 shlibpath_var=LD_LIBRARY_PATH 12076 shlibpath_overrides_runpath=yes 12077 if test yes = "$with_gnu_ld"; then 12078 need_lib_prefix=no 12079 fi 12080 need_version=yes 12081 ;; 12082 12083sysv4 | sysv4.3*) 12084 version_type=linux # correct to gnu/linux during the next big refactor 12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12086 soname_spec='$libname$release$shared_ext$major' 12087 shlibpath_var=LD_LIBRARY_PATH 12088 case $host_vendor in 12089 sni) 12090 shlibpath_overrides_runpath=no 12091 need_lib_prefix=no 12092 runpath_var=LD_RUN_PATH 12093 ;; 12094 siemens) 12095 need_lib_prefix=no 12096 ;; 12097 motorola) 12098 need_lib_prefix=no 12099 need_version=no 12100 shlibpath_overrides_runpath=no 12101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12102 ;; 12103 esac 12104 ;; 12105 12106sysv4*MP*) 12107 if test -d /usr/nec; then 12108 version_type=linux # correct to gnu/linux during the next big refactor 12109 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12110 soname_spec='$libname$shared_ext.$major' 12111 shlibpath_var=LD_LIBRARY_PATH 12112 fi 12113 ;; 12114 12115sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12116 version_type=sco 12117 need_lib_prefix=no 12118 need_version=no 12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12120 soname_spec='$libname$release$shared_ext$major' 12121 shlibpath_var=LD_LIBRARY_PATH 12122 shlibpath_overrides_runpath=yes 12123 hardcode_into_libs=yes 12124 if test yes = "$with_gnu_ld"; then 12125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12126 else 12127 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12128 case $host_os in 12129 sco3.2v5*) 12130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12131 ;; 12132 esac 12133 fi 12134 sys_lib_dlsearch_path_spec='/usr/lib' 12135 ;; 12136 12137tpf*) 12138 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12139 version_type=linux # correct to gnu/linux during the next big refactor 12140 need_lib_prefix=no 12141 need_version=no 12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12143 shlibpath_var=LD_LIBRARY_PATH 12144 shlibpath_overrides_runpath=no 12145 hardcode_into_libs=yes 12146 ;; 12147 12148uts4*) 12149 version_type=linux # correct to gnu/linux during the next big refactor 12150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12151 soname_spec='$libname$release$shared_ext$major' 12152 shlibpath_var=LD_LIBRARY_PATH 12153 ;; 12154 12155*) 12156 dynamic_linker=no 12157 ;; 12158esac 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12160$as_echo "$dynamic_linker" >&6; } 12161test no = "$dynamic_linker" && can_build_shared=no 12162 12163variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12164if test yes = "$GCC"; then 12165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12166fi 12167 12168if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12169 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12170fi 12171 12172if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12173 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12174fi 12175 12176# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12177configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12178 12179# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12180func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12181 12182# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12183configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12282$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12283hardcode_action= 12284if test -n "$hardcode_libdir_flag_spec" || 12285 test -n "$runpath_var" || 12286 test yes = "$hardcode_automatic"; then 12287 12288 # We can hardcode non-existent directories. 12289 if test no != "$hardcode_direct" && 12290 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12291 # have to relink, otherwise we might link with an installed library 12292 # when we should be linking with a yet-to-be-installed one 12293 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12294 test no != "$hardcode_minus_L"; then 12295 # Linking always hardcodes the temporary library directory. 12296 hardcode_action=relink 12297 else 12298 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12299 hardcode_action=immediate 12300 fi 12301else 12302 # We cannot hardcode anything, or else we can only hardcode existing 12303 # directories. 12304 hardcode_action=unsupported 12305fi 12306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12307$as_echo "$hardcode_action" >&6; } 12308 12309if test relink = "$hardcode_action" || 12310 test yes = "$inherit_rpath"; then 12311 # Fast installation is not supported 12312 enable_fast_install=no 12313elif test yes = "$shlibpath_overrides_runpath" || 12314 test no = "$enable_shared"; then 12315 # Fast installation is not necessary 12316 enable_fast_install=needless 12317fi 12318 12319 12320 12321 12322 12323 12324 if test yes != "$enable_dlopen"; then 12325 enable_dlopen=unknown 12326 enable_dlopen_self=unknown 12327 enable_dlopen_self_static=unknown 12328else 12329 lt_cv_dlopen=no 12330 lt_cv_dlopen_libs= 12331 12332 case $host_os in 12333 beos*) 12334 lt_cv_dlopen=load_add_on 12335 lt_cv_dlopen_libs= 12336 lt_cv_dlopen_self=yes 12337 ;; 12338 12339 mingw* | pw32* | cegcc*) 12340 lt_cv_dlopen=LoadLibrary 12341 lt_cv_dlopen_libs= 12342 ;; 12343 12344 cygwin*) 12345 lt_cv_dlopen=dlopen 12346 lt_cv_dlopen_libs= 12347 ;; 12348 12349 darwin*) 12350 # if libdl is installed we need to link against it 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12352$as_echo_n "checking for dlopen in -ldl... " >&6; } 12353if ${ac_cv_lib_dl_dlopen+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 ac_check_lib_save_LIBS=$LIBS 12357LIBS="-ldl $LIBS" 12358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12359/* end confdefs.h. */ 12360 12361/* Override any GCC internal prototype to avoid an error. 12362 Use char because int might match the return type of a GCC 12363 builtin and then its argument prototype would still apply. */ 12364#ifdef __cplusplus 12365extern "C" 12366#endif 12367char dlopen (); 12368int 12369main () 12370{ 12371return dlopen (); 12372 ; 12373 return 0; 12374} 12375_ACEOF 12376if ac_fn_c_try_link "$LINENO"; then : 12377 ac_cv_lib_dl_dlopen=yes 12378else 12379 ac_cv_lib_dl_dlopen=no 12380fi 12381rm -f core conftest.err conftest.$ac_objext \ 12382 conftest$ac_exeext conftest.$ac_ext 12383LIBS=$ac_check_lib_save_LIBS 12384fi 12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12386$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12387if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12388 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12389else 12390 12391 lt_cv_dlopen=dyld 12392 lt_cv_dlopen_libs= 12393 lt_cv_dlopen_self=yes 12394 12395fi 12396 12397 ;; 12398 12399 tpf*) 12400 # Don't try to run any link tests for TPF. We know it's impossible 12401 # because TPF is a cross-compiler, and we know how we open DSOs. 12402 lt_cv_dlopen=dlopen 12403 lt_cv_dlopen_libs= 12404 lt_cv_dlopen_self=no 12405 ;; 12406 12407 *) 12408 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12409if test "x$ac_cv_func_shl_load" = xyes; then : 12410 lt_cv_dlopen=shl_load 12411else 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12413$as_echo_n "checking for shl_load in -ldld... " >&6; } 12414if ${ac_cv_lib_dld_shl_load+:} false; then : 12415 $as_echo_n "(cached) " >&6 12416else 12417 ac_check_lib_save_LIBS=$LIBS 12418LIBS="-ldld $LIBS" 12419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12420/* end confdefs.h. */ 12421 12422/* Override any GCC internal prototype to avoid an error. 12423 Use char because int might match the return type of a GCC 12424 builtin and then its argument prototype would still apply. */ 12425#ifdef __cplusplus 12426extern "C" 12427#endif 12428char shl_load (); 12429int 12430main () 12431{ 12432return shl_load (); 12433 ; 12434 return 0; 12435} 12436_ACEOF 12437if ac_fn_c_try_link "$LINENO"; then : 12438 ac_cv_lib_dld_shl_load=yes 12439else 12440 ac_cv_lib_dld_shl_load=no 12441fi 12442rm -f core conftest.err conftest.$ac_objext \ 12443 conftest$ac_exeext conftest.$ac_ext 12444LIBS=$ac_check_lib_save_LIBS 12445fi 12446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12447$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12448if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12449 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12450else 12451 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12452if test "x$ac_cv_func_dlopen" = xyes; then : 12453 lt_cv_dlopen=dlopen 12454else 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12456$as_echo_n "checking for dlopen in -ldl... " >&6; } 12457if ${ac_cv_lib_dl_dlopen+:} false; then : 12458 $as_echo_n "(cached) " >&6 12459else 12460 ac_check_lib_save_LIBS=$LIBS 12461LIBS="-ldl $LIBS" 12462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12463/* end confdefs.h. */ 12464 12465/* Override any GCC internal prototype to avoid an error. 12466 Use char because int might match the return type of a GCC 12467 builtin and then its argument prototype would still apply. */ 12468#ifdef __cplusplus 12469extern "C" 12470#endif 12471char dlopen (); 12472int 12473main () 12474{ 12475return dlopen (); 12476 ; 12477 return 0; 12478} 12479_ACEOF 12480if ac_fn_c_try_link "$LINENO"; then : 12481 ac_cv_lib_dl_dlopen=yes 12482else 12483 ac_cv_lib_dl_dlopen=no 12484fi 12485rm -f core conftest.err conftest.$ac_objext \ 12486 conftest$ac_exeext conftest.$ac_ext 12487LIBS=$ac_check_lib_save_LIBS 12488fi 12489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12490$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12491if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12492 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12493else 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12495$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12496if ${ac_cv_lib_svld_dlopen+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 ac_check_lib_save_LIBS=$LIBS 12500LIBS="-lsvld $LIBS" 12501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12502/* end confdefs.h. */ 12503 12504/* Override any GCC internal prototype to avoid an error. 12505 Use char because int might match the return type of a GCC 12506 builtin and then its argument prototype would still apply. */ 12507#ifdef __cplusplus 12508extern "C" 12509#endif 12510char dlopen (); 12511int 12512main () 12513{ 12514return dlopen (); 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519if ac_fn_c_try_link "$LINENO"; then : 12520 ac_cv_lib_svld_dlopen=yes 12521else 12522 ac_cv_lib_svld_dlopen=no 12523fi 12524rm -f core conftest.err conftest.$ac_objext \ 12525 conftest$ac_exeext conftest.$ac_ext 12526LIBS=$ac_check_lib_save_LIBS 12527fi 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12529$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12530if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12531 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12532else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12534$as_echo_n "checking for dld_link in -ldld... " >&6; } 12535if ${ac_cv_lib_dld_dld_link+:} false; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 ac_check_lib_save_LIBS=$LIBS 12539LIBS="-ldld $LIBS" 12540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12541/* end confdefs.h. */ 12542 12543/* Override any GCC internal prototype to avoid an error. 12544 Use char because int might match the return type of a GCC 12545 builtin and then its argument prototype would still apply. */ 12546#ifdef __cplusplus 12547extern "C" 12548#endif 12549char dld_link (); 12550int 12551main () 12552{ 12553return dld_link (); 12554 ; 12555 return 0; 12556} 12557_ACEOF 12558if ac_fn_c_try_link "$LINENO"; then : 12559 ac_cv_lib_dld_dld_link=yes 12560else 12561 ac_cv_lib_dld_dld_link=no 12562fi 12563rm -f core conftest.err conftest.$ac_objext \ 12564 conftest$ac_exeext conftest.$ac_ext 12565LIBS=$ac_check_lib_save_LIBS 12566fi 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12568$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12569if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12570 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12571fi 12572 12573 12574fi 12575 12576 12577fi 12578 12579 12580fi 12581 12582 12583fi 12584 12585 12586fi 12587 12588 ;; 12589 esac 12590 12591 if test no = "$lt_cv_dlopen"; then 12592 enable_dlopen=no 12593 else 12594 enable_dlopen=yes 12595 fi 12596 12597 case $lt_cv_dlopen in 12598 dlopen) 12599 save_CPPFLAGS=$CPPFLAGS 12600 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12601 12602 save_LDFLAGS=$LDFLAGS 12603 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12604 12605 save_LIBS=$LIBS 12606 LIBS="$lt_cv_dlopen_libs $LIBS" 12607 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12609$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12610if ${lt_cv_dlopen_self+:} false; then : 12611 $as_echo_n "(cached) " >&6 12612else 12613 if test yes = "$cross_compiling"; then : 12614 lt_cv_dlopen_self=cross 12615else 12616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12617 lt_status=$lt_dlunknown 12618 cat > conftest.$ac_ext <<_LT_EOF 12619#line $LINENO "configure" 12620#include "confdefs.h" 12621 12622#if HAVE_DLFCN_H 12623#include <dlfcn.h> 12624#endif 12625 12626#include <stdio.h> 12627 12628#ifdef RTLD_GLOBAL 12629# define LT_DLGLOBAL RTLD_GLOBAL 12630#else 12631# ifdef DL_GLOBAL 12632# define LT_DLGLOBAL DL_GLOBAL 12633# else 12634# define LT_DLGLOBAL 0 12635# endif 12636#endif 12637 12638/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12639 find out it does not work in some platform. */ 12640#ifndef LT_DLLAZY_OR_NOW 12641# ifdef RTLD_LAZY 12642# define LT_DLLAZY_OR_NOW RTLD_LAZY 12643# else 12644# ifdef DL_LAZY 12645# define LT_DLLAZY_OR_NOW DL_LAZY 12646# else 12647# ifdef RTLD_NOW 12648# define LT_DLLAZY_OR_NOW RTLD_NOW 12649# else 12650# ifdef DL_NOW 12651# define LT_DLLAZY_OR_NOW DL_NOW 12652# else 12653# define LT_DLLAZY_OR_NOW 0 12654# endif 12655# endif 12656# endif 12657# endif 12658#endif 12659 12660/* When -fvisibility=hidden is used, assume the code has been annotated 12661 correspondingly for the symbols needed. */ 12662#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12663int fnord () __attribute__((visibility("default"))); 12664#endif 12665 12666int fnord () { return 42; } 12667int main () 12668{ 12669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12670 int status = $lt_dlunknown; 12671 12672 if (self) 12673 { 12674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12675 else 12676 { 12677 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12678 else puts (dlerror ()); 12679 } 12680 /* dlclose (self); */ 12681 } 12682 else 12683 puts (dlerror ()); 12684 12685 return status; 12686} 12687_LT_EOF 12688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12689 (eval $ac_link) 2>&5 12690 ac_status=$? 12691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12692 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12693 (./conftest; exit; ) >&5 2>/dev/null 12694 lt_status=$? 12695 case x$lt_status in 12696 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12697 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12698 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12699 esac 12700 else : 12701 # compilation failed 12702 lt_cv_dlopen_self=no 12703 fi 12704fi 12705rm -fr conftest* 12706 12707 12708fi 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12710$as_echo "$lt_cv_dlopen_self" >&6; } 12711 12712 if test yes = "$lt_cv_dlopen_self"; then 12713 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12715$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12716if ${lt_cv_dlopen_self_static+:} false; then : 12717 $as_echo_n "(cached) " >&6 12718else 12719 if test yes = "$cross_compiling"; then : 12720 lt_cv_dlopen_self_static=cross 12721else 12722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12723 lt_status=$lt_dlunknown 12724 cat > conftest.$ac_ext <<_LT_EOF 12725#line $LINENO "configure" 12726#include "confdefs.h" 12727 12728#if HAVE_DLFCN_H 12729#include <dlfcn.h> 12730#endif 12731 12732#include <stdio.h> 12733 12734#ifdef RTLD_GLOBAL 12735# define LT_DLGLOBAL RTLD_GLOBAL 12736#else 12737# ifdef DL_GLOBAL 12738# define LT_DLGLOBAL DL_GLOBAL 12739# else 12740# define LT_DLGLOBAL 0 12741# endif 12742#endif 12743 12744/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12745 find out it does not work in some platform. */ 12746#ifndef LT_DLLAZY_OR_NOW 12747# ifdef RTLD_LAZY 12748# define LT_DLLAZY_OR_NOW RTLD_LAZY 12749# else 12750# ifdef DL_LAZY 12751# define LT_DLLAZY_OR_NOW DL_LAZY 12752# else 12753# ifdef RTLD_NOW 12754# define LT_DLLAZY_OR_NOW RTLD_NOW 12755# else 12756# ifdef DL_NOW 12757# define LT_DLLAZY_OR_NOW DL_NOW 12758# else 12759# define LT_DLLAZY_OR_NOW 0 12760# endif 12761# endif 12762# endif 12763# endif 12764#endif 12765 12766/* When -fvisibility=hidden is used, assume the code has been annotated 12767 correspondingly for the symbols needed. */ 12768#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12769int fnord () __attribute__((visibility("default"))); 12770#endif 12771 12772int fnord () { return 42; } 12773int main () 12774{ 12775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12776 int status = $lt_dlunknown; 12777 12778 if (self) 12779 { 12780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12781 else 12782 { 12783 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12784 else puts (dlerror ()); 12785 } 12786 /* dlclose (self); */ 12787 } 12788 else 12789 puts (dlerror ()); 12790 12791 return status; 12792} 12793_LT_EOF 12794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12795 (eval $ac_link) 2>&5 12796 ac_status=$? 12797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12798 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12799 (./conftest; exit; ) >&5 2>/dev/null 12800 lt_status=$? 12801 case x$lt_status in 12802 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12803 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12804 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12805 esac 12806 else : 12807 # compilation failed 12808 lt_cv_dlopen_self_static=no 12809 fi 12810fi 12811rm -fr conftest* 12812 12813 12814fi 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12816$as_echo "$lt_cv_dlopen_self_static" >&6; } 12817 fi 12818 12819 CPPFLAGS=$save_CPPFLAGS 12820 LDFLAGS=$save_LDFLAGS 12821 LIBS=$save_LIBS 12822 ;; 12823 esac 12824 12825 case $lt_cv_dlopen_self in 12826 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12827 *) enable_dlopen_self=unknown ;; 12828 esac 12829 12830 case $lt_cv_dlopen_self_static in 12831 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12832 *) enable_dlopen_self_static=unknown ;; 12833 esac 12834fi 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852striplib= 12853old_striplib= 12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12855$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12856if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12857 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12858 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12860$as_echo "yes" >&6; } 12861else 12862# FIXME - insert some real tests, host_os isn't really good enough 12863 case $host_os in 12864 darwin*) 12865 if test -n "$STRIP"; then 12866 striplib="$STRIP -x" 12867 old_striplib="$STRIP -S" 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12869$as_echo "yes" >&6; } 12870 else 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12872$as_echo "no" >&6; } 12873 fi 12874 ;; 12875 *) 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12877$as_echo "no" >&6; } 12878 ;; 12879 esac 12880fi 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 # Report what library types will actually be built 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12895$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12897$as_echo "$can_build_shared" >&6; } 12898 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12900$as_echo_n "checking whether to build shared libraries... " >&6; } 12901 test no = "$can_build_shared" && enable_shared=no 12902 12903 # On AIX, shared libraries and static libraries use the same namespace, and 12904 # are all built from PIC. 12905 case $host_os in 12906 aix3*) 12907 test yes = "$enable_shared" && enable_static=no 12908 if test -n "$RANLIB"; then 12909 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12910 postinstall_cmds='$RANLIB $lib' 12911 fi 12912 ;; 12913 12914 aix[4-9]*) 12915 if test ia64 != "$host_cpu"; then 12916 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12917 yes,aix,yes) ;; # shared object as lib.so file only 12918 yes,svr4,*) ;; # shared object as lib.so archive member only 12919 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12920 esac 12921 fi 12922 ;; 12923 esac 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12925$as_echo "$enable_shared" >&6; } 12926 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12928$as_echo_n "checking whether to build static libraries... " >&6; } 12929 # Make sure either enable_shared or enable_static is yes. 12930 test yes = "$enable_shared" || enable_static=yes 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12932$as_echo "$enable_static" >&6; } 12933 12934 12935 12936 12937fi 12938ac_ext=c 12939ac_cpp='$CPP $CPPFLAGS' 12940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12942ac_compiler_gnu=$ac_cv_c_compiler_gnu 12943 12944CC=$lt_save_CC 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 ac_config_commands="$ac_config_commands libtool" 12961 12962 12963 12964 12965# Only expand once: 12966 12967 12968 12969if test "$GCC" = yes ; then 12970 CXXFLAGS="$CXXFLAGS -Wall" 12971 CFLAGS="$CFLAGS -Wall" 12972fi 12973 12974CFLAGS="$CFLAGS -I.. -I$srcdir/.." 12975 12976 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12978$as_echo_n "checking for ANSI C header files... " >&6; } 12979if ${ac_cv_header_stdc+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981else 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984#include <stdlib.h> 12985#include <stdarg.h> 12986#include <string.h> 12987#include <float.h> 12988 12989int 12990main () 12991{ 12992 12993 ; 12994 return 0; 12995} 12996_ACEOF 12997if ac_fn_c_try_compile "$LINENO"; then : 12998 ac_cv_header_stdc=yes 12999else 13000 ac_cv_header_stdc=no 13001fi 13002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13003 13004if test $ac_cv_header_stdc = yes; then 13005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13007/* end confdefs.h. */ 13008#include <string.h> 13009 13010_ACEOF 13011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13012 $EGREP "memchr" >/dev/null 2>&1; then : 13013 13014else 13015 ac_cv_header_stdc=no 13016fi 13017rm -f conftest* 13018 13019fi 13020 13021if test $ac_cv_header_stdc = yes; then 13022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13024/* end confdefs.h. */ 13025#include <stdlib.h> 13026 13027_ACEOF 13028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13029 $EGREP "free" >/dev/null 2>&1; then : 13030 13031else 13032 ac_cv_header_stdc=no 13033fi 13034rm -f conftest* 13035 13036fi 13037 13038if test $ac_cv_header_stdc = yes; then 13039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13040 if test "$cross_compiling" = yes; then : 13041 : 13042else 13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13044/* end confdefs.h. */ 13045#include <ctype.h> 13046#include <stdlib.h> 13047#if ((' ' & 0x0FF) == 0x020) 13048# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13049# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13050#else 13051# define ISLOWER(c) \ 13052 (('a' <= (c) && (c) <= 'i') \ 13053 || ('j' <= (c) && (c) <= 'r') \ 13054 || ('s' <= (c) && (c) <= 'z')) 13055# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13056#endif 13057 13058#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13059int 13060main () 13061{ 13062 int i; 13063 for (i = 0; i < 256; i++) 13064 if (XOR (islower (i), ISLOWER (i)) 13065 || toupper (i) != TOUPPER (i)) 13066 return 2; 13067 return 0; 13068} 13069_ACEOF 13070if ac_fn_c_try_run "$LINENO"; then : 13071 13072else 13073 ac_cv_header_stdc=no 13074fi 13075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13076 conftest.$ac_objext conftest.beam conftest.$ac_ext 13077fi 13078 13079fi 13080fi 13081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13082$as_echo "$ac_cv_header_stdc" >&6; } 13083if test $ac_cv_header_stdc = yes; then 13084 13085$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13086 13087fi 13088 13089for ac_header in locale.h 13090do : 13091 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 13092if test "x$ac_cv_header_locale_h" = xyes; then : 13093 cat >>confdefs.h <<_ACEOF 13094#define HAVE_LOCALE_H 1 13095_ACEOF 13096 13097fi 13098 13099done 13100 13101 13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13103$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13104if ${ac_cv_c_const+:} false; then : 13105 $as_echo_n "(cached) " >&6 13106else 13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13108/* end confdefs.h. */ 13109 13110int 13111main () 13112{ 13113 13114#ifndef __cplusplus 13115 /* Ultrix mips cc rejects this sort of thing. */ 13116 typedef int charset[2]; 13117 const charset cs = { 0, 0 }; 13118 /* SunOS 4.1.1 cc rejects this. */ 13119 char const *const *pcpcc; 13120 char **ppc; 13121 /* NEC SVR4.0.2 mips cc rejects this. */ 13122 struct point {int x, y;}; 13123 static struct point const zero = {0,0}; 13124 /* AIX XL C 1.02.0.0 rejects this. 13125 It does not let you subtract one const X* pointer from another in 13126 an arm of an if-expression whose if-part is not a constant 13127 expression */ 13128 const char *g = "string"; 13129 pcpcc = &g + (g ? g-g : 0); 13130 /* HPUX 7.0 cc rejects these. */ 13131 ++pcpcc; 13132 ppc = (char**) pcpcc; 13133 pcpcc = (char const *const *) ppc; 13134 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13135 char tx; 13136 char *t = &tx; 13137 char const *s = 0 ? (char *) 0 : (char const *) 0; 13138 13139 *t++ = 0; 13140 if (s) return 0; 13141 } 13142 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13143 int x[] = {25, 17}; 13144 const int *foo = &x[0]; 13145 ++foo; 13146 } 13147 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13148 typedef const int *iptr; 13149 iptr p = 0; 13150 ++p; 13151 } 13152 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13154 struct s { int j; const int *ap[3]; } bx; 13155 struct s *b = &bx; b->j = 5; 13156 } 13157 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13158 const int foo = 10; 13159 if (!foo) return 0; 13160 } 13161 return !cs[0] && !zero.x; 13162#endif 13163 13164 ; 13165 return 0; 13166} 13167_ACEOF 13168if ac_fn_c_try_compile "$LINENO"; then : 13169 ac_cv_c_const=yes 13170else 13171 ac_cv_c_const=no 13172fi 13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13174fi 13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13176$as_echo "$ac_cv_c_const" >&6; } 13177if test $ac_cv_c_const = no; then 13178 13179$as_echo "#define const /**/" >>confdefs.h 13180 13181fi 13182 13183ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13184if test "x$ac_cv_type_size_t" = xyes; then : 13185 13186else 13187 13188cat >>confdefs.h <<_ACEOF 13189#define size_t unsigned int 13190_ACEOF 13191 13192fi 13193 13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13195$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13196if ${ac_cv_struct_tm+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198else 13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201#include <sys/types.h> 13202#include <time.h> 13203 13204int 13205main () 13206{ 13207struct tm tm; 13208 int *p = &tm.tm_sec; 13209 return !p; 13210 ; 13211 return 0; 13212} 13213_ACEOF 13214if ac_fn_c_try_compile "$LINENO"; then : 13215 ac_cv_struct_tm=time.h 13216else 13217 ac_cv_struct_tm=sys/time.h 13218fi 13219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13220fi 13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13222$as_echo "$ac_cv_struct_tm" >&6; } 13223if test $ac_cv_struct_tm = sys/time.h; then 13224 13225$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13226 13227fi 13228 13229# Check whether --enable-largefile was given. 13230if test "${enable_largefile+set}" = set; then : 13231 enableval=$enable_largefile; 13232fi 13233 13234if test "$enable_largefile" != no; then 13235 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13237$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13238if ${ac_cv_sys_largefile_CC+:} false; then : 13239 $as_echo_n "(cached) " >&6 13240else 13241 ac_cv_sys_largefile_CC=no 13242 if test "$GCC" != yes; then 13243 ac_save_CC=$CC 13244 while :; do 13245 # IRIX 6.2 and later do not support large files by default, 13246 # so use the C compiler's -n32 option if that helps. 13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13248/* end confdefs.h. */ 13249#include <sys/types.h> 13250 /* Check that off_t can represent 2**63 - 1 correctly. 13251 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13252 since some C++ compilers masquerading as C compilers 13253 incorrectly reject 9223372036854775807. */ 13254#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13256 && LARGE_OFF_T % 2147483647 == 1) 13257 ? 1 : -1]; 13258int 13259main () 13260{ 13261 13262 ; 13263 return 0; 13264} 13265_ACEOF 13266 if ac_fn_c_try_compile "$LINENO"; then : 13267 break 13268fi 13269rm -f core conftest.err conftest.$ac_objext 13270 CC="$CC -n32" 13271 if ac_fn_c_try_compile "$LINENO"; then : 13272 ac_cv_sys_largefile_CC=' -n32'; break 13273fi 13274rm -f core conftest.err conftest.$ac_objext 13275 break 13276 done 13277 CC=$ac_save_CC 13278 rm -f conftest.$ac_ext 13279 fi 13280fi 13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13282$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13283 if test "$ac_cv_sys_largefile_CC" != no; then 13284 CC=$CC$ac_cv_sys_largefile_CC 13285 fi 13286 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13288$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13289if ${ac_cv_sys_file_offset_bits+:} false; then : 13290 $as_echo_n "(cached) " >&6 13291else 13292 while :; do 13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13294/* end confdefs.h. */ 13295#include <sys/types.h> 13296 /* Check that off_t can represent 2**63 - 1 correctly. 13297 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13298 since some C++ compilers masquerading as C compilers 13299 incorrectly reject 9223372036854775807. */ 13300#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13302 && LARGE_OFF_T % 2147483647 == 1) 13303 ? 1 : -1]; 13304int 13305main () 13306{ 13307 13308 ; 13309 return 0; 13310} 13311_ACEOF 13312if ac_fn_c_try_compile "$LINENO"; then : 13313 ac_cv_sys_file_offset_bits=no; break 13314fi 13315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13317/* end confdefs.h. */ 13318#define _FILE_OFFSET_BITS 64 13319#include <sys/types.h> 13320 /* Check that off_t can represent 2**63 - 1 correctly. 13321 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13322 since some C++ compilers masquerading as C compilers 13323 incorrectly reject 9223372036854775807. */ 13324#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13326 && LARGE_OFF_T % 2147483647 == 1) 13327 ? 1 : -1]; 13328int 13329main () 13330{ 13331 13332 ; 13333 return 0; 13334} 13335_ACEOF 13336if ac_fn_c_try_compile "$LINENO"; then : 13337 ac_cv_sys_file_offset_bits=64; break 13338fi 13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13340 ac_cv_sys_file_offset_bits=unknown 13341 break 13342done 13343fi 13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13345$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13346case $ac_cv_sys_file_offset_bits in #( 13347 no | unknown) ;; 13348 *) 13349cat >>confdefs.h <<_ACEOF 13350#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13351_ACEOF 13352;; 13353esac 13354rm -rf conftest* 13355 if test $ac_cv_sys_file_offset_bits = unknown; then 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13357$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13358if ${ac_cv_sys_large_files+:} false; then : 13359 $as_echo_n "(cached) " >&6 13360else 13361 while :; do 13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13363/* end confdefs.h. */ 13364#include <sys/types.h> 13365 /* Check that off_t can represent 2**63 - 1 correctly. 13366 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13367 since some C++ compilers masquerading as C compilers 13368 incorrectly reject 9223372036854775807. */ 13369#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13371 && LARGE_OFF_T % 2147483647 == 1) 13372 ? 1 : -1]; 13373int 13374main () 13375{ 13376 13377 ; 13378 return 0; 13379} 13380_ACEOF 13381if ac_fn_c_try_compile "$LINENO"; then : 13382 ac_cv_sys_large_files=no; break 13383fi 13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13386/* end confdefs.h. */ 13387#define _LARGE_FILES 1 13388#include <sys/types.h> 13389 /* Check that off_t can represent 2**63 - 1 correctly. 13390 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13391 since some C++ compilers masquerading as C compilers 13392 incorrectly reject 9223372036854775807. */ 13393#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13395 && LARGE_OFF_T % 2147483647 == 1) 13396 ? 1 : -1]; 13397int 13398main () 13399{ 13400 13401 ; 13402 return 0; 13403} 13404_ACEOF 13405if ac_fn_c_try_compile "$LINENO"; then : 13406 ac_cv_sys_large_files=1; break 13407fi 13408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13409 ac_cv_sys_large_files=unknown 13410 break 13411done 13412fi 13413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13414$as_echo "$ac_cv_sys_large_files" >&6; } 13415case $ac_cv_sys_large_files in #( 13416 no | unknown) ;; 13417 *) 13418cat >>confdefs.h <<_ACEOF 13419#define _LARGE_FILES $ac_cv_sys_large_files 13420_ACEOF 13421;; 13422esac 13423rm -rf conftest* 13424 fi 13425 13426 13427fi 13428 13429 13430 13431 13432# Check whether --with-libidn was given. 13433if test "${with_libidn+set}" = set; then : 13434 withval=$with_libidn; libidn=$withval 13435else 13436 libidn=yes 13437fi 13438 13439 13440if test "$libidn" != "no" 13441then 13442 13443 13444 13445 13446 13447 13448 13449if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13450 if test -n "$ac_tool_prefix"; then 13451 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13452set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13454$as_echo_n "checking for $ac_word... " >&6; } 13455if ${ac_cv_path_PKG_CONFIG+:} false; then : 13456 $as_echo_n "(cached) " >&6 13457else 13458 case $PKG_CONFIG in 13459 [\\/]* | ?:[\\/]*) 13460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13461 ;; 13462 *) 13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13464for as_dir in $PATH 13465do 13466 IFS=$as_save_IFS 13467 test -z "$as_dir" && as_dir=. 13468 for ac_exec_ext in '' $ac_executable_extensions; do 13469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13472 break 2 13473 fi 13474done 13475 done 13476IFS=$as_save_IFS 13477 13478 ;; 13479esac 13480fi 13481PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13482if test -n "$PKG_CONFIG"; then 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13484$as_echo "$PKG_CONFIG" >&6; } 13485else 13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13487$as_echo "no" >&6; } 13488fi 13489 13490 13491fi 13492if test -z "$ac_cv_path_PKG_CONFIG"; then 13493 ac_pt_PKG_CONFIG=$PKG_CONFIG 13494 # Extract the first word of "pkg-config", so it can be a program name with args. 13495set dummy pkg-config; ac_word=$2 13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13497$as_echo_n "checking for $ac_word... " >&6; } 13498if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13499 $as_echo_n "(cached) " >&6 13500else 13501 case $ac_pt_PKG_CONFIG in 13502 [\\/]* | ?:[\\/]*) 13503 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13504 ;; 13505 *) 13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13507for as_dir in $PATH 13508do 13509 IFS=$as_save_IFS 13510 test -z "$as_dir" && as_dir=. 13511 for ac_exec_ext in '' $ac_executable_extensions; do 13512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13513 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13515 break 2 13516 fi 13517done 13518 done 13519IFS=$as_save_IFS 13520 13521 ;; 13522esac 13523fi 13524ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13525if test -n "$ac_pt_PKG_CONFIG"; then 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13527$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13528else 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13530$as_echo "no" >&6; } 13531fi 13532 13533 if test "x$ac_pt_PKG_CONFIG" = x; then 13534 PKG_CONFIG="" 13535 else 13536 case $cross_compiling:$ac_tool_warned in 13537yes:) 13538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13540ac_tool_warned=yes ;; 13541esac 13542 PKG_CONFIG=$ac_pt_PKG_CONFIG 13543 fi 13544else 13545 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13546fi 13547 13548fi 13549if test -n "$PKG_CONFIG"; then 13550 _pkg_min_version=0.9.0 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13552$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13553 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13555$as_echo "yes" >&6; } 13556 else 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13558$as_echo "no" >&6; } 13559 PKG_CONFIG="" 13560 fi 13561fi 13562 13563pkg_failed=no 13564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5 13565$as_echo_n "checking for LIBIDN... " >&6; } 13566 13567if test -n "$LIBIDN_CFLAGS"; then 13568 pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS" 13569 elif test -n "$PKG_CONFIG"; then 13570 if test -n "$PKG_CONFIG" && \ 13571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 13572 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 13573 ac_status=$? 13574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13575 test $ac_status = 0; }; then 13576 pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null` 13577 test "x$?" != "x0" && pkg_failed=yes 13578else 13579 pkg_failed=yes 13580fi 13581 else 13582 pkg_failed=untried 13583fi 13584if test -n "$LIBIDN_LIBS"; then 13585 pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS" 13586 elif test -n "$PKG_CONFIG"; then 13587 if test -n "$PKG_CONFIG" && \ 13588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 13589 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 13590 ac_status=$? 13591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13592 test $ac_status = 0; }; then 13593 pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null` 13594 test "x$?" != "x0" && pkg_failed=yes 13595else 13596 pkg_failed=yes 13597fi 13598 else 13599 pkg_failed=untried 13600fi 13601 13602 13603 13604if test $pkg_failed = yes; then 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13606$as_echo "no" >&6; } 13607 13608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13609 _pkg_short_errors_supported=yes 13610else 13611 _pkg_short_errors_supported=no 13612fi 13613 if test $_pkg_short_errors_supported = yes; then 13614 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` 13615 else 13616 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` 13617 fi 13618 # Put the nasty error message in config.log where it belongs 13619 echo "$LIBIDN_PKG_ERRORS" >&5 13620 13621 libidn=no 13622elif test $pkg_failed = untried; then 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13624$as_echo "no" >&6; } 13625 libidn=no 13626else 13627 LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS 13628 LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13630$as_echo "yes" >&6; } 13631 libidn=yes 13632fi 13633 if test "$libidn" != "yes" 13634 then 13635 libidn=no 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libidn not found" >&5 13637$as_echo "$as_me: WARNING: Libidn not found" >&2;} 13638 else 13639 libidn=yes 13640 13641$as_echo "#define LIBIDN 1" >>confdefs.h 13642 13643 fi 13644fi 13645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Libidn should be used" >&5 13646$as_echo_n "checking if Libidn should be used... " >&6; } 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libidn" >&5 13648$as_echo "$libidn" >&6; } 13649 13650for ac_func in strcasecmp strncasecmp setlocale 13651do : 13652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13653ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13654if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13655 cat >>confdefs.h <<_ACEOF 13656#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13657_ACEOF 13658 13659fi 13660done 13661 13662 13663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to calculate alternate timezone" >&5 13664$as_echo_n "checking how to calculate alternate timezone... " >&6; } 13665if ${librfc822_cv_SYS_TIMEZONE+:} false; then : 13666 $as_echo_n "(cached) " >&6 13667else 13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13669/* end confdefs.h. */ 13670 13671#include <time.h> 13672 13673int 13674main () 13675{ 13676 13677time_t t=altzone; 13678 13679 ; 13680 return 0; 13681} 13682_ACEOF 13683if ac_fn_c_try_compile "$LINENO"; then : 13684 librfc822_cv_SYS_TIMEZONE=altzone 13685else 13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13687/* end confdefs.h. */ 13688 13689#include <time.h> 13690 13691int 13692main () 13693{ 13694 13695int n=daylight; 13696 13697 ; 13698 return 0; 13699} 13700_ACEOF 13701if ac_fn_c_try_compile "$LINENO"; then : 13702 librfc822_cv_SYS_TIMEZONE=daylight 13703else 13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13705/* end confdefs.h. */ 13706 13707#include <time.h> 13708 13709extern struct tm dummy; 13710 13711int 13712main () 13713{ 13714 13715long n=dummy.tm_gmtoff; 13716 13717 ; 13718 return 0; 13719} 13720_ACEOF 13721if ac_fn_c_try_compile "$LINENO"; then : 13722 librfc822_cv_SYS_TIMEZONE=tm_gmtoff 13723else 13724 librfc822_cv_SYS_TIMEZONE=unknown 13725 13726fi 13727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13728 13729fi 13730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13731 13732fi 13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13734 13735fi 13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $librfc822_cv_SYS_TIMEZONE" >&5 13737$as_echo "$librfc822_cv_SYS_TIMEZONE" >&6; } 13738 13739case $librfc822_cv_SYS_TIMEZONE in 13740tm_gmtoff) 13741 13742cat >>confdefs.h <<_ACEOF 13743#define USE_TIME_GMTOFF 1 13744_ACEOF 13745 13746 ;; 13747altzone) 13748 13749cat >>confdefs.h <<_ACEOF 13750#define USE_TIME_ALTZONE 1 13751_ACEOF 13752 13753 ;; 13754daylight) 13755 13756cat >>confdefs.h <<_ACEOF 13757#define USE_TIME_DAYLIGHT 1 13758_ACEOF 13759 13760 ;; 13761*) 13762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5 13763$as_echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;} 13764 ;; 13765esac 13766 13767 if test -d ${srcdir}/../docbook; then 13768 HAVE_SGML_TRUE= 13769 HAVE_SGML_FALSE='#' 13770else 13771 HAVE_SGML_TRUE='#' 13772 HAVE_SGML_FALSE= 13773fi 13774 13775 13776echo "libidn=$libidn" >rfc822.config 13777ac_config_files="$ac_config_files Makefile" 13778 13779cat >confcache <<\_ACEOF 13780# This file is a shell script that caches the results of configure 13781# tests run on this system so they can be shared between configure 13782# scripts and configure runs, see configure's option --config-cache. 13783# It is not useful on other systems. If it contains results you don't 13784# want to keep, you may remove or edit it. 13785# 13786# config.status only pays attention to the cache file if you give it 13787# the --recheck option to rerun configure. 13788# 13789# `ac_cv_env_foo' variables (set or unset) will be overridden when 13790# loading this file, other *unset* `ac_cv_foo' will be assigned the 13791# following values. 13792 13793_ACEOF 13794 13795# The following way of writing the cache mishandles newlines in values, 13796# but we know of no workaround that is simple, portable, and efficient. 13797# So, we kill variables containing newlines. 13798# Ultrix sh set writes to stderr and can't be redirected directly, 13799# and sets the high bit in the cache file unless we assign to the vars. 13800( 13801 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13802 eval ac_val=\$$ac_var 13803 case $ac_val in #( 13804 *${as_nl}*) 13805 case $ac_var in #( 13806 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13807$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13808 esac 13809 case $ac_var in #( 13810 _ | IFS | as_nl) ;; #( 13811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13812 *) { eval $ac_var=; unset $ac_var;} ;; 13813 esac ;; 13814 esac 13815 done 13816 13817 (set) 2>&1 | 13818 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13819 *${as_nl}ac_space=\ *) 13820 # `set' does not quote correctly, so add quotes: double-quote 13821 # substitution turns \\\\ into \\, and sed turns \\ into \. 13822 sed -n \ 13823 "s/'/'\\\\''/g; 13824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13825 ;; #( 13826 *) 13827 # `set' quotes correctly as required by POSIX, so do not add quotes. 13828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13829 ;; 13830 esac | 13831 sort 13832) | 13833 sed ' 13834 /^ac_cv_env_/b end 13835 t clear 13836 :clear 13837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13838 t end 13839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13840 :end' >>confcache 13841if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13842 if test -w "$cache_file"; then 13843 if test "x$cache_file" != "x/dev/null"; then 13844 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13845$as_echo "$as_me: updating cache $cache_file" >&6;} 13846 if test ! -f "$cache_file" || test -h "$cache_file"; then 13847 cat confcache >"$cache_file" 13848 else 13849 case $cache_file in #( 13850 */* | ?:*) 13851 mv -f confcache "$cache_file"$$ && 13852 mv -f "$cache_file"$$ "$cache_file" ;; #( 13853 *) 13854 mv -f confcache "$cache_file" ;; 13855 esac 13856 fi 13857 fi 13858 else 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13860$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13861 fi 13862fi 13863rm -f confcache 13864 13865test "x$prefix" = xNONE && prefix=$ac_default_prefix 13866# Let make expand exec_prefix. 13867test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13868 13869DEFS=-DHAVE_CONFIG_H 13870 13871ac_libobjs= 13872ac_ltlibobjs= 13873U= 13874for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13875 # 1. Remove the extension, and $U if already installed. 13876 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13877 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13878 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13879 # will be set to the directory where LIBOBJS objects are built. 13880 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13881 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13882done 13883LIBOBJS=$ac_libobjs 13884 13885LTLIBOBJS=$ac_ltlibobjs 13886 13887 13888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13889$as_echo_n "checking that generated files are newer than configure... " >&6; } 13890 if test -n "$am_sleep_pid"; then 13891 # Hide warnings about reused PIDs. 13892 wait $am_sleep_pid 2>/dev/null 13893 fi 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13895$as_echo "done" >&6; } 13896 if test -n "$EXEEXT"; then 13897 am__EXEEXT_TRUE= 13898 am__EXEEXT_FALSE='#' 13899else 13900 am__EXEEXT_TRUE='#' 13901 am__EXEEXT_FALSE= 13902fi 13903 13904if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13905 as_fn_error $? "conditional \"AMDEP\" was never defined. 13906Usually this means the macro was only invoked conditionally." "$LINENO" 5 13907fi 13908if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13909 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13910Usually this means the macro was only invoked conditionally." "$LINENO" 5 13911fi 13912if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13913 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13914Usually this means the macro was only invoked conditionally." "$LINENO" 5 13915fi 13916if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 13917 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 13918Usually this means the macro was only invoked conditionally." "$LINENO" 5 13919fi 13920 13921: "${CONFIG_STATUS=./config.status}" 13922ac_write_fail=0 13923ac_clean_files_save=$ac_clean_files 13924ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13925{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13926$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13927as_write_fail=0 13928cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13929#! $SHELL 13930# Generated by $as_me. 13931# Run this file to recreate the current configuration. 13932# Compiler output produced by configure, useful for debugging 13933# configure, is in config.log if it exists. 13934 13935debug=false 13936ac_cs_recheck=false 13937ac_cs_silent=false 13938 13939SHELL=\${CONFIG_SHELL-$SHELL} 13940export SHELL 13941_ASEOF 13942cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13943## -------------------- ## 13944## M4sh Initialization. ## 13945## -------------------- ## 13946 13947# Be more Bourne compatible 13948DUALCASE=1; export DUALCASE # for MKS sh 13949if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13950 emulate sh 13951 NULLCMD=: 13952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13953 # is contrary to our usage. Disable this feature. 13954 alias -g '${1+"$@"}'='"$@"' 13955 setopt NO_GLOB_SUBST 13956else 13957 case `(set -o) 2>/dev/null` in #( 13958 *posix*) : 13959 set -o posix ;; #( 13960 *) : 13961 ;; 13962esac 13963fi 13964 13965 13966as_nl=' 13967' 13968export as_nl 13969# Printing a long string crashes Solaris 7 /usr/bin/printf. 13970as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13971as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13973# Prefer a ksh shell builtin over an external printf program on Solaris, 13974# but without wasting forks for bash or zsh. 13975if test -z "$BASH_VERSION$ZSH_VERSION" \ 13976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13977 as_echo='print -r --' 13978 as_echo_n='print -rn --' 13979elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13980 as_echo='printf %s\n' 13981 as_echo_n='printf %s' 13982else 13983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13985 as_echo_n='/usr/ucb/echo -n' 13986 else 13987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13988 as_echo_n_body='eval 13989 arg=$1; 13990 case $arg in #( 13991 *"$as_nl"*) 13992 expr "X$arg" : "X\\(.*\\)$as_nl"; 13993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13994 esac; 13995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13996 ' 13997 export as_echo_n_body 13998 as_echo_n='sh -c $as_echo_n_body as_echo' 13999 fi 14000 export as_echo_body 14001 as_echo='sh -c $as_echo_body as_echo' 14002fi 14003 14004# The user is always right. 14005if test "${PATH_SEPARATOR+set}" != set; then 14006 PATH_SEPARATOR=: 14007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14009 PATH_SEPARATOR=';' 14010 } 14011fi 14012 14013 14014# IFS 14015# We need space, tab and new line, in precisely that order. Quoting is 14016# there to prevent editors from complaining about space-tab. 14017# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14018# splitting by setting IFS to empty value.) 14019IFS=" "" $as_nl" 14020 14021# Find who we are. Look in the path if we contain no directory separator. 14022as_myself= 14023case $0 in #(( 14024 *[\\/]* ) as_myself=$0 ;; 14025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14026for as_dir in $PATH 14027do 14028 IFS=$as_save_IFS 14029 test -z "$as_dir" && as_dir=. 14030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14031 done 14032IFS=$as_save_IFS 14033 14034 ;; 14035esac 14036# We did not find ourselves, most probably we were run as `sh COMMAND' 14037# in which case we are not to be found in the path. 14038if test "x$as_myself" = x; then 14039 as_myself=$0 14040fi 14041if test ! -f "$as_myself"; then 14042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14043 exit 1 14044fi 14045 14046# Unset variables that we do not need and which cause bugs (e.g. in 14047# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14048# suppresses any "Segmentation fault" message there. '((' could 14049# trigger a bug in pdksh 5.2.14. 14050for as_var in BASH_ENV ENV MAIL MAILPATH 14051do eval test x\${$as_var+set} = xset \ 14052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14053done 14054PS1='$ ' 14055PS2='> ' 14056PS4='+ ' 14057 14058# NLS nuisances. 14059LC_ALL=C 14060export LC_ALL 14061LANGUAGE=C 14062export LANGUAGE 14063 14064# CDPATH. 14065(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14066 14067 14068# as_fn_error STATUS ERROR [LINENO LOG_FD] 14069# ---------------------------------------- 14070# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14071# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14072# script with STATUS, using 1 if that was 0. 14073as_fn_error () 14074{ 14075 as_status=$1; test $as_status -eq 0 && as_status=1 14076 if test "$4"; then 14077 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14079 fi 14080 $as_echo "$as_me: error: $2" >&2 14081 as_fn_exit $as_status 14082} # as_fn_error 14083 14084 14085# as_fn_set_status STATUS 14086# ----------------------- 14087# Set $? to STATUS, without forking. 14088as_fn_set_status () 14089{ 14090 return $1 14091} # as_fn_set_status 14092 14093# as_fn_exit STATUS 14094# ----------------- 14095# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14096as_fn_exit () 14097{ 14098 set +e 14099 as_fn_set_status $1 14100 exit $1 14101} # as_fn_exit 14102 14103# as_fn_unset VAR 14104# --------------- 14105# Portably unset VAR. 14106as_fn_unset () 14107{ 14108 { eval $1=; unset $1;} 14109} 14110as_unset=as_fn_unset 14111# as_fn_append VAR VALUE 14112# ---------------------- 14113# Append the text in VALUE to the end of the definition contained in VAR. Take 14114# advantage of any shell optimizations that allow amortized linear growth over 14115# repeated appends, instead of the typical quadratic growth present in naive 14116# implementations. 14117if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14118 eval 'as_fn_append () 14119 { 14120 eval $1+=\$2 14121 }' 14122else 14123 as_fn_append () 14124 { 14125 eval $1=\$$1\$2 14126 } 14127fi # as_fn_append 14128 14129# as_fn_arith ARG... 14130# ------------------ 14131# Perform arithmetic evaluation on the ARGs, and store the result in the 14132# global $as_val. Take advantage of shells that can avoid forks. The arguments 14133# must be portable across $(()) and expr. 14134if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14135 eval 'as_fn_arith () 14136 { 14137 as_val=$(( $* )) 14138 }' 14139else 14140 as_fn_arith () 14141 { 14142 as_val=`expr "$@" || test $? -eq 1` 14143 } 14144fi # as_fn_arith 14145 14146 14147if expr a : '\(a\)' >/dev/null 2>&1 && 14148 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14149 as_expr=expr 14150else 14151 as_expr=false 14152fi 14153 14154if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14155 as_basename=basename 14156else 14157 as_basename=false 14158fi 14159 14160if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14161 as_dirname=dirname 14162else 14163 as_dirname=false 14164fi 14165 14166as_me=`$as_basename -- "$0" || 14167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14168 X"$0" : 'X\(//\)$' \| \ 14169 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14170$as_echo X/"$0" | 14171 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14172 s//\1/ 14173 q 14174 } 14175 /^X\/\(\/\/\)$/{ 14176 s//\1/ 14177 q 14178 } 14179 /^X\/\(\/\).*/{ 14180 s//\1/ 14181 q 14182 } 14183 s/.*/./; q'` 14184 14185# Avoid depending upon Character Ranges. 14186as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14187as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14188as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14189as_cr_digits='0123456789' 14190as_cr_alnum=$as_cr_Letters$as_cr_digits 14191 14192ECHO_C= ECHO_N= ECHO_T= 14193case `echo -n x` in #((((( 14194-n*) 14195 case `echo 'xy\c'` in 14196 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14197 xy) ECHO_C='\c';; 14198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14199 ECHO_T=' ';; 14200 esac;; 14201*) 14202 ECHO_N='-n';; 14203esac 14204 14205rm -f conf$$ conf$$.exe conf$$.file 14206if test -d conf$$.dir; then 14207 rm -f conf$$.dir/conf$$.file 14208else 14209 rm -f conf$$.dir 14210 mkdir conf$$.dir 2>/dev/null 14211fi 14212if (echo >conf$$.file) 2>/dev/null; then 14213 if ln -s conf$$.file conf$$ 2>/dev/null; then 14214 as_ln_s='ln -s' 14215 # ... but there are two gotchas: 14216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14218 # In both cases, we have to default to `cp -pR'. 14219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14220 as_ln_s='cp -pR' 14221 elif ln conf$$.file conf$$ 2>/dev/null; then 14222 as_ln_s=ln 14223 else 14224 as_ln_s='cp -pR' 14225 fi 14226else 14227 as_ln_s='cp -pR' 14228fi 14229rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14230rmdir conf$$.dir 2>/dev/null 14231 14232 14233# as_fn_mkdir_p 14234# ------------- 14235# Create "$as_dir" as a directory, including parents if necessary. 14236as_fn_mkdir_p () 14237{ 14238 14239 case $as_dir in #( 14240 -*) as_dir=./$as_dir;; 14241 esac 14242 test -d "$as_dir" || eval $as_mkdir_p || { 14243 as_dirs= 14244 while :; do 14245 case $as_dir in #( 14246 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14247 *) as_qdir=$as_dir;; 14248 esac 14249 as_dirs="'$as_qdir' $as_dirs" 14250 as_dir=`$as_dirname -- "$as_dir" || 14251$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14252 X"$as_dir" : 'X\(//\)[^/]' \| \ 14253 X"$as_dir" : 'X\(//\)$' \| \ 14254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14255$as_echo X"$as_dir" | 14256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14257 s//\1/ 14258 q 14259 } 14260 /^X\(\/\/\)[^/].*/{ 14261 s//\1/ 14262 q 14263 } 14264 /^X\(\/\/\)$/{ 14265 s//\1/ 14266 q 14267 } 14268 /^X\(\/\).*/{ 14269 s//\1/ 14270 q 14271 } 14272 s/.*/./; q'` 14273 test -d "$as_dir" && break 14274 done 14275 test -z "$as_dirs" || eval "mkdir $as_dirs" 14276 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14277 14278 14279} # as_fn_mkdir_p 14280if mkdir -p . 2>/dev/null; then 14281 as_mkdir_p='mkdir -p "$as_dir"' 14282else 14283 test -d ./-p && rmdir ./-p 14284 as_mkdir_p=false 14285fi 14286 14287 14288# as_fn_executable_p FILE 14289# ----------------------- 14290# Test if FILE is an executable regular file. 14291as_fn_executable_p () 14292{ 14293 test -f "$1" && test -x "$1" 14294} # as_fn_executable_p 14295as_test_x='test -x' 14296as_executable_p=as_fn_executable_p 14297 14298# Sed expression to map a string onto a valid CPP name. 14299as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14300 14301# Sed expression to map a string onto a valid variable name. 14302as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14303 14304 14305exec 6>&1 14306## ----------------------------------- ## 14307## Main body of $CONFIG_STATUS script. ## 14308## ----------------------------------- ## 14309_ASEOF 14310test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14311 14312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14313# Save the log message, to keep $0 and so on meaningful, and to 14314# report actual input values of CONFIG_FILES etc. instead of their 14315# values after options handling. 14316ac_log=" 14317This file was extended by rfc822lib $as_me 0.13, which was 14318generated by GNU Autoconf 2.69. Invocation command line was 14319 14320 CONFIG_FILES = $CONFIG_FILES 14321 CONFIG_HEADERS = $CONFIG_HEADERS 14322 CONFIG_LINKS = $CONFIG_LINKS 14323 CONFIG_COMMANDS = $CONFIG_COMMANDS 14324 $ $0 $@ 14325 14326on `(hostname || uname -n) 2>/dev/null | sed 1q` 14327" 14328 14329_ACEOF 14330 14331case $ac_config_files in *" 14332"*) set x $ac_config_files; shift; ac_config_files=$*;; 14333esac 14334 14335case $ac_config_headers in *" 14336"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14337esac 14338 14339 14340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14341# Files that config.status was made for. 14342config_files="$ac_config_files" 14343config_headers="$ac_config_headers" 14344config_commands="$ac_config_commands" 14345 14346_ACEOF 14347 14348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14349ac_cs_usage="\ 14350\`$as_me' instantiates files and other configuration actions 14351from templates according to the current configuration. Unless the files 14352and actions are specified as TAGs, all are instantiated by default. 14353 14354Usage: $0 [OPTION]... [TAG]... 14355 14356 -h, --help print this help, then exit 14357 -V, --version print version number and configuration settings, then exit 14358 --config print configuration, then exit 14359 -q, --quiet, --silent 14360 do not print progress messages 14361 -d, --debug don't remove temporary files 14362 --recheck update $as_me by reconfiguring in the same conditions 14363 --file=FILE[:TEMPLATE] 14364 instantiate the configuration file FILE 14365 --header=FILE[:TEMPLATE] 14366 instantiate the configuration header FILE 14367 14368Configuration files: 14369$config_files 14370 14371Configuration headers: 14372$config_headers 14373 14374Configuration commands: 14375$config_commands 14376 14377Report bugs to <courier-users@lists.sourceforge.net>." 14378 14379_ACEOF 14380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14381ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14382ac_cs_version="\\ 14383rfc822lib config.status 0.13 14384configured by $0, generated by GNU Autoconf 2.69, 14385 with options \\"\$ac_cs_config\\" 14386 14387Copyright (C) 2012 Free Software Foundation, Inc. 14388This config.status script is free software; the Free Software Foundation 14389gives unlimited permission to copy, distribute and modify it." 14390 14391ac_pwd='$ac_pwd' 14392srcdir='$srcdir' 14393INSTALL='$INSTALL' 14394MKDIR_P='$MKDIR_P' 14395AWK='$AWK' 14396test -n "\$AWK" || AWK=awk 14397_ACEOF 14398 14399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14400# The default lists apply if the user does not specify any file. 14401ac_need_defaults=: 14402while test $# != 0 14403do 14404 case $1 in 14405 --*=?*) 14406 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14408 ac_shift=: 14409 ;; 14410 --*=) 14411 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14412 ac_optarg= 14413 ac_shift=: 14414 ;; 14415 *) 14416 ac_option=$1 14417 ac_optarg=$2 14418 ac_shift=shift 14419 ;; 14420 esac 14421 14422 case $ac_option in 14423 # Handling of the options. 14424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14425 ac_cs_recheck=: ;; 14426 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14427 $as_echo "$ac_cs_version"; exit ;; 14428 --config | --confi | --conf | --con | --co | --c ) 14429 $as_echo "$ac_cs_config"; exit ;; 14430 --debug | --debu | --deb | --de | --d | -d ) 14431 debug=: ;; 14432 --file | --fil | --fi | --f ) 14433 $ac_shift 14434 case $ac_optarg in 14435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14436 '') as_fn_error $? "missing file argument" ;; 14437 esac 14438 as_fn_append CONFIG_FILES " '$ac_optarg'" 14439 ac_need_defaults=false;; 14440 --header | --heade | --head | --hea ) 14441 $ac_shift 14442 case $ac_optarg in 14443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14444 esac 14445 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14446 ac_need_defaults=false;; 14447 --he | --h) 14448 # Conflict between --help and --header 14449 as_fn_error $? "ambiguous option: \`$1' 14450Try \`$0 --help' for more information.";; 14451 --help | --hel | -h ) 14452 $as_echo "$ac_cs_usage"; exit ;; 14453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14454 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14455 ac_cs_silent=: ;; 14456 14457 # This is an error. 14458 -*) as_fn_error $? "unrecognized option: \`$1' 14459Try \`$0 --help' for more information." ;; 14460 14461 *) as_fn_append ac_config_targets " $1" 14462 ac_need_defaults=false ;; 14463 14464 esac 14465 shift 14466done 14467 14468ac_configure_extra_args= 14469 14470if $ac_cs_silent; then 14471 exec 6>/dev/null 14472 ac_configure_extra_args="$ac_configure_extra_args --silent" 14473fi 14474 14475_ACEOF 14476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14477if \$ac_cs_recheck; then 14478 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14479 shift 14480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14481 CONFIG_SHELL='$SHELL' 14482 export CONFIG_SHELL 14483 exec "\$@" 14484fi 14485 14486_ACEOF 14487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14488exec 5>>config.log 14489{ 14490 echo 14491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14492## Running $as_me. ## 14493_ASBOX 14494 $as_echo "$ac_log" 14495} >&5 14496 14497_ACEOF 14498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14499# 14500# INIT-COMMANDS 14501# 14502AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14503 14504 14505# The HP-UX ksh and POSIX shell print the target directory to stdout 14506# if CDPATH is set. 14507(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14508 14509sed_quote_subst='$sed_quote_subst' 14510double_quote_subst='$double_quote_subst' 14511delay_variable_subst='$delay_variable_subst' 14512macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14513macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14514enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14515enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14516pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14517enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14518shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14519SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14520ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14521PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14522host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14523host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14524host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14525build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14526build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14527build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14528SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14529Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14530GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14531EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14532FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14533LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14534NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14535LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14536max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14537ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14538exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14539lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14540lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14541lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14542lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14543lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14544reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14545reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14546OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14547deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14548file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14549file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14550want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14551DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14552sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14553AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14554AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14555archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14556STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14557RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14558old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14559old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14560old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14561lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14562CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14563CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14564compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14565GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14566lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14567lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14568lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14569lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14570lt_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"`' 14571lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14572nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14573lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14574lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14575objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14576MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14577lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14578lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14579lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14580lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14581lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14582need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14583MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14584DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14585NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14586LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14587OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14588OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14589libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14590shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14591extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14592archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14593enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14594export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14595whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14596compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14597old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14598old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14599archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14600archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14601module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14602module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14603with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14604allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14605no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14606hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14607hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14608hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14609hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14610hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14611hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14612hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14613inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14614link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14615always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14616export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14617exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14618include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14619prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14620postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14621file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14622variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14623need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14624need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14625version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14626runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14627shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14628shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14629libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14630library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14631soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14632install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14633postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14634postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14635finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14636finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14637hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14638sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14639configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14640configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14641hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14642enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14643enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14644enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14645old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14646striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14647 14648LTCC='$LTCC' 14649LTCFLAGS='$LTCFLAGS' 14650compiler='$compiler_DEFAULT' 14651 14652# A function that is used when there is no print builtin or printf. 14653func_fallback_echo () 14654{ 14655 eval 'cat <<_LTECHO_EOF 14656\$1 14657_LTECHO_EOF' 14658} 14659 14660# Quote evaled strings. 14661for var in SHELL \ 14662ECHO \ 14663PATH_SEPARATOR \ 14664SED \ 14665GREP \ 14666EGREP \ 14667FGREP \ 14668LD \ 14669NM \ 14670LN_S \ 14671lt_SP2NL \ 14672lt_NL2SP \ 14673reload_flag \ 14674OBJDUMP \ 14675deplibs_check_method \ 14676file_magic_cmd \ 14677file_magic_glob \ 14678want_nocaseglob \ 14679DLLTOOL \ 14680sharedlib_from_linklib_cmd \ 14681AR \ 14682AR_FLAGS \ 14683archiver_list_spec \ 14684STRIP \ 14685RANLIB \ 14686CC \ 14687CFLAGS \ 14688compiler \ 14689lt_cv_sys_global_symbol_pipe \ 14690lt_cv_sys_global_symbol_to_cdecl \ 14691lt_cv_sys_global_symbol_to_import \ 14692lt_cv_sys_global_symbol_to_c_name_address \ 14693lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14694lt_cv_nm_interface \ 14695nm_file_list_spec \ 14696lt_cv_truncate_bin \ 14697lt_prog_compiler_no_builtin_flag \ 14698lt_prog_compiler_pic \ 14699lt_prog_compiler_wl \ 14700lt_prog_compiler_static \ 14701lt_cv_prog_compiler_c_o \ 14702need_locks \ 14703MANIFEST_TOOL \ 14704DSYMUTIL \ 14705NMEDIT \ 14706LIPO \ 14707OTOOL \ 14708OTOOL64 \ 14709shrext_cmds \ 14710export_dynamic_flag_spec \ 14711whole_archive_flag_spec \ 14712compiler_needs_object \ 14713with_gnu_ld \ 14714allow_undefined_flag \ 14715no_undefined_flag \ 14716hardcode_libdir_flag_spec \ 14717hardcode_libdir_separator \ 14718exclude_expsyms \ 14719include_expsyms \ 14720file_list_spec \ 14721variables_saved_for_relink \ 14722libname_spec \ 14723library_names_spec \ 14724soname_spec \ 14725install_override_mode \ 14726finish_eval \ 14727old_striplib \ 14728striplib; do 14729 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14730 *[\\\\\\\`\\"\\\$]*) 14731 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14732 ;; 14733 *) 14734 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14735 ;; 14736 esac 14737done 14738 14739# Double-quote double-evaled strings. 14740for var in reload_cmds \ 14741old_postinstall_cmds \ 14742old_postuninstall_cmds \ 14743old_archive_cmds \ 14744extract_expsyms_cmds \ 14745old_archive_from_new_cmds \ 14746old_archive_from_expsyms_cmds \ 14747archive_cmds \ 14748archive_expsym_cmds \ 14749module_cmds \ 14750module_expsym_cmds \ 14751export_symbols_cmds \ 14752prelink_cmds \ 14753postlink_cmds \ 14754postinstall_cmds \ 14755postuninstall_cmds \ 14756finish_cmds \ 14757sys_lib_search_path_spec \ 14758configure_time_dlsearch_path \ 14759configure_time_lt_sys_library_path; do 14760 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14761 *[\\\\\\\`\\"\\\$]*) 14762 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14763 ;; 14764 *) 14765 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14766 ;; 14767 esac 14768done 14769 14770ac_aux_dir='$ac_aux_dir' 14771 14772# See if we are running on zsh, and set the options that allow our 14773# commands through without removal of \ escapes INIT. 14774if test -n "\${ZSH_VERSION+set}"; then 14775 setopt NO_GLOB_SUBST 14776fi 14777 14778 14779 PACKAGE='$PACKAGE' 14780 VERSION='$VERSION' 14781 RM='$RM' 14782 ofile='$ofile' 14783 14784 14785 14786 14787_ACEOF 14788 14789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14790 14791# Handling of arguments. 14792for ac_config_target in $ac_config_targets 14793do 14794 case $ac_config_target in 14795 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14796 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14797 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14798 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14799 14800 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14801 esac 14802done 14803 14804 14805# If the user did not use the arguments to specify the items to instantiate, 14806# then the envvar interface is used. Set only those that are not. 14807# We use the long form for the default assignment because of an extremely 14808# bizarre bug on SunOS 4.1.3. 14809if $ac_need_defaults; then 14810 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14811 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14812 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14813fi 14814 14815# Have a temporary directory for convenience. Make it in the build tree 14816# simply because there is no reason against having it here, and in addition, 14817# creating and moving files from /tmp can sometimes cause problems. 14818# Hook for its removal unless debugging. 14819# Note that there is a small window in which the directory will not be cleaned: 14820# after its creation but before its name has been assigned to `$tmp'. 14821$debug || 14822{ 14823 tmp= ac_tmp= 14824 trap 'exit_status=$? 14825 : "${ac_tmp:=$tmp}" 14826 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14827' 0 14828 trap 'as_fn_exit 1' 1 2 13 15 14829} 14830# Create a (secure) tmp directory for tmp files. 14831 14832{ 14833 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14834 test -d "$tmp" 14835} || 14836{ 14837 tmp=./conf$$-$RANDOM 14838 (umask 077 && mkdir "$tmp") 14839} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14840ac_tmp=$tmp 14841 14842# Set up the scripts for CONFIG_FILES section. 14843# No need to generate them if there are no CONFIG_FILES. 14844# This happens for instance with `./config.status config.h'. 14845if test -n "$CONFIG_FILES"; then 14846 14847 14848ac_cr=`echo X | tr X '\015'` 14849# On cygwin, bash can eat \r inside `` if the user requested igncr. 14850# But we know of no other shell where ac_cr would be empty at this 14851# point, so we can use a bashism as a fallback. 14852if test "x$ac_cr" = x; then 14853 eval ac_cr=\$\'\\r\' 14854fi 14855ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14856if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14857 ac_cs_awk_cr='\\r' 14858else 14859 ac_cs_awk_cr=$ac_cr 14860fi 14861 14862echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14863_ACEOF 14864 14865 14866{ 14867 echo "cat >conf$$subs.awk <<_ACEOF" && 14868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14869 echo "_ACEOF" 14870} >conf$$subs.sh || 14871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14872ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14873ac_delim='%!_!# ' 14874for ac_last_try in false false false false false :; do 14875 . ./conf$$subs.sh || 14876 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14877 14878 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14879 if test $ac_delim_n = $ac_delim_num; then 14880 break 14881 elif $ac_last_try; then 14882 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14883 else 14884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14885 fi 14886done 14887rm -f conf$$subs.sh 14888 14889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14890cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14891_ACEOF 14892sed -n ' 14893h 14894s/^/S["/; s/!.*/"]=/ 14895p 14896g 14897s/^[^!]*!// 14898:repl 14899t repl 14900s/'"$ac_delim"'$// 14901t delim 14902:nl 14903h 14904s/\(.\{148\}\)..*/\1/ 14905t more1 14906s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14907p 14908n 14909b repl 14910:more1 14911s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14912p 14913g 14914s/.\{148\}// 14915t nl 14916:delim 14917h 14918s/\(.\{148\}\)..*/\1/ 14919t more2 14920s/["\\]/\\&/g; s/^/"/; s/$/"/ 14921p 14922b 14923:more2 14924s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14925p 14926g 14927s/.\{148\}// 14928t delim 14929' <conf$$subs.awk | sed ' 14930/^[^""]/{ 14931 N 14932 s/\n// 14933} 14934' >>$CONFIG_STATUS || ac_write_fail=1 14935rm -f conf$$subs.awk 14936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14937_ACAWK 14938cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14939 for (key in S) S_is_set[key] = 1 14940 FS = "" 14941 14942} 14943{ 14944 line = $ 0 14945 nfields = split(line, field, "@") 14946 substed = 0 14947 len = length(field[1]) 14948 for (i = 2; i < nfields; i++) { 14949 key = field[i] 14950 keylen = length(key) 14951 if (S_is_set[key]) { 14952 value = S[key] 14953 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14954 len += length(value) + length(field[++i]) 14955 substed = 1 14956 } else 14957 len += 1 + keylen 14958 } 14959 14960 print line 14961} 14962 14963_ACAWK 14964_ACEOF 14965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14966if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14967 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14968else 14969 cat 14970fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14971 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14972_ACEOF 14973 14974# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14975# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14976# trailing colons and then remove the whole line if VPATH becomes empty 14977# (actually we leave an empty line to preserve line numbers). 14978if test "x$srcdir" = x.; then 14979 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14980h 14981s/// 14982s/^/:/ 14983s/[ ]*$/:/ 14984s/:\$(srcdir):/:/g 14985s/:\${srcdir}:/:/g 14986s/:@srcdir@:/:/g 14987s/^:*// 14988s/:*$// 14989x 14990s/\(=[ ]*\).*/\1/ 14991G 14992s/\n// 14993s/^[^=]*=[ ]*$// 14994}' 14995fi 14996 14997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14998fi # test -n "$CONFIG_FILES" 14999 15000# Set up the scripts for CONFIG_HEADERS section. 15001# No need to generate them if there are no CONFIG_HEADERS. 15002# This happens for instance with `./config.status Makefile'. 15003if test -n "$CONFIG_HEADERS"; then 15004cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15005BEGIN { 15006_ACEOF 15007 15008# Transform confdefs.h into an awk script `defines.awk', embedded as 15009# here-document in config.status, that substitutes the proper values into 15010# config.h.in to produce config.h. 15011 15012# Create a delimiter string that does not exist in confdefs.h, to ease 15013# handling of long lines. 15014ac_delim='%!_!# ' 15015for ac_last_try in false false :; do 15016 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15017 if test -z "$ac_tt"; then 15018 break 15019 elif $ac_last_try; then 15020 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15021 else 15022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15023 fi 15024done 15025 15026# For the awk script, D is an array of macro values keyed by name, 15027# likewise P contains macro parameters if any. Preserve backslash 15028# newline sequences. 15029 15030ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15031sed -n ' 15032s/.\{148\}/&'"$ac_delim"'/g 15033t rset 15034:rset 15035s/^[ ]*#[ ]*define[ ][ ]*/ / 15036t def 15037d 15038:def 15039s/\\$// 15040t bsnl 15041s/["\\]/\\&/g 15042s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15043D["\1"]=" \3"/p 15044s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15045d 15046:bsnl 15047s/["\\]/\\&/g 15048s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15049D["\1"]=" \3\\\\\\n"\\/p 15050t cont 15051s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15052t cont 15053d 15054:cont 15055n 15056s/.\{148\}/&'"$ac_delim"'/g 15057t clear 15058:clear 15059s/\\$// 15060t bsnlc 15061s/["\\]/\\&/g; s/^/"/; s/$/"/p 15062d 15063:bsnlc 15064s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15065b cont 15066' <confdefs.h | sed ' 15067s/'"$ac_delim"'/"\\\ 15068"/g' >>$CONFIG_STATUS || ac_write_fail=1 15069 15070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15071 for (key in D) D_is_set[key] = 1 15072 FS = "" 15073} 15074/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15075 line = \$ 0 15076 split(line, arg, " ") 15077 if (arg[1] == "#") { 15078 defundef = arg[2] 15079 mac1 = arg[3] 15080 } else { 15081 defundef = substr(arg[1], 2) 15082 mac1 = arg[2] 15083 } 15084 split(mac1, mac2, "(") #) 15085 macro = mac2[1] 15086 prefix = substr(line, 1, index(line, defundef) - 1) 15087 if (D_is_set[macro]) { 15088 # Preserve the white space surrounding the "#". 15089 print prefix "define", macro P[macro] D[macro] 15090 next 15091 } else { 15092 # Replace #undef with comments. This is necessary, for example, 15093 # in the case of _POSIX_SOURCE, which is predefined and required 15094 # on some systems where configure will not decide to define it. 15095 if (defundef == "undef") { 15096 print "/*", prefix defundef, macro, "*/" 15097 next 15098 } 15099 } 15100} 15101{ print } 15102_ACAWK 15103_ACEOF 15104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15105 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15106fi # test -n "$CONFIG_HEADERS" 15107 15108 15109eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15110shift 15111for ac_tag 15112do 15113 case $ac_tag in 15114 :[FHLC]) ac_mode=$ac_tag; continue;; 15115 esac 15116 case $ac_mode$ac_tag in 15117 :[FHL]*:*);; 15118 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15119 :[FH]-) ac_tag=-:-;; 15120 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15121 esac 15122 ac_save_IFS=$IFS 15123 IFS=: 15124 set x $ac_tag 15125 IFS=$ac_save_IFS 15126 shift 15127 ac_file=$1 15128 shift 15129 15130 case $ac_mode in 15131 :L) ac_source=$1;; 15132 :[FH]) 15133 ac_file_inputs= 15134 for ac_f 15135 do 15136 case $ac_f in 15137 -) ac_f="$ac_tmp/stdin";; 15138 *) # Look for the file first in the build tree, then in the source tree 15139 # (if the path is not absolute). The absolute path cannot be DOS-style, 15140 # because $ac_f cannot contain `:'. 15141 test -f "$ac_f" || 15142 case $ac_f in 15143 [\\/$]*) false;; 15144 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15145 esac || 15146 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15147 esac 15148 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15149 as_fn_append ac_file_inputs " '$ac_f'" 15150 done 15151 15152 # Let's still pretend it is `configure' which instantiates (i.e., don't 15153 # use $as_me), people would be surprised to read: 15154 # /* config.h. Generated by config.status. */ 15155 configure_input='Generated from '` 15156 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15157 `' by configure.' 15158 if test x"$ac_file" != x-; then 15159 configure_input="$ac_file. $configure_input" 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15161$as_echo "$as_me: creating $ac_file" >&6;} 15162 fi 15163 # Neutralize special characters interpreted by sed in replacement strings. 15164 case $configure_input in #( 15165 *\&* | *\|* | *\\* ) 15166 ac_sed_conf_input=`$as_echo "$configure_input" | 15167 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15168 *) ac_sed_conf_input=$configure_input;; 15169 esac 15170 15171 case $ac_tag in 15172 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15174 esac 15175 ;; 15176 esac 15177 15178 ac_dir=`$as_dirname -- "$ac_file" || 15179$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15180 X"$ac_file" : 'X\(//\)[^/]' \| \ 15181 X"$ac_file" : 'X\(//\)$' \| \ 15182 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15183$as_echo X"$ac_file" | 15184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15185 s//\1/ 15186 q 15187 } 15188 /^X\(\/\/\)[^/].*/{ 15189 s//\1/ 15190 q 15191 } 15192 /^X\(\/\/\)$/{ 15193 s//\1/ 15194 q 15195 } 15196 /^X\(\/\).*/{ 15197 s//\1/ 15198 q 15199 } 15200 s/.*/./; q'` 15201 as_dir="$ac_dir"; as_fn_mkdir_p 15202 ac_builddir=. 15203 15204case "$ac_dir" in 15205.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15206*) 15207 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15208 # A ".." for each directory in $ac_dir_suffix. 15209 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15210 case $ac_top_builddir_sub in 15211 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15212 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15213 esac ;; 15214esac 15215ac_abs_top_builddir=$ac_pwd 15216ac_abs_builddir=$ac_pwd$ac_dir_suffix 15217# for backward compatibility: 15218ac_top_builddir=$ac_top_build_prefix 15219 15220case $srcdir in 15221 .) # We are building in place. 15222 ac_srcdir=. 15223 ac_top_srcdir=$ac_top_builddir_sub 15224 ac_abs_top_srcdir=$ac_pwd ;; 15225 [\\/]* | ?:[\\/]* ) # Absolute name. 15226 ac_srcdir=$srcdir$ac_dir_suffix; 15227 ac_top_srcdir=$srcdir 15228 ac_abs_top_srcdir=$srcdir ;; 15229 *) # Relative name. 15230 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15231 ac_top_srcdir=$ac_top_build_prefix$srcdir 15232 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15233esac 15234ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15235 15236 15237 case $ac_mode in 15238 :F) 15239 # 15240 # CONFIG_FILE 15241 # 15242 15243 case $INSTALL in 15244 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15245 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15246 esac 15247 ac_MKDIR_P=$MKDIR_P 15248 case $MKDIR_P in 15249 [\\/$]* | ?:[\\/]* ) ;; 15250 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15251 esac 15252_ACEOF 15253 15254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15255# If the template does not know about datarootdir, expand it. 15256# FIXME: This hack should be removed a few years after 2.60. 15257ac_datarootdir_hack=; ac_datarootdir_seen= 15258ac_sed_dataroot=' 15259/datarootdir/ { 15260 p 15261 q 15262} 15263/@datadir@/p 15264/@docdir@/p 15265/@infodir@/p 15266/@localedir@/p 15267/@mandir@/p' 15268case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15269*datarootdir*) ac_datarootdir_seen=yes;; 15270*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15272$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15273_ACEOF 15274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15275 ac_datarootdir_hack=' 15276 s&@datadir@&$datadir&g 15277 s&@docdir@&$docdir&g 15278 s&@infodir@&$infodir&g 15279 s&@localedir@&$localedir&g 15280 s&@mandir@&$mandir&g 15281 s&\\\${datarootdir}&$datarootdir&g' ;; 15282esac 15283_ACEOF 15284 15285# Neutralize VPATH when `$srcdir' = `.'. 15286# Shell code in configure.ac might set extrasub. 15287# FIXME: do we really want to maintain this feature? 15288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15289ac_sed_extra="$ac_vpsub 15290$extrasub 15291_ACEOF 15292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15293:t 15294/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15295s|@configure_input@|$ac_sed_conf_input|;t t 15296s&@top_builddir@&$ac_top_builddir_sub&;t t 15297s&@top_build_prefix@&$ac_top_build_prefix&;t t 15298s&@srcdir@&$ac_srcdir&;t t 15299s&@abs_srcdir@&$ac_abs_srcdir&;t t 15300s&@top_srcdir@&$ac_top_srcdir&;t t 15301s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15302s&@builddir@&$ac_builddir&;t t 15303s&@abs_builddir@&$ac_abs_builddir&;t t 15304s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15305s&@INSTALL@&$ac_INSTALL&;t t 15306s&@MKDIR_P@&$ac_MKDIR_P&;t t 15307$ac_datarootdir_hack 15308" 15309eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15310 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15311 15312test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15313 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15314 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15315 "$ac_tmp/out"`; test -z "$ac_out"; } && 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15317which seems to be undefined. Please make sure it is defined" >&5 15318$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15319which seems to be undefined. Please make sure it is defined" >&2;} 15320 15321 rm -f "$ac_tmp/stdin" 15322 case $ac_file in 15323 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15324 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15325 esac \ 15326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15327 ;; 15328 :H) 15329 # 15330 # CONFIG_HEADER 15331 # 15332 if test x"$ac_file" != x-; then 15333 { 15334 $as_echo "/* $configure_input */" \ 15335 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15336 } >"$ac_tmp/config.h" \ 15337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15338 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15340$as_echo "$as_me: $ac_file is unchanged" >&6;} 15341 else 15342 rm -f "$ac_file" 15343 mv "$ac_tmp/config.h" "$ac_file" \ 15344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15345 fi 15346 else 15347 $as_echo "/* $configure_input */" \ 15348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15349 || as_fn_error $? "could not create -" "$LINENO" 5 15350 fi 15351# Compute "$ac_file"'s index in $config_headers. 15352_am_arg="$ac_file" 15353_am_stamp_count=1 15354for _am_header in $config_headers :; do 15355 case $_am_header in 15356 $_am_arg | $_am_arg:* ) 15357 break ;; 15358 * ) 15359 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15360 esac 15361done 15362echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15363$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15364 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15365 X"$_am_arg" : 'X\(//\)$' \| \ 15366 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15367$as_echo X"$_am_arg" | 15368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15369 s//\1/ 15370 q 15371 } 15372 /^X\(\/\/\)[^/].*/{ 15373 s//\1/ 15374 q 15375 } 15376 /^X\(\/\/\)$/{ 15377 s//\1/ 15378 q 15379 } 15380 /^X\(\/\).*/{ 15381 s//\1/ 15382 q 15383 } 15384 s/.*/./; q'`/stamp-h$_am_stamp_count 15385 ;; 15386 15387 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15388$as_echo "$as_me: executing $ac_file commands" >&6;} 15389 ;; 15390 esac 15391 15392 15393 case $ac_file$ac_mode in 15394 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15395 # Older Autoconf quotes --file arguments for eval, but not when files 15396 # are listed without --file. Let's play safe and only enable the eval 15397 # if we detect the quoting. 15398 # TODO: see whether this extra hack can be removed once we start 15399 # requiring Autoconf 2.70 or later. 15400 case $CONFIG_FILES in #( 15401 *\'*) : 15402 eval set x "$CONFIG_FILES" ;; #( 15403 *) : 15404 set x $CONFIG_FILES ;; #( 15405 *) : 15406 ;; 15407esac 15408 shift 15409 # Used to flag and report bootstrapping failures. 15410 am_rc=0 15411 for am_mf 15412 do 15413 # Strip MF so we end up with the name of the file. 15414 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15415 # Check whether this is an Automake generated Makefile which includes 15416 # dependency-tracking related rules and includes. 15417 # Grep'ing the whole file directly is not great: AIX grep has a line 15418 # limit of 2048, but all sed's we know have understand at least 4000. 15419 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15420 || continue 15421 am_dirpart=`$as_dirname -- "$am_mf" || 15422$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15423 X"$am_mf" : 'X\(//\)[^/]' \| \ 15424 X"$am_mf" : 'X\(//\)$' \| \ 15425 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15426$as_echo X"$am_mf" | 15427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15428 s//\1/ 15429 q 15430 } 15431 /^X\(\/\/\)[^/].*/{ 15432 s//\1/ 15433 q 15434 } 15435 /^X\(\/\/\)$/{ 15436 s//\1/ 15437 q 15438 } 15439 /^X\(\/\).*/{ 15440 s//\1/ 15441 q 15442 } 15443 s/.*/./; q'` 15444 am_filepart=`$as_basename -- "$am_mf" || 15445$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15446 X"$am_mf" : 'X\(//\)$' \| \ 15447 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15448$as_echo X/"$am_mf" | 15449 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15450 s//\1/ 15451 q 15452 } 15453 /^X\/\(\/\/\)$/{ 15454 s//\1/ 15455 q 15456 } 15457 /^X\/\(\/\).*/{ 15458 s//\1/ 15459 q 15460 } 15461 s/.*/./; q'` 15462 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15463 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15464 | $MAKE -f - am--depfiles" >&5 15465 (cd "$am_dirpart" \ 15466 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15467 | $MAKE -f - am--depfiles) >&5 2>&5 15468 ac_status=$? 15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15470 (exit $ac_status); } || am_rc=$? 15471 done 15472 if test $am_rc -ne 0; then 15473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15475as_fn_error $? "Something went wrong bootstrapping makefile fragments 15476 for automatic dependency tracking. Try re-running configure with the 15477 '--disable-dependency-tracking' option to at least be able to build 15478 the package (albeit without support for automatic dependency tracking). 15479See \`config.log' for more details" "$LINENO" 5; } 15480 fi 15481 { am_dirpart=; unset am_dirpart;} 15482 { am_filepart=; unset am_filepart;} 15483 { am_mf=; unset am_mf;} 15484 { am_rc=; unset am_rc;} 15485 rm -f conftest-deps.mk 15486} 15487 ;; 15488 "libtool":C) 15489 15490 # See if we are running on zsh, and set the options that allow our 15491 # commands through without removal of \ escapes. 15492 if test -n "${ZSH_VERSION+set}"; then 15493 setopt NO_GLOB_SUBST 15494 fi 15495 15496 cfgfile=${ofile}T 15497 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15498 $RM "$cfgfile" 15499 15500 cat <<_LT_EOF >> "$cfgfile" 15501#! $SHELL 15502# Generated automatically by $as_me ($PACKAGE) $VERSION 15503# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15504# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15505 15506# Provide generalized library-building support services. 15507# Written by Gordon Matzigkeit, 1996 15508 15509# Copyright (C) 2014 Free Software Foundation, Inc. 15510# This is free software; see the source for copying conditions. There is NO 15511# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15512 15513# GNU Libtool is free software; you can redistribute it and/or modify 15514# it under the terms of the GNU General Public License as published by 15515# the Free Software Foundation; either version 2 of of the License, or 15516# (at your option) any later version. 15517# 15518# As a special exception to the GNU General Public License, if you 15519# distribute this file as part of a program or library that is built 15520# using GNU Libtool, you may include this file under the same 15521# distribution terms that you use for the rest of that program. 15522# 15523# GNU Libtool is distributed in the hope that it will be useful, but 15524# WITHOUT ANY WARRANTY; without even the implied warranty of 15525# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15526# GNU General Public License for more details. 15527# 15528# You should have received a copy of the GNU General Public License 15529# along with this program. If not, see <http://www.gnu.org/licenses/>. 15530 15531 15532# The names of the tagged configurations supported by this script. 15533available_tags='' 15534 15535# Configured defaults for sys_lib_dlsearch_path munging. 15536: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15537 15538# ### BEGIN LIBTOOL CONFIG 15539 15540# Which release of libtool.m4 was used? 15541macro_version=$macro_version 15542macro_revision=$macro_revision 15543 15544# Whether or not to build shared libraries. 15545build_libtool_libs=$enable_shared 15546 15547# Whether or not to build static libraries. 15548build_old_libs=$enable_static 15549 15550# What type of objects to build. 15551pic_mode=$pic_mode 15552 15553# Whether or not to optimize for fast installation. 15554fast_install=$enable_fast_install 15555 15556# Shared archive member basename,for filename based shared library versioning on AIX. 15557shared_archive_member_spec=$shared_archive_member_spec 15558 15559# Shell to use when invoking shell scripts. 15560SHELL=$lt_SHELL 15561 15562# An echo program that protects backslashes. 15563ECHO=$lt_ECHO 15564 15565# The PATH separator for the build system. 15566PATH_SEPARATOR=$lt_PATH_SEPARATOR 15567 15568# The host system. 15569host_alias=$host_alias 15570host=$host 15571host_os=$host_os 15572 15573# The build system. 15574build_alias=$build_alias 15575build=$build 15576build_os=$build_os 15577 15578# A sed program that does not truncate output. 15579SED=$lt_SED 15580 15581# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15582Xsed="\$SED -e 1s/^X//" 15583 15584# A grep program that handles long lines. 15585GREP=$lt_GREP 15586 15587# An ERE matcher. 15588EGREP=$lt_EGREP 15589 15590# A literal string matcher. 15591FGREP=$lt_FGREP 15592 15593# A BSD- or MS-compatible name lister. 15594NM=$lt_NM 15595 15596# Whether we need soft or hard links. 15597LN_S=$lt_LN_S 15598 15599# What is the maximum length of a command? 15600max_cmd_len=$max_cmd_len 15601 15602# Object file suffix (normally "o"). 15603objext=$ac_objext 15604 15605# Executable file suffix (normally ""). 15606exeext=$exeext 15607 15608# whether the shell understands "unset". 15609lt_unset=$lt_unset 15610 15611# turn spaces into newlines. 15612SP2NL=$lt_lt_SP2NL 15613 15614# turn newlines into spaces. 15615NL2SP=$lt_lt_NL2SP 15616 15617# convert \$build file names to \$host format. 15618to_host_file_cmd=$lt_cv_to_host_file_cmd 15619 15620# convert \$build files to toolchain format. 15621to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15622 15623# An object symbol dumper. 15624OBJDUMP=$lt_OBJDUMP 15625 15626# Method to check whether dependent libraries are shared objects. 15627deplibs_check_method=$lt_deplibs_check_method 15628 15629# Command to use when deplibs_check_method = "file_magic". 15630file_magic_cmd=$lt_file_magic_cmd 15631 15632# How to find potential files when deplibs_check_method = "file_magic". 15633file_magic_glob=$lt_file_magic_glob 15634 15635# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15636want_nocaseglob=$lt_want_nocaseglob 15637 15638# DLL creation program. 15639DLLTOOL=$lt_DLLTOOL 15640 15641# Command to associate shared and link libraries. 15642sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15643 15644# The archiver. 15645AR=$lt_AR 15646 15647# Flags to create an archive. 15648AR_FLAGS=$lt_AR_FLAGS 15649 15650# How to feed a file listing to the archiver. 15651archiver_list_spec=$lt_archiver_list_spec 15652 15653# A symbol stripping program. 15654STRIP=$lt_STRIP 15655 15656# Commands used to install an old-style archive. 15657RANLIB=$lt_RANLIB 15658old_postinstall_cmds=$lt_old_postinstall_cmds 15659old_postuninstall_cmds=$lt_old_postuninstall_cmds 15660 15661# Whether to use a lock for old archive extraction. 15662lock_old_archive_extraction=$lock_old_archive_extraction 15663 15664# A C compiler. 15665LTCC=$lt_CC 15666 15667# LTCC compiler flags. 15668LTCFLAGS=$lt_CFLAGS 15669 15670# Take the output of nm and produce a listing of raw symbols and C names. 15671global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15672 15673# Transform the output of nm in a proper C declaration. 15674global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15675 15676# Transform the output of nm into a list of symbols to manually relocate. 15677global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15678 15679# Transform the output of nm in a C name address pair. 15680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15681 15682# Transform the output of nm in a C name address pair when lib prefix is needed. 15683global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15684 15685# The name lister interface. 15686nm_interface=$lt_lt_cv_nm_interface 15687 15688# Specify filename containing input files for \$NM. 15689nm_file_list_spec=$lt_nm_file_list_spec 15690 15691# The root where to search for dependent libraries,and where our libraries should be installed. 15692lt_sysroot=$lt_sysroot 15693 15694# Command to truncate a binary pipe. 15695lt_truncate_bin=$lt_lt_cv_truncate_bin 15696 15697# The name of the directory that contains temporary libtool files. 15698objdir=$objdir 15699 15700# Used to examine libraries when file_magic_cmd begins with "file". 15701MAGIC_CMD=$MAGIC_CMD 15702 15703# Must we lock files when doing compilation? 15704need_locks=$lt_need_locks 15705 15706# Manifest tool. 15707MANIFEST_TOOL=$lt_MANIFEST_TOOL 15708 15709# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15710DSYMUTIL=$lt_DSYMUTIL 15711 15712# Tool to change global to local symbols on Mac OS X. 15713NMEDIT=$lt_NMEDIT 15714 15715# Tool to manipulate fat objects and archives on Mac OS X. 15716LIPO=$lt_LIPO 15717 15718# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15719OTOOL=$lt_OTOOL 15720 15721# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15722OTOOL64=$lt_OTOOL64 15723 15724# Old archive suffix (normally "a"). 15725libext=$libext 15726 15727# Shared library suffix (normally ".so"). 15728shrext_cmds=$lt_shrext_cmds 15729 15730# The commands to extract the exported symbol list from a shared archive. 15731extract_expsyms_cmds=$lt_extract_expsyms_cmds 15732 15733# Variables whose values should be saved in libtool wrapper scripts and 15734# restored at link time. 15735variables_saved_for_relink=$lt_variables_saved_for_relink 15736 15737# Do we need the "lib" prefix for modules? 15738need_lib_prefix=$need_lib_prefix 15739 15740# Do we need a version for libraries? 15741need_version=$need_version 15742 15743# Library versioning type. 15744version_type=$version_type 15745 15746# Shared library runtime path variable. 15747runpath_var=$runpath_var 15748 15749# Shared library path variable. 15750shlibpath_var=$shlibpath_var 15751 15752# Is shlibpath searched before the hard-coded library search path? 15753shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15754 15755# Format of library name prefix. 15756libname_spec=$lt_libname_spec 15757 15758# List of archive names. First name is the real one, the rest are links. 15759# The last name is the one that the linker finds with -lNAME 15760library_names_spec=$lt_library_names_spec 15761 15762# The coded name of the library, if different from the real name. 15763soname_spec=$lt_soname_spec 15764 15765# Permission mode override for installation of shared libraries. 15766install_override_mode=$lt_install_override_mode 15767 15768# Command to use after installation of a shared archive. 15769postinstall_cmds=$lt_postinstall_cmds 15770 15771# Command to use after uninstallation of a shared archive. 15772postuninstall_cmds=$lt_postuninstall_cmds 15773 15774# Commands used to finish a libtool library installation in a directory. 15775finish_cmds=$lt_finish_cmds 15776 15777# As "finish_cmds", except a single script fragment to be evaled but 15778# not shown. 15779finish_eval=$lt_finish_eval 15780 15781# Whether we should hardcode library paths into libraries. 15782hardcode_into_libs=$hardcode_into_libs 15783 15784# Compile-time system search path for libraries. 15785sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15786 15787# Detected run-time system search path for libraries. 15788sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15789 15790# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15791configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15792 15793# Whether dlopen is supported. 15794dlopen_support=$enable_dlopen 15795 15796# Whether dlopen of programs is supported. 15797dlopen_self=$enable_dlopen_self 15798 15799# Whether dlopen of statically linked programs is supported. 15800dlopen_self_static=$enable_dlopen_self_static 15801 15802# Commands to strip libraries. 15803old_striplib=$lt_old_striplib 15804striplib=$lt_striplib 15805 15806 15807# The linker used to build libraries. 15808LD=$lt_LD 15809 15810# How to create reloadable object files. 15811reload_flag=$lt_reload_flag 15812reload_cmds=$lt_reload_cmds 15813 15814# Commands used to build an old-style archive. 15815old_archive_cmds=$lt_old_archive_cmds 15816 15817# A language specific compiler. 15818CC=$lt_compiler 15819 15820# Is the compiler the GNU compiler? 15821with_gcc=$GCC 15822 15823# Compiler flag to turn off builtin functions. 15824no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15825 15826# Additional compiler flags for building library objects. 15827pic_flag=$lt_lt_prog_compiler_pic 15828 15829# How to pass a linker flag through the compiler. 15830wl=$lt_lt_prog_compiler_wl 15831 15832# Compiler flag to prevent dynamic linking. 15833link_static_flag=$lt_lt_prog_compiler_static 15834 15835# Does compiler simultaneously support -c and -o options? 15836compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15837 15838# Whether or not to add -lc for building shared libraries. 15839build_libtool_need_lc=$archive_cmds_need_lc 15840 15841# Whether or not to disallow shared libs when runtime libs are static. 15842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15843 15844# Compiler flag to allow reflexive dlopens. 15845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15846 15847# Compiler flag to generate shared objects directly from archives. 15848whole_archive_flag_spec=$lt_whole_archive_flag_spec 15849 15850# Whether the compiler copes with passing no objects directly. 15851compiler_needs_object=$lt_compiler_needs_object 15852 15853# Create an old-style archive from a shared archive. 15854old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15855 15856# Create a temporary old-style archive to link instead of a shared archive. 15857old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15858 15859# Commands used to build a shared archive. 15860archive_cmds=$lt_archive_cmds 15861archive_expsym_cmds=$lt_archive_expsym_cmds 15862 15863# Commands used to build a loadable module if different from building 15864# a shared archive. 15865module_cmds=$lt_module_cmds 15866module_expsym_cmds=$lt_module_expsym_cmds 15867 15868# Whether we are building with GNU ld or not. 15869with_gnu_ld=$lt_with_gnu_ld 15870 15871# Flag that allows shared libraries with undefined symbols to be built. 15872allow_undefined_flag=$lt_allow_undefined_flag 15873 15874# Flag that enforces no undefined symbols. 15875no_undefined_flag=$lt_no_undefined_flag 15876 15877# Flag to hardcode \$libdir into a binary during linking. 15878# This must work even if \$libdir does not exist 15879hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15880 15881# Whether we need a single "-rpath" flag with a separated argument. 15882hardcode_libdir_separator=$lt_hardcode_libdir_separator 15883 15884# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15885# DIR into the resulting binary. 15886hardcode_direct=$hardcode_direct 15887 15888# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15889# DIR into the resulting binary and the resulting library dependency is 15890# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15891# library is relocated. 15892hardcode_direct_absolute=$hardcode_direct_absolute 15893 15894# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15895# into the resulting binary. 15896hardcode_minus_L=$hardcode_minus_L 15897 15898# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15899# into the resulting binary. 15900hardcode_shlibpath_var=$hardcode_shlibpath_var 15901 15902# Set to "yes" if building a shared library automatically hardcodes DIR 15903# into the library and all subsequent libraries and executables linked 15904# against it. 15905hardcode_automatic=$hardcode_automatic 15906 15907# Set to yes if linker adds runtime paths of dependent libraries 15908# to runtime path list. 15909inherit_rpath=$inherit_rpath 15910 15911# Whether libtool must link a program against all its dependency libraries. 15912link_all_deplibs=$link_all_deplibs 15913 15914# Set to "yes" if exported symbols are required. 15915always_export_symbols=$always_export_symbols 15916 15917# The commands to list exported symbols. 15918export_symbols_cmds=$lt_export_symbols_cmds 15919 15920# Symbols that should not be listed in the preloaded symbols. 15921exclude_expsyms=$lt_exclude_expsyms 15922 15923# Symbols that must always be exported. 15924include_expsyms=$lt_include_expsyms 15925 15926# Commands necessary for linking programs (against libraries) with templates. 15927prelink_cmds=$lt_prelink_cmds 15928 15929# Commands necessary for finishing linking programs. 15930postlink_cmds=$lt_postlink_cmds 15931 15932# Specify filename containing input files. 15933file_list_spec=$lt_file_list_spec 15934 15935# How to hardcode a shared library path into an executable. 15936hardcode_action=$hardcode_action 15937 15938# ### END LIBTOOL CONFIG 15939 15940_LT_EOF 15941 15942 cat <<'_LT_EOF' >> "$cfgfile" 15943 15944# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15945 15946# func_munge_path_list VARIABLE PATH 15947# ----------------------------------- 15948# VARIABLE is name of variable containing _space_ separated list of 15949# directories to be munged by the contents of PATH, which is string 15950# having a format: 15951# "DIR[:DIR]:" 15952# string "DIR[ DIR]" will be prepended to VARIABLE 15953# ":DIR[:DIR]" 15954# string "DIR[ DIR]" will be appended to VARIABLE 15955# "DIRP[:DIRP]::[DIRA:]DIRA" 15956# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15957# "DIRA[ DIRA]" will be appended to VARIABLE 15958# "DIR[:DIR]" 15959# VARIABLE will be replaced by "DIR[ DIR]" 15960func_munge_path_list () 15961{ 15962 case x$2 in 15963 x) 15964 ;; 15965 *:) 15966 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15967 ;; 15968 x:*) 15969 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15970 ;; 15971 *::*) 15972 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15973 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15974 ;; 15975 *) 15976 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15977 ;; 15978 esac 15979} 15980 15981 15982# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15983func_cc_basename () 15984{ 15985 for cc_temp in $*""; do 15986 case $cc_temp in 15987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15989 \-*) ;; 15990 *) break;; 15991 esac 15992 done 15993 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15994} 15995 15996 15997# ### END FUNCTIONS SHARED WITH CONFIGURE 15998 15999_LT_EOF 16000 16001 case $host_os in 16002 aix3*) 16003 cat <<\_LT_EOF >> "$cfgfile" 16004# AIX sometimes has problems with the GCC collect2 program. For some 16005# reason, if we set the COLLECT_NAMES environment variable, the problems 16006# vanish in a puff of smoke. 16007if test set != "${COLLECT_NAMES+set}"; then 16008 COLLECT_NAMES= 16009 export COLLECT_NAMES 16010fi 16011_LT_EOF 16012 ;; 16013 esac 16014 16015 16016ltmain=$ac_aux_dir/ltmain.sh 16017 16018 16019 # We use sed instead of cat because bash on DJGPP gets confused if 16020 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16021 # text mode, it properly converts lines to CR/LF. This bash problem 16022 # is reportedly fixed, but why not run on old versions too? 16023 sed '$q' "$ltmain" >> "$cfgfile" \ 16024 || (rm -f "$cfgfile"; exit 1) 16025 16026 mv -f "$cfgfile" "$ofile" || 16027 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16028 chmod +x "$ofile" 16029 16030 ;; 16031 16032 esac 16033done # for ac_tag 16034 16035 16036as_fn_exit 0 16037_ACEOF 16038ac_clean_files=$ac_clean_files_save 16039 16040test $ac_write_fail = 0 || 16041 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16042 16043 16044# configure is writing to config.log, and then calls config.status. 16045# config.status does its own redirection, appending to config.log. 16046# Unfortunately, on DOS this fails, as config.log is still kept open 16047# by configure, so config.status won't be able to write to it; its 16048# output is simply discarded. So we exec the FD to /dev/null, 16049# effectively closing config.log, so it can be properly (re)opened and 16050# appended to by config.status. When coming back to configure, we 16051# need to make the FD available again. 16052if test "$no_create" != yes; then 16053 ac_cs_success=: 16054 ac_config_status_args= 16055 test "$silent" = yes && 16056 ac_config_status_args="$ac_config_status_args --quiet" 16057 exec 5>/dev/null 16058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16059 exec 5>>config.log 16060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16061 # would make configure fail if this is the last instruction. 16062 $ac_cs_success || as_fn_exit 1 16063fi 16064if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16066$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16067fi 16068 16069