1#! /bin/sh 2# From configure.ac Id: configure.ac 924 2017-02-19 20:52:28Z des . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for OpenPAM 20170219. 5# 6# Report bugs to <des@des.no>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202test \$(( 1 + 1 )) = 2 || exit 1 203 204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 208 PATH=/empty FPATH=/empty; export PATH FPATH 209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about 279$0: your system, including any error possibly output before 280$0: this message. Then install a modern shell, or manually 281$0: run 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='OpenPAM' 592PACKAGE_TARNAME='openpam' 593PACKAGE_VERSION='20170219' 594PACKAGE_STRING='OpenPAM 20170219' 595PACKAGE_BUGREPORT='des@des.no' 596PACKAGE_URL='http://www.openpam.org/' 597 598ac_unique_file="lib/libpam/pam_start.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 639WITH_TEST_FALSE 640WITH_TEST_TRUE 641CRYB_TEST_LIBS 642SYSTEM_LIBPAM 643CRYPTO_LIBS 644CRYPT_LIBS 645DL_LIBS 646WITH_SYSTEM_LIBPAM_FALSE 647WITH_SYSTEM_LIBPAM_TRUE 648WITH_SU_FALSE 649WITH_SU_TRUE 650WITH_PAMTEST_FALSE 651WITH_PAMTEST_TRUE 652WITH_PAM_UNIX_FALSE 653WITH_PAM_UNIX_TRUE 654WITH_DOC_FALSE 655WITH_DOC_TRUE 656CUSTOM_MODULES_DIR_FALSE 657CUSTOM_MODULES_DIR_TRUE 658OPENPAM_MODULES_DIR 659LIB_MAJ 660LT_SYS_LIBRARY_PATH 661OTOOL64 662OTOOL 663LIPO 664NMEDIT 665DSYMUTIL 666MANIFEST_TOOL 667RANLIB 668ac_ct_AR 669AR 670DLLTOOL 671OBJDUMP 672LN_S 673NM 674ac_ct_DUMPBIN 675DUMPBIN 676LD 677FGREP 678SED 679host_os 680host_vendor 681host_cpu 682host 683build_os 684build_vendor 685build_cpu 686build 687LIBTOOL 688EGREP 689GREP 690CPP 691am__fastdepCC_FALSE 692am__fastdepCC_TRUE 693CCDEPMODE 694am__nodep 695AMDEPBACKSLASH 696AMDEP_FALSE 697AMDEP_TRUE 698am__quote 699am__include 700DEPDIR 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708AM_BACKSLASH 709AM_DEFAULT_VERBOSITY 710AM_DEFAULT_V 711AM_V 712am__untar 713am__tar 714AMTAR 715am__leading_dot 716SET_MAKE 717AWK 718mkdir_p 719MKDIR_P 720INSTALL_STRIP_PROGRAM 721STRIP 722install_sh 723MAKEINFO 724AUTOHEADER 725AUTOMAKE 726AUTOCONF 727ACLOCAL 728VERSION 729PACKAGE 730CYGPATH_W 731am__isrc 732INSTALL_DATA 733INSTALL_SCRIPT 734INSTALL_PROGRAM 735target_alias 736host_alias 737build_alias 738LIBS 739ECHO_T 740ECHO_N 741ECHO_C 742DEFS 743mandir 744localedir 745libdir 746psdir 747pdfdir 748dvidir 749htmldir 750infodir 751docdir 752oldincludedir 753includedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL' 773ac_subst_files='' 774ac_user_opts=' 775enable_option_checking 776enable_silent_rules 777enable_dependency_tracking 778enable_static 779enable_shared 780with_pic 781enable_fast_install 782with_aix_soname 783with_gnu_ld 784with_sysroot 785enable_libtool_lock 786enable_debug 787enable_unversioned_modules 788with_modules_dir 789with_doc 790with_pam_unix 791with_pamtest 792with_su 793with_system_libpam 794enable_developer_warnings 795enable_debugging_symbols 796enable_werror 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806CPP 807LT_SYS_LIBRARY_PATH' 808 809 810# Initialize some variables set by options. 811ac_init_help= 812ac_init_version=false 813ac_unrecognized_opts= 814ac_unrecognized_sep= 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *=) ac_optarg= ;; 872 *) ac_optarg=yes ;; 873 esac 874 875 # Accept the important Cygnus configure options, so we can diagnose typos. 876 877 case $ac_dashdash$ac_option in 878 --) 879 ac_dashdash=yes ;; 880 881 -bindir | --bindir | --bindi | --bind | --bin | --bi) 882 ac_prev=bindir ;; 883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 884 bindir=$ac_optarg ;; 885 886 -build | --build | --buil | --bui | --bu) 887 ac_prev=build_alias ;; 888 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 889 build_alias=$ac_optarg ;; 890 891 -cache-file | --cache-file | --cache-fil | --cache-fi \ 892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 893 ac_prev=cache_file ;; 894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 896 cache_file=$ac_optarg ;; 897 898 --config-cache | -C) 899 cache_file=config.cache ;; 900 901 -datadir | --datadir | --datadi | --datad) 902 ac_prev=datadir ;; 903 -datadir=* | --datadir=* | --datadi=* | --datad=*) 904 datadir=$ac_optarg ;; 905 906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 907 | --dataroo | --dataro | --datar) 908 ac_prev=datarootdir ;; 909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 911 datarootdir=$ac_optarg ;; 912 913 -disable-* | --disable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=no ;; 928 929 -docdir | --docdir | --docdi | --doc | --do) 930 ac_prev=docdir ;; 931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 932 docdir=$ac_optarg ;; 933 934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 935 ac_prev=dvidir ;; 936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 937 dvidir=$ac_optarg ;; 938 939 -enable-* | --enable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=\$ac_optarg ;; 954 955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 957 | --exec | --exe | --ex) 958 ac_prev=exec_prefix ;; 959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 961 | --exec=* | --exe=* | --ex=*) 962 exec_prefix=$ac_optarg ;; 963 964 -gas | --gas | --ga | --g) 965 # Obsolete; use --with-gas. 966 with_gas=yes ;; 967 968 -help | --help | --hel | --he | -h) 969 ac_init_help=long ;; 970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 971 ac_init_help=recursive ;; 972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 973 ac_init_help=short ;; 974 975 -host | --host | --hos | --ho) 976 ac_prev=host_alias ;; 977 -host=* | --host=* | --hos=* | --ho=*) 978 host_alias=$ac_optarg ;; 979 980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 981 ac_prev=htmldir ;; 982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 983 | --ht=*) 984 htmldir=$ac_optarg ;; 985 986 -includedir | --includedir | --includedi | --included | --include \ 987 | --includ | --inclu | --incl | --inc) 988 ac_prev=includedir ;; 989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 990 | --includ=* | --inclu=* | --incl=* | --inc=*) 991 includedir=$ac_optarg ;; 992 993 -infodir | --infodir | --infodi | --infod | --info | --inf) 994 ac_prev=infodir ;; 995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 996 infodir=$ac_optarg ;; 997 998 -libdir | --libdir | --libdi | --libd) 999 ac_prev=libdir ;; 1000 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1001 libdir=$ac_optarg ;; 1002 1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1004 | --libexe | --libex | --libe) 1005 ac_prev=libexecdir ;; 1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1007 | --libexe=* | --libex=* | --libe=*) 1008 libexecdir=$ac_optarg ;; 1009 1010 -localedir | --localedir | --localedi | --localed | --locale) 1011 ac_prev=localedir ;; 1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1013 localedir=$ac_optarg ;; 1014 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1016 | --localstate | --localstat | --localsta | --localst | --locals) 1017 ac_prev=localstatedir ;; 1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1020 localstatedir=$ac_optarg ;; 1021 1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1023 ac_prev=mandir ;; 1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1025 mandir=$ac_optarg ;; 1026 1027 -nfp | --nfp | --nf) 1028 # Obsolete; use --without-fp. 1029 with_fp=no ;; 1030 1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1032 | --no-cr | --no-c | -n) 1033 no_create=yes ;; 1034 1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1037 no_recursion=yes ;; 1038 1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1041 | --oldin | --oldi | --old | --ol | --o) 1042 ac_prev=oldincludedir ;; 1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1046 oldincludedir=$ac_optarg ;; 1047 1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1049 ac_prev=prefix ;; 1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1051 prefix=$ac_optarg ;; 1052 1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1054 | --program-pre | --program-pr | --program-p) 1055 ac_prev=program_prefix ;; 1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1058 program_prefix=$ac_optarg ;; 1059 1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1061 | --program-suf | --program-su | --program-s) 1062 ac_prev=program_suffix ;; 1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1065 program_suffix=$ac_optarg ;; 1066 1067 -program-transform-name | --program-transform-name \ 1068 | --program-transform-nam | --program-transform-na \ 1069 | --program-transform-n | --program-transform- \ 1070 | --program-transform | --program-transfor \ 1071 | --program-transfo | --program-transf \ 1072 | --program-trans | --program-tran \ 1073 | --progr-tra | --program-tr | --program-t) 1074 ac_prev=program_transform_name ;; 1075 -program-transform-name=* | --program-transform-name=* \ 1076 | --program-transform-nam=* | --program-transform-na=* \ 1077 | --program-transform-n=* | --program-transform-=* \ 1078 | --program-transform=* | --program-transfor=* \ 1079 | --program-transfo=* | --program-transf=* \ 1080 | --program-trans=* | --program-tran=* \ 1081 | --progr-tra=* | --program-tr=* | --program-t=*) 1082 program_transform_name=$ac_optarg ;; 1083 1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1085 ac_prev=pdfdir ;; 1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1087 pdfdir=$ac_optarg ;; 1088 1089 -psdir | --psdir | --psdi | --psd | --ps) 1090 ac_prev=psdir ;; 1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1092 psdir=$ac_optarg ;; 1093 1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1095 | -silent | --silent | --silen | --sile | --sil) 1096 silent=yes ;; 1097 1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1099 ac_prev=sbindir ;; 1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1101 | --sbi=* | --sb=*) 1102 sbindir=$ac_optarg ;; 1103 1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1106 | --sharedst | --shareds | --shared | --share | --shar \ 1107 | --sha | --sh) 1108 ac_prev=sharedstatedir ;; 1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1112 | --sha=* | --sh=*) 1113 sharedstatedir=$ac_optarg ;; 1114 1115 -site | --site | --sit) 1116 ac_prev=site ;; 1117 -site=* | --site=* | --sit=*) 1118 site=$ac_optarg ;; 1119 1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1121 ac_prev=srcdir ;; 1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1123 srcdir=$ac_optarg ;; 1124 1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1126 | --syscon | --sysco | --sysc | --sys | --sy) 1127 ac_prev=sysconfdir ;; 1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1130 sysconfdir=$ac_optarg ;; 1131 1132 -target | --target | --targe | --targ | --tar | --ta | --t) 1133 ac_prev=target_alias ;; 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1135 target_alias=$ac_optarg ;; 1136 1137 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1138 verbose=yes ;; 1139 1140 -version | --version | --versio | --versi | --vers | -V) 1141 ac_init_version=: ;; 1142 1143 -with-* | --with-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=no ;; 1174 1175 --x) 1176 # Obsolete; use --with-x. 1177 with_x=yes ;; 1178 1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1180 | --x-incl | --x-inc | --x-in | --x-i) 1181 ac_prev=x_includes ;; 1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1184 x_includes=$ac_optarg ;; 1185 1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1188 ac_prev=x_libraries ;; 1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 x_libraries=$ac_optarg ;; 1192 1193 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1194Try \`$0 --help' for more information" 1195 ;; 1196 1197 *=*) 1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 # Reject names that are not valid shell variable names. 1200 case $ac_envvar in #( 1201 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1203 esac 1204 eval $ac_envvar=\$ac_optarg 1205 export $ac_envvar ;; 1206 1207 *) 1208 # FIXME: should be removed in autoconf 3.0. 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1213 ;; 1214 1215 esac 1216done 1217 1218if test -n "$ac_prev"; then 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 as_fn_error $? "missing argument to $ac_option" 1221fi 1222 1223if test -n "$ac_unrecognized_opts"; then 1224 case $enable_option_checking in 1225 no) ;; 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1228 esac 1229fi 1230 1231# Check all directory arguments for consistency. 1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 datadir sysconfdir sharedstatedir localstatedir includedir \ 1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1235 libdir localedir mandir 1236do 1237 eval ac_val=\$$ac_var 1238 # Remove trailing slashes. 1239 case $ac_val in 1240 */ ) 1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1242 eval $ac_var=\$ac_val;; 1243 esac 1244 # Be sure to have absolute directory names. 1245 case $ac_val in 1246 [\\/$]* | ?:[\\/]* ) continue;; 1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 esac 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1250done 1251 1252# There might be people who depend on the old broken behavior: `$host' 1253# used to hold the argument of --host etc. 1254# FIXME: To remove some day. 1255build=$build_alias 1256host=$host_alias 1257target=$target_alias 1258 1259# FIXME: To remove some day. 1260if test "x$host_alias" != x; then 1261 if test "x$build_alias" = x; then 1262 cross_compiling=maybe 1263 elif test "x$build_alias" != "x$host_alias"; then 1264 cross_compiling=yes 1265 fi 1266fi 1267 1268ac_tool_prefix= 1269test -n "$host_alias" && ac_tool_prefix=$host_alias- 1270 1271test "$silent" = yes && exec 6>/dev/null 1272 1273 1274ac_pwd=`pwd` && test -n "$ac_pwd" && 1275ac_ls_di=`ls -di .` && 1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1277 as_fn_error $? "working directory cannot be determined" 1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1279 as_fn_error $? "pwd does not report name of working directory" 1280 1281 1282# Find the source files, if location was not specified. 1283if test -z "$srcdir"; then 1284 ac_srcdir_defaulted=yes 1285 # Try the directory containing this script, then the parent directory. 1286 ac_confdir=`$as_dirname -- "$as_myself" || 1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1288 X"$as_myself" : 'X\(//\)[^/]' \| \ 1289 X"$as_myself" : 'X\(//\)$' \| \ 1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1291$as_echo X"$as_myself" | 1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)[^/].*/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\).*/{ 1305 s//\1/ 1306 q 1307 } 1308 s/.*/./; q'` 1309 srcdir=$ac_confdir 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 srcdir=.. 1312 fi 1313else 1314 ac_srcdir_defaulted=no 1315fi 1316if test ! -r "$srcdir/$ac_unique_file"; then 1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1319fi 1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1321ac_abs_confdir=`( 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1323 pwd)` 1324# When building in place, set srcdir=. 1325if test "$ac_abs_confdir" = "$ac_pwd"; then 1326 srcdir=. 1327fi 1328# Remove unnecessary trailing slashes from srcdir. 1329# Double slashes in file names in object file debugging info 1330# mess up M-x gdb in Emacs. 1331case $srcdir in 1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1333esac 1334for ac_var in $ac_precious_vars; do 1335 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_env_${ac_var}_value=\$${ac_var} 1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1339done 1340 1341# 1342# Report the --help message. 1343# 1344if test "$ac_init_help" = "long"; then 1345 # Omit some internal or obsolete options to make the list less imposing. 1346 # This message is too long to be a string in the A/UX 3.1 sh. 1347 cat <<_ACEOF 1348\`configure' configures OpenPAM 20170219 to adapt to many kinds of systems. 1349 1350Usage: $0 [OPTION]... [VAR=VALUE]... 1351 1352To assign environment variables (e.g., CC, CFLAGS...), specify them as 1353VAR=VALUE. See below for descriptions of some of the useful variables. 1354 1355Defaults for the options are specified in brackets. 1356 1357Configuration: 1358 -h, --help display this help and exit 1359 --help=short display options specific to this package 1360 --help=recursive display the short help of all the included packages 1361 -V, --version display version information and exit 1362 -q, --quiet, --silent do not print \`checking ...' messages 1363 --cache-file=FILE cache test results in FILE [disabled] 1364 -C, --config-cache alias for \`--cache-file=config.cache' 1365 -n, --no-create do not create output files 1366 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1367 1368Installation directories: 1369 --prefix=PREFIX install architecture-independent files in PREFIX 1370 [$ac_default_prefix] 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1372 [PREFIX] 1373 1374By default, \`make install' will install all the files in 1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1376an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1377for instance \`--prefix=\$HOME'. 1378 1379For better control, use the options below. 1380 1381Fine tuning of the installation directories: 1382 --bindir=DIR user executables [EPREFIX/bin] 1383 --sbindir=DIR system admin executables [EPREFIX/sbin] 1384 --libexecdir=DIR program executables [EPREFIX/libexec] 1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of OpenPAM 20170219:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --enable-static[=PKGS] build static libraries [default=no] 1433 --enable-shared[=PKGS] build shared libraries [default=yes] 1434 --enable-fast-install[=PKGS] 1435 optimize for fast installation [default=yes] 1436 --disable-libtool-lock avoid locking (might break parallel builds) 1437 --enable-debug turn debugging macros on 1438 --disable-unversioned-modules 1439 support loading of unversioned modules 1440 --enable-developer-warnings 1441 enable strict warnings (default is NO) 1442 --enable-debugging-symbols 1443 enable debugging symbols (default is NO) 1444 --enable-werror use -Werror (default is NO) 1445 1446Optional Packages: 1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1450 both] 1451 --with-aix-soname=aix|svr4|both 1452 shared library versioning (aka "SONAME") variant to 1453 provide on AIX, [default=aix]. 1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1455 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1456 compiler's sysroot if not specified). 1457 --with-modules-dir=DIR OpenPAM modules directory 1458 --without-doc do not build documentation 1459 --with-pam-unix build sample pam_unix(8) module 1460 --with-pamtest build test application 1461 --with-su build sample su(1) implementation 1462 --with-system-libpam use system libpam 1463 1464Some influential environment variables: 1465 CC C compiler command 1466 CFLAGS C compiler flags 1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1468 nonstandard directory <lib dir> 1469 LIBS libraries to pass to the linker, e.g. -l<library> 1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1471 you have headers in a nonstandard directory <include dir> 1472 CPP C preprocessor 1473 LT_SYS_LIBRARY_PATH 1474 User-defined run-time library search path. 1475 1476Use these variables to override the choices made by `configure' or to help 1477it to find libraries and programs with nonstandard names/locations. 1478 1479Report bugs to <des@des.no>. 1480OpenPAM home page: <http://www.openpam.org/>. 1481_ACEOF 1482ac_status=$? 1483fi 1484 1485if test "$ac_init_help" = "recursive"; then 1486 # If there are subdirs, report their specific --help. 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1488 test -d "$ac_dir" || 1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1490 continue 1491 ac_builddir=. 1492 1493case "$ac_dir" in 1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495*) 1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1497 # A ".." for each directory in $ac_dir_suffix. 1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1499 case $ac_top_builddir_sub in 1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1502 esac ;; 1503esac 1504ac_abs_top_builddir=$ac_pwd 1505ac_abs_builddir=$ac_pwd$ac_dir_suffix 1506# for backward compatibility: 1507ac_top_builddir=$ac_top_build_prefix 1508 1509case $srcdir in 1510 .) # We are building in place. 1511 ac_srcdir=. 1512 ac_top_srcdir=$ac_top_builddir_sub 1513 ac_abs_top_srcdir=$ac_pwd ;; 1514 [\\/]* | ?:[\\/]* ) # Absolute name. 1515 ac_srcdir=$srcdir$ac_dir_suffix; 1516 ac_top_srcdir=$srcdir 1517 ac_abs_top_srcdir=$srcdir ;; 1518 *) # Relative name. 1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1520 ac_top_srcdir=$ac_top_build_prefix$srcdir 1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1522esac 1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1524 1525 cd "$ac_dir" || { ac_status=$?; continue; } 1526 # Check for guested configure. 1527 if test -f "$ac_srcdir/configure.gnu"; then 1528 echo && 1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1530 elif test -f "$ac_srcdir/configure"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure" --help=recursive 1533 else 1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1535 fi || ac_status=$? 1536 cd "$ac_pwd" || { ac_status=$?; break; } 1537 done 1538fi 1539 1540test -n "$ac_init_help" && exit $ac_status 1541if $ac_init_version; then 1542 cat <<\_ACEOF 1543OpenPAM configure 20170219 1544generated by GNU Autoconf 2.69 1545 1546Copyright (C) 2012 Free Software Foundation, Inc. 1547This configure script is free software; the Free Software Foundation 1548gives unlimited permission to copy, distribute and modify it. 1549_ACEOF 1550 exit 1551fi 1552 1553## ------------------------ ## 1554## Autoconf initialization. ## 1555## ------------------------ ## 1556 1557# ac_fn_c_try_compile LINENO 1558# -------------------------- 1559# Try to compile conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_compile () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 rm -f conftest.$ac_objext 1564 if { { ac_try="$ac_compile" 1565case "(($ac_try" in 1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1567 *) ac_try_echo=$ac_try;; 1568esac 1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1570$as_echo "$ac_try_echo"; } >&5 1571 (eval "$ac_compile") 2>conftest.err 1572 ac_status=$? 1573 if test -s conftest.err; then 1574 grep -v '^ *+' conftest.err >conftest.er1 1575 cat conftest.er1 >&5 1576 mv -f conftest.er1 conftest.err 1577 fi 1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1579 test $ac_status = 0; } && { 1580 test -z "$ac_c_werror_flag" || 1581 test ! -s conftest.err 1582 } && test -s conftest.$ac_objext; then : 1583 ac_retval=0 1584else 1585 $as_echo "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589fi 1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1591 as_fn_set_status $ac_retval 1592 1593} # ac_fn_c_try_compile 1594 1595# ac_fn_c_try_cpp LINENO 1596# ---------------------- 1597# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1598ac_fn_c_try_cpp () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 if { { ac_try="$ac_cpp conftest.$ac_ext" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } > conftest.i && { 1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1618 test ! -s conftest.err 1619 }; then : 1620 ac_retval=0 1621else 1622 $as_echo "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=1 1626fi 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 as_fn_set_status $ac_retval 1629 1630} # ac_fn_c_try_cpp 1631 1632# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1633# ------------------------------------------------------- 1634# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1635# the include files in INCLUDES and setting the cache variable VAR 1636# accordingly. 1637ac_fn_c_check_header_mongrel () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 if eval \${$3+:} false; then : 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1642$as_echo_n "checking for $2... " >&6; } 1643if eval \${$3+:} false; then : 1644 $as_echo_n "(cached) " >&6 1645fi 1646eval ac_res=\$$3 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1648$as_echo "$ac_res" >&6; } 1649else 1650 # Is the header compilable? 1651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1652$as_echo_n "checking $2 usability... " >&6; } 1653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655$4 1656#include <$2> 1657_ACEOF 1658if ac_fn_c_try_compile "$LINENO"; then : 1659 ac_header_compiler=yes 1660else 1661 ac_header_compiler=no 1662fi 1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1665$as_echo "$ac_header_compiler" >&6; } 1666 1667# Is the header present? 1668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1669$as_echo_n "checking $2 presence... " >&6; } 1670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1671/* end confdefs.h. */ 1672#include <$2> 1673_ACEOF 1674if ac_fn_c_try_cpp "$LINENO"; then : 1675 ac_header_preproc=yes 1676else 1677 ac_header_preproc=no 1678fi 1679rm -f conftest.err conftest.i conftest.$ac_ext 1680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1681$as_echo "$ac_header_preproc" >&6; } 1682 1683# So? What about this header? 1684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1685 yes:no: ) 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1687$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1689$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1690 ;; 1691 no:yes:* ) 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1693$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1695$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1697$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1699$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1701$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1702( $as_echo "## ------------------------- ## 1703## Report this to des@des.no ## 1704## ------------------------- ##" 1705 ) | sed "s/^/$as_me: WARNING: /" >&2 1706 ;; 1707esac 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1709$as_echo_n "checking for $2... " >&6; } 1710if eval \${$3+:} false; then : 1711 $as_echo_n "(cached) " >&6 1712else 1713 eval "$3=\$ac_header_compiler" 1714fi 1715eval ac_res=\$$3 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717$as_echo "$ac_res" >&6; } 1718fi 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 1721} # ac_fn_c_check_header_mongrel 1722 1723# ac_fn_c_try_run LINENO 1724# ---------------------- 1725# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1726# that executables *can* be run. 1727ac_fn_c_try_run () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 if { { ac_try="$ac_link" 1731case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_link") 2>&5 1738 ac_status=$? 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1741 { { case "(($ac_try" in 1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1743 *) ac_try_echo=$ac_try;; 1744esac 1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1746$as_echo "$ac_try_echo"; } >&5 1747 (eval "$ac_try") 2>&5 1748 ac_status=$? 1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1750 test $ac_status = 0; }; }; then : 1751 ac_retval=0 1752else 1753 $as_echo "$as_me: program exited with status $ac_status" >&5 1754 $as_echo "$as_me: failed program was:" >&5 1755sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=$ac_status 1758fi 1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_run 1764 1765# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1766# ------------------------------------------------------- 1767# Tests whether HEADER exists and can be compiled using the include files in 1768# INCLUDES, setting the cache variable VAR accordingly. 1769ac_fn_c_check_header_compile () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1773$as_echo_n "checking for $2... " >&6; } 1774if eval \${$3+:} false; then : 1775 $as_echo_n "(cached) " >&6 1776else 1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778/* end confdefs.h. */ 1779$4 1780#include <$2> 1781_ACEOF 1782if ac_fn_c_try_compile "$LINENO"; then : 1783 eval "$3=yes" 1784else 1785 eval "$3=no" 1786fi 1787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1788fi 1789eval ac_res=\$$3 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791$as_echo "$ac_res" >&6; } 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 1794} # ac_fn_c_check_header_compile 1795 1796# ac_fn_c_try_link LINENO 1797# ----------------------- 1798# Try to link conftest.$ac_ext, and return whether this succeeded. 1799ac_fn_c_try_link () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 rm -f conftest.$ac_objext conftest$ac_exeext 1803 if { { ac_try="$ac_link" 1804case "(($ac_try" in 1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1806 *) ac_try_echo=$ac_try;; 1807esac 1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1809$as_echo "$ac_try_echo"; } >&5 1810 (eval "$ac_link") 2>conftest.err 1811 ac_status=$? 1812 if test -s conftest.err; then 1813 grep -v '^ *+' conftest.err >conftest.er1 1814 cat conftest.er1 >&5 1815 mv -f conftest.er1 conftest.err 1816 fi 1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1818 test $ac_status = 0; } && { 1819 test -z "$ac_c_werror_flag" || 1820 test ! -s conftest.err 1821 } && test -s conftest$ac_exeext && { 1822 test "$cross_compiling" = yes || 1823 test -x conftest$ac_exeext 1824 }; then : 1825 ac_retval=0 1826else 1827 $as_echo "$as_me: failed program was:" >&5 1828sed 's/^/| /' conftest.$ac_ext >&5 1829 1830 ac_retval=1 1831fi 1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1834 # interfere with the next link command; also delete a directory that is 1835 # left behind by Apple's compiler. We do this before executing the actions. 1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 as_fn_set_status $ac_retval 1839 1840} # ac_fn_c_try_link 1841 1842# ac_fn_c_check_func LINENO FUNC VAR 1843# ---------------------------------- 1844# Tests whether FUNC exists, setting the cache variable VAR accordingly 1845ac_fn_c_check_func () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1849$as_echo_n "checking for $2... " >&6; } 1850if eval \${$3+:} false; then : 1851 $as_echo_n "(cached) " >&6 1852else 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1857#define $2 innocuous_$2 1858 1859/* System header to define __stub macros and hopefully few prototypes, 1860 which can conflict with char $2 (); below. 1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1862 <limits.h> exists even on freestanding compilers. */ 1863 1864#ifdef __STDC__ 1865# include <limits.h> 1866#else 1867# include <assert.h> 1868#endif 1869 1870#undef $2 1871 1872/* Override any GCC internal prototype to avoid an error. 1873 Use char because int might match the return type of a GCC 1874 builtin and then its argument prototype would still apply. */ 1875#ifdef __cplusplus 1876extern "C" 1877#endif 1878char $2 (); 1879/* The GNU C library defines this for functions which it implements 1880 to always fail with ENOSYS. Some functions are actually named 1881 something starting with __ and the normal name is an alias. */ 1882#if defined __stub_$2 || defined __stub___$2 1883choke me 1884#endif 1885 1886int 1887main () 1888{ 1889return $2 (); 1890 ; 1891 return 0; 1892} 1893_ACEOF 1894if ac_fn_c_try_link "$LINENO"; then : 1895 eval "$3=yes" 1896else 1897 eval "$3=no" 1898fi 1899rm -f core conftest.err conftest.$ac_objext \ 1900 conftest$ac_exeext conftest.$ac_ext 1901fi 1902eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904$as_echo "$ac_res" >&6; } 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_c_check_func 1908cat >config.log <<_ACEOF 1909This file contains any messages produced by compilers while 1910running configure, to aid debugging if configure makes a mistake. 1911 1912It was created by OpenPAM $as_me 20170219, which was 1913generated by GNU Autoconf 2.69. Invocation command line was 1914 1915 $ $0 $@ 1916 1917_ACEOF 1918exec 5>>config.log 1919{ 1920cat <<_ASUNAME 1921## --------- ## 1922## Platform. ## 1923## --------- ## 1924 1925hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1926uname -m = `(uname -m) 2>/dev/null || echo unknown` 1927uname -r = `(uname -r) 2>/dev/null || echo unknown` 1928uname -s = `(uname -s) 2>/dev/null || echo unknown` 1929uname -v = `(uname -v) 2>/dev/null || echo unknown` 1930 1931/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1932/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1933 1934/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1935/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1936/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1937/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1938/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1939/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1940/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1941 1942_ASUNAME 1943 1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1945for as_dir in $PATH 1946do 1947 IFS=$as_save_IFS 1948 test -z "$as_dir" && as_dir=. 1949 $as_echo "PATH: $as_dir" 1950 done 1951IFS=$as_save_IFS 1952 1953} >&5 1954 1955cat >&5 <<_ACEOF 1956 1957 1958## ----------- ## 1959## Core tests. ## 1960## ----------- ## 1961 1962_ACEOF 1963 1964 1965# Keep a trace of the command line. 1966# Strip out --no-create and --no-recursion so they do not pile up. 1967# Strip out --silent because we don't want to record it for future runs. 1968# Also quote any args containing shell meta-characters. 1969# Make two passes to allow for proper duplicate-argument suppression. 1970ac_configure_args= 1971ac_configure_args0= 1972ac_configure_args1= 1973ac_must_keep_next=false 1974for ac_pass in 1 2 1975do 1976 for ac_arg 1977 do 1978 case $ac_arg in 1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1981 | -silent | --silent | --silen | --sile | --sil) 1982 continue ;; 1983 *\'*) 1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1985 esac 1986 case $ac_pass in 1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1988 2) 1989 as_fn_append ac_configure_args1 " '$ac_arg'" 1990 if test $ac_must_keep_next = true; then 1991 ac_must_keep_next=false # Got value, back to normal. 1992 else 1993 case $ac_arg in 1994 *=* | --config-cache | -C | -disable-* | --disable-* \ 1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1997 | -with-* | --with-* | -without-* | --without-* | --x) 1998 case "$ac_configure_args0 " in 1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2000 esac 2001 ;; 2002 -* ) ac_must_keep_next=true ;; 2003 esac 2004 fi 2005 as_fn_append ac_configure_args " '$ac_arg'" 2006 ;; 2007 esac 2008 done 2009done 2010{ ac_configure_args0=; unset ac_configure_args0;} 2011{ ac_configure_args1=; unset ac_configure_args1;} 2012 2013# When interrupted or exit'd, cleanup temporary files, and complete 2014# config.log. We remove comments because anyway the quotes in there 2015# would cause problems or look ugly. 2016# WARNING: Use '\'' to represent an apostrophe within the trap. 2017# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2018trap 'exit_status=$? 2019 # Save into config.log some information that might help in debugging. 2020 { 2021 echo 2022 2023 $as_echo "## ---------------- ## 2024## Cache variables. ## 2025## ---------------- ##" 2026 echo 2027 # The following way of writing the cache mishandles newlines in values, 2028( 2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2030 eval ac_val=\$$ac_var 2031 case $ac_val in #( 2032 *${as_nl}*) 2033 case $ac_var in #( 2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2035$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2036 esac 2037 case $ac_var in #( 2038 _ | IFS | as_nl) ;; #( 2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2040 *) { eval $ac_var=; unset $ac_var;} ;; 2041 esac ;; 2042 esac 2043 done 2044 (set) 2>&1 | 2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2046 *${as_nl}ac_space=\ *) 2047 sed -n \ 2048 "s/'\''/'\''\\\\'\'''\''/g; 2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2050 ;; #( 2051 *) 2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2053 ;; 2054 esac | 2055 sort 2056) 2057 echo 2058 2059 $as_echo "## ----------------- ## 2060## Output variables. ## 2061## ----------------- ##" 2062 echo 2063 for ac_var in $ac_subst_vars 2064 do 2065 eval ac_val=\$$ac_var 2066 case $ac_val in 2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2068 esac 2069 $as_echo "$ac_var='\''$ac_val'\''" 2070 done | sort 2071 echo 2072 2073 if test -n "$ac_subst_files"; then 2074 $as_echo "## ------------------- ## 2075## File substitutions. ## 2076## ------------------- ##" 2077 echo 2078 for ac_var in $ac_subst_files 2079 do 2080 eval ac_val=\$$ac_var 2081 case $ac_val in 2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2083 esac 2084 $as_echo "$ac_var='\''$ac_val'\''" 2085 done | sort 2086 echo 2087 fi 2088 2089 if test -s confdefs.h; then 2090 $as_echo "## ----------- ## 2091## confdefs.h. ## 2092## ----------- ##" 2093 echo 2094 cat confdefs.h 2095 echo 2096 fi 2097 test "$ac_signal" != 0 && 2098 $as_echo "$as_me: caught signal $ac_signal" 2099 $as_echo "$as_me: exit $exit_status" 2100 } >&5 2101 rm -f core *.core core.conftest.* && 2102 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2103 exit $exit_status 2104' 0 2105for ac_signal in 1 2 13 15; do 2106 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2107done 2108ac_signal=0 2109 2110# confdefs.h avoids OS command line length limits that DEFS can exceed. 2111rm -f -r conftest* confdefs.h 2112 2113$as_echo "/* confdefs.h */" > confdefs.h 2114 2115# Predefined preprocessor variables. 2116 2117cat >>confdefs.h <<_ACEOF 2118#define PACKAGE_NAME "$PACKAGE_NAME" 2119_ACEOF 2120 2121cat >>confdefs.h <<_ACEOF 2122#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2123_ACEOF 2124 2125cat >>confdefs.h <<_ACEOF 2126#define PACKAGE_VERSION "$PACKAGE_VERSION" 2127_ACEOF 2128 2129cat >>confdefs.h <<_ACEOF 2130#define PACKAGE_STRING "$PACKAGE_STRING" 2131_ACEOF 2132 2133cat >>confdefs.h <<_ACEOF 2134#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2135_ACEOF 2136 2137cat >>confdefs.h <<_ACEOF 2138#define PACKAGE_URL "$PACKAGE_URL" 2139_ACEOF 2140 2141 2142# Let the site file select an alternate cache file if it wants to. 2143# Prefer an explicitly selected file to automatically selected ones. 2144ac_site_file1=NONE 2145ac_site_file2=NONE 2146if test -n "$CONFIG_SITE"; then 2147 # We do not want a PATH search for config.site. 2148 case $CONFIG_SITE in #(( 2149 -*) ac_site_file1=./$CONFIG_SITE;; 2150 */*) ac_site_file1=$CONFIG_SITE;; 2151 *) ac_site_file1=./$CONFIG_SITE;; 2152 esac 2153elif test "x$prefix" != xNONE; then 2154 ac_site_file1=$prefix/share/config.site 2155 ac_site_file2=$prefix/etc/config.site 2156else 2157 ac_site_file1=$ac_default_prefix/share/config.site 2158 ac_site_file2=$ac_default_prefix/etc/config.site 2159fi 2160for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2161do 2162 test "x$ac_site_file" = xNONE && continue 2163 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2165$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2166 sed 's/^/| /' "$ac_site_file" >&5 2167 . "$ac_site_file" \ 2168 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2170as_fn_error $? "failed to load site script $ac_site_file 2171See \`config.log' for more details" "$LINENO" 5; } 2172 fi 2173done 2174 2175if test -r "$cache_file"; then 2176 # Some versions of bash will fail to source /dev/null (special files 2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2180$as_echo "$as_me: loading cache $cache_file" >&6;} 2181 case $cache_file in 2182 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2183 *) . "./$cache_file";; 2184 esac 2185 fi 2186else 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2188$as_echo "$as_me: creating cache $cache_file" >&6;} 2189 >$cache_file 2190fi 2191 2192# Check that the precious variables saved in the cache have kept the same 2193# value. 2194ac_cache_corrupted=false 2195for ac_var in $ac_precious_vars; do 2196 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2197 eval ac_new_set=\$ac_env_${ac_var}_set 2198 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2199 eval ac_new_val=\$ac_env_${ac_var}_value 2200 case $ac_old_set,$ac_new_set in 2201 set,) 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2203$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2204 ac_cache_corrupted=: ;; 2205 ,set) 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2207$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2208 ac_cache_corrupted=: ;; 2209 ,);; 2210 *) 2211 if test "x$ac_old_val" != "x$ac_new_val"; then 2212 # differences in whitespace do not lead to failure. 2213 ac_old_val_w=`echo x $ac_old_val` 2214 ac_new_val_w=`echo x $ac_new_val` 2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2217$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2218 ac_cache_corrupted=: 2219 else 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2221$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2222 eval $ac_var=\$ac_old_val 2223 fi 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2225$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2227$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2228 fi;; 2229 esac 2230 # Pass precious variables to config.status. 2231 if test "$ac_new_set" = set; then 2232 case $ac_new_val in 2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2234 *) ac_arg=$ac_var=$ac_new_val ;; 2235 esac 2236 case " $ac_configure_args " in 2237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2239 esac 2240 fi 2241done 2242if $ac_cache_corrupted; then 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2246$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2247 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2248fi 2249## -------------------- ## 2250## Main body of script. ## 2251## -------------------- ## 2252 2253ac_ext=c 2254ac_cpp='$CPP $CPPFLAGS' 2255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2257ac_compiler_gnu=$ac_cv_c_compiler_gnu 2258 2259 2260 2261 2262am__api_version='1.15' 2263 2264ac_aux_dir= 2265for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2266 if test -f "$ac_dir/install-sh"; then 2267 ac_aux_dir=$ac_dir 2268 ac_install_sh="$ac_aux_dir/install-sh -c" 2269 break 2270 elif test -f "$ac_dir/install.sh"; then 2271 ac_aux_dir=$ac_dir 2272 ac_install_sh="$ac_aux_dir/install.sh -c" 2273 break 2274 elif test -f "$ac_dir/shtool"; then 2275 ac_aux_dir=$ac_dir 2276 ac_install_sh="$ac_aux_dir/shtool install -c" 2277 break 2278 fi 2279done 2280if test -z "$ac_aux_dir"; then 2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2282fi 2283 2284# These three variables are undocumented and unsupported, 2285# and are intended to be withdrawn in a future Autoconf release. 2286# They can cause serious problems if a builder's source tree is in a directory 2287# whose full name contains unusual characters. 2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2291 2292 2293# Find a good install program. We prefer a C program (faster), 2294# so one script is as good as another. But avoid the broken or 2295# incompatible versions: 2296# SysV /etc/install, /usr/sbin/install 2297# SunOS /usr/etc/install 2298# IRIX /sbin/install 2299# AIX /bin/install 2300# AmigaOS /C/install, which installs bootblocks on floppy discs 2301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2302# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2304# OS/2's system install, which has a completely different semantic 2305# ./install, which can be erroneously created by make from ./install.sh. 2306# Reject install programs that cannot install multiple files. 2307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2308$as_echo_n "checking for a BSD-compatible install... " >&6; } 2309if test -z "$INSTALL"; then 2310if ${ac_cv_path_install+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312else 2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2314for as_dir in $PATH 2315do 2316 IFS=$as_save_IFS 2317 test -z "$as_dir" && as_dir=. 2318 # Account for people who put trailing slashes in PATH elements. 2319case $as_dir/ in #(( 2320 ./ | .// | /[cC]/* | \ 2321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2322 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2323 /usr/ucb/* ) ;; 2324 *) 2325 # OSF1 and SCO ODT 3.0 have their own names for install. 2326 # Don't use installbsd from OSF since it installs stuff as root 2327 # by default. 2328 for ac_prog in ginstall scoinst install; do 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2331 if test $ac_prog = install && 2332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2333 # AIX install. It has an incompatible calling convention. 2334 : 2335 elif test $ac_prog = install && 2336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2337 # program-specific install script used by HP pwplus--don't use. 2338 : 2339 else 2340 rm -rf conftest.one conftest.two conftest.dir 2341 echo one > conftest.one 2342 echo two > conftest.two 2343 mkdir conftest.dir 2344 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2345 test -s conftest.one && test -s conftest.two && 2346 test -s conftest.dir/conftest.one && 2347 test -s conftest.dir/conftest.two 2348 then 2349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2350 break 3 2351 fi 2352 fi 2353 fi 2354 done 2355 done 2356 ;; 2357esac 2358 2359 done 2360IFS=$as_save_IFS 2361 2362rm -rf conftest.one conftest.two conftest.dir 2363 2364fi 2365 if test "${ac_cv_path_install+set}" = set; then 2366 INSTALL=$ac_cv_path_install 2367 else 2368 # As a last resort, use the slow shell script. Don't cache a 2369 # value for INSTALL within a source directory, because that will 2370 # break other packages using the cache if that directory is 2371 # removed, or if the value is a relative name. 2372 INSTALL=$ac_install_sh 2373 fi 2374fi 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2376$as_echo "$INSTALL" >&6; } 2377 2378# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2379# It thinks the first close brace ends the variable substitution. 2380test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2381 2382test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2383 2384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2385 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2387$as_echo_n "checking whether build environment is sane... " >&6; } 2388# Reject unsafe characters in $srcdir or the absolute working directory 2389# name. Accept space and tab only in the latter. 2390am_lf=' 2391' 2392case `pwd` in 2393 *[\\\"\#\$\&\'\`$am_lf]*) 2394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2395esac 2396case $srcdir in 2397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2398 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2399esac 2400 2401# Do 'set' in a subshell so we don't clobber the current shell's 2402# arguments. Must try -L first in case configure is actually a 2403# symlink; some systems play weird games with the mod time of symlinks 2404# (eg FreeBSD returns the mod time of the symlink's containing 2405# directory). 2406if ( 2407 am_has_slept=no 2408 for am_try in 1 2; do 2409 echo "timestamp, slept: $am_has_slept" > conftest.file 2410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2411 if test "$*" = "X"; then 2412 # -L didn't work. 2413 set X `ls -t "$srcdir/configure" conftest.file` 2414 fi 2415 if test "$*" != "X $srcdir/configure conftest.file" \ 2416 && test "$*" != "X conftest.file $srcdir/configure"; then 2417 2418 # If neither matched, then we have a broken ls. This can happen 2419 # if, for instance, CONFIG_SHELL is bash and it inherits a 2420 # broken ls alias from the environment. This has actually 2421 # happened. Such a system could not be considered "sane". 2422 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2423 alias in your environment" "$LINENO" 5 2424 fi 2425 if test "$2" = conftest.file || test $am_try -eq 2; then 2426 break 2427 fi 2428 # Just in case. 2429 sleep 1 2430 am_has_slept=yes 2431 done 2432 test "$2" = conftest.file 2433 ) 2434then 2435 # Ok. 2436 : 2437else 2438 as_fn_error $? "newly created file is older than distributed files! 2439Check your system clock" "$LINENO" 5 2440fi 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2442$as_echo "yes" >&6; } 2443# If we didn't sleep, we still need to ensure time stamps of config.status and 2444# generated files are strictly newer. 2445am_sleep_pid= 2446if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2447 ( sleep 1 ) & 2448 am_sleep_pid=$! 2449fi 2450 2451rm -f conftest.file 2452 2453test "$program_prefix" != NONE && 2454 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2455# Use a double $ so make ignores it. 2456test "$program_suffix" != NONE && 2457 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2458# Double any \ or $. 2459# By default was `s,x,x', remove it if useless. 2460ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2461program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2462 2463# Expand $ac_aux_dir to an absolute path. 2464am_aux_dir=`cd "$ac_aux_dir" && pwd` 2465 2466if test x"${MISSING+set}" != xset; then 2467 case $am_aux_dir in 2468 *\ * | *\ *) 2469 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2470 *) 2471 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2472 esac 2473fi 2474# Use eval to expand $SHELL 2475if eval "$MISSING --is-lightweight"; then 2476 am_missing_run="$MISSING " 2477else 2478 am_missing_run= 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2480$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2481fi 2482 2483if test x"${install_sh+set}" != xset; then 2484 case $am_aux_dir in 2485 *\ * | *\ *) 2486 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2487 *) 2488 install_sh="\${SHELL} $am_aux_dir/install-sh" 2489 esac 2490fi 2491 2492# Installed binaries are usually stripped using 'strip' when the user 2493# run "make install-strip". However 'strip' might not be the right 2494# tool to use in cross-compilation environments, therefore Automake 2495# will honor the 'STRIP' environment variable to overrule this program. 2496if test "$cross_compiling" != no; then 2497 if test -n "$ac_tool_prefix"; then 2498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2499set dummy ${ac_tool_prefix}strip; ac_word=$2 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2501$as_echo_n "checking for $ac_word... " >&6; } 2502if ${ac_cv_prog_STRIP+:} false; then : 2503 $as_echo_n "(cached) " >&6 2504else 2505 if test -n "$STRIP"; then 2506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2507else 2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2509for as_dir in $PATH 2510do 2511 IFS=$as_save_IFS 2512 test -z "$as_dir" && as_dir=. 2513 for ac_exec_ext in '' $ac_executable_extensions; do 2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2515 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2517 break 2 2518 fi 2519done 2520 done 2521IFS=$as_save_IFS 2522 2523fi 2524fi 2525STRIP=$ac_cv_prog_STRIP 2526if test -n "$STRIP"; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2528$as_echo "$STRIP" >&6; } 2529else 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2531$as_echo "no" >&6; } 2532fi 2533 2534 2535fi 2536if test -z "$ac_cv_prog_STRIP"; then 2537 ac_ct_STRIP=$STRIP 2538 # Extract the first word of "strip", so it can be a program name with args. 2539set dummy strip; ac_word=$2 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2541$as_echo_n "checking for $ac_word... " >&6; } 2542if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2543 $as_echo_n "(cached) " >&6 2544else 2545 if test -n "$ac_ct_STRIP"; then 2546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2547else 2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549for as_dir in $PATH 2550do 2551 IFS=$as_save_IFS 2552 test -z "$as_dir" && as_dir=. 2553 for ac_exec_ext in '' $ac_executable_extensions; do 2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2555 ac_cv_prog_ac_ct_STRIP="strip" 2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2557 break 2 2558 fi 2559done 2560 done 2561IFS=$as_save_IFS 2562 2563fi 2564fi 2565ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2566if test -n "$ac_ct_STRIP"; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2568$as_echo "$ac_ct_STRIP" >&6; } 2569else 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2571$as_echo "no" >&6; } 2572fi 2573 2574 if test "x$ac_ct_STRIP" = x; then 2575 STRIP=":" 2576 else 2577 case $cross_compiling:$ac_tool_warned in 2578yes:) 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2581ac_tool_warned=yes ;; 2582esac 2583 STRIP=$ac_ct_STRIP 2584 fi 2585else 2586 STRIP="$ac_cv_prog_STRIP" 2587fi 2588 2589fi 2590INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2591 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2593$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2594if test -z "$MKDIR_P"; then 2595 if ${ac_cv_path_mkdir+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2600do 2601 IFS=$as_save_IFS 2602 test -z "$as_dir" && as_dir=. 2603 for ac_prog in mkdir gmkdir; do 2604 for ac_exec_ext in '' $ac_executable_extensions; do 2605 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2606 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2607 'mkdir (GNU coreutils) '* | \ 2608 'mkdir (coreutils) '* | \ 2609 'mkdir (fileutils) '4.1*) 2610 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2611 break 3;; 2612 esac 2613 done 2614 done 2615 done 2616IFS=$as_save_IFS 2617 2618fi 2619 2620 test -d ./--version && rmdir ./--version 2621 if test "${ac_cv_path_mkdir+set}" = set; then 2622 MKDIR_P="$ac_cv_path_mkdir -p" 2623 else 2624 # As a last resort, use the slow shell script. Don't cache a 2625 # value for MKDIR_P within a source directory, because that will 2626 # break other packages using the cache if that directory is 2627 # removed, or if the value is a relative name. 2628 MKDIR_P="$ac_install_sh -d" 2629 fi 2630fi 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2632$as_echo "$MKDIR_P" >&6; } 2633 2634for ac_prog in gawk mawk nawk awk 2635do 2636 # Extract the first word of "$ac_prog", so it can be a program name with args. 2637set dummy $ac_prog; ac_word=$2 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2639$as_echo_n "checking for $ac_word... " >&6; } 2640if ${ac_cv_prog_AWK+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test -n "$AWK"; then 2644 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_AWK="$ac_prog" 2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658 done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663AWK=$ac_cv_prog_AWK 2664if test -n "$AWK"; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2666$as_echo "$AWK" >&6; } 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669$as_echo "no" >&6; } 2670fi 2671 2672 2673 test -n "$AWK" && break 2674done 2675 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2677$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2678set x ${MAKE-make} 2679ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2680if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682else 2683 cat >conftest.make <<\_ACEOF 2684SHELL = /bin/sh 2685all: 2686 @echo '@@@%%%=$(MAKE)=@@@%%%' 2687_ACEOF 2688# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2689case `${MAKE-make} -f conftest.make 2>/dev/null` in 2690 *@@@%%%=?*=@@@%%%*) 2691 eval ac_cv_prog_make_${ac_make}_set=yes;; 2692 *) 2693 eval ac_cv_prog_make_${ac_make}_set=no;; 2694esac 2695rm -f conftest.make 2696fi 2697if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2699$as_echo "yes" >&6; } 2700 SET_MAKE= 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703$as_echo "no" >&6; } 2704 SET_MAKE="MAKE=${MAKE-make}" 2705fi 2706 2707rm -rf .tst 2>/dev/null 2708mkdir .tst 2>/dev/null 2709if test -d .tst; then 2710 am__leading_dot=. 2711else 2712 am__leading_dot=_ 2713fi 2714rmdir .tst 2>/dev/null 2715 2716# Check whether --enable-silent-rules was given. 2717if test "${enable_silent_rules+set}" = set; then : 2718 enableval=$enable_silent_rules; 2719fi 2720 2721case $enable_silent_rules in # ((( 2722 yes) AM_DEFAULT_VERBOSITY=0;; 2723 no) AM_DEFAULT_VERBOSITY=1;; 2724 *) AM_DEFAULT_VERBOSITY=1;; 2725esac 2726am_make=${MAKE-make} 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2728$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2729if ${am_cv_make_support_nested_variables+:} false; then : 2730 $as_echo_n "(cached) " >&6 2731else 2732 if $as_echo 'TRUE=$(BAR$(V)) 2733BAR0=false 2734BAR1=true 2735V=1 2736am__doit: 2737 @$(TRUE) 2738.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2739 am_cv_make_support_nested_variables=yes 2740else 2741 am_cv_make_support_nested_variables=no 2742fi 2743fi 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2745$as_echo "$am_cv_make_support_nested_variables" >&6; } 2746if test $am_cv_make_support_nested_variables = yes; then 2747 AM_V='$(V)' 2748 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2749else 2750 AM_V=$AM_DEFAULT_VERBOSITY 2751 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2752fi 2753AM_BACKSLASH='\' 2754 2755if test "`cd $srcdir && pwd`" != "`pwd`"; then 2756 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2757 # is not polluted with repeated "-I." 2758 am__isrc=' -I$(srcdir)' 2759 # test to see if srcdir already configured 2760 if test -f $srcdir/config.status; then 2761 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2762 fi 2763fi 2764 2765# test whether we have cygpath 2766if test -z "$CYGPATH_W"; then 2767 if (cygpath --version) >/dev/null 2>/dev/null; then 2768 CYGPATH_W='cygpath -w' 2769 else 2770 CYGPATH_W=echo 2771 fi 2772fi 2773 2774 2775# Define the identity of the package. 2776 PACKAGE='openpam' 2777 VERSION='20170219' 2778 2779 2780cat >>confdefs.h <<_ACEOF 2781#define PACKAGE "$PACKAGE" 2782_ACEOF 2783 2784 2785cat >>confdefs.h <<_ACEOF 2786#define VERSION "$VERSION" 2787_ACEOF 2788 2789# Some tools Automake needs. 2790 2791ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2792 2793 2794AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2795 2796 2797AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2798 2799 2800AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2801 2802 2803MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2804 2805# For better backward compatibility. To be removed once Automake 1.9.x 2806# dies out for good. For more background, see: 2807# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2808# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2809mkdir_p='$(MKDIR_P)' 2810 2811# We need awk for the "check" target (and possibly the TAP driver). The 2812# system "awk" is bad on some platforms. 2813# Always define AMTAR for backward compatibility. Yes, it's still used 2814# in the wild :-( We should find a proper way to deprecate it ... 2815AMTAR='$${TAR-tar}' 2816 2817 2818# We'll loop over all known methods to create a tar archive until one works. 2819_am_tools='gnutar pax cpio none' 2820 2821am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2822 2823 2824 2825 2826 2827 2828# POSIX will say in a future version that running "rm -f" with no argument 2829# is OK; and we want to be able to make that assumption in our Makefile 2830# recipes. So use an aggressive probe to check that the usage we want is 2831# actually supported "in the wild" to an acceptable degree. 2832# See automake bug#10828. 2833# To make any issue more visible, cause the running configure to be aborted 2834# by default if the 'rm' program in use doesn't match our expectations; the 2835# user can still override this though. 2836if rm -f && rm -fr && rm -rf; then : OK; else 2837 cat >&2 <<'END' 2838Oops! 2839 2840Your 'rm' program seems unable to run without file operands specified 2841on the command line, even when the '-f' option is present. This is contrary 2842to the behaviour of most rm programs out there, and not conforming with 2843the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2844 2845Please tell bug-automake@gnu.org about your system, including the value 2846of your $PATH and any error possibly output before this message. This 2847can help us improve future automake versions. 2848 2849END 2850 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2851 echo 'Configuration will proceed anyway, since you have set the' >&2 2852 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2853 echo >&2 2854 else 2855 cat >&2 <<'END' 2856Aborting the configuration process, to ensure you take notice of the issue. 2857 2858You can download and install GNU coreutils to get an 'rm' implementation 2859that behaves properly: <http://www.gnu.org/software/coreutils/>. 2860 2861If you want to complete the configuration process using your problematic 2862'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2863to "yes", and re-run configure. 2864 2865END 2866 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2867 fi 2868fi 2869 2870ac_config_headers="$ac_config_headers config.h" 2871 2872 2873# C compiler and features 2874ac_ext=c 2875ac_cpp='$CPP $CPPFLAGS' 2876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2878ac_compiler_gnu=$ac_cv_c_compiler_gnu 2879 2880ac_ext=c 2881ac_cpp='$CPP $CPPFLAGS' 2882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2884ac_compiler_gnu=$ac_cv_c_compiler_gnu 2885if test -n "$ac_tool_prefix"; then 2886 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2887set dummy ${ac_tool_prefix}gcc; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if ${ac_cv_prog_CC+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$CC"; then 2894 ac_cv_prog_CC="$CC" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913CC=$ac_cv_prog_CC 2914if test -n "$CC"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2916$as_echo "$CC" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 2923fi 2924if test -z "$ac_cv_prog_CC"; then 2925 ac_ct_CC=$CC 2926 # Extract the first word of "gcc", so it can be a program name with args. 2927set dummy gcc; ac_word=$2 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929$as_echo_n "checking for $ac_word... " >&6; } 2930if ${ac_cv_prog_ac_ct_CC+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 if test -n "$ac_ct_CC"; then 2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2935else 2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937for as_dir in $PATH 2938do 2939 IFS=$as_save_IFS 2940 test -z "$as_dir" && as_dir=. 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2943 ac_cv_prog_ac_ct_CC="gcc" 2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2945 break 2 2946 fi 2947done 2948 done 2949IFS=$as_save_IFS 2950 2951fi 2952fi 2953ac_ct_CC=$ac_cv_prog_ac_ct_CC 2954if test -n "$ac_ct_CC"; then 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2956$as_echo "$ac_ct_CC" >&6; } 2957else 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959$as_echo "no" >&6; } 2960fi 2961 2962 if test "x$ac_ct_CC" = x; then 2963 CC="" 2964 else 2965 case $cross_compiling:$ac_tool_warned in 2966yes:) 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2969ac_tool_warned=yes ;; 2970esac 2971 CC=$ac_ct_CC 2972 fi 2973else 2974 CC="$ac_cv_prog_CC" 2975fi 2976 2977if test -z "$CC"; then 2978 if test -n "$ac_tool_prefix"; then 2979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2980set dummy ${ac_tool_prefix}cc; ac_word=$2 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2982$as_echo_n "checking for $ac_word... " >&6; } 2983if ${ac_cv_prog_CC+:} false; then : 2984 $as_echo_n "(cached) " >&6 2985else 2986 if test -n "$CC"; then 2987 ac_cv_prog_CC="$CC" # Let the user override the test. 2988else 2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2990for as_dir in $PATH 2991do 2992 IFS=$as_save_IFS 2993 test -z "$as_dir" && as_dir=. 2994 for ac_exec_ext in '' $ac_executable_extensions; do 2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2996 ac_cv_prog_CC="${ac_tool_prefix}cc" 2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2998 break 2 2999 fi 3000done 3001 done 3002IFS=$as_save_IFS 3003 3004fi 3005fi 3006CC=$ac_cv_prog_CC 3007if test -n "$CC"; then 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3009$as_echo "$CC" >&6; } 3010else 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3012$as_echo "no" >&6; } 3013fi 3014 3015 3016 fi 3017fi 3018if test -z "$CC"; then 3019 # Extract the first word of "cc", so it can be a program name with args. 3020set dummy cc; ac_word=$2 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022$as_echo_n "checking for $ac_word... " >&6; } 3023if ${ac_cv_prog_CC+:} false; then : 3024 $as_echo_n "(cached) " >&6 3025else 3026 if test -n "$CC"; then 3027 ac_cv_prog_CC="$CC" # Let the user override the test. 3028else 3029 ac_prog_rejected=no 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3038 ac_prog_rejected=yes 3039 continue 3040 fi 3041 ac_cv_prog_CC="cc" 3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3043 break 2 3044 fi 3045done 3046 done 3047IFS=$as_save_IFS 3048 3049if test $ac_prog_rejected = yes; then 3050 # We found a bogon in the path, so make sure we never use it. 3051 set dummy $ac_cv_prog_CC 3052 shift 3053 if test $# != 0; then 3054 # We chose a different compiler from the bogus one. 3055 # However, it has the same basename, so the bogon will be chosen 3056 # first if we set CC to just the basename; use the full file name. 3057 shift 3058 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3059 fi 3060fi 3061fi 3062fi 3063CC=$ac_cv_prog_CC 3064if test -n "$CC"; then 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3066$as_echo "$CC" >&6; } 3067else 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3069$as_echo "no" >&6; } 3070fi 3071 3072 3073fi 3074if test -z "$CC"; then 3075 if test -n "$ac_tool_prefix"; then 3076 for ac_prog in cl.exe 3077 do 3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3079set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3081$as_echo_n "checking for $ac_word... " >&6; } 3082if ${ac_cv_prog_CC+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 if test -n "$CC"; then 3086 ac_cv_prog_CC="$CC" # Let the user override the test. 3087else 3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089for as_dir in $PATH 3090do 3091 IFS=$as_save_IFS 3092 test -z "$as_dir" && as_dir=. 3093 for ac_exec_ext in '' $ac_executable_extensions; do 3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3097 break 2 3098 fi 3099done 3100 done 3101IFS=$as_save_IFS 3102 3103fi 3104fi 3105CC=$ac_cv_prog_CC 3106if test -n "$CC"; then 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3108$as_echo "$CC" >&6; } 3109else 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3111$as_echo "no" >&6; } 3112fi 3113 3114 3115 test -n "$CC" && break 3116 done 3117fi 3118if test -z "$CC"; then 3119 ac_ct_CC=$CC 3120 for ac_prog in cl.exe 3121do 3122 # Extract the first word of "$ac_prog", so it can be a program name with args. 3123set dummy $ac_prog; ac_word=$2 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3125$as_echo_n "checking for $ac_word... " >&6; } 3126if ${ac_cv_prog_ac_ct_CC+:} false; then : 3127 $as_echo_n "(cached) " >&6 3128else 3129 if test -n "$ac_ct_CC"; then 3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3131else 3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133for as_dir in $PATH 3134do 3135 IFS=$as_save_IFS 3136 test -z "$as_dir" && as_dir=. 3137 for ac_exec_ext in '' $ac_executable_extensions; do 3138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3139 ac_cv_prog_ac_ct_CC="$ac_prog" 3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3141 break 2 3142 fi 3143done 3144 done 3145IFS=$as_save_IFS 3146 3147fi 3148fi 3149ac_ct_CC=$ac_cv_prog_ac_ct_CC 3150if test -n "$ac_ct_CC"; then 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3152$as_echo "$ac_ct_CC" >&6; } 3153else 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3155$as_echo "no" >&6; } 3156fi 3157 3158 3159 test -n "$ac_ct_CC" && break 3160done 3161 3162 if test "x$ac_ct_CC" = x; then 3163 CC="" 3164 else 3165 case $cross_compiling:$ac_tool_warned in 3166yes:) 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3169ac_tool_warned=yes ;; 3170esac 3171 CC=$ac_ct_CC 3172 fi 3173fi 3174 3175fi 3176 3177 3178test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3180as_fn_error $? "no acceptable C compiler found in \$PATH 3181See \`config.log' for more details" "$LINENO" 5; } 3182 3183# Provide some information about the compiler. 3184$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3185set X $ac_compile 3186ac_compiler=$2 3187for ac_option in --version -v -V -qversion; do 3188 { { ac_try="$ac_compiler $ac_option >&5" 3189case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3194$as_echo "$ac_try_echo"; } >&5 3195 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3196 ac_status=$? 3197 if test -s conftest.err; then 3198 sed '10a\ 3199... rest of stderr output deleted ... 3200 10q' conftest.err >conftest.er1 3201 cat conftest.er1 >&5 3202 fi 3203 rm -f conftest.er1 conftest.err 3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3205 test $ac_status = 0; } 3206done 3207 3208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3209/* end confdefs.h. */ 3210 3211int 3212main () 3213{ 3214 3215 ; 3216 return 0; 3217} 3218_ACEOF 3219ac_clean_files_save=$ac_clean_files 3220ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3221# Try to create an executable without -o first, disregard a.out. 3222# It will help us diagnose broken compilers, and finding out an intuition 3223# of exeext. 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3225$as_echo_n "checking whether the C compiler works... " >&6; } 3226ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3227 3228# The possible output files: 3229ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3230 3231ac_rmfiles= 3232for ac_file in $ac_files 3233do 3234 case $ac_file in 3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3236 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3237 esac 3238done 3239rm -f $ac_rmfiles 3240 3241if { { ac_try="$ac_link_default" 3242case "(($ac_try" in 3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3244 *) ac_try_echo=$ac_try;; 3245esac 3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3247$as_echo "$ac_try_echo"; } >&5 3248 (eval "$ac_link_default") 2>&5 3249 ac_status=$? 3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3251 test $ac_status = 0; }; then : 3252 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3253# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3254# in a Makefile. We should not override ac_cv_exeext if it was cached, 3255# so that the user can short-circuit this test for compilers unknown to 3256# Autoconf. 3257for ac_file in $ac_files '' 3258do 3259 test -f "$ac_file" || continue 3260 case $ac_file in 3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3262 ;; 3263 [ab].out ) 3264 # We found the default executable, but exeext='' is most 3265 # certainly right. 3266 break;; 3267 *.* ) 3268 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3269 then :; else 3270 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3271 fi 3272 # We set ac_cv_exeext here because the later test for it is not 3273 # safe: cross compilers may not add the suffix if given an `-o' 3274 # argument, so we may need to know it at that point already. 3275 # Even if this section looks crufty: it has the advantage of 3276 # actually working. 3277 break;; 3278 * ) 3279 break;; 3280 esac 3281done 3282test "$ac_cv_exeext" = no && ac_cv_exeext= 3283 3284else 3285 ac_file='' 3286fi 3287if test -z "$ac_file"; then : 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3289$as_echo "no" >&6; } 3290$as_echo "$as_me: failed program was:" >&5 3291sed 's/^/| /' conftest.$ac_ext >&5 3292 3293{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3295as_fn_error 77 "C compiler cannot create executables 3296See \`config.log' for more details" "$LINENO" 5; } 3297else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3299$as_echo "yes" >&6; } 3300fi 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3302$as_echo_n "checking for C compiler default output file name... " >&6; } 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3304$as_echo "$ac_file" >&6; } 3305ac_exeext=$ac_cv_exeext 3306 3307rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3308ac_clean_files=$ac_clean_files_save 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3310$as_echo_n "checking for suffix of executables... " >&6; } 3311if { { ac_try="$ac_link" 3312case "(($ac_try" in 3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3314 *) ac_try_echo=$ac_try;; 3315esac 3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3317$as_echo "$ac_try_echo"; } >&5 3318 (eval "$ac_link") 2>&5 3319 ac_status=$? 3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3321 test $ac_status = 0; }; then : 3322 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3323# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3324# work properly (i.e., refer to `conftest.exe'), while it won't with 3325# `rm'. 3326for ac_file in conftest.exe conftest conftest.*; do 3327 test -f "$ac_file" || continue 3328 case $ac_file in 3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3331 break;; 3332 * ) break;; 3333 esac 3334done 3335else 3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3338as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3339See \`config.log' for more details" "$LINENO" 5; } 3340fi 3341rm -f conftest conftest$ac_cv_exeext 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3343$as_echo "$ac_cv_exeext" >&6; } 3344 3345rm -f conftest.$ac_ext 3346EXEEXT=$ac_cv_exeext 3347ac_exeext=$EXEEXT 3348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3349/* end confdefs.h. */ 3350#include <stdio.h> 3351int 3352main () 3353{ 3354FILE *f = fopen ("conftest.out", "w"); 3355 return ferror (f) || fclose (f) != 0; 3356 3357 ; 3358 return 0; 3359} 3360_ACEOF 3361ac_clean_files="$ac_clean_files conftest.out" 3362# Check that the compiler produces executables we can run. If not, either 3363# the compiler is broken, or we cross compile. 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3365$as_echo_n "checking whether we are cross compiling... " >&6; } 3366if test "$cross_compiling" != yes; then 3367 { { ac_try="$ac_link" 3368case "(($ac_try" in 3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3370 *) ac_try_echo=$ac_try;; 3371esac 3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3373$as_echo "$ac_try_echo"; } >&5 3374 (eval "$ac_link") 2>&5 3375 ac_status=$? 3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3377 test $ac_status = 0; } 3378 if { ac_try='./conftest$ac_cv_exeext' 3379 { { case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3384$as_echo "$ac_try_echo"; } >&5 3385 (eval "$ac_try") 2>&5 3386 ac_status=$? 3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3388 test $ac_status = 0; }; }; then 3389 cross_compiling=no 3390 else 3391 if test "$cross_compiling" = maybe; then 3392 cross_compiling=yes 3393 else 3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3396as_fn_error $? "cannot run C compiled programs. 3397If you meant to cross compile, use \`--host'. 3398See \`config.log' for more details" "$LINENO" 5; } 3399 fi 3400 fi 3401fi 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3403$as_echo "$cross_compiling" >&6; } 3404 3405rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3406ac_clean_files=$ac_clean_files_save 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3408$as_echo_n "checking for suffix of object files... " >&6; } 3409if ${ac_cv_objext+:} false; then : 3410 $as_echo_n "(cached) " >&6 3411else 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413/* end confdefs.h. */ 3414 3415int 3416main () 3417{ 3418 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423rm -f conftest.o conftest.obj 3424if { { ac_try="$ac_compile" 3425case "(($ac_try" in 3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3427 *) ac_try_echo=$ac_try;; 3428esac 3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3430$as_echo "$ac_try_echo"; } >&5 3431 (eval "$ac_compile") 2>&5 3432 ac_status=$? 3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3434 test $ac_status = 0; }; then : 3435 for ac_file in conftest.o conftest.obj conftest.*; do 3436 test -f "$ac_file" || continue; 3437 case $ac_file in 3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3440 break;; 3441 esac 3442done 3443else 3444 $as_echo "$as_me: failed program was:" >&5 3445sed 's/^/| /' conftest.$ac_ext >&5 3446 3447{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3449as_fn_error $? "cannot compute suffix of object files: cannot compile 3450See \`config.log' for more details" "$LINENO" 5; } 3451fi 3452rm -f conftest.$ac_cv_objext conftest.$ac_ext 3453fi 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3455$as_echo "$ac_cv_objext" >&6; } 3456OBJEXT=$ac_cv_objext 3457ac_objext=$OBJEXT 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3459$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3460if ${ac_cv_c_compiler_gnu+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464/* end confdefs.h. */ 3465 3466int 3467main () 3468{ 3469#ifndef __GNUC__ 3470 choke me 3471#endif 3472 3473 ; 3474 return 0; 3475} 3476_ACEOF 3477if ac_fn_c_try_compile "$LINENO"; then : 3478 ac_compiler_gnu=yes 3479else 3480 ac_compiler_gnu=no 3481fi 3482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3483ac_cv_c_compiler_gnu=$ac_compiler_gnu 3484 3485fi 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3487$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3488if test $ac_compiler_gnu = yes; then 3489 GCC=yes 3490else 3491 GCC= 3492fi 3493ac_test_CFLAGS=${CFLAGS+set} 3494ac_save_CFLAGS=$CFLAGS 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3496$as_echo_n "checking whether $CC accepts -g... " >&6; } 3497if ${ac_cv_prog_cc_g+:} false; then : 3498 $as_echo_n "(cached) " >&6 3499else 3500 ac_save_c_werror_flag=$ac_c_werror_flag 3501 ac_c_werror_flag=yes 3502 ac_cv_prog_cc_g=no 3503 CFLAGS="-g" 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505/* end confdefs.h. */ 3506 3507int 3508main () 3509{ 3510 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515if ac_fn_c_try_compile "$LINENO"; then : 3516 ac_cv_prog_cc_g=yes 3517else 3518 CFLAGS="" 3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3520/* end confdefs.h. */ 3521 3522int 3523main () 3524{ 3525 3526 ; 3527 return 0; 3528} 3529_ACEOF 3530if ac_fn_c_try_compile "$LINENO"; then : 3531 3532else 3533 ac_c_werror_flag=$ac_save_c_werror_flag 3534 CFLAGS="-g" 3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537 3538int 3539main () 3540{ 3541 3542 ; 3543 return 0; 3544} 3545_ACEOF 3546if ac_fn_c_try_compile "$LINENO"; then : 3547 ac_cv_prog_cc_g=yes 3548fi 3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3550fi 3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3552fi 3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3554 ac_c_werror_flag=$ac_save_c_werror_flag 3555fi 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3557$as_echo "$ac_cv_prog_cc_g" >&6; } 3558if test "$ac_test_CFLAGS" = set; then 3559 CFLAGS=$ac_save_CFLAGS 3560elif test $ac_cv_prog_cc_g = yes; then 3561 if test "$GCC" = yes; then 3562 CFLAGS="-g -O2" 3563 else 3564 CFLAGS="-g" 3565 fi 3566else 3567 if test "$GCC" = yes; then 3568 CFLAGS="-O2" 3569 else 3570 CFLAGS= 3571 fi 3572fi 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3574$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3575if ${ac_cv_prog_cc_c89+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 ac_cv_prog_cc_c89=no 3579ac_save_CC=$CC 3580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3581/* end confdefs.h. */ 3582#include <stdarg.h> 3583#include <stdio.h> 3584struct stat; 3585/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3586struct buf { int x; }; 3587FILE * (*rcsopen) (struct buf *, struct stat *, int); 3588static char *e (p, i) 3589 char **p; 3590 int i; 3591{ 3592 return p[i]; 3593} 3594static char *f (char * (*g) (char **, int), char **p, ...) 3595{ 3596 char *s; 3597 va_list v; 3598 va_start (v,p); 3599 s = g (p, va_arg (v,int)); 3600 va_end (v); 3601 return s; 3602} 3603 3604/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3605 function prototypes and stuff, but not '\xHH' hex character constants. 3606 These don't provoke an error unfortunately, instead are silently treated 3607 as 'x'. The following induces an error, until -std is added to get 3608 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3609 array size at least. It's necessary to write '\x00'==0 to get something 3610 that's true only with -std. */ 3611int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3612 3613/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3614 inside strings and character constants. */ 3615#define FOO(x) 'x' 3616int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3617 3618int test (int i, double x); 3619struct s1 {int (*f) (int a);}; 3620struct s2 {int (*f) (double a);}; 3621int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3622int argc; 3623char **argv; 3624int 3625main () 3626{ 3627return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3628 ; 3629 return 0; 3630} 3631_ACEOF 3632for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3633 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3634do 3635 CC="$ac_save_CC $ac_arg" 3636 if ac_fn_c_try_compile "$LINENO"; then : 3637 ac_cv_prog_cc_c89=$ac_arg 3638fi 3639rm -f core conftest.err conftest.$ac_objext 3640 test "x$ac_cv_prog_cc_c89" != "xno" && break 3641done 3642rm -f conftest.$ac_ext 3643CC=$ac_save_CC 3644 3645fi 3646# AC_CACHE_VAL 3647case "x$ac_cv_prog_cc_c89" in 3648 x) 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3650$as_echo "none needed" >&6; } ;; 3651 xno) 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3653$as_echo "unsupported" >&6; } ;; 3654 *) 3655 CC="$CC $ac_cv_prog_cc_c89" 3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3657$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3658esac 3659if test "x$ac_cv_prog_cc_c89" != xno; then : 3660 3661fi 3662 3663ac_ext=c 3664ac_cpp='$CPP $CPPFLAGS' 3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3667ac_compiler_gnu=$ac_cv_c_compiler_gnu 3668 3669ac_ext=c 3670ac_cpp='$CPP $CPPFLAGS' 3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3673ac_compiler_gnu=$ac_cv_c_compiler_gnu 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3675$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3676if ${am_cv_prog_cc_c_o+:} false; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690 # Make sure it works both with $CC and with simple cc. 3691 # Following AC_PROG_CC_C_O, we do the test twice because some 3692 # compilers refuse to overwrite an existing .o file with -o, 3693 # though they will create one. 3694 am_cv_prog_cc_c_o=yes 3695 for am_i in 1 2; do 3696 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3697 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3698 ac_status=$? 3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3700 (exit $ac_status); } \ 3701 && test -f conftest2.$ac_objext; then 3702 : OK 3703 else 3704 am_cv_prog_cc_c_o=no 3705 break 3706 fi 3707 done 3708 rm -f core conftest* 3709 unset am_i 3710fi 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3712$as_echo "$am_cv_prog_cc_c_o" >&6; } 3713if test "$am_cv_prog_cc_c_o" != yes; then 3714 # Losing compiler, so override with the script. 3715 # FIXME: It is wrong to rewrite CC. 3716 # But if we don't then we get into trouble of one sort or another. 3717 # A longer-term fix would be to have automake use am__CC in this case, 3718 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3719 CC="$am_aux_dir/compile $CC" 3720fi 3721ac_ext=c 3722ac_cpp='$CPP $CPPFLAGS' 3723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3725ac_compiler_gnu=$ac_cv_c_compiler_gnu 3726 3727DEPDIR="${am__leading_dot}deps" 3728 3729ac_config_commands="$ac_config_commands depfiles" 3730 3731 3732am_make=${MAKE-make} 3733cat > confinc << 'END' 3734am__doit: 3735 @echo this is the am__doit target 3736.PHONY: am__doit 3737END 3738# If we don't find an include directive, just comment out the code. 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3740$as_echo_n "checking for style of include used by $am_make... " >&6; } 3741am__include="#" 3742am__quote= 3743_am_result=none 3744# First try GNU make style include. 3745echo "include confinc" > confmf 3746# Ignore all kinds of additional output from 'make'. 3747case `$am_make -s -f confmf 2> /dev/null` in #( 3748*the\ am__doit\ target*) 3749 am__include=include 3750 am__quote= 3751 _am_result=GNU 3752 ;; 3753esac 3754# Now try BSD make style include. 3755if test "$am__include" = "#"; then 3756 echo '.include "confinc"' > confmf 3757 case `$am_make -s -f confmf 2> /dev/null` in #( 3758 *the\ am__doit\ target*) 3759 am__include=.include 3760 am__quote="\"" 3761 _am_result=BSD 3762 ;; 3763 esac 3764fi 3765 3766 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3768$as_echo "$_am_result" >&6; } 3769rm -f confinc confmf 3770 3771# Check whether --enable-dependency-tracking was given. 3772if test "${enable_dependency_tracking+set}" = set; then : 3773 enableval=$enable_dependency_tracking; 3774fi 3775 3776if test "x$enable_dependency_tracking" != xno; then 3777 am_depcomp="$ac_aux_dir/depcomp" 3778 AMDEPBACKSLASH='\' 3779 am__nodep='_no' 3780fi 3781 if test "x$enable_dependency_tracking" != xno; then 3782 AMDEP_TRUE= 3783 AMDEP_FALSE='#' 3784else 3785 AMDEP_TRUE='#' 3786 AMDEP_FALSE= 3787fi 3788 3789 3790 3791depcc="$CC" am_compiler_list= 3792 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3794$as_echo_n "checking dependency style of $depcc... " >&6; } 3795if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3796 $as_echo_n "(cached) " >&6 3797else 3798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3799 # We make a subdir and do the tests there. Otherwise we can end up 3800 # making bogus files that we don't know about and never remove. For 3801 # instance it was reported that on HP-UX the gcc test will end up 3802 # making a dummy file named 'D' -- because '-MD' means "put the output 3803 # in D". 3804 rm -rf conftest.dir 3805 mkdir conftest.dir 3806 # Copy depcomp to subdir because otherwise we won't find it if we're 3807 # using a relative directory. 3808 cp "$am_depcomp" conftest.dir 3809 cd conftest.dir 3810 # We will build objects and dependencies in a subdirectory because 3811 # it helps to detect inapplicable dependency modes. For instance 3812 # both Tru64's cc and ICC support -MD to output dependencies as a 3813 # side effect of compilation, but ICC will put the dependencies in 3814 # the current directory while Tru64 will put them in the object 3815 # directory. 3816 mkdir sub 3817 3818 am_cv_CC_dependencies_compiler_type=none 3819 if test "$am_compiler_list" = ""; then 3820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3821 fi 3822 am__universal=false 3823 case " $depcc " in #( 3824 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3825 esac 3826 3827 for depmode in $am_compiler_list; do 3828 # Setup a source with many dependencies, because some compilers 3829 # like to wrap large dependency lists on column 80 (with \), and 3830 # we should not choose a depcomp mode which is confused by this. 3831 # 3832 # We need to recreate these files for each test, as the compiler may 3833 # overwrite some of them when testing with obscure command lines. 3834 # This happens at least with the AIX C compiler. 3835 : > sub/conftest.c 3836 for i in 1 2 3 4 5 6; do 3837 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3839 # Solaris 10 /bin/sh. 3840 echo '/* dummy */' > sub/conftst$i.h 3841 done 3842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3843 3844 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3845 # mode. It turns out that the SunPro C++ compiler does not properly 3846 # handle '-M -o', and we need to detect this. Also, some Intel 3847 # versions had trouble with output in subdirs. 3848 am__obj=sub/conftest.${OBJEXT-o} 3849 am__minus_obj="-o $am__obj" 3850 case $depmode in 3851 gcc) 3852 # This depmode causes a compiler race in universal mode. 3853 test "$am__universal" = false || continue 3854 ;; 3855 nosideeffect) 3856 # After this tag, mechanisms are not by side-effect, so they'll 3857 # only be used when explicitly requested. 3858 if test "x$enable_dependency_tracking" = xyes; then 3859 continue 3860 else 3861 break 3862 fi 3863 ;; 3864 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3865 # This compiler won't grok '-c -o', but also, the minuso test has 3866 # not run yet. These depmodes are late enough in the game, and 3867 # so weak that their functioning should not be impacted. 3868 am__obj=conftest.${OBJEXT-o} 3869 am__minus_obj= 3870 ;; 3871 none) break ;; 3872 esac 3873 if depmode=$depmode \ 3874 source=sub/conftest.c object=$am__obj \ 3875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3877 >/dev/null 2>conftest.err && 3878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3882 # icc doesn't choke on unknown options, it will just issue warnings 3883 # or remarks (even with -Werror). So we grep stderr for any message 3884 # that says an option was ignored or not supported. 3885 # When given -MP, icc 7.0 and 7.1 complain thusly: 3886 # icc: Command line warning: ignoring option '-M'; no argument required 3887 # The diagnosis changed in icc 8.0: 3888 # icc: Command line remark: option '-MP' not supported 3889 if (grep 'ignoring option' conftest.err || 3890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3891 am_cv_CC_dependencies_compiler_type=$depmode 3892 break 3893 fi 3894 fi 3895 done 3896 3897 cd .. 3898 rm -rf conftest.dir 3899else 3900 am_cv_CC_dependencies_compiler_type=none 3901fi 3902 3903fi 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3905$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3906CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3907 3908 if 3909 test "x$enable_dependency_tracking" != xno \ 3910 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3911 am__fastdepCC_TRUE= 3912 am__fastdepCC_FALSE='#' 3913else 3914 am__fastdepCC_TRUE='#' 3915 am__fastdepCC_FALSE= 3916fi 3917 3918 3919 case $ac_cv_prog_cc_stdc in #( 3920 no) : 3921 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 3922 *) : 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3924$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3925if ${ac_cv_prog_cc_c99+:} false; then : 3926 $as_echo_n "(cached) " >&6 3927else 3928 ac_cv_prog_cc_c99=no 3929ac_save_CC=$CC 3930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3931/* end confdefs.h. */ 3932#include <stdarg.h> 3933#include <stdbool.h> 3934#include <stdlib.h> 3935#include <wchar.h> 3936#include <stdio.h> 3937 3938// Check varargs macros. These examples are taken from C99 6.10.3.5. 3939#define debug(...) fprintf (stderr, __VA_ARGS__) 3940#define showlist(...) puts (#__VA_ARGS__) 3941#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3942static void 3943test_varargs_macros (void) 3944{ 3945 int x = 1234; 3946 int y = 5678; 3947 debug ("Flag"); 3948 debug ("X = %d\n", x); 3949 showlist (The first, second, and third items.); 3950 report (x>y, "x is %d but y is %d", x, y); 3951} 3952 3953// Check long long types. 3954#define BIG64 18446744073709551615ull 3955#define BIG32 4294967295ul 3956#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3957#if !BIG_OK 3958 your preprocessor is broken; 3959#endif 3960#if BIG_OK 3961#else 3962 your preprocessor is broken; 3963#endif 3964static long long int bignum = -9223372036854775807LL; 3965static unsigned long long int ubignum = BIG64; 3966 3967struct incomplete_array 3968{ 3969 int datasize; 3970 double data[]; 3971}; 3972 3973struct named_init { 3974 int number; 3975 const wchar_t *name; 3976 double average; 3977}; 3978 3979typedef const char *ccp; 3980 3981static inline int 3982test_restrict (ccp restrict text) 3983{ 3984 // See if C++-style comments work. 3985 // Iterate through items via the restricted pointer. 3986 // Also check for declarations in for loops. 3987 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3988 continue; 3989 return 0; 3990} 3991 3992// Check varargs and va_copy. 3993static void 3994test_varargs (const char *format, ...) 3995{ 3996 va_list args; 3997 va_start (args, format); 3998 va_list args_copy; 3999 va_copy (args_copy, args); 4000 4001 const char *str; 4002 int number; 4003 float fnumber; 4004 4005 while (*format) 4006 { 4007 switch (*format++) 4008 { 4009 case 's': // string 4010 str = va_arg (args_copy, const char *); 4011 break; 4012 case 'd': // int 4013 number = va_arg (args_copy, int); 4014 break; 4015 case 'f': // float 4016 fnumber = va_arg (args_copy, double); 4017 break; 4018 default: 4019 break; 4020 } 4021 } 4022 va_end (args_copy); 4023 va_end (args); 4024} 4025 4026int 4027main () 4028{ 4029 4030 // Check bool. 4031 _Bool success = false; 4032 4033 // Check restrict. 4034 if (test_restrict ("String literal") == 0) 4035 success = true; 4036 char *restrict newvar = "Another string"; 4037 4038 // Check varargs. 4039 test_varargs ("s, d' f .", "string", 65, 34.234); 4040 test_varargs_macros (); 4041 4042 // Check flexible array members. 4043 struct incomplete_array *ia = 4044 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4045 ia->datasize = 10; 4046 for (int i = 0; i < ia->datasize; ++i) 4047 ia->data[i] = i * 1.234; 4048 4049 // Check named initializers. 4050 struct named_init ni = { 4051 .number = 34, 4052 .name = L"Test wide string", 4053 .average = 543.34343, 4054 }; 4055 4056 ni.number = 58; 4057 4058 int dynamic_array[ni.number]; 4059 dynamic_array[ni.number - 1] = 543; 4060 4061 // work around unused variable warnings 4062 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4063 || dynamic_array[ni.number - 1] != 543); 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4070do 4071 CC="$ac_save_CC $ac_arg" 4072 if ac_fn_c_try_compile "$LINENO"; then : 4073 ac_cv_prog_cc_c99=$ac_arg 4074fi 4075rm -f core conftest.err conftest.$ac_objext 4076 test "x$ac_cv_prog_cc_c99" != "xno" && break 4077done 4078rm -f conftest.$ac_ext 4079CC=$ac_save_CC 4080 4081fi 4082# AC_CACHE_VAL 4083case "x$ac_cv_prog_cc_c99" in 4084 x) 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4086$as_echo "none needed" >&6; } ;; 4087 xno) 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4089$as_echo "unsupported" >&6; } ;; 4090 *) 4091 CC="$CC $ac_cv_prog_cc_c99" 4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4093$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4094esac 4095if test "x$ac_cv_prog_cc_c99" != xno; then : 4096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4097else 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4099$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4100if ${ac_cv_prog_cc_c89+:} false; then : 4101 $as_echo_n "(cached) " >&6 4102else 4103 ac_cv_prog_cc_c89=no 4104ac_save_CC=$CC 4105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4106/* end confdefs.h. */ 4107#include <stdarg.h> 4108#include <stdio.h> 4109struct stat; 4110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4111struct buf { int x; }; 4112FILE * (*rcsopen) (struct buf *, struct stat *, int); 4113static char *e (p, i) 4114 char **p; 4115 int i; 4116{ 4117 return p[i]; 4118} 4119static char *f (char * (*g) (char **, int), char **p, ...) 4120{ 4121 char *s; 4122 va_list v; 4123 va_start (v,p); 4124 s = g (p, va_arg (v,int)); 4125 va_end (v); 4126 return s; 4127} 4128 4129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4130 function prototypes and stuff, but not '\xHH' hex character constants. 4131 These don't provoke an error unfortunately, instead are silently treated 4132 as 'x'. The following induces an error, until -std is added to get 4133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4134 array size at least. It's necessary to write '\x00'==0 to get something 4135 that's true only with -std. */ 4136int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4137 4138/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4139 inside strings and character constants. */ 4140#define FOO(x) 'x' 4141int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4142 4143int test (int i, double x); 4144struct s1 {int (*f) (int a);}; 4145struct s2 {int (*f) (double a);}; 4146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4147int argc; 4148char **argv; 4149int 4150main () 4151{ 4152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4159do 4160 CC="$ac_save_CC $ac_arg" 4161 if ac_fn_c_try_compile "$LINENO"; then : 4162 ac_cv_prog_cc_c89=$ac_arg 4163fi 4164rm -f core conftest.err conftest.$ac_objext 4165 test "x$ac_cv_prog_cc_c89" != "xno" && break 4166done 4167rm -f conftest.$ac_ext 4168CC=$ac_save_CC 4169 4170fi 4171# AC_CACHE_VAL 4172case "x$ac_cv_prog_cc_c89" in 4173 x) 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4175$as_echo "none needed" >&6; } ;; 4176 xno) 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4178$as_echo "unsupported" >&6; } ;; 4179 *) 4180 CC="$CC $ac_cv_prog_cc_c89" 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4182$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4183esac 4184if test "x$ac_cv_prog_cc_c89" != xno; then : 4185 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4186else 4187 ac_cv_prog_cc_stdc=no 4188fi 4189 4190fi 4191 ;; 4192esac 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4194$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4195 if ${ac_cv_prog_cc_stdc+:} false; then : 4196 $as_echo_n "(cached) " >&6 4197fi 4198 4199 case $ac_cv_prog_cc_stdc in #( 4200 no) : 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4202$as_echo "unsupported" >&6; } ;; #( 4203 '') : 4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4205$as_echo "none needed" >&6; } ;; #( 4206 *) : 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4208$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4209esac 4210 4211ac_ext=c 4212ac_cpp='$CPP $CPPFLAGS' 4213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4215ac_compiler_gnu=$ac_cv_c_compiler_gnu 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4217$as_echo_n "checking how to run the C preprocessor... " >&6; } 4218# On Suns, sometimes $CPP names a directory. 4219if test -n "$CPP" && test -d "$CPP"; then 4220 CPP= 4221fi 4222if test -z "$CPP"; then 4223 if ${ac_cv_prog_CPP+:} false; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 # Double quotes because CPP needs to be expanded 4227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4228 do 4229 ac_preproc_ok=false 4230for ac_c_preproc_warn_flag in '' yes 4231do 4232 # Use a header file that comes with gcc, so configuring glibc 4233 # with a fresh cross-compiler works. 4234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4235 # <limits.h> exists even on freestanding compilers. 4236 # On the NeXT, cc -E runs the code through the compiler's parser, 4237 # not just through cpp. "Syntax error" is here to catch this case. 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239/* end confdefs.h. */ 4240#ifdef __STDC__ 4241# include <limits.h> 4242#else 4243# include <assert.h> 4244#endif 4245 Syntax error 4246_ACEOF 4247if ac_fn_c_try_cpp "$LINENO"; then : 4248 4249else 4250 # Broken: fails on valid input. 4251continue 4252fi 4253rm -f conftest.err conftest.i conftest.$ac_ext 4254 4255 # OK, works on sane cases. Now check whether nonexistent headers 4256 # can be detected and how. 4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4258/* end confdefs.h. */ 4259#include <ac_nonexistent.h> 4260_ACEOF 4261if ac_fn_c_try_cpp "$LINENO"; then : 4262 # Broken: success on invalid input. 4263continue 4264else 4265 # Passes both tests. 4266ac_preproc_ok=: 4267break 4268fi 4269rm -f conftest.err conftest.i conftest.$ac_ext 4270 4271done 4272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4273rm -f conftest.i conftest.err conftest.$ac_ext 4274if $ac_preproc_ok; then : 4275 break 4276fi 4277 4278 done 4279 ac_cv_prog_CPP=$CPP 4280 4281fi 4282 CPP=$ac_cv_prog_CPP 4283else 4284 ac_cv_prog_CPP=$CPP 4285fi 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4287$as_echo "$CPP" >&6; } 4288ac_preproc_ok=false 4289for ac_c_preproc_warn_flag in '' yes 4290do 4291 # Use a header file that comes with gcc, so configuring glibc 4292 # with a fresh cross-compiler works. 4293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4294 # <limits.h> exists even on freestanding compilers. 4295 # On the NeXT, cc -E runs the code through the compiler's parser, 4296 # not just through cpp. "Syntax error" is here to catch this case. 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298/* end confdefs.h. */ 4299#ifdef __STDC__ 4300# include <limits.h> 4301#else 4302# include <assert.h> 4303#endif 4304 Syntax error 4305_ACEOF 4306if ac_fn_c_try_cpp "$LINENO"; then : 4307 4308else 4309 # Broken: fails on valid input. 4310continue 4311fi 4312rm -f conftest.err conftest.i conftest.$ac_ext 4313 4314 # OK, works on sane cases. Now check whether nonexistent headers 4315 # can be detected and how. 4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317/* end confdefs.h. */ 4318#include <ac_nonexistent.h> 4319_ACEOF 4320if ac_fn_c_try_cpp "$LINENO"; then : 4321 # Broken: success on invalid input. 4322continue 4323else 4324 # Passes both tests. 4325ac_preproc_ok=: 4326break 4327fi 4328rm -f conftest.err conftest.i conftest.$ac_ext 4329 4330done 4331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4332rm -f conftest.i conftest.err conftest.$ac_ext 4333if $ac_preproc_ok; then : 4334 4335else 4336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4338as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4339See \`config.log' for more details" "$LINENO" 5; } 4340fi 4341 4342ac_ext=c 4343ac_cpp='$CPP $CPPFLAGS' 4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4346ac_compiler_gnu=$ac_cv_c_compiler_gnu 4347 4348 4349 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4351$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4352if ${ac_cv_path_GREP+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 if test -z "$GREP"; then 4356 ac_path_GREP_found=false 4357 # Loop through the user's path and test for each of PROGNAME-LIST 4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_prog in grep ggrep; do 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4366 as_fn_executable_p "$ac_path_GREP" || continue 4367# Check for GNU ac_path_GREP and select it if it is found. 4368 # Check for GNU $ac_path_GREP 4369case `"$ac_path_GREP" --version 2>&1` in 4370*GNU*) 4371 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4372*) 4373 ac_count=0 4374 $as_echo_n 0123456789 >"conftest.in" 4375 while : 4376 do 4377 cat "conftest.in" "conftest.in" >"conftest.tmp" 4378 mv "conftest.tmp" "conftest.in" 4379 cp "conftest.in" "conftest.nl" 4380 $as_echo 'GREP' >> "conftest.nl" 4381 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4383 as_fn_arith $ac_count + 1 && ac_count=$as_val 4384 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4385 # Best one so far, save it but keep looking for a better one 4386 ac_cv_path_GREP="$ac_path_GREP" 4387 ac_path_GREP_max=$ac_count 4388 fi 4389 # 10*(2^10) chars as input seems more than enough 4390 test $ac_count -gt 10 && break 4391 done 4392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4393esac 4394 4395 $ac_path_GREP_found && break 3 4396 done 4397 done 4398 done 4399IFS=$as_save_IFS 4400 if test -z "$ac_cv_path_GREP"; then 4401 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4402 fi 4403else 4404 ac_cv_path_GREP=$GREP 4405fi 4406 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4409$as_echo "$ac_cv_path_GREP" >&6; } 4410 GREP="$ac_cv_path_GREP" 4411 4412 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4414$as_echo_n "checking for egrep... " >&6; } 4415if ${ac_cv_path_EGREP+:} false; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4419 then ac_cv_path_EGREP="$GREP -E" 4420 else 4421 if test -z "$EGREP"; then 4422 ac_path_EGREP_found=false 4423 # Loop through the user's path and test for each of PROGNAME-LIST 4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4426do 4427 IFS=$as_save_IFS 4428 test -z "$as_dir" && as_dir=. 4429 for ac_prog in egrep; do 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4432 as_fn_executable_p "$ac_path_EGREP" || continue 4433# Check for GNU ac_path_EGREP and select it if it is found. 4434 # Check for GNU $ac_path_EGREP 4435case `"$ac_path_EGREP" --version 2>&1` in 4436*GNU*) 4437 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4438*) 4439 ac_count=0 4440 $as_echo_n 0123456789 >"conftest.in" 4441 while : 4442 do 4443 cat "conftest.in" "conftest.in" >"conftest.tmp" 4444 mv "conftest.tmp" "conftest.in" 4445 cp "conftest.in" "conftest.nl" 4446 $as_echo 'EGREP' >> "conftest.nl" 4447 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4449 as_fn_arith $ac_count + 1 && ac_count=$as_val 4450 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4451 # Best one so far, save it but keep looking for a better one 4452 ac_cv_path_EGREP="$ac_path_EGREP" 4453 ac_path_EGREP_max=$ac_count 4454 fi 4455 # 10*(2^10) chars as input seems more than enough 4456 test $ac_count -gt 10 && break 4457 done 4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4459esac 4460 4461 $ac_path_EGREP_found && break 3 4462 done 4463 done 4464 done 4465IFS=$as_save_IFS 4466 if test -z "$ac_cv_path_EGREP"; then 4467 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4468 fi 4469else 4470 ac_cv_path_EGREP=$EGREP 4471fi 4472 4473 fi 4474fi 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4476$as_echo "$ac_cv_path_EGREP" >&6; } 4477 EGREP="$ac_cv_path_EGREP" 4478 4479 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4481$as_echo_n "checking for ANSI C header files... " >&6; } 4482if ${ac_cv_header_stdc+:} false; then : 4483 $as_echo_n "(cached) " >&6 4484else 4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4486/* end confdefs.h. */ 4487#include <stdlib.h> 4488#include <stdarg.h> 4489#include <string.h> 4490#include <float.h> 4491 4492int 4493main () 4494{ 4495 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500if ac_fn_c_try_compile "$LINENO"; then : 4501 ac_cv_header_stdc=yes 4502else 4503 ac_cv_header_stdc=no 4504fi 4505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4506 4507if test $ac_cv_header_stdc = yes; then 4508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4510/* end confdefs.h. */ 4511#include <string.h> 4512 4513_ACEOF 4514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4515 $EGREP "memchr" >/dev/null 2>&1; then : 4516 4517else 4518 ac_cv_header_stdc=no 4519fi 4520rm -f conftest* 4521 4522fi 4523 4524if test $ac_cv_header_stdc = yes; then 4525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528#include <stdlib.h> 4529 4530_ACEOF 4531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4532 $EGREP "free" >/dev/null 2>&1; then : 4533 4534else 4535 ac_cv_header_stdc=no 4536fi 4537rm -f conftest* 4538 4539fi 4540 4541if test $ac_cv_header_stdc = yes; then 4542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4543 if test "$cross_compiling" = yes; then : 4544 : 4545else 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548#include <ctype.h> 4549#include <stdlib.h> 4550#if ((' ' & 0x0FF) == 0x020) 4551# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4552# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4553#else 4554# define ISLOWER(c) \ 4555 (('a' <= (c) && (c) <= 'i') \ 4556 || ('j' <= (c) && (c) <= 'r') \ 4557 || ('s' <= (c) && (c) <= 'z')) 4558# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4559#endif 4560 4561#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4562int 4563main () 4564{ 4565 int i; 4566 for (i = 0; i < 256; i++) 4567 if (XOR (islower (i), ISLOWER (i)) 4568 || toupper (i) != TOUPPER (i)) 4569 return 2; 4570 return 0; 4571} 4572_ACEOF 4573if ac_fn_c_try_run "$LINENO"; then : 4574 4575else 4576 ac_cv_header_stdc=no 4577fi 4578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4579 conftest.$ac_objext conftest.beam conftest.$ac_ext 4580fi 4581 4582fi 4583fi 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4585$as_echo "$ac_cv_header_stdc" >&6; } 4586if test $ac_cv_header_stdc = yes; then 4587 4588$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4589 4590fi 4591 4592# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4593for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4594 inttypes.h stdint.h unistd.h 4595do : 4596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4597ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4598" 4599if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4600 cat >>confdefs.h <<_ACEOF 4601#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4602_ACEOF 4603 4604fi 4605 4606done 4607 4608 4609 4610 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4611if test "x$ac_cv_header_minix_config_h" = xyes; then : 4612 MINIX=yes 4613else 4614 MINIX= 4615fi 4616 4617 4618 if test "$MINIX" = yes; then 4619 4620$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4621 4622 4623$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4624 4625 4626$as_echo "#define _MINIX 1" >>confdefs.h 4627 4628 fi 4629 4630 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4632$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4633if ${ac_cv_safe_to_define___extensions__+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4637/* end confdefs.h. */ 4638 4639# define __EXTENSIONS__ 1 4640 $ac_includes_default 4641int 4642main () 4643{ 4644 4645 ; 4646 return 0; 4647} 4648_ACEOF 4649if ac_fn_c_try_compile "$LINENO"; then : 4650 ac_cv_safe_to_define___extensions__=yes 4651else 4652 ac_cv_safe_to_define___extensions__=no 4653fi 4654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4655fi 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4657$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4658 test $ac_cv_safe_to_define___extensions__ = yes && 4659 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4660 4661 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4662 4663 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4664 4665 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4666 4667 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4668 4669 4670 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4672$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4673if ${ac_cv_c_const+:} false; then : 4674 $as_echo_n "(cached) " >&6 4675else 4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4677/* end confdefs.h. */ 4678 4679int 4680main () 4681{ 4682 4683#ifndef __cplusplus 4684 /* Ultrix mips cc rejects this sort of thing. */ 4685 typedef int charset[2]; 4686 const charset cs = { 0, 0 }; 4687 /* SunOS 4.1.1 cc rejects this. */ 4688 char const *const *pcpcc; 4689 char **ppc; 4690 /* NEC SVR4.0.2 mips cc rejects this. */ 4691 struct point {int x, y;}; 4692 static struct point const zero = {0,0}; 4693 /* AIX XL C 1.02.0.0 rejects this. 4694 It does not let you subtract one const X* pointer from another in 4695 an arm of an if-expression whose if-part is not a constant 4696 expression */ 4697 const char *g = "string"; 4698 pcpcc = &g + (g ? g-g : 0); 4699 /* HPUX 7.0 cc rejects these. */ 4700 ++pcpcc; 4701 ppc = (char**) pcpcc; 4702 pcpcc = (char const *const *) ppc; 4703 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4704 char tx; 4705 char *t = &tx; 4706 char const *s = 0 ? (char *) 0 : (char const *) 0; 4707 4708 *t++ = 0; 4709 if (s) return 0; 4710 } 4711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4712 int x[] = {25, 17}; 4713 const int *foo = &x[0]; 4714 ++foo; 4715 } 4716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4717 typedef const int *iptr; 4718 iptr p = 0; 4719 ++p; 4720 } 4721 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4723 struct s { int j; const int *ap[3]; } bx; 4724 struct s *b = &bx; b->j = 5; 4725 } 4726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4727 const int foo = 10; 4728 if (!foo) return 0; 4729 } 4730 return !cs[0] && !zero.x; 4731#endif 4732 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737if ac_fn_c_try_compile "$LINENO"; then : 4738 ac_cv_c_const=yes 4739else 4740 ac_cv_c_const=no 4741fi 4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4743fi 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4745$as_echo "$ac_cv_c_const" >&6; } 4746if test $ac_cv_c_const = no; then 4747 4748$as_echo "#define const /**/" >>confdefs.h 4749 4750fi 4751 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 4753$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 4754if ${ac_cv_c_restrict+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 ac_cv_c_restrict=no 4758 # The order here caters to the fact that C++ does not require restrict. 4759 for ac_kw in __restrict __restrict__ _Restrict restrict; do 4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4761/* end confdefs.h. */ 4762typedef int * int_ptr; 4763 int foo (int_ptr $ac_kw ip) { 4764 return ip[0]; 4765 } 4766int 4767main () 4768{ 4769int s[1]; 4770 int * $ac_kw t = s; 4771 t[0] = 0; 4772 return foo(t) 4773 ; 4774 return 0; 4775} 4776_ACEOF 4777if ac_fn_c_try_compile "$LINENO"; then : 4778 ac_cv_c_restrict=$ac_kw 4779fi 4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4781 test "$ac_cv_c_restrict" != no && break 4782 done 4783 4784fi 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 4786$as_echo "$ac_cv_c_restrict" >&6; } 4787 4788 case $ac_cv_c_restrict in 4789 restrict) ;; 4790 no) $as_echo "#define restrict /**/" >>confdefs.h 4791 ;; 4792 *) cat >>confdefs.h <<_ACEOF 4793#define restrict $ac_cv_c_restrict 4794_ACEOF 4795 ;; 4796 esac 4797 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 4799$as_echo_n "checking for working volatile... " >&6; } 4800if ${ac_cv_c_volatile+:} false; then : 4801 $as_echo_n "(cached) " >&6 4802else 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805 4806int 4807main () 4808{ 4809 4810volatile int x; 4811int * volatile y = (int *) 0; 4812return !x && !y; 4813 ; 4814 return 0; 4815} 4816_ACEOF 4817if ac_fn_c_try_compile "$LINENO"; then : 4818 ac_cv_c_volatile=yes 4819else 4820 ac_cv_c_volatile=no 4821fi 4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 4825$as_echo "$ac_cv_c_volatile" >&6; } 4826if test $ac_cv_c_volatile = no; then 4827 4828$as_echo "#define volatile /**/" >>confdefs.h 4829 4830fi 4831 4832 4833# libtool 4834 4835case `pwd` in 4836 *\ * | *\ *) 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4838$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4839esac 4840 4841 4842 4843macro_version='2.4.6' 4844macro_revision='2.4.6' 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858ltmain=$ac_aux_dir/ltmain.sh 4859 4860# Make sure we can run config.sub. 4861$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4862 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4863 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4865$as_echo_n "checking build system type... " >&6; } 4866if ${ac_cv_build+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868else 4869 ac_build_alias=$build_alias 4870test "x$ac_build_alias" = x && 4871 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4872test "x$ac_build_alias" = x && 4873 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4874ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4875 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4876 4877fi 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4879$as_echo "$ac_cv_build" >&6; } 4880case $ac_cv_build in 4881*-*-*) ;; 4882*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4883esac 4884build=$ac_cv_build 4885ac_save_IFS=$IFS; IFS='-' 4886set x $ac_cv_build 4887shift 4888build_cpu=$1 4889build_vendor=$2 4890shift; shift 4891# Remember, the first character of IFS is used to create $*, 4892# except with old shells: 4893build_os=$* 4894IFS=$ac_save_IFS 4895case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4896 4897 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4899$as_echo_n "checking host system type... " >&6; } 4900if ${ac_cv_host+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902else 4903 if test "x$host_alias" = x; then 4904 ac_cv_host=$ac_cv_build 4905else 4906 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4907 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4908fi 4909 4910fi 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4912$as_echo "$ac_cv_host" >&6; } 4913case $ac_cv_host in 4914*-*-*) ;; 4915*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4916esac 4917host=$ac_cv_host 4918ac_save_IFS=$IFS; IFS='-' 4919set x $ac_cv_host 4920shift 4921host_cpu=$1 4922host_vendor=$2 4923shift; shift 4924# Remember, the first character of IFS is used to create $*, 4925# except with old shells: 4926host_os=$* 4927IFS=$ac_save_IFS 4928case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4929 4930 4931# Backslashify metacharacters that are still active within 4932# double-quoted strings. 4933sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4934 4935# Same as above, but do not quote variable references. 4936double_quote_subst='s/\(["`\\]\)/\\\1/g' 4937 4938# Sed substitution to delay expansion of an escaped shell variable in a 4939# double_quote_subst'ed string. 4940delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4941 4942# Sed substitution to delay expansion of an escaped single quote. 4943delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4944 4945# Sed substitution to avoid accidental globbing in evaled expressions 4946no_glob_subst='s/\*/\\\*/g' 4947 4948ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4949ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4950ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4951 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4953$as_echo_n "checking how to print strings... " >&6; } 4954# Test print first, because it will be a builtin if present. 4955if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4956 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4957 ECHO='print -r --' 4958elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4959 ECHO='printf %s\n' 4960else 4961 # Use this function as a fallback that always works. 4962 func_fallback_echo () 4963 { 4964 eval 'cat <<_LTECHO_EOF 4965$1 4966_LTECHO_EOF' 4967 } 4968 ECHO='func_fallback_echo' 4969fi 4970 4971# func_echo_all arg... 4972# Invoke $ECHO with all args, space-separated. 4973func_echo_all () 4974{ 4975 $ECHO "" 4976} 4977 4978case $ECHO in 4979 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4980$as_echo "printf" >&6; } ;; 4981 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4982$as_echo "print -r" >&6; } ;; 4983 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4984$as_echo "cat" >&6; } ;; 4985esac 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5001$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5002if ${ac_cv_path_SED+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5006 for ac_i in 1 2 3 4 5 6 7; do 5007 ac_script="$ac_script$as_nl$ac_script" 5008 done 5009 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5010 { ac_script=; unset ac_script;} 5011 if test -z "$SED"; then 5012 ac_path_SED_found=false 5013 # Loop through the user's path and test for each of PROGNAME-LIST 5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5015for as_dir in $PATH 5016do 5017 IFS=$as_save_IFS 5018 test -z "$as_dir" && as_dir=. 5019 for ac_prog in sed gsed; do 5020 for ac_exec_ext in '' $ac_executable_extensions; do 5021 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5022 as_fn_executable_p "$ac_path_SED" || continue 5023# Check for GNU ac_path_SED and select it if it is found. 5024 # Check for GNU $ac_path_SED 5025case `"$ac_path_SED" --version 2>&1` in 5026*GNU*) 5027 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5028*) 5029 ac_count=0 5030 $as_echo_n 0123456789 >"conftest.in" 5031 while : 5032 do 5033 cat "conftest.in" "conftest.in" >"conftest.tmp" 5034 mv "conftest.tmp" "conftest.in" 5035 cp "conftest.in" "conftest.nl" 5036 $as_echo '' >> "conftest.nl" 5037 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5039 as_fn_arith $ac_count + 1 && ac_count=$as_val 5040 if test $ac_count -gt ${ac_path_SED_max-0}; then 5041 # Best one so far, save it but keep looking for a better one 5042 ac_cv_path_SED="$ac_path_SED" 5043 ac_path_SED_max=$ac_count 5044 fi 5045 # 10*(2^10) chars as input seems more than enough 5046 test $ac_count -gt 10 && break 5047 done 5048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5049esac 5050 5051 $ac_path_SED_found && break 3 5052 done 5053 done 5054 done 5055IFS=$as_save_IFS 5056 if test -z "$ac_cv_path_SED"; then 5057 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5058 fi 5059else 5060 ac_cv_path_SED=$SED 5061fi 5062 5063fi 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5065$as_echo "$ac_cv_path_SED" >&6; } 5066 SED="$ac_cv_path_SED" 5067 rm -f conftest.sed 5068 5069test -z "$SED" && SED=sed 5070Xsed="$SED -e 1s/^X//" 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5083$as_echo_n "checking for fgrep... " >&6; } 5084if ${ac_cv_path_FGREP+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5088 then ac_cv_path_FGREP="$GREP -F" 5089 else 5090 if test -z "$FGREP"; then 5091 ac_path_FGREP_found=false 5092 # Loop through the user's path and test for each of PROGNAME-LIST 5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5095do 5096 IFS=$as_save_IFS 5097 test -z "$as_dir" && as_dir=. 5098 for ac_prog in fgrep; do 5099 for ac_exec_ext in '' $ac_executable_extensions; do 5100 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5101 as_fn_executable_p "$ac_path_FGREP" || continue 5102# Check for GNU ac_path_FGREP and select it if it is found. 5103 # Check for GNU $ac_path_FGREP 5104case `"$ac_path_FGREP" --version 2>&1` in 5105*GNU*) 5106 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5107*) 5108 ac_count=0 5109 $as_echo_n 0123456789 >"conftest.in" 5110 while : 5111 do 5112 cat "conftest.in" "conftest.in" >"conftest.tmp" 5113 mv "conftest.tmp" "conftest.in" 5114 cp "conftest.in" "conftest.nl" 5115 $as_echo 'FGREP' >> "conftest.nl" 5116 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5118 as_fn_arith $ac_count + 1 && ac_count=$as_val 5119 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5120 # Best one so far, save it but keep looking for a better one 5121 ac_cv_path_FGREP="$ac_path_FGREP" 5122 ac_path_FGREP_max=$ac_count 5123 fi 5124 # 10*(2^10) chars as input seems more than enough 5125 test $ac_count -gt 10 && break 5126 done 5127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5128esac 5129 5130 $ac_path_FGREP_found && break 3 5131 done 5132 done 5133 done 5134IFS=$as_save_IFS 5135 if test -z "$ac_cv_path_FGREP"; then 5136 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5137 fi 5138else 5139 ac_cv_path_FGREP=$FGREP 5140fi 5141 5142 fi 5143fi 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5145$as_echo "$ac_cv_path_FGREP" >&6; } 5146 FGREP="$ac_cv_path_FGREP" 5147 5148 5149test -z "$GREP" && GREP=grep 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169# Check whether --with-gnu-ld was given. 5170if test "${with_gnu_ld+set}" = set; then : 5171 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5172else 5173 with_gnu_ld=no 5174fi 5175 5176ac_prog=ld 5177if test yes = "$GCC"; then 5178 # Check if gcc -print-prog-name=ld gives a path. 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5180$as_echo_n "checking for ld used by $CC... " >&6; } 5181 case $host in 5182 *-*-mingw*) 5183 # gcc leaves a trailing carriage return, which upsets mingw 5184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5185 *) 5186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5187 esac 5188 case $ac_prog in 5189 # Accept absolute paths. 5190 [\\/]* | ?:[\\/]*) 5191 re_direlt='/[^/][^/]*/\.\./' 5192 # Canonicalize the pathname of ld 5193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5196 done 5197 test -z "$LD" && LD=$ac_prog 5198 ;; 5199 "") 5200 # If it fails, then pretend we aren't using GCC. 5201 ac_prog=ld 5202 ;; 5203 *) 5204 # If it is relative, then search for the first ld in PATH. 5205 with_gnu_ld=unknown 5206 ;; 5207 esac 5208elif test yes = "$with_gnu_ld"; then 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5210$as_echo_n "checking for GNU ld... " >&6; } 5211else 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5213$as_echo_n "checking for non-GNU ld... " >&6; } 5214fi 5215if ${lt_cv_path_LD+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 if test -z "$LD"; then 5219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5220 for ac_dir in $PATH; do 5221 IFS=$lt_save_ifs 5222 test -z "$ac_dir" && ac_dir=. 5223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5224 lt_cv_path_LD=$ac_dir/$ac_prog 5225 # Check to see if the program is GNU ld. I'd rather use --version, 5226 # but apparently some variants of GNU ld only accept -v. 5227 # Break only if it was the GNU/non-GNU ld that we prefer. 5228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5229 *GNU* | *'with BFD'*) 5230 test no != "$with_gnu_ld" && break 5231 ;; 5232 *) 5233 test yes != "$with_gnu_ld" && break 5234 ;; 5235 esac 5236 fi 5237 done 5238 IFS=$lt_save_ifs 5239else 5240 lt_cv_path_LD=$LD # Let the user override the test with a path. 5241fi 5242fi 5243 5244LD=$lt_cv_path_LD 5245if test -n "$LD"; then 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5247$as_echo "$LD" >&6; } 5248else 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5250$as_echo "no" >&6; } 5251fi 5252test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5254$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5255if ${lt_cv_prog_gnu_ld+:} false; then : 5256 $as_echo_n "(cached) " >&6 5257else 5258 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5259case `$LD -v 2>&1 </dev/null` in 5260*GNU* | *'with BFD'*) 5261 lt_cv_prog_gnu_ld=yes 5262 ;; 5263*) 5264 lt_cv_prog_gnu_ld=no 5265 ;; 5266esac 5267fi 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5269$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5270with_gnu_ld=$lt_cv_prog_gnu_ld 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5281$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5282if ${lt_cv_path_NM+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 if test -n "$NM"; then 5286 # Let the user override the test. 5287 lt_cv_path_NM=$NM 5288else 5289 lt_nm_to_check=${ac_tool_prefix}nm 5290 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5291 lt_nm_to_check="$lt_nm_to_check nm" 5292 fi 5293 for lt_tmp_nm in $lt_nm_to_check; do 5294 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5295 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5296 IFS=$lt_save_ifs 5297 test -z "$ac_dir" && ac_dir=. 5298 tmp_nm=$ac_dir/$lt_tmp_nm 5299 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5300 # Check to see if the nm accepts a BSD-compat flag. 5301 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5302 # nm: unknown option "B" ignored 5303 # Tru64's nm complains that /dev/null is an invalid object file 5304 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5305 case $build_os in 5306 mingw*) lt_bad_file=conftest.nm/nofile ;; 5307 *) lt_bad_file=/dev/null ;; 5308 esac 5309 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5310 *$lt_bad_file* | *'Invalid file or object type'*) 5311 lt_cv_path_NM="$tmp_nm -B" 5312 break 2 5313 ;; 5314 *) 5315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5316 */dev/null*) 5317 lt_cv_path_NM="$tmp_nm -p" 5318 break 2 5319 ;; 5320 *) 5321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5322 continue # so that we can try to find one that supports BSD flags 5323 ;; 5324 esac 5325 ;; 5326 esac 5327 fi 5328 done 5329 IFS=$lt_save_ifs 5330 done 5331 : ${lt_cv_path_NM=no} 5332fi 5333fi 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5335$as_echo "$lt_cv_path_NM" >&6; } 5336if test no != "$lt_cv_path_NM"; then 5337 NM=$lt_cv_path_NM 5338else 5339 # Didn't find any BSD compatible name lister, look for dumpbin. 5340 if test -n "$DUMPBIN"; then : 5341 # Let the user override the test. 5342 else 5343 if test -n "$ac_tool_prefix"; then 5344 for ac_prog in dumpbin "link -dump" 5345 do 5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5347set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5349$as_echo_n "checking for $ac_word... " >&6; } 5350if ${ac_cv_prog_DUMPBIN+:} false; then : 5351 $as_echo_n "(cached) " >&6 5352else 5353 if test -n "$DUMPBIN"; then 5354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5355else 5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5357for as_dir in $PATH 5358do 5359 IFS=$as_save_IFS 5360 test -z "$as_dir" && as_dir=. 5361 for ac_exec_ext in '' $ac_executable_extensions; do 5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5365 break 2 5366 fi 5367done 5368 done 5369IFS=$as_save_IFS 5370 5371fi 5372fi 5373DUMPBIN=$ac_cv_prog_DUMPBIN 5374if test -n "$DUMPBIN"; then 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5376$as_echo "$DUMPBIN" >&6; } 5377else 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5379$as_echo "no" >&6; } 5380fi 5381 5382 5383 test -n "$DUMPBIN" && break 5384 done 5385fi 5386if test -z "$DUMPBIN"; then 5387 ac_ct_DUMPBIN=$DUMPBIN 5388 for ac_prog in dumpbin "link -dump" 5389do 5390 # Extract the first word of "$ac_prog", so it can be a program name with args. 5391set dummy $ac_prog; ac_word=$2 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5393$as_echo_n "checking for $ac_word... " >&6; } 5394if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 if test -n "$ac_ct_DUMPBIN"; then 5398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5399else 5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401for as_dir in $PATH 5402do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5409 break 2 5410 fi 5411done 5412 done 5413IFS=$as_save_IFS 5414 5415fi 5416fi 5417ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5418if test -n "$ac_ct_DUMPBIN"; then 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5420$as_echo "$ac_ct_DUMPBIN" >&6; } 5421else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423$as_echo "no" >&6; } 5424fi 5425 5426 5427 test -n "$ac_ct_DUMPBIN" && break 5428done 5429 5430 if test "x$ac_ct_DUMPBIN" = x; then 5431 DUMPBIN=":" 5432 else 5433 case $cross_compiling:$ac_tool_warned in 5434yes:) 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5437ac_tool_warned=yes ;; 5438esac 5439 DUMPBIN=$ac_ct_DUMPBIN 5440 fi 5441fi 5442 5443 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5444 *COFF*) 5445 DUMPBIN="$DUMPBIN -symbols -headers" 5446 ;; 5447 *) 5448 DUMPBIN=: 5449 ;; 5450 esac 5451 fi 5452 5453 if test : != "$DUMPBIN"; then 5454 NM=$DUMPBIN 5455 fi 5456fi 5457test -z "$NM" && NM=nm 5458 5459 5460 5461 5462 5463 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5465$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5466if ${lt_cv_nm_interface+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 lt_cv_nm_interface="BSD nm" 5470 echo "int some_variable = 0;" > conftest.$ac_ext 5471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5472 (eval "$ac_compile" 2>conftest.err) 5473 cat conftest.err >&5 5474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5476 cat conftest.err >&5 5477 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5478 cat conftest.out >&5 5479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5480 lt_cv_nm_interface="MS dumpbin" 5481 fi 5482 rm -f conftest* 5483fi 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5485$as_echo "$lt_cv_nm_interface" >&6; } 5486 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5488$as_echo_n "checking whether ln -s works... " >&6; } 5489LN_S=$as_ln_s 5490if test "$LN_S" = "ln -s"; then 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5492$as_echo "yes" >&6; } 5493else 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5495$as_echo "no, using $LN_S" >&6; } 5496fi 5497 5498# find the maximum length of command line arguments 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5500$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5501if ${lt_cv_sys_max_cmd_len+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 i=0 5505 teststring=ABCD 5506 5507 case $build_os in 5508 msdosdjgpp*) 5509 # On DJGPP, this test can blow up pretty badly due to problems in libc 5510 # (any single argument exceeding 2000 bytes causes a buffer overrun 5511 # during glob expansion). Even if it were fixed, the result of this 5512 # check would be larger than it should be. 5513 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5514 ;; 5515 5516 gnu*) 5517 # Under GNU Hurd, this test is not required because there is 5518 # no limit to the length of command line arguments. 5519 # Libtool will interpret -1 as no limit whatsoever 5520 lt_cv_sys_max_cmd_len=-1; 5521 ;; 5522 5523 cygwin* | mingw* | cegcc*) 5524 # On Win9x/ME, this test blows up -- it succeeds, but takes 5525 # about 5 minutes as the teststring grows exponentially. 5526 # Worse, since 9x/ME are not pre-emptively multitasking, 5527 # you end up with a "frozen" computer, even though with patience 5528 # the test eventually succeeds (with a max line length of 256k). 5529 # Instead, let's just punt: use the minimum linelength reported by 5530 # all of the supported platforms: 8192 (on NT/2K/XP). 5531 lt_cv_sys_max_cmd_len=8192; 5532 ;; 5533 5534 mint*) 5535 # On MiNT this can take a long time and run out of memory. 5536 lt_cv_sys_max_cmd_len=8192; 5537 ;; 5538 5539 amigaos*) 5540 # On AmigaOS with pdksh, this test takes hours, literally. 5541 # So we just punt and use a minimum line length of 8192. 5542 lt_cv_sys_max_cmd_len=8192; 5543 ;; 5544 5545 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5546 # This has been around since 386BSD, at least. Likely further. 5547 if test -x /sbin/sysctl; then 5548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5549 elif test -x /usr/sbin/sysctl; then 5550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5551 else 5552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5553 fi 5554 # And add a safety zone 5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5557 ;; 5558 5559 interix*) 5560 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5561 lt_cv_sys_max_cmd_len=196608 5562 ;; 5563 5564 os2*) 5565 # The test takes a long time on OS/2. 5566 lt_cv_sys_max_cmd_len=8192 5567 ;; 5568 5569 osf*) 5570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5572 # nice to cause kernel panics so lets avoid the loop below. 5573 # First set a reasonable default. 5574 lt_cv_sys_max_cmd_len=16384 5575 # 5576 if test -x /sbin/sysconfig; then 5577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5578 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5579 esac 5580 fi 5581 ;; 5582 sco3.2v5*) 5583 lt_cv_sys_max_cmd_len=102400 5584 ;; 5585 sysv5* | sco5v6* | sysv4.2uw2*) 5586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5587 if test -n "$kargmax"; then 5588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5589 else 5590 lt_cv_sys_max_cmd_len=32768 5591 fi 5592 ;; 5593 *) 5594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5595 if test -n "$lt_cv_sys_max_cmd_len" && \ 5596 test undefined != "$lt_cv_sys_max_cmd_len"; then 5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5599 else 5600 # Make teststring a little bigger before we do anything with it. 5601 # a 1K string should be a reasonable start. 5602 for i in 1 2 3 4 5 6 7 8; do 5603 teststring=$teststring$teststring 5604 done 5605 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5606 # If test is not a shell built-in, we'll probably end up computing a 5607 # maximum length that is only half of the actual maximum length, but 5608 # we can't tell. 5609 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5610 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5611 test 17 != "$i" # 1/2 MB should be enough 5612 do 5613 i=`expr $i + 1` 5614 teststring=$teststring$teststring 5615 done 5616 # Only check the string length outside the loop. 5617 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5618 teststring= 5619 # Add a significant safety factor because C++ compilers can tack on 5620 # massive amounts of additional arguments before passing them to the 5621 # linker. It appears as though 1/2 is a usable value. 5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5623 fi 5624 ;; 5625 esac 5626 5627fi 5628 5629if test -n "$lt_cv_sys_max_cmd_len"; then 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5631$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5632else 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5634$as_echo "none" >&6; } 5635fi 5636max_cmd_len=$lt_cv_sys_max_cmd_len 5637 5638 5639 5640 5641 5642 5643: ${CP="cp -f"} 5644: ${MV="mv -f"} 5645: ${RM="rm -f"} 5646 5647if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5648 lt_unset=unset 5649else 5650 lt_unset=false 5651fi 5652 5653 5654 5655 5656 5657# test EBCDIC or ASCII 5658case `echo X|tr X '\101'` in 5659 A) # ASCII based system 5660 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5661 lt_SP2NL='tr \040 \012' 5662 lt_NL2SP='tr \015\012 \040\040' 5663 ;; 5664 *) # EBCDIC based system 5665 lt_SP2NL='tr \100 \n' 5666 lt_NL2SP='tr \r\n \100\100' 5667 ;; 5668esac 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5679$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5680if ${lt_cv_to_host_file_cmd+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 case $host in 5684 *-*-mingw* ) 5685 case $build in 5686 *-*-mingw* ) # actually msys 5687 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5688 ;; 5689 *-*-cygwin* ) 5690 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5691 ;; 5692 * ) # otherwise, assume *nix 5693 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5694 ;; 5695 esac 5696 ;; 5697 *-*-cygwin* ) 5698 case $build in 5699 *-*-mingw* ) # actually msys 5700 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5701 ;; 5702 *-*-cygwin* ) 5703 lt_cv_to_host_file_cmd=func_convert_file_noop 5704 ;; 5705 * ) # otherwise, assume *nix 5706 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5707 ;; 5708 esac 5709 ;; 5710 * ) # unhandled hosts (and "normal" native builds) 5711 lt_cv_to_host_file_cmd=func_convert_file_noop 5712 ;; 5713esac 5714 5715fi 5716 5717to_host_file_cmd=$lt_cv_to_host_file_cmd 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5719$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5720 5721 5722 5723 5724 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5726$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5727if ${lt_cv_to_tool_file_cmd+:} false; then : 5728 $as_echo_n "(cached) " >&6 5729else 5730 #assume ordinary cross tools, or native build. 5731lt_cv_to_tool_file_cmd=func_convert_file_noop 5732case $host in 5733 *-*-mingw* ) 5734 case $build in 5735 *-*-mingw* ) # actually msys 5736 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5737 ;; 5738 esac 5739 ;; 5740esac 5741 5742fi 5743 5744to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5746$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5747 5748 5749 5750 5751 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5753$as_echo_n "checking for $LD option to reload object files... " >&6; } 5754if ${lt_cv_ld_reload_flag+:} false; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 lt_cv_ld_reload_flag='-r' 5758fi 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5760$as_echo "$lt_cv_ld_reload_flag" >&6; } 5761reload_flag=$lt_cv_ld_reload_flag 5762case $reload_flag in 5763"" | " "*) ;; 5764*) reload_flag=" $reload_flag" ;; 5765esac 5766reload_cmds='$LD$reload_flag -o $output$reload_objs' 5767case $host_os in 5768 cygwin* | mingw* | pw32* | cegcc*) 5769 if test yes != "$GCC"; then 5770 reload_cmds=false 5771 fi 5772 ;; 5773 darwin*) 5774 if test yes = "$GCC"; then 5775 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5776 else 5777 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5778 fi 5779 ;; 5780esac 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790if test -n "$ac_tool_prefix"; then 5791 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5792set dummy ${ac_tool_prefix}objdump; ac_word=$2 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5794$as_echo_n "checking for $ac_word... " >&6; } 5795if ${ac_cv_prog_OBJDUMP+:} false; then : 5796 $as_echo_n "(cached) " >&6 5797else 5798 if test -n "$OBJDUMP"; then 5799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5800else 5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5802for as_dir in $PATH 5803do 5804 IFS=$as_save_IFS 5805 test -z "$as_dir" && as_dir=. 5806 for ac_exec_ext in '' $ac_executable_extensions; do 5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5808 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5810 break 2 5811 fi 5812done 5813 done 5814IFS=$as_save_IFS 5815 5816fi 5817fi 5818OBJDUMP=$ac_cv_prog_OBJDUMP 5819if test -n "$OBJDUMP"; then 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5821$as_echo "$OBJDUMP" >&6; } 5822else 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5824$as_echo "no" >&6; } 5825fi 5826 5827 5828fi 5829if test -z "$ac_cv_prog_OBJDUMP"; then 5830 ac_ct_OBJDUMP=$OBJDUMP 5831 # Extract the first word of "objdump", so it can be a program name with args. 5832set dummy objdump; ac_word=$2 5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5834$as_echo_n "checking for $ac_word... " >&6; } 5835if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837else 5838 if test -n "$ac_ct_OBJDUMP"; then 5839 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5840else 5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5842for as_dir in $PATH 5843do 5844 IFS=$as_save_IFS 5845 test -z "$as_dir" && as_dir=. 5846 for ac_exec_ext in '' $ac_executable_extensions; do 5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5848 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5850 break 2 5851 fi 5852done 5853 done 5854IFS=$as_save_IFS 5855 5856fi 5857fi 5858ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5859if test -n "$ac_ct_OBJDUMP"; then 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5861$as_echo "$ac_ct_OBJDUMP" >&6; } 5862else 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5864$as_echo "no" >&6; } 5865fi 5866 5867 if test "x$ac_ct_OBJDUMP" = x; then 5868 OBJDUMP="false" 5869 else 5870 case $cross_compiling:$ac_tool_warned in 5871yes:) 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5874ac_tool_warned=yes ;; 5875esac 5876 OBJDUMP=$ac_ct_OBJDUMP 5877 fi 5878else 5879 OBJDUMP="$ac_cv_prog_OBJDUMP" 5880fi 5881 5882test -z "$OBJDUMP" && OBJDUMP=objdump 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5893$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5894if ${lt_cv_deplibs_check_method+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 lt_cv_file_magic_cmd='$MAGIC_CMD' 5898lt_cv_file_magic_test_file= 5899lt_cv_deplibs_check_method='unknown' 5900# Need to set the preceding variable on all platforms that support 5901# interlibrary dependencies. 5902# 'none' -- dependencies not supported. 5903# 'unknown' -- same as none, but documents that we really don't know. 5904# 'pass_all' -- all dependencies passed with no checks. 5905# 'test_compile' -- check by making test program. 5906# 'file_magic [[regex]]' -- check by looking for files in library path 5907# that responds to the $file_magic_cmd with a given extended regex. 5908# If you have 'file' or equivalent on your system and you're not sure 5909# whether 'pass_all' will *always* work, you probably want this one. 5910 5911case $host_os in 5912aix[4-9]*) 5913 lt_cv_deplibs_check_method=pass_all 5914 ;; 5915 5916beos*) 5917 lt_cv_deplibs_check_method=pass_all 5918 ;; 5919 5920bsdi[45]*) 5921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5922 lt_cv_file_magic_cmd='/usr/bin/file -L' 5923 lt_cv_file_magic_test_file=/shlib/libc.so 5924 ;; 5925 5926cygwin*) 5927 # func_win32_libid is a shell function defined in ltmain.sh 5928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5929 lt_cv_file_magic_cmd='func_win32_libid' 5930 ;; 5931 5932mingw* | pw32*) 5933 # Base MSYS/MinGW do not provide the 'file' command needed by 5934 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5935 # unless we find 'file', for example because we are cross-compiling. 5936 if ( file / ) >/dev/null 2>&1; then 5937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5938 lt_cv_file_magic_cmd='func_win32_libid' 5939 else 5940 # Keep this pattern in sync with the one in func_win32_libid. 5941 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5942 lt_cv_file_magic_cmd='$OBJDUMP -f' 5943 fi 5944 ;; 5945 5946cegcc*) 5947 # use the weaker test based on 'objdump'. See mingw*. 5948 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5949 lt_cv_file_magic_cmd='$OBJDUMP -f' 5950 ;; 5951 5952darwin* | rhapsody*) 5953 lt_cv_deplibs_check_method=pass_all 5954 ;; 5955 5956freebsd* | dragonfly*) 5957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5958 case $host_cpu in 5959 i*86 ) 5960 # Not sure whether the presence of OpenBSD here was a mistake. 5961 # Let's accept both of them until this is cleared up. 5962 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5963 lt_cv_file_magic_cmd=/usr/bin/file 5964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5965 ;; 5966 esac 5967 else 5968 lt_cv_deplibs_check_method=pass_all 5969 fi 5970 ;; 5971 5972haiku*) 5973 lt_cv_deplibs_check_method=pass_all 5974 ;; 5975 5976hpux10.20* | hpux11*) 5977 lt_cv_file_magic_cmd=/usr/bin/file 5978 case $host_cpu in 5979 ia64*) 5980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5981 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5982 ;; 5983 hppa*64*) 5984 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]' 5985 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5986 ;; 5987 *) 5988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5989 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5990 ;; 5991 esac 5992 ;; 5993 5994interix[3-9]*) 5995 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5997 ;; 5998 5999irix5* | irix6* | nonstopux*) 6000 case $LD in 6001 *-32|*"-32 ") libmagic=32-bit;; 6002 *-n32|*"-n32 ") libmagic=N32;; 6003 *-64|*"-64 ") libmagic=64-bit;; 6004 *) libmagic=never-match;; 6005 esac 6006 lt_cv_deplibs_check_method=pass_all 6007 ;; 6008 6009# This must be glibc/ELF. 6010linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013 6014netbsd*) 6015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6017 else 6018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6019 fi 6020 ;; 6021 6022newos6*) 6023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6024 lt_cv_file_magic_cmd=/usr/bin/file 6025 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6026 ;; 6027 6028*nto* | *qnx*) 6029 lt_cv_deplibs_check_method=pass_all 6030 ;; 6031 6032openbsd* | bitrig*) 6033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6035 else 6036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6037 fi 6038 ;; 6039 6040osf3* | osf4* | osf5*) 6041 lt_cv_deplibs_check_method=pass_all 6042 ;; 6043 6044rdos*) 6045 lt_cv_deplibs_check_method=pass_all 6046 ;; 6047 6048solaris*) 6049 lt_cv_deplibs_check_method=pass_all 6050 ;; 6051 6052sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6053 lt_cv_deplibs_check_method=pass_all 6054 ;; 6055 6056sysv4 | sysv4.3*) 6057 case $host_vendor in 6058 motorola) 6059 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]' 6060 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6061 ;; 6062 ncr) 6063 lt_cv_deplibs_check_method=pass_all 6064 ;; 6065 sequent) 6066 lt_cv_file_magic_cmd='/bin/file' 6067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6068 ;; 6069 sni) 6070 lt_cv_file_magic_cmd='/bin/file' 6071 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6072 lt_cv_file_magic_test_file=/lib/libc.so 6073 ;; 6074 siemens) 6075 lt_cv_deplibs_check_method=pass_all 6076 ;; 6077 pc) 6078 lt_cv_deplibs_check_method=pass_all 6079 ;; 6080 esac 6081 ;; 6082 6083tpf*) 6084 lt_cv_deplibs_check_method=pass_all 6085 ;; 6086os2*) 6087 lt_cv_deplibs_check_method=pass_all 6088 ;; 6089esac 6090 6091fi 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6093$as_echo "$lt_cv_deplibs_check_method" >&6; } 6094 6095file_magic_glob= 6096want_nocaseglob=no 6097if test "$build" = "$host"; then 6098 case $host_os in 6099 mingw* | pw32*) 6100 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6101 want_nocaseglob=yes 6102 else 6103 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6104 fi 6105 ;; 6106 esac 6107fi 6108 6109file_magic_cmd=$lt_cv_file_magic_cmd 6110deplibs_check_method=$lt_cv_deplibs_check_method 6111test -z "$deplibs_check_method" && deplibs_check_method=unknown 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134if test -n "$ac_tool_prefix"; then 6135 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6136set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6138$as_echo_n "checking for $ac_word... " >&6; } 6139if ${ac_cv_prog_DLLTOOL+:} false; then : 6140 $as_echo_n "(cached) " >&6 6141else 6142 if test -n "$DLLTOOL"; then 6143 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6144else 6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6146for as_dir in $PATH 6147do 6148 IFS=$as_save_IFS 6149 test -z "$as_dir" && as_dir=. 6150 for ac_exec_ext in '' $ac_executable_extensions; do 6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6152 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6154 break 2 6155 fi 6156done 6157 done 6158IFS=$as_save_IFS 6159 6160fi 6161fi 6162DLLTOOL=$ac_cv_prog_DLLTOOL 6163if test -n "$DLLTOOL"; then 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6165$as_echo "$DLLTOOL" >&6; } 6166else 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6168$as_echo "no" >&6; } 6169fi 6170 6171 6172fi 6173if test -z "$ac_cv_prog_DLLTOOL"; then 6174 ac_ct_DLLTOOL=$DLLTOOL 6175 # Extract the first word of "dlltool", so it can be a program name with args. 6176set dummy dlltool; ac_word=$2 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6178$as_echo_n "checking for $ac_word... " >&6; } 6179if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 if test -n "$ac_ct_DLLTOOL"; then 6183 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6184else 6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6186for as_dir in $PATH 6187do 6188 IFS=$as_save_IFS 6189 test -z "$as_dir" && as_dir=. 6190 for ac_exec_ext in '' $ac_executable_extensions; do 6191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6192 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6194 break 2 6195 fi 6196done 6197 done 6198IFS=$as_save_IFS 6199 6200fi 6201fi 6202ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6203if test -n "$ac_ct_DLLTOOL"; then 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6205$as_echo "$ac_ct_DLLTOOL" >&6; } 6206else 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6208$as_echo "no" >&6; } 6209fi 6210 6211 if test "x$ac_ct_DLLTOOL" = x; then 6212 DLLTOOL="false" 6213 else 6214 case $cross_compiling:$ac_tool_warned in 6215yes:) 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6218ac_tool_warned=yes ;; 6219esac 6220 DLLTOOL=$ac_ct_DLLTOOL 6221 fi 6222else 6223 DLLTOOL="$ac_cv_prog_DLLTOOL" 6224fi 6225 6226test -z "$DLLTOOL" && DLLTOOL=dlltool 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6238$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6239if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6240 $as_echo_n "(cached) " >&6 6241else 6242 lt_cv_sharedlib_from_linklib_cmd='unknown' 6243 6244case $host_os in 6245cygwin* | mingw* | pw32* | cegcc*) 6246 # two different shell functions defined in ltmain.sh; 6247 # decide which one to use based on capabilities of $DLLTOOL 6248 case `$DLLTOOL --help 2>&1` in 6249 *--identify-strict*) 6250 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6251 ;; 6252 *) 6253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6254 ;; 6255 esac 6256 ;; 6257*) 6258 # fallback: assume linklib IS sharedlib 6259 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6260 ;; 6261esac 6262 6263fi 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6265$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6266sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6267test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6268 6269 6270 6271 6272 6273 6274 6275if test -n "$ac_tool_prefix"; then 6276 for ac_prog in ar 6277 do 6278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6279set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6281$as_echo_n "checking for $ac_word... " >&6; } 6282if ${ac_cv_prog_AR+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 if test -n "$AR"; then 6286 ac_cv_prog_AR="$AR" # Let the user override the test. 6287else 6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289for as_dir in $PATH 6290do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_exec_ext in '' $ac_executable_extensions; do 6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6295 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6297 break 2 6298 fi 6299done 6300 done 6301IFS=$as_save_IFS 6302 6303fi 6304fi 6305AR=$ac_cv_prog_AR 6306if test -n "$AR"; then 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6308$as_echo "$AR" >&6; } 6309else 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6311$as_echo "no" >&6; } 6312fi 6313 6314 6315 test -n "$AR" && break 6316 done 6317fi 6318if test -z "$AR"; then 6319 ac_ct_AR=$AR 6320 for ac_prog in ar 6321do 6322 # Extract the first word of "$ac_prog", so it can be a program name with args. 6323set dummy $ac_prog; ac_word=$2 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6325$as_echo_n "checking for $ac_word... " >&6; } 6326if ${ac_cv_prog_ac_ct_AR+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 if test -n "$ac_ct_AR"; then 6330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6331else 6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6333for as_dir in $PATH 6334do 6335 IFS=$as_save_IFS 6336 test -z "$as_dir" && as_dir=. 6337 for ac_exec_ext in '' $ac_executable_extensions; do 6338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6339 ac_cv_prog_ac_ct_AR="$ac_prog" 6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6341 break 2 6342 fi 6343done 6344 done 6345IFS=$as_save_IFS 6346 6347fi 6348fi 6349ac_ct_AR=$ac_cv_prog_ac_ct_AR 6350if test -n "$ac_ct_AR"; then 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6352$as_echo "$ac_ct_AR" >&6; } 6353else 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6355$as_echo "no" >&6; } 6356fi 6357 6358 6359 test -n "$ac_ct_AR" && break 6360done 6361 6362 if test "x$ac_ct_AR" = x; then 6363 AR="false" 6364 else 6365 case $cross_compiling:$ac_tool_warned in 6366yes:) 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6369ac_tool_warned=yes ;; 6370esac 6371 AR=$ac_ct_AR 6372 fi 6373fi 6374 6375: ${AR=ar} 6376: ${AR_FLAGS=cru} 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6389$as_echo_n "checking for archiver @FILE support... " >&6; } 6390if ${lt_cv_ar_at_file+:} false; then : 6391 $as_echo_n "(cached) " >&6 6392else 6393 lt_cv_ar_at_file=no 6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395/* end confdefs.h. */ 6396 6397int 6398main () 6399{ 6400 6401 ; 6402 return 0; 6403} 6404_ACEOF 6405if ac_fn_c_try_compile "$LINENO"; then : 6406 echo conftest.$ac_objext > conftest.lst 6407 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6409 (eval $lt_ar_try) 2>&5 6410 ac_status=$? 6411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6412 test $ac_status = 0; } 6413 if test 0 -eq "$ac_status"; then 6414 # Ensure the archiver fails upon bogus file names. 6415 rm -f conftest.$ac_objext libconftest.a 6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6417 (eval $lt_ar_try) 2>&5 6418 ac_status=$? 6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6420 test $ac_status = 0; } 6421 if test 0 -ne "$ac_status"; then 6422 lt_cv_ar_at_file=@ 6423 fi 6424 fi 6425 rm -f conftest.* libconftest.a 6426 6427fi 6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6429 6430fi 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6432$as_echo "$lt_cv_ar_at_file" >&6; } 6433 6434if test no = "$lt_cv_ar_at_file"; then 6435 archiver_list_spec= 6436else 6437 archiver_list_spec=$lt_cv_ar_at_file 6438fi 6439 6440 6441 6442 6443 6444 6445 6446if test -n "$ac_tool_prefix"; then 6447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6448set dummy ${ac_tool_prefix}strip; ac_word=$2 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6450$as_echo_n "checking for $ac_word... " >&6; } 6451if ${ac_cv_prog_STRIP+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 if test -n "$STRIP"; then 6455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6456else 6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458for as_dir in $PATH 6459do 6460 IFS=$as_save_IFS 6461 test -z "$as_dir" && as_dir=. 6462 for ac_exec_ext in '' $ac_executable_extensions; do 6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6464 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6466 break 2 6467 fi 6468done 6469 done 6470IFS=$as_save_IFS 6471 6472fi 6473fi 6474STRIP=$ac_cv_prog_STRIP 6475if test -n "$STRIP"; then 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6477$as_echo "$STRIP" >&6; } 6478else 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6480$as_echo "no" >&6; } 6481fi 6482 6483 6484fi 6485if test -z "$ac_cv_prog_STRIP"; then 6486 ac_ct_STRIP=$STRIP 6487 # Extract the first word of "strip", so it can be a program name with args. 6488set dummy strip; ac_word=$2 6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6490$as_echo_n "checking for $ac_word... " >&6; } 6491if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6492 $as_echo_n "(cached) " >&6 6493else 6494 if test -n "$ac_ct_STRIP"; then 6495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6496else 6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6498for as_dir in $PATH 6499do 6500 IFS=$as_save_IFS 6501 test -z "$as_dir" && as_dir=. 6502 for ac_exec_ext in '' $ac_executable_extensions; do 6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6504 ac_cv_prog_ac_ct_STRIP="strip" 6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6506 break 2 6507 fi 6508done 6509 done 6510IFS=$as_save_IFS 6511 6512fi 6513fi 6514ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6515if test -n "$ac_ct_STRIP"; then 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6517$as_echo "$ac_ct_STRIP" >&6; } 6518else 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6520$as_echo "no" >&6; } 6521fi 6522 6523 if test "x$ac_ct_STRIP" = x; then 6524 STRIP=":" 6525 else 6526 case $cross_compiling:$ac_tool_warned in 6527yes:) 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6530ac_tool_warned=yes ;; 6531esac 6532 STRIP=$ac_ct_STRIP 6533 fi 6534else 6535 STRIP="$ac_cv_prog_STRIP" 6536fi 6537 6538test -z "$STRIP" && STRIP=: 6539 6540 6541 6542 6543 6544 6545if test -n "$ac_tool_prefix"; then 6546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6547set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6549$as_echo_n "checking for $ac_word... " >&6; } 6550if ${ac_cv_prog_RANLIB+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 if test -n "$RANLIB"; then 6554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6555else 6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557for as_dir in $PATH 6558do 6559 IFS=$as_save_IFS 6560 test -z "$as_dir" && as_dir=. 6561 for ac_exec_ext in '' $ac_executable_extensions; do 6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6565 break 2 6566 fi 6567done 6568 done 6569IFS=$as_save_IFS 6570 6571fi 6572fi 6573RANLIB=$ac_cv_prog_RANLIB 6574if test -n "$RANLIB"; then 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6576$as_echo "$RANLIB" >&6; } 6577else 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6579$as_echo "no" >&6; } 6580fi 6581 6582 6583fi 6584if test -z "$ac_cv_prog_RANLIB"; then 6585 ac_ct_RANLIB=$RANLIB 6586 # Extract the first word of "ranlib", so it can be a program name with args. 6587set dummy ranlib; ac_word=$2 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6589$as_echo_n "checking for $ac_word... " >&6; } 6590if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 if test -n "$ac_ct_RANLIB"; then 6594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6595else 6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6597for as_dir in $PATH 6598do 6599 IFS=$as_save_IFS 6600 test -z "$as_dir" && as_dir=. 6601 for ac_exec_ext in '' $ac_executable_extensions; do 6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6603 ac_cv_prog_ac_ct_RANLIB="ranlib" 6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6605 break 2 6606 fi 6607done 6608 done 6609IFS=$as_save_IFS 6610 6611fi 6612fi 6613ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6614if test -n "$ac_ct_RANLIB"; then 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6616$as_echo "$ac_ct_RANLIB" >&6; } 6617else 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619$as_echo "no" >&6; } 6620fi 6621 6622 if test "x$ac_ct_RANLIB" = x; then 6623 RANLIB=":" 6624 else 6625 case $cross_compiling:$ac_tool_warned in 6626yes:) 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6629ac_tool_warned=yes ;; 6630esac 6631 RANLIB=$ac_ct_RANLIB 6632 fi 6633else 6634 RANLIB="$ac_cv_prog_RANLIB" 6635fi 6636 6637test -z "$RANLIB" && RANLIB=: 6638 6639 6640 6641 6642 6643 6644# Determine commands to create old-style static archives. 6645old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6646old_postinstall_cmds='chmod 644 $oldlib' 6647old_postuninstall_cmds= 6648 6649if test -n "$RANLIB"; then 6650 case $host_os in 6651 bitrig* | openbsd*) 6652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6653 ;; 6654 *) 6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6656 ;; 6657 esac 6658 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6659fi 6660 6661case $host_os in 6662 darwin*) 6663 lock_old_archive_extraction=yes ;; 6664 *) 6665 lock_old_archive_extraction=no ;; 6666esac 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706# If no C compiler was specified, use CC. 6707LTCC=${LTCC-"$CC"} 6708 6709# If no C compiler flags were specified, use CFLAGS. 6710LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6711 6712# Allow CC to be a program name with arguments. 6713compiler=$CC 6714 6715 6716# Check for command to grab the raw symbol name followed by C symbol from nm. 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6718$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6719if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6720 $as_echo_n "(cached) " >&6 6721else 6722 6723# These are sane defaults that work on at least a few old systems. 6724# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6725 6726# Character class describing NM global symbol codes. 6727symcode='[BCDEGRST]' 6728 6729# Regexp to match symbols that can be accessed directly from C. 6730sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6731 6732# Define system-specific variables. 6733case $host_os in 6734aix*) 6735 symcode='[BCDT]' 6736 ;; 6737cygwin* | mingw* | pw32* | cegcc*) 6738 symcode='[ABCDGISTW]' 6739 ;; 6740hpux*) 6741 if test ia64 = "$host_cpu"; then 6742 symcode='[ABCDEGRST]' 6743 fi 6744 ;; 6745irix* | nonstopux*) 6746 symcode='[BCDEGRST]' 6747 ;; 6748osf*) 6749 symcode='[BCDEGQRST]' 6750 ;; 6751solaris*) 6752 symcode='[BDRT]' 6753 ;; 6754sco3.2v5*) 6755 symcode='[DT]' 6756 ;; 6757sysv4.2uw2*) 6758 symcode='[DT]' 6759 ;; 6760sysv5* | sco5v6* | unixware* | OpenUNIX*) 6761 symcode='[ABDT]' 6762 ;; 6763sysv4) 6764 symcode='[DFNSTU]' 6765 ;; 6766esac 6767 6768# If we're using GNU nm, then use its standard symbol codes. 6769case `$NM -V 2>&1` in 6770*GNU* | *'with BFD'*) 6771 symcode='[ABCDGIRSTW]' ;; 6772esac 6773 6774if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6775 # Gets list of data symbols to import. 6776 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6777 # Adjust the below global symbol transforms to fixup imported variables. 6778 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6779 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6780 lt_c_name_lib_hook="\ 6781 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6782 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6783else 6784 # Disable hooks by default. 6785 lt_cv_sys_global_symbol_to_import= 6786 lt_cdecl_hook= 6787 lt_c_name_hook= 6788 lt_c_name_lib_hook= 6789fi 6790 6791# Transform an extracted symbol line into a proper C declaration. 6792# Some systems (esp. on ia64) link data and code symbols differently, 6793# so use this general approach. 6794lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6795$lt_cdecl_hook\ 6796" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6797" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6798 6799# Transform an extracted symbol line into symbol name and symbol address 6800lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6801$lt_c_name_hook\ 6802" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6803" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6804 6805# Transform an extracted symbol line into symbol name with lib prefix and 6806# symbol address. 6807lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6808$lt_c_name_lib_hook\ 6809" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6810" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6811" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6812 6813# Handle CRLF in mingw tool chain 6814opt_cr= 6815case $build_os in 6816mingw*) 6817 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6818 ;; 6819esac 6820 6821# Try without a prefix underscore, then with it. 6822for ac_symprfx in "" "_"; do 6823 6824 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6825 symxfrm="\\1 $ac_symprfx\\2 \\2" 6826 6827 # Write the raw and C identifiers. 6828 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6829 # Fake it for dumpbin and say T for any non-static function, 6830 # D for any global variable and I for any imported variable. 6831 # Also find C++ and __fastcall symbols from MSVC++, 6832 # which start with @ or ?. 6833 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6834" {last_section=section; section=\$ 3};"\ 6835" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6836" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6837" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6838" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6839" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6840" \$ 0!~/External *\|/{next};"\ 6841" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6842" {if(hide[section]) next};"\ 6843" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6844" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6845" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6846" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6847" ' prfx=^$ac_symprfx" 6848 else 6849 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6850 fi 6851 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6852 6853 # Check to see that the pipe works correctly. 6854 pipe_works=no 6855 6856 rm -f conftest* 6857 cat > conftest.$ac_ext <<_LT_EOF 6858#ifdef __cplusplus 6859extern "C" { 6860#endif 6861char nm_test_var; 6862void nm_test_func(void); 6863void nm_test_func(void){} 6864#ifdef __cplusplus 6865} 6866#endif 6867int main(){nm_test_var='a';nm_test_func();return(0);} 6868_LT_EOF 6869 6870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6871 (eval $ac_compile) 2>&5 6872 ac_status=$? 6873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6874 test $ac_status = 0; }; then 6875 # Now try to grab the symbols. 6876 nlist=conftest.nm 6877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6878 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6879 ac_status=$? 6880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6881 test $ac_status = 0; } && test -s "$nlist"; then 6882 # Try sorting and uniquifying the output. 6883 if sort "$nlist" | uniq > "$nlist"T; then 6884 mv -f "$nlist"T "$nlist" 6885 else 6886 rm -f "$nlist"T 6887 fi 6888 6889 # Make sure that we snagged all the symbols we need. 6890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6892 cat <<_LT_EOF > conftest.$ac_ext 6893/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6894#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6895/* DATA imports from DLLs on WIN32 can't be const, because runtime 6896 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6897# define LT_DLSYM_CONST 6898#elif defined __osf__ 6899/* This system does not cope well with relocations in const data. */ 6900# define LT_DLSYM_CONST 6901#else 6902# define LT_DLSYM_CONST const 6903#endif 6904 6905#ifdef __cplusplus 6906extern "C" { 6907#endif 6908 6909_LT_EOF 6910 # Now generate the symbol file. 6911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6912 6913 cat <<_LT_EOF >> conftest.$ac_ext 6914 6915/* The mapping between symbol names and symbols. */ 6916LT_DLSYM_CONST struct { 6917 const char *name; 6918 void *address; 6919} 6920lt__PROGRAM__LTX_preloaded_symbols[] = 6921{ 6922 { "@PROGRAM@", (void *) 0 }, 6923_LT_EOF 6924 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6925 cat <<\_LT_EOF >> conftest.$ac_ext 6926 {0, (void *) 0} 6927}; 6928 6929/* This works around a problem in FreeBSD linker */ 6930#ifdef FREEBSD_WORKAROUND 6931static const void *lt_preloaded_setup() { 6932 return lt__PROGRAM__LTX_preloaded_symbols; 6933} 6934#endif 6935 6936#ifdef __cplusplus 6937} 6938#endif 6939_LT_EOF 6940 # Now try linking the two files. 6941 mv conftest.$ac_objext conftstm.$ac_objext 6942 lt_globsym_save_LIBS=$LIBS 6943 lt_globsym_save_CFLAGS=$CFLAGS 6944 LIBS=conftstm.$ac_objext 6945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6947 (eval $ac_link) 2>&5 6948 ac_status=$? 6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6950 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6951 pipe_works=yes 6952 fi 6953 LIBS=$lt_globsym_save_LIBS 6954 CFLAGS=$lt_globsym_save_CFLAGS 6955 else 6956 echo "cannot find nm_test_func in $nlist" >&5 6957 fi 6958 else 6959 echo "cannot find nm_test_var in $nlist" >&5 6960 fi 6961 else 6962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6963 fi 6964 else 6965 echo "$progname: failed program was:" >&5 6966 cat conftest.$ac_ext >&5 6967 fi 6968 rm -rf conftest* conftst* 6969 6970 # Do not use the global_symbol_pipe unless it works. 6971 if test yes = "$pipe_works"; then 6972 break 6973 else 6974 lt_cv_sys_global_symbol_pipe= 6975 fi 6976done 6977 6978fi 6979 6980if test -z "$lt_cv_sys_global_symbol_pipe"; then 6981 lt_cv_sys_global_symbol_to_cdecl= 6982fi 6983if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6985$as_echo "failed" >&6; } 6986else 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6988$as_echo "ok" >&6; } 6989fi 6990 6991# Response file support. 6992if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6993 nm_file_list_spec='@' 6994elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6995 nm_file_list_spec='@' 6996fi 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7035$as_echo_n "checking for sysroot... " >&6; } 7036 7037# Check whether --with-sysroot was given. 7038if test "${with_sysroot+set}" = set; then : 7039 withval=$with_sysroot; 7040else 7041 with_sysroot=no 7042fi 7043 7044 7045lt_sysroot= 7046case $with_sysroot in #( 7047 yes) 7048 if test yes = "$GCC"; then 7049 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7050 fi 7051 ;; #( 7052 /*) 7053 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7054 ;; #( 7055 no|'') 7056 ;; #( 7057 *) 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7059$as_echo "$with_sysroot" >&6; } 7060 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7061 ;; 7062esac 7063 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7065$as_echo "${lt_sysroot:-no}" >&6; } 7066 7067 7068 7069 7070 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7072$as_echo_n "checking for a working dd... " >&6; } 7073if ${ac_cv_path_lt_DD+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 printf 0123456789abcdef0123456789abcdef >conftest.i 7077cat conftest.i conftest.i >conftest2.i 7078: ${lt_DD:=$DD} 7079if test -z "$lt_DD"; then 7080 ac_path_lt_DD_found=false 7081 # Loop through the user's path and test for each of PROGNAME-LIST 7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7083for as_dir in $PATH 7084do 7085 IFS=$as_save_IFS 7086 test -z "$as_dir" && as_dir=. 7087 for ac_prog in dd; do 7088 for ac_exec_ext in '' $ac_executable_extensions; do 7089 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7090 as_fn_executable_p "$ac_path_lt_DD" || continue 7091if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7092 cmp -s conftest.i conftest.out \ 7093 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7094fi 7095 $ac_path_lt_DD_found && break 3 7096 done 7097 done 7098 done 7099IFS=$as_save_IFS 7100 if test -z "$ac_cv_path_lt_DD"; then 7101 : 7102 fi 7103else 7104 ac_cv_path_lt_DD=$lt_DD 7105fi 7106 7107rm -f conftest.i conftest2.i conftest.out 7108fi 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7110$as_echo "$ac_cv_path_lt_DD" >&6; } 7111 7112 7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7114$as_echo_n "checking how to truncate binary pipes... " >&6; } 7115if ${lt_cv_truncate_bin+:} false; then : 7116 $as_echo_n "(cached) " >&6 7117else 7118 printf 0123456789abcdef0123456789abcdef >conftest.i 7119cat conftest.i conftest.i >conftest2.i 7120lt_cv_truncate_bin= 7121if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7122 cmp -s conftest.i conftest.out \ 7123 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7124fi 7125rm -f conftest.i conftest2.i conftest.out 7126test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7127fi 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7129$as_echo "$lt_cv_truncate_bin" >&6; } 7130 7131 7132 7133 7134 7135 7136 7137# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7138func_cc_basename () 7139{ 7140 for cc_temp in $*""; do 7141 case $cc_temp in 7142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7144 \-*) ;; 7145 *) break;; 7146 esac 7147 done 7148 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7149} 7150 7151# Check whether --enable-libtool-lock was given. 7152if test "${enable_libtool_lock+set}" = set; then : 7153 enableval=$enable_libtool_lock; 7154fi 7155 7156test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7157 7158# Some flags need to be propagated to the compiler or linker for good 7159# libtool support. 7160case $host in 7161ia64-*-hpux*) 7162 # Find out what ABI is being produced by ac_compile, and set mode 7163 # options accordingly. 7164 echo 'int i;' > conftest.$ac_ext 7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7166 (eval $ac_compile) 2>&5 7167 ac_status=$? 7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7169 test $ac_status = 0; }; then 7170 case `/usr/bin/file conftest.$ac_objext` in 7171 *ELF-32*) 7172 HPUX_IA64_MODE=32 7173 ;; 7174 *ELF-64*) 7175 HPUX_IA64_MODE=64 7176 ;; 7177 esac 7178 fi 7179 rm -rf conftest* 7180 ;; 7181*-*-irix6*) 7182 # Find out what ABI is being produced by ac_compile, and set linker 7183 # options accordingly. 7184 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7186 (eval $ac_compile) 2>&5 7187 ac_status=$? 7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7189 test $ac_status = 0; }; then 7190 if test yes = "$lt_cv_prog_gnu_ld"; then 7191 case `/usr/bin/file conftest.$ac_objext` in 7192 *32-bit*) 7193 LD="${LD-ld} -melf32bsmip" 7194 ;; 7195 *N32*) 7196 LD="${LD-ld} -melf32bmipn32" 7197 ;; 7198 *64-bit*) 7199 LD="${LD-ld} -melf64bmip" 7200 ;; 7201 esac 7202 else 7203 case `/usr/bin/file conftest.$ac_objext` in 7204 *32-bit*) 7205 LD="${LD-ld} -32" 7206 ;; 7207 *N32*) 7208 LD="${LD-ld} -n32" 7209 ;; 7210 *64-bit*) 7211 LD="${LD-ld} -64" 7212 ;; 7213 esac 7214 fi 7215 fi 7216 rm -rf conftest* 7217 ;; 7218 7219mips64*-*linux*) 7220 # Find out what ABI is being produced by ac_compile, and set linker 7221 # options accordingly. 7222 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7224 (eval $ac_compile) 2>&5 7225 ac_status=$? 7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7227 test $ac_status = 0; }; then 7228 emul=elf 7229 case `/usr/bin/file conftest.$ac_objext` in 7230 *32-bit*) 7231 emul="${emul}32" 7232 ;; 7233 *64-bit*) 7234 emul="${emul}64" 7235 ;; 7236 esac 7237 case `/usr/bin/file conftest.$ac_objext` in 7238 *MSB*) 7239 emul="${emul}btsmip" 7240 ;; 7241 *LSB*) 7242 emul="${emul}ltsmip" 7243 ;; 7244 esac 7245 case `/usr/bin/file conftest.$ac_objext` in 7246 *N32*) 7247 emul="${emul}n32" 7248 ;; 7249 esac 7250 LD="${LD-ld} -m $emul" 7251 fi 7252 rm -rf conftest* 7253 ;; 7254 7255x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7256s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7257 # Find out what ABI is being produced by ac_compile, and set linker 7258 # options accordingly. Note that the listed cases only cover the 7259 # situations where additional linker options are needed (such as when 7260 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7261 # vice versa); the common cases where no linker options are needed do 7262 # not appear in the list. 7263 echo 'int i;' > conftest.$ac_ext 7264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7265 (eval $ac_compile) 2>&5 7266 ac_status=$? 7267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7268 test $ac_status = 0; }; then 7269 case `/usr/bin/file conftest.o` in 7270 *32-bit*) 7271 case $host in 7272 x86_64-*kfreebsd*-gnu) 7273 LD="${LD-ld} -m elf_i386_fbsd" 7274 ;; 7275 x86_64-*linux*) 7276 case `/usr/bin/file conftest.o` in 7277 *x86-64*) 7278 LD="${LD-ld} -m elf32_x86_64" 7279 ;; 7280 *) 7281 LD="${LD-ld} -m elf_i386" 7282 ;; 7283 esac 7284 ;; 7285 powerpc64le-*linux*) 7286 LD="${LD-ld} -m elf32lppclinux" 7287 ;; 7288 powerpc64-*linux*) 7289 LD="${LD-ld} -m elf32ppclinux" 7290 ;; 7291 s390x-*linux*) 7292 LD="${LD-ld} -m elf_s390" 7293 ;; 7294 sparc64-*linux*) 7295 LD="${LD-ld} -m elf32_sparc" 7296 ;; 7297 esac 7298 ;; 7299 *64-bit*) 7300 case $host in 7301 x86_64-*kfreebsd*-gnu) 7302 LD="${LD-ld} -m elf_x86_64_fbsd" 7303 ;; 7304 x86_64-*linux*) 7305 LD="${LD-ld} -m elf_x86_64" 7306 ;; 7307 powerpcle-*linux*) 7308 LD="${LD-ld} -m elf64lppc" 7309 ;; 7310 powerpc-*linux*) 7311 LD="${LD-ld} -m elf64ppc" 7312 ;; 7313 s390*-*linux*|s390*-*tpf*) 7314 LD="${LD-ld} -m elf64_s390" 7315 ;; 7316 sparc*-*linux*) 7317 LD="${LD-ld} -m elf64_sparc" 7318 ;; 7319 esac 7320 ;; 7321 esac 7322 fi 7323 rm -rf conftest* 7324 ;; 7325 7326*-*-sco3.2v5*) 7327 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7328 SAVE_CFLAGS=$CFLAGS 7329 CFLAGS="$CFLAGS -belf" 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7331$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7332if ${lt_cv_cc_needs_belf+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 ac_ext=c 7336ac_cpp='$CPP $CPPFLAGS' 7337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7339ac_compiler_gnu=$ac_cv_c_compiler_gnu 7340 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343 7344int 7345main () 7346{ 7347 7348 ; 7349 return 0; 7350} 7351_ACEOF 7352if ac_fn_c_try_link "$LINENO"; then : 7353 lt_cv_cc_needs_belf=yes 7354else 7355 lt_cv_cc_needs_belf=no 7356fi 7357rm -f core conftest.err conftest.$ac_objext \ 7358 conftest$ac_exeext conftest.$ac_ext 7359 ac_ext=c 7360ac_cpp='$CPP $CPPFLAGS' 7361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7363ac_compiler_gnu=$ac_cv_c_compiler_gnu 7364 7365fi 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7367$as_echo "$lt_cv_cc_needs_belf" >&6; } 7368 if test yes != "$lt_cv_cc_needs_belf"; then 7369 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7370 CFLAGS=$SAVE_CFLAGS 7371 fi 7372 ;; 7373*-*solaris*) 7374 # Find out what ABI is being produced by ac_compile, and set linker 7375 # options accordingly. 7376 echo 'int i;' > conftest.$ac_ext 7377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7378 (eval $ac_compile) 2>&5 7379 ac_status=$? 7380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7381 test $ac_status = 0; }; then 7382 case `/usr/bin/file conftest.o` in 7383 *64-bit*) 7384 case $lt_cv_prog_gnu_ld in 7385 yes*) 7386 case $host in 7387 i?86-*-solaris*|x86_64-*-solaris*) 7388 LD="${LD-ld} -m elf_x86_64" 7389 ;; 7390 sparc*-*-solaris*) 7391 LD="${LD-ld} -m elf64_sparc" 7392 ;; 7393 esac 7394 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7395 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7396 LD=${LD-ld}_sol2 7397 fi 7398 ;; 7399 *) 7400 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7401 LD="${LD-ld} -64" 7402 fi 7403 ;; 7404 esac 7405 ;; 7406 esac 7407 fi 7408 rm -rf conftest* 7409 ;; 7410esac 7411 7412need_locks=$enable_libtool_lock 7413 7414if test -n "$ac_tool_prefix"; then 7415 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7416set dummy ${ac_tool_prefix}mt; ac_word=$2 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7418$as_echo_n "checking for $ac_word... " >&6; } 7419if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 if test -n "$MANIFEST_TOOL"; then 7423 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7424else 7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7426for as_dir in $PATH 7427do 7428 IFS=$as_save_IFS 7429 test -z "$as_dir" && as_dir=. 7430 for ac_exec_ext in '' $ac_executable_extensions; do 7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7432 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7434 break 2 7435 fi 7436done 7437 done 7438IFS=$as_save_IFS 7439 7440fi 7441fi 7442MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7443if test -n "$MANIFEST_TOOL"; then 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7445$as_echo "$MANIFEST_TOOL" >&6; } 7446else 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7448$as_echo "no" >&6; } 7449fi 7450 7451 7452fi 7453if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7454 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7455 # Extract the first word of "mt", so it can be a program name with args. 7456set dummy mt; ac_word=$2 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7458$as_echo_n "checking for $ac_word... " >&6; } 7459if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 if test -n "$ac_ct_MANIFEST_TOOL"; then 7463 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7464else 7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7466for as_dir in $PATH 7467do 7468 IFS=$as_save_IFS 7469 test -z "$as_dir" && as_dir=. 7470 for ac_exec_ext in '' $ac_executable_extensions; do 7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7472 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7474 break 2 7475 fi 7476done 7477 done 7478IFS=$as_save_IFS 7479 7480fi 7481fi 7482ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7483if test -n "$ac_ct_MANIFEST_TOOL"; then 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7485$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7486else 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7488$as_echo "no" >&6; } 7489fi 7490 7491 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7492 MANIFEST_TOOL=":" 7493 else 7494 case $cross_compiling:$ac_tool_warned in 7495yes:) 7496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7498ac_tool_warned=yes ;; 7499esac 7500 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7501 fi 7502else 7503 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7504fi 7505 7506test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7508$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7509if ${lt_cv_path_mainfest_tool+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 lt_cv_path_mainfest_tool=no 7513 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7514 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7515 cat conftest.err >&5 7516 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7517 lt_cv_path_mainfest_tool=yes 7518 fi 7519 rm -f conftest* 7520fi 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7522$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7523if test yes != "$lt_cv_path_mainfest_tool"; then 7524 MANIFEST_TOOL=: 7525fi 7526 7527 7528 7529 7530 7531 7532 case $host_os in 7533 rhapsody* | darwin*) 7534 if test -n "$ac_tool_prefix"; then 7535 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7536set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7538$as_echo_n "checking for $ac_word... " >&6; } 7539if ${ac_cv_prog_DSYMUTIL+:} false; then : 7540 $as_echo_n "(cached) " >&6 7541else 7542 if test -n "$DSYMUTIL"; then 7543 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7544else 7545as_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_exec_ext in '' $ac_executable_extensions; do 7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7552 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7554 break 2 7555 fi 7556done 7557 done 7558IFS=$as_save_IFS 7559 7560fi 7561fi 7562DSYMUTIL=$ac_cv_prog_DSYMUTIL 7563if test -n "$DSYMUTIL"; then 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7565$as_echo "$DSYMUTIL" >&6; } 7566else 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7568$as_echo "no" >&6; } 7569fi 7570 7571 7572fi 7573if test -z "$ac_cv_prog_DSYMUTIL"; then 7574 ac_ct_DSYMUTIL=$DSYMUTIL 7575 # Extract the first word of "dsymutil", so it can be a program name with args. 7576set dummy dsymutil; ac_word=$2 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7578$as_echo_n "checking for $ac_word... " >&6; } 7579if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581else 7582 if test -n "$ac_ct_DSYMUTIL"; then 7583 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7584else 7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7586for as_dir in $PATH 7587do 7588 IFS=$as_save_IFS 7589 test -z "$as_dir" && as_dir=. 7590 for ac_exec_ext in '' $ac_executable_extensions; do 7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7592 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7594 break 2 7595 fi 7596done 7597 done 7598IFS=$as_save_IFS 7599 7600fi 7601fi 7602ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7603if test -n "$ac_ct_DSYMUTIL"; then 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7605$as_echo "$ac_ct_DSYMUTIL" >&6; } 7606else 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7608$as_echo "no" >&6; } 7609fi 7610 7611 if test "x$ac_ct_DSYMUTIL" = x; then 7612 DSYMUTIL=":" 7613 else 7614 case $cross_compiling:$ac_tool_warned in 7615yes:) 7616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7618ac_tool_warned=yes ;; 7619esac 7620 DSYMUTIL=$ac_ct_DSYMUTIL 7621 fi 7622else 7623 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7624fi 7625 7626 if test -n "$ac_tool_prefix"; then 7627 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7628set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7630$as_echo_n "checking for $ac_word... " >&6; } 7631if ${ac_cv_prog_NMEDIT+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 if test -n "$NMEDIT"; then 7635 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7636else 7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638for as_dir in $PATH 7639do 7640 IFS=$as_save_IFS 7641 test -z "$as_dir" && as_dir=. 7642 for ac_exec_ext in '' $ac_executable_extensions; do 7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7644 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7646 break 2 7647 fi 7648done 7649 done 7650IFS=$as_save_IFS 7651 7652fi 7653fi 7654NMEDIT=$ac_cv_prog_NMEDIT 7655if test -n "$NMEDIT"; then 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7657$as_echo "$NMEDIT" >&6; } 7658else 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7660$as_echo "no" >&6; } 7661fi 7662 7663 7664fi 7665if test -z "$ac_cv_prog_NMEDIT"; then 7666 ac_ct_NMEDIT=$NMEDIT 7667 # Extract the first word of "nmedit", so it can be a program name with args. 7668set dummy nmedit; ac_word=$2 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7670$as_echo_n "checking for $ac_word... " >&6; } 7671if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 if test -n "$ac_ct_NMEDIT"; then 7675 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7676else 7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678for as_dir in $PATH 7679do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7684 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689 done 7690IFS=$as_save_IFS 7691 7692fi 7693fi 7694ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7695if test -n "$ac_ct_NMEDIT"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7697$as_echo "$ac_ct_NMEDIT" >&6; } 7698else 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700$as_echo "no" >&6; } 7701fi 7702 7703 if test "x$ac_ct_NMEDIT" = x; then 7704 NMEDIT=":" 7705 else 7706 case $cross_compiling:$ac_tool_warned in 7707yes:) 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7710ac_tool_warned=yes ;; 7711esac 7712 NMEDIT=$ac_ct_NMEDIT 7713 fi 7714else 7715 NMEDIT="$ac_cv_prog_NMEDIT" 7716fi 7717 7718 if test -n "$ac_tool_prefix"; then 7719 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7720set dummy ${ac_tool_prefix}lipo; ac_word=$2 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7722$as_echo_n "checking for $ac_word... " >&6; } 7723if ${ac_cv_prog_LIPO+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 if test -n "$LIPO"; then 7727 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7728else 7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7730for as_dir in $PATH 7731do 7732 IFS=$as_save_IFS 7733 test -z "$as_dir" && as_dir=. 7734 for ac_exec_ext in '' $ac_executable_extensions; do 7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7736 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7738 break 2 7739 fi 7740done 7741 done 7742IFS=$as_save_IFS 7743 7744fi 7745fi 7746LIPO=$ac_cv_prog_LIPO 7747if test -n "$LIPO"; then 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7749$as_echo "$LIPO" >&6; } 7750else 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7752$as_echo "no" >&6; } 7753fi 7754 7755 7756fi 7757if test -z "$ac_cv_prog_LIPO"; then 7758 ac_ct_LIPO=$LIPO 7759 # Extract the first word of "lipo", so it can be a program name with args. 7760set dummy lipo; ac_word=$2 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7762$as_echo_n "checking for $ac_word... " >&6; } 7763if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7764 $as_echo_n "(cached) " >&6 7765else 7766 if test -n "$ac_ct_LIPO"; then 7767 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7768else 7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7770for as_dir in $PATH 7771do 7772 IFS=$as_save_IFS 7773 test -z "$as_dir" && as_dir=. 7774 for ac_exec_ext in '' $ac_executable_extensions; do 7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7776 ac_cv_prog_ac_ct_LIPO="lipo" 7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7778 break 2 7779 fi 7780done 7781 done 7782IFS=$as_save_IFS 7783 7784fi 7785fi 7786ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7787if test -n "$ac_ct_LIPO"; then 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7789$as_echo "$ac_ct_LIPO" >&6; } 7790else 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7792$as_echo "no" >&6; } 7793fi 7794 7795 if test "x$ac_ct_LIPO" = x; then 7796 LIPO=":" 7797 else 7798 case $cross_compiling:$ac_tool_warned in 7799yes:) 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7802ac_tool_warned=yes ;; 7803esac 7804 LIPO=$ac_ct_LIPO 7805 fi 7806else 7807 LIPO="$ac_cv_prog_LIPO" 7808fi 7809 7810 if test -n "$ac_tool_prefix"; then 7811 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7812set dummy ${ac_tool_prefix}otool; ac_word=$2 7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7814$as_echo_n "checking for $ac_word... " >&6; } 7815if ${ac_cv_prog_OTOOL+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817else 7818 if test -n "$OTOOL"; then 7819 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7820else 7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7822for as_dir in $PATH 7823do 7824 IFS=$as_save_IFS 7825 test -z "$as_dir" && as_dir=. 7826 for ac_exec_ext in '' $ac_executable_extensions; do 7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7828 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7830 break 2 7831 fi 7832done 7833 done 7834IFS=$as_save_IFS 7835 7836fi 7837fi 7838OTOOL=$ac_cv_prog_OTOOL 7839if test -n "$OTOOL"; then 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7841$as_echo "$OTOOL" >&6; } 7842else 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7844$as_echo "no" >&6; } 7845fi 7846 7847 7848fi 7849if test -z "$ac_cv_prog_OTOOL"; then 7850 ac_ct_OTOOL=$OTOOL 7851 # Extract the first word of "otool", so it can be a program name with args. 7852set dummy otool; ac_word=$2 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7854$as_echo_n "checking for $ac_word... " >&6; } 7855if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 if test -n "$ac_ct_OTOOL"; then 7859 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7860else 7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7862for as_dir in $PATH 7863do 7864 IFS=$as_save_IFS 7865 test -z "$as_dir" && as_dir=. 7866 for ac_exec_ext in '' $ac_executable_extensions; do 7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7868 ac_cv_prog_ac_ct_OTOOL="otool" 7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7870 break 2 7871 fi 7872done 7873 done 7874IFS=$as_save_IFS 7875 7876fi 7877fi 7878ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7879if test -n "$ac_ct_OTOOL"; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7881$as_echo "$ac_ct_OTOOL" >&6; } 7882else 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7884$as_echo "no" >&6; } 7885fi 7886 7887 if test "x$ac_ct_OTOOL" = x; then 7888 OTOOL=":" 7889 else 7890 case $cross_compiling:$ac_tool_warned in 7891yes:) 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7894ac_tool_warned=yes ;; 7895esac 7896 OTOOL=$ac_ct_OTOOL 7897 fi 7898else 7899 OTOOL="$ac_cv_prog_OTOOL" 7900fi 7901 7902 if test -n "$ac_tool_prefix"; then 7903 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7904set dummy ${ac_tool_prefix}otool64; ac_word=$2 7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7906$as_echo_n "checking for $ac_word... " >&6; } 7907if ${ac_cv_prog_OTOOL64+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 if test -n "$OTOOL64"; then 7911 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7912else 7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7914for as_dir in $PATH 7915do 7916 IFS=$as_save_IFS 7917 test -z "$as_dir" && as_dir=. 7918 for ac_exec_ext in '' $ac_executable_extensions; do 7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7920 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7922 break 2 7923 fi 7924done 7925 done 7926IFS=$as_save_IFS 7927 7928fi 7929fi 7930OTOOL64=$ac_cv_prog_OTOOL64 7931if test -n "$OTOOL64"; then 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7933$as_echo "$OTOOL64" >&6; } 7934else 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7936$as_echo "no" >&6; } 7937fi 7938 7939 7940fi 7941if test -z "$ac_cv_prog_OTOOL64"; then 7942 ac_ct_OTOOL64=$OTOOL64 7943 # Extract the first word of "otool64", so it can be a program name with args. 7944set dummy otool64; ac_word=$2 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7946$as_echo_n "checking for $ac_word... " >&6; } 7947if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7948 $as_echo_n "(cached) " >&6 7949else 7950 if test -n "$ac_ct_OTOOL64"; then 7951 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7952else 7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7954for as_dir in $PATH 7955do 7956 IFS=$as_save_IFS 7957 test -z "$as_dir" && as_dir=. 7958 for ac_exec_ext in '' $ac_executable_extensions; do 7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7960 ac_cv_prog_ac_ct_OTOOL64="otool64" 7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7962 break 2 7963 fi 7964done 7965 done 7966IFS=$as_save_IFS 7967 7968fi 7969fi 7970ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7971if test -n "$ac_ct_OTOOL64"; then 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7973$as_echo "$ac_ct_OTOOL64" >&6; } 7974else 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7976$as_echo "no" >&6; } 7977fi 7978 7979 if test "x$ac_ct_OTOOL64" = x; then 7980 OTOOL64=":" 7981 else 7982 case $cross_compiling:$ac_tool_warned in 7983yes:) 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7986ac_tool_warned=yes ;; 7987esac 7988 OTOOL64=$ac_ct_OTOOL64 7989 fi 7990else 7991 OTOOL64="$ac_cv_prog_OTOOL64" 7992fi 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8021$as_echo_n "checking for -single_module linker flag... " >&6; } 8022if ${lt_cv_apple_cc_single_mod+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024else 8025 lt_cv_apple_cc_single_mod=no 8026 if test -z "$LT_MULTI_MODULE"; then 8027 # By default we will add the -single_module flag. You can override 8028 # by either setting the environment variable LT_MULTI_MODULE 8029 # non-empty at configure time, or by adding -multi_module to the 8030 # link flags. 8031 rm -rf libconftest.dylib* 8032 echo "int foo(void){return 1;}" > conftest.c 8033 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8034-dynamiclib -Wl,-single_module conftest.c" >&5 8035 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8036 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8037 _lt_result=$? 8038 # If there is a non-empty error log, and "single_module" 8039 # appears in it, assume the flag caused a linker warning 8040 if test -s conftest.err && $GREP single_module conftest.err; then 8041 cat conftest.err >&5 8042 # Otherwise, if the output was created with a 0 exit code from 8043 # the compiler, it worked. 8044 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8045 lt_cv_apple_cc_single_mod=yes 8046 else 8047 cat conftest.err >&5 8048 fi 8049 rm -rf libconftest.dylib* 8050 rm -f conftest.* 8051 fi 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8054$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8055 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8057$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8058if ${lt_cv_ld_exported_symbols_list+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 lt_cv_ld_exported_symbols_list=no 8062 save_LDFLAGS=$LDFLAGS 8063 echo "_main" > conftest.sym 8064 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8066/* end confdefs.h. */ 8067 8068int 8069main () 8070{ 8071 8072 ; 8073 return 0; 8074} 8075_ACEOF 8076if ac_fn_c_try_link "$LINENO"; then : 8077 lt_cv_ld_exported_symbols_list=yes 8078else 8079 lt_cv_ld_exported_symbols_list=no 8080fi 8081rm -f core conftest.err conftest.$ac_objext \ 8082 conftest$ac_exeext conftest.$ac_ext 8083 LDFLAGS=$save_LDFLAGS 8084 8085fi 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8087$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8088 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8090$as_echo_n "checking for -force_load linker flag... " >&6; } 8091if ${lt_cv_ld_force_load+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093else 8094 lt_cv_ld_force_load=no 8095 cat > conftest.c << _LT_EOF 8096int forced_loaded() { return 2;} 8097_LT_EOF 8098 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8099 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8100 echo "$AR cru libconftest.a conftest.o" >&5 8101 $AR cru libconftest.a conftest.o 2>&5 8102 echo "$RANLIB libconftest.a" >&5 8103 $RANLIB libconftest.a 2>&5 8104 cat > conftest.c << _LT_EOF 8105int main() { return 0;} 8106_LT_EOF 8107 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8108 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8109 _lt_result=$? 8110 if test -s conftest.err && $GREP force_load conftest.err; then 8111 cat conftest.err >&5 8112 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8113 lt_cv_ld_force_load=yes 8114 else 8115 cat conftest.err >&5 8116 fi 8117 rm -f conftest.err libconftest.a conftest conftest.c 8118 rm -rf conftest.dSYM 8119 8120fi 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8122$as_echo "$lt_cv_ld_force_load" >&6; } 8123 case $host_os in 8124 rhapsody* | darwin1.[012]) 8125 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8126 darwin1.*) 8127 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8128 darwin*) # darwin 5.x on 8129 # if running on 10.5 or later, the deployment target defaults 8130 # to the OS version, if on x86, and 10.4, the deployment 8131 # target defaults to 10.4. Don't you love it? 8132 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8133 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8134 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8135 10.[012][,.]*) 8136 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8137 10.*) 8138 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8139 esac 8140 ;; 8141 esac 8142 if test yes = "$lt_cv_apple_cc_single_mod"; then 8143 _lt_dar_single_mod='$single_module' 8144 fi 8145 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8146 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8147 else 8148 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8149 fi 8150 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8151 _lt_dsymutil='~$DSYMUTIL $lib || :' 8152 else 8153 _lt_dsymutil= 8154 fi 8155 ;; 8156 esac 8157 8158# func_munge_path_list VARIABLE PATH 8159# ----------------------------------- 8160# VARIABLE is name of variable containing _space_ separated list of 8161# directories to be munged by the contents of PATH, which is string 8162# having a format: 8163# "DIR[:DIR]:" 8164# string "DIR[ DIR]" will be prepended to VARIABLE 8165# ":DIR[:DIR]" 8166# string "DIR[ DIR]" will be appended to VARIABLE 8167# "DIRP[:DIRP]::[DIRA:]DIRA" 8168# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8169# "DIRA[ DIRA]" will be appended to VARIABLE 8170# "DIR[:DIR]" 8171# VARIABLE will be replaced by "DIR[ DIR]" 8172func_munge_path_list () 8173{ 8174 case x$2 in 8175 x) 8176 ;; 8177 *:) 8178 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8179 ;; 8180 x:*) 8181 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8182 ;; 8183 *::*) 8184 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8185 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8186 ;; 8187 *) 8188 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8189 ;; 8190 esac 8191} 8192 8193for ac_header in dlfcn.h 8194do : 8195 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8196" 8197if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8198 cat >>confdefs.h <<_ACEOF 8199#define HAVE_DLFCN_H 1 8200_ACEOF 8201 8202fi 8203 8204done 8205 8206 8207 8208 8209 8210# Set options 8211# Check whether --enable-static was given. 8212if test "${enable_static+set}" = set; then : 8213 enableval=$enable_static; p=${PACKAGE-default} 8214 case $enableval in 8215 yes) enable_static=yes ;; 8216 no) enable_static=no ;; 8217 *) 8218 enable_static=no 8219 # Look at the argument we got. We use all the common list separators. 8220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8221 for pkg in $enableval; do 8222 IFS=$lt_save_ifs 8223 if test "X$pkg" = "X$p"; then 8224 enable_static=yes 8225 fi 8226 done 8227 IFS=$lt_save_ifs 8228 ;; 8229 esac 8230else 8231 enable_static=no 8232fi 8233 8234 8235 8236 8237 8238 8239 8240enable_dlopen=yes 8241 8242 8243 8244 8245 enable_win32_dll=no 8246 8247 8248 # Check whether --enable-shared was given. 8249if test "${enable_shared+set}" = set; then : 8250 enableval=$enable_shared; p=${PACKAGE-default} 8251 case $enableval in 8252 yes) enable_shared=yes ;; 8253 no) enable_shared=no ;; 8254 *) 8255 enable_shared=no 8256 # Look at the argument we got. We use all the common list separators. 8257 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8258 for pkg in $enableval; do 8259 IFS=$lt_save_ifs 8260 if test "X$pkg" = "X$p"; then 8261 enable_shared=yes 8262 fi 8263 done 8264 IFS=$lt_save_ifs 8265 ;; 8266 esac 8267else 8268 enable_shared=yes 8269fi 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281# Check whether --with-pic was given. 8282if test "${with_pic+set}" = set; then : 8283 withval=$with_pic; lt_p=${PACKAGE-default} 8284 case $withval in 8285 yes|no) pic_mode=$withval ;; 8286 *) 8287 pic_mode=default 8288 # Look at the argument we got. We use all the common list separators. 8289 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8290 for lt_pkg in $withval; do 8291 IFS=$lt_save_ifs 8292 if test "X$lt_pkg" = "X$lt_p"; then 8293 pic_mode=yes 8294 fi 8295 done 8296 IFS=$lt_save_ifs 8297 ;; 8298 esac 8299else 8300 pic_mode=default 8301fi 8302 8303 8304 8305 8306 8307 8308 8309 8310 # Check whether --enable-fast-install was given. 8311if test "${enable_fast_install+set}" = set; then : 8312 enableval=$enable_fast_install; p=${PACKAGE-default} 8313 case $enableval in 8314 yes) enable_fast_install=yes ;; 8315 no) enable_fast_install=no ;; 8316 *) 8317 enable_fast_install=no 8318 # Look at the argument we got. We use all the common list separators. 8319 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8320 for pkg in $enableval; do 8321 IFS=$lt_save_ifs 8322 if test "X$pkg" = "X$p"; then 8323 enable_fast_install=yes 8324 fi 8325 done 8326 IFS=$lt_save_ifs 8327 ;; 8328 esac 8329else 8330 enable_fast_install=yes 8331fi 8332 8333 8334 8335 8336 8337 8338 8339 8340 shared_archive_member_spec= 8341case $host,$enable_shared in 8342power*-*-aix[5-9]*,yes) 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8344$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8345 8346# Check whether --with-aix-soname was given. 8347if test "${with_aix_soname+set}" = set; then : 8348 withval=$with_aix_soname; case $withval in 8349 aix|svr4|both) 8350 ;; 8351 *) 8352 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8353 ;; 8354 esac 8355 lt_cv_with_aix_soname=$with_aix_soname 8356else 8357 if ${lt_cv_with_aix_soname+:} false; then : 8358 $as_echo_n "(cached) " >&6 8359else 8360 lt_cv_with_aix_soname=aix 8361fi 8362 8363 with_aix_soname=$lt_cv_with_aix_soname 8364fi 8365 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8367$as_echo "$with_aix_soname" >&6; } 8368 if test aix != "$with_aix_soname"; then 8369 # For the AIX way of multilib, we name the shared archive member 8370 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8371 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8372 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8373 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8374 if test 64 = "${OBJECT_MODE-32}"; then 8375 shared_archive_member_spec=shr_64 8376 else 8377 shared_archive_member_spec=shr 8378 fi 8379 fi 8380 ;; 8381*) 8382 with_aix_soname=aix 8383 ;; 8384esac 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395# This can be used to rebuild libtool when needed 8396LIBTOOL_DEPS=$ltmain 8397 8398# Always use our own libtool. 8399LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430test -z "$LN_S" && LN_S="ln -s" 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445if test -n "${ZSH_VERSION+set}"; then 8446 setopt NO_GLOB_SUBST 8447fi 8448 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8450$as_echo_n "checking for objdir... " >&6; } 8451if ${lt_cv_objdir+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453else 8454 rm -f .libs 2>/dev/null 8455mkdir .libs 2>/dev/null 8456if test -d .libs; then 8457 lt_cv_objdir=.libs 8458else 8459 # MS-DOS does not allow filenames that begin with a dot. 8460 lt_cv_objdir=_libs 8461fi 8462rmdir .libs 2>/dev/null 8463fi 8464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8465$as_echo "$lt_cv_objdir" >&6; } 8466objdir=$lt_cv_objdir 8467 8468 8469 8470 8471 8472cat >>confdefs.h <<_ACEOF 8473#define LT_OBJDIR "$lt_cv_objdir/" 8474_ACEOF 8475 8476 8477 8478 8479case $host_os in 8480aix3*) 8481 # AIX sometimes has problems with the GCC collect2 program. For some 8482 # reason, if we set the COLLECT_NAMES environment variable, the problems 8483 # vanish in a puff of smoke. 8484 if test set != "${COLLECT_NAMES+set}"; then 8485 COLLECT_NAMES= 8486 export COLLECT_NAMES 8487 fi 8488 ;; 8489esac 8490 8491# Global variables: 8492ofile=libtool 8493can_build_shared=yes 8494 8495# All known linkers require a '.a' archive for static linking (except MSVC, 8496# which needs '.lib'). 8497libext=a 8498 8499with_gnu_ld=$lt_cv_prog_gnu_ld 8500 8501old_CC=$CC 8502old_CFLAGS=$CFLAGS 8503 8504# Set sane defaults for various variables 8505test -z "$CC" && CC=cc 8506test -z "$LTCC" && LTCC=$CC 8507test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8508test -z "$LD" && LD=ld 8509test -z "$ac_objext" && ac_objext=o 8510 8511func_cc_basename $compiler 8512cc_basename=$func_cc_basename_result 8513 8514 8515# Only perform the check for file, if the check method requires it 8516test -z "$MAGIC_CMD" && MAGIC_CMD=file 8517case $deplibs_check_method in 8518file_magic*) 8519 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8521$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8522if ${lt_cv_path_MAGIC_CMD+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 case $MAGIC_CMD in 8526[\\/*] | ?:[\\/]*) 8527 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8528 ;; 8529*) 8530 lt_save_MAGIC_CMD=$MAGIC_CMD 8531 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8533 for ac_dir in $ac_dummy; do 8534 IFS=$lt_save_ifs 8535 test -z "$ac_dir" && ac_dir=. 8536 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8537 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8538 if test -n "$file_magic_test_file"; then 8539 case $deplibs_check_method in 8540 "file_magic "*) 8541 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8542 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8544 $EGREP "$file_magic_regex" > /dev/null; then 8545 : 8546 else 8547 cat <<_LT_EOF 1>&2 8548 8549*** Warning: the command libtool uses to detect shared libraries, 8550*** $file_magic_cmd, produces output that libtool cannot recognize. 8551*** The result is that libtool may fail to recognize shared libraries 8552*** as such. This will affect the creation of libtool libraries that 8553*** depend on shared libraries, but programs linked with such libtool 8554*** libraries will work regardless of this problem. Nevertheless, you 8555*** may want to report the problem to your system manager and/or to 8556*** bug-libtool@gnu.org 8557 8558_LT_EOF 8559 fi ;; 8560 esac 8561 fi 8562 break 8563 fi 8564 done 8565 IFS=$lt_save_ifs 8566 MAGIC_CMD=$lt_save_MAGIC_CMD 8567 ;; 8568esac 8569fi 8570 8571MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8572if test -n "$MAGIC_CMD"; then 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8574$as_echo "$MAGIC_CMD" >&6; } 8575else 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8577$as_echo "no" >&6; } 8578fi 8579 8580 8581 8582 8583 8584if test -z "$lt_cv_path_MAGIC_CMD"; then 8585 if test -n "$ac_tool_prefix"; then 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8587$as_echo_n "checking for file... " >&6; } 8588if ${lt_cv_path_MAGIC_CMD+:} false; then : 8589 $as_echo_n "(cached) " >&6 8590else 8591 case $MAGIC_CMD in 8592[\\/*] | ?:[\\/]*) 8593 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8594 ;; 8595*) 8596 lt_save_MAGIC_CMD=$MAGIC_CMD 8597 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8599 for ac_dir in $ac_dummy; do 8600 IFS=$lt_save_ifs 8601 test -z "$ac_dir" && ac_dir=. 8602 if test -f "$ac_dir/file"; then 8603 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8604 if test -n "$file_magic_test_file"; then 8605 case $deplibs_check_method in 8606 "file_magic "*) 8607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8608 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8610 $EGREP "$file_magic_regex" > /dev/null; then 8611 : 8612 else 8613 cat <<_LT_EOF 1>&2 8614 8615*** Warning: the command libtool uses to detect shared libraries, 8616*** $file_magic_cmd, produces output that libtool cannot recognize. 8617*** The result is that libtool may fail to recognize shared libraries 8618*** as such. This will affect the creation of libtool libraries that 8619*** depend on shared libraries, but programs linked with such libtool 8620*** libraries will work regardless of this problem. Nevertheless, you 8621*** may want to report the problem to your system manager and/or to 8622*** bug-libtool@gnu.org 8623 8624_LT_EOF 8625 fi ;; 8626 esac 8627 fi 8628 break 8629 fi 8630 done 8631 IFS=$lt_save_ifs 8632 MAGIC_CMD=$lt_save_MAGIC_CMD 8633 ;; 8634esac 8635fi 8636 8637MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8638if test -n "$MAGIC_CMD"; then 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8640$as_echo "$MAGIC_CMD" >&6; } 8641else 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8643$as_echo "no" >&6; } 8644fi 8645 8646 8647 else 8648 MAGIC_CMD=: 8649 fi 8650fi 8651 8652 fi 8653 ;; 8654esac 8655 8656# Use C for the default configuration in the libtool script 8657 8658lt_save_CC=$CC 8659ac_ext=c 8660ac_cpp='$CPP $CPPFLAGS' 8661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8663ac_compiler_gnu=$ac_cv_c_compiler_gnu 8664 8665 8666# Source file extension for C test sources. 8667ac_ext=c 8668 8669# Object file extension for compiled C test sources. 8670objext=o 8671objext=$objext 8672 8673# Code to be used in simple compile tests 8674lt_simple_compile_test_code="int some_variable = 0;" 8675 8676# Code to be used in simple link tests 8677lt_simple_link_test_code='int main(){return(0);}' 8678 8679 8680 8681 8682 8683 8684 8685# If no C compiler was specified, use CC. 8686LTCC=${LTCC-"$CC"} 8687 8688# If no C compiler flags were specified, use CFLAGS. 8689LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8690 8691# Allow CC to be a program name with arguments. 8692compiler=$CC 8693 8694# Save the default compiler, since it gets overwritten when the other 8695# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8696compiler_DEFAULT=$CC 8697 8698# save warnings/boilerplate of simple test code 8699ac_outfile=conftest.$ac_objext 8700echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8701eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8702_lt_compiler_boilerplate=`cat conftest.err` 8703$RM conftest* 8704 8705ac_outfile=conftest.$ac_objext 8706echo "$lt_simple_link_test_code" >conftest.$ac_ext 8707eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8708_lt_linker_boilerplate=`cat conftest.err` 8709$RM -r conftest* 8710 8711 8712## CAVEAT EMPTOR: 8713## There is no encapsulation within the following macros, do not change 8714## the running order or otherwise move them around unless you know exactly 8715## what you are doing... 8716if test -n "$compiler"; then 8717 8718lt_prog_compiler_no_builtin_flag= 8719 8720if test yes = "$GCC"; then 8721 case $cc_basename in 8722 nvcc*) 8723 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8724 *) 8725 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8726 esac 8727 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8729$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8730if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 lt_cv_prog_compiler_rtti_exceptions=no 8734 ac_outfile=conftest.$ac_objext 8735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8736 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8737 # Insert the option either (1) after the last *FLAGS variable, or 8738 # (2) before a word containing "conftest.", or (3) at the end. 8739 # Note that $ac_compile itself does not contain backslashes and begins 8740 # with a dollar sign (not a hyphen), so the echo should work correctly. 8741 # The option is referenced via a variable to avoid confusing sed. 8742 lt_compile=`echo "$ac_compile" | $SED \ 8743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8745 -e 's:$: $lt_compiler_flag:'` 8746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8747 (eval "$lt_compile" 2>conftest.err) 8748 ac_status=$? 8749 cat conftest.err >&5 8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8751 if (exit $ac_status) && test -s "$ac_outfile"; then 8752 # The compiler can only warn and ignore the option if not recognized 8753 # So say no if there are warnings other than the usual output. 8754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8757 lt_cv_prog_compiler_rtti_exceptions=yes 8758 fi 8759 fi 8760 $RM conftest* 8761 8762fi 8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8764$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8765 8766if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8767 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8768else 8769 : 8770fi 8771 8772fi 8773 8774 8775 8776 8777 8778 8779 lt_prog_compiler_wl= 8780lt_prog_compiler_pic= 8781lt_prog_compiler_static= 8782 8783 8784 if test yes = "$GCC"; then 8785 lt_prog_compiler_wl='-Wl,' 8786 lt_prog_compiler_static='-static' 8787 8788 case $host_os in 8789 aix*) 8790 # All AIX code is PIC. 8791 if test ia64 = "$host_cpu"; then 8792 # AIX 5 now supports IA64 processor 8793 lt_prog_compiler_static='-Bstatic' 8794 fi 8795 lt_prog_compiler_pic='-fPIC' 8796 ;; 8797 8798 amigaos*) 8799 case $host_cpu in 8800 powerpc) 8801 # see comment about AmigaOS4 .so support 8802 lt_prog_compiler_pic='-fPIC' 8803 ;; 8804 m68k) 8805 # FIXME: we need at least 68020 code to build shared libraries, but 8806 # adding the '-m68020' flag to GCC prevents building anything better, 8807 # like '-m68040'. 8808 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8809 ;; 8810 esac 8811 ;; 8812 8813 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8814 # PIC is the default for these OSes. 8815 ;; 8816 8817 mingw* | cygwin* | pw32* | os2* | cegcc*) 8818 # This hack is so that the source file can tell whether it is being 8819 # built for inclusion in a dll (and should export symbols for example). 8820 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8821 # (--disable-auto-import) libraries 8822 lt_prog_compiler_pic='-DDLL_EXPORT' 8823 case $host_os in 8824 os2*) 8825 lt_prog_compiler_static='$wl-static' 8826 ;; 8827 esac 8828 ;; 8829 8830 darwin* | rhapsody*) 8831 # PIC is the default on this platform 8832 # Common symbols not allowed in MH_DYLIB files 8833 lt_prog_compiler_pic='-fno-common' 8834 ;; 8835 8836 haiku*) 8837 # PIC is the default for Haiku. 8838 # The "-static" flag exists, but is broken. 8839 lt_prog_compiler_static= 8840 ;; 8841 8842 hpux*) 8843 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8844 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8845 # sets the default TLS model and affects inlining. 8846 case $host_cpu in 8847 hppa*64*) 8848 # +Z the default 8849 ;; 8850 *) 8851 lt_prog_compiler_pic='-fPIC' 8852 ;; 8853 esac 8854 ;; 8855 8856 interix[3-9]*) 8857 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8858 # Instead, we relocate shared libraries at runtime. 8859 ;; 8860 8861 msdosdjgpp*) 8862 # Just because we use GCC doesn't mean we suddenly get shared libraries 8863 # on systems that don't support them. 8864 lt_prog_compiler_can_build_shared=no 8865 enable_shared=no 8866 ;; 8867 8868 *nto* | *qnx*) 8869 # QNX uses GNU C++, but need to define -shared option too, otherwise 8870 # it will coredump. 8871 lt_prog_compiler_pic='-fPIC -shared' 8872 ;; 8873 8874 sysv4*MP*) 8875 if test -d /usr/nec; then 8876 lt_prog_compiler_pic=-Kconform_pic 8877 fi 8878 ;; 8879 8880 *) 8881 lt_prog_compiler_pic='-fPIC' 8882 ;; 8883 esac 8884 8885 case $cc_basename in 8886 nvcc*) # Cuda Compiler Driver 2.2 8887 lt_prog_compiler_wl='-Xlinker ' 8888 if test -n "$lt_prog_compiler_pic"; then 8889 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8890 fi 8891 ;; 8892 esac 8893 else 8894 # PORTME Check for flag to pass linker flags through the system compiler. 8895 case $host_os in 8896 aix*) 8897 lt_prog_compiler_wl='-Wl,' 8898 if test ia64 = "$host_cpu"; then 8899 # AIX 5 now supports IA64 processor 8900 lt_prog_compiler_static='-Bstatic' 8901 else 8902 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8903 fi 8904 ;; 8905 8906 darwin* | rhapsody*) 8907 # PIC is the default on this platform 8908 # Common symbols not allowed in MH_DYLIB files 8909 lt_prog_compiler_pic='-fno-common' 8910 case $cc_basename in 8911 nagfor*) 8912 # NAG Fortran compiler 8913 lt_prog_compiler_wl='-Wl,-Wl,,' 8914 lt_prog_compiler_pic='-PIC' 8915 lt_prog_compiler_static='-Bstatic' 8916 ;; 8917 esac 8918 ;; 8919 8920 mingw* | cygwin* | pw32* | os2* | cegcc*) 8921 # This hack is so that the source file can tell whether it is being 8922 # built for inclusion in a dll (and should export symbols for example). 8923 lt_prog_compiler_pic='-DDLL_EXPORT' 8924 case $host_os in 8925 os2*) 8926 lt_prog_compiler_static='$wl-static' 8927 ;; 8928 esac 8929 ;; 8930 8931 hpux9* | hpux10* | hpux11*) 8932 lt_prog_compiler_wl='-Wl,' 8933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8934 # not for PA HP-UX. 8935 case $host_cpu in 8936 hppa*64*|ia64*) 8937 # +Z the default 8938 ;; 8939 *) 8940 lt_prog_compiler_pic='+Z' 8941 ;; 8942 esac 8943 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8944 lt_prog_compiler_static='$wl-a ${wl}archive' 8945 ;; 8946 8947 irix5* | irix6* | nonstopux*) 8948 lt_prog_compiler_wl='-Wl,' 8949 # PIC (with -KPIC) is the default. 8950 lt_prog_compiler_static='-non_shared' 8951 ;; 8952 8953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8954 case $cc_basename in 8955 # old Intel for x86_64, which still supported -KPIC. 8956 ecc*) 8957 lt_prog_compiler_wl='-Wl,' 8958 lt_prog_compiler_pic='-KPIC' 8959 lt_prog_compiler_static='-static' 8960 ;; 8961 # icc used to be incompatible with GCC. 8962 # ICC 10 doesn't accept -KPIC any more. 8963 icc* | ifort*) 8964 lt_prog_compiler_wl='-Wl,' 8965 lt_prog_compiler_pic='-fPIC' 8966 lt_prog_compiler_static='-static' 8967 ;; 8968 # Lahey Fortran 8.1. 8969 lf95*) 8970 lt_prog_compiler_wl='-Wl,' 8971 lt_prog_compiler_pic='--shared' 8972 lt_prog_compiler_static='--static' 8973 ;; 8974 nagfor*) 8975 # NAG Fortran compiler 8976 lt_prog_compiler_wl='-Wl,-Wl,,' 8977 lt_prog_compiler_pic='-PIC' 8978 lt_prog_compiler_static='-Bstatic' 8979 ;; 8980 tcc*) 8981 # Fabrice Bellard et al's Tiny C Compiler 8982 lt_prog_compiler_wl='-Wl,' 8983 lt_prog_compiler_pic='-fPIC' 8984 lt_prog_compiler_static='-static' 8985 ;; 8986 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8987 # Portland Group compilers (*not* the Pentium gcc compiler, 8988 # which looks to be a dead project) 8989 lt_prog_compiler_wl='-Wl,' 8990 lt_prog_compiler_pic='-fpic' 8991 lt_prog_compiler_static='-Bstatic' 8992 ;; 8993 ccc*) 8994 lt_prog_compiler_wl='-Wl,' 8995 # All Alpha code is PIC. 8996 lt_prog_compiler_static='-non_shared' 8997 ;; 8998 xl* | bgxl* | bgf* | mpixl*) 8999 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9000 lt_prog_compiler_wl='-Wl,' 9001 lt_prog_compiler_pic='-qpic' 9002 lt_prog_compiler_static='-qstaticlink' 9003 ;; 9004 *) 9005 case `$CC -V 2>&1 | sed 5q` in 9006 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9007 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9008 lt_prog_compiler_pic='-KPIC' 9009 lt_prog_compiler_static='-Bstatic' 9010 lt_prog_compiler_wl='' 9011 ;; 9012 *Sun\ F* | *Sun*Fortran*) 9013 lt_prog_compiler_pic='-KPIC' 9014 lt_prog_compiler_static='-Bstatic' 9015 lt_prog_compiler_wl='-Qoption ld ' 9016 ;; 9017 *Sun\ C*) 9018 # Sun C 5.9 9019 lt_prog_compiler_pic='-KPIC' 9020 lt_prog_compiler_static='-Bstatic' 9021 lt_prog_compiler_wl='-Wl,' 9022 ;; 9023 *Intel*\ [CF]*Compiler*) 9024 lt_prog_compiler_wl='-Wl,' 9025 lt_prog_compiler_pic='-fPIC' 9026 lt_prog_compiler_static='-static' 9027 ;; 9028 *Portland\ Group*) 9029 lt_prog_compiler_wl='-Wl,' 9030 lt_prog_compiler_pic='-fpic' 9031 lt_prog_compiler_static='-Bstatic' 9032 ;; 9033 esac 9034 ;; 9035 esac 9036 ;; 9037 9038 newsos6) 9039 lt_prog_compiler_pic='-KPIC' 9040 lt_prog_compiler_static='-Bstatic' 9041 ;; 9042 9043 *nto* | *qnx*) 9044 # QNX uses GNU C++, but need to define -shared option too, otherwise 9045 # it will coredump. 9046 lt_prog_compiler_pic='-fPIC -shared' 9047 ;; 9048 9049 osf3* | osf4* | osf5*) 9050 lt_prog_compiler_wl='-Wl,' 9051 # All OSF/1 code is PIC. 9052 lt_prog_compiler_static='-non_shared' 9053 ;; 9054 9055 rdos*) 9056 lt_prog_compiler_static='-non_shared' 9057 ;; 9058 9059 solaris*) 9060 lt_prog_compiler_pic='-KPIC' 9061 lt_prog_compiler_static='-Bstatic' 9062 case $cc_basename in 9063 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9064 lt_prog_compiler_wl='-Qoption ld ';; 9065 *) 9066 lt_prog_compiler_wl='-Wl,';; 9067 esac 9068 ;; 9069 9070 sunos4*) 9071 lt_prog_compiler_wl='-Qoption ld ' 9072 lt_prog_compiler_pic='-PIC' 9073 lt_prog_compiler_static='-Bstatic' 9074 ;; 9075 9076 sysv4 | sysv4.2uw2* | sysv4.3*) 9077 lt_prog_compiler_wl='-Wl,' 9078 lt_prog_compiler_pic='-KPIC' 9079 lt_prog_compiler_static='-Bstatic' 9080 ;; 9081 9082 sysv4*MP*) 9083 if test -d /usr/nec; then 9084 lt_prog_compiler_pic='-Kconform_pic' 9085 lt_prog_compiler_static='-Bstatic' 9086 fi 9087 ;; 9088 9089 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9090 lt_prog_compiler_wl='-Wl,' 9091 lt_prog_compiler_pic='-KPIC' 9092 lt_prog_compiler_static='-Bstatic' 9093 ;; 9094 9095 unicos*) 9096 lt_prog_compiler_wl='-Wl,' 9097 lt_prog_compiler_can_build_shared=no 9098 ;; 9099 9100 uts4*) 9101 lt_prog_compiler_pic='-pic' 9102 lt_prog_compiler_static='-Bstatic' 9103 ;; 9104 9105 *) 9106 lt_prog_compiler_can_build_shared=no 9107 ;; 9108 esac 9109 fi 9110 9111case $host_os in 9112 # For platforms that do not support PIC, -DPIC is meaningless: 9113 *djgpp*) 9114 lt_prog_compiler_pic= 9115 ;; 9116 *) 9117 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9118 ;; 9119esac 9120 9121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9122$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9123if ${lt_cv_prog_compiler_pic+:} false; then : 9124 $as_echo_n "(cached) " >&6 9125else 9126 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9127fi 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9129$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9130lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9131 9132# 9133# Check to make sure the PIC flag actually works. 9134# 9135if test -n "$lt_prog_compiler_pic"; then 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9137$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9138if ${lt_cv_prog_compiler_pic_works+:} false; then : 9139 $as_echo_n "(cached) " >&6 9140else 9141 lt_cv_prog_compiler_pic_works=no 9142 ac_outfile=conftest.$ac_objext 9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9144 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9145 # Insert the option either (1) after the last *FLAGS variable, or 9146 # (2) before a word containing "conftest.", or (3) at the end. 9147 # Note that $ac_compile itself does not contain backslashes and begins 9148 # with a dollar sign (not a hyphen), so the echo should work correctly. 9149 # The option is referenced via a variable to avoid confusing sed. 9150 lt_compile=`echo "$ac_compile" | $SED \ 9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9153 -e 's:$: $lt_compiler_flag:'` 9154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9155 (eval "$lt_compile" 2>conftest.err) 9156 ac_status=$? 9157 cat conftest.err >&5 9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9159 if (exit $ac_status) && test -s "$ac_outfile"; then 9160 # The compiler can only warn and ignore the option if not recognized 9161 # So say no if there are warnings other than the usual output. 9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9164 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9165 lt_cv_prog_compiler_pic_works=yes 9166 fi 9167 fi 9168 $RM conftest* 9169 9170fi 9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9172$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9173 9174if test yes = "$lt_cv_prog_compiler_pic_works"; then 9175 case $lt_prog_compiler_pic in 9176 "" | " "*) ;; 9177 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9178 esac 9179else 9180 lt_prog_compiler_pic= 9181 lt_prog_compiler_can_build_shared=no 9182fi 9183 9184fi 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196# 9197# Check to make sure the static flag actually works. 9198# 9199wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9201$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9202if ${lt_cv_prog_compiler_static_works+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204else 9205 lt_cv_prog_compiler_static_works=no 9206 save_LDFLAGS=$LDFLAGS 9207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9208 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9210 # The linker can only warn and ignore the option if not recognized 9211 # So say no if there are warnings 9212 if test -s conftest.err; then 9213 # Append any errors to the config.log. 9214 cat conftest.err 1>&5 9215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9217 if diff conftest.exp conftest.er2 >/dev/null; then 9218 lt_cv_prog_compiler_static_works=yes 9219 fi 9220 else 9221 lt_cv_prog_compiler_static_works=yes 9222 fi 9223 fi 9224 $RM -r conftest* 9225 LDFLAGS=$save_LDFLAGS 9226 9227fi 9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9229$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9230 9231if test yes = "$lt_cv_prog_compiler_static_works"; then 9232 : 9233else 9234 lt_prog_compiler_static= 9235fi 9236 9237 9238 9239 9240 9241 9242 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9244$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9245if ${lt_cv_prog_compiler_c_o+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 lt_cv_prog_compiler_c_o=no 9249 $RM -r conftest 2>/dev/null 9250 mkdir conftest 9251 cd conftest 9252 mkdir out 9253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9254 9255 lt_compiler_flag="-o out/conftest2.$ac_objext" 9256 # Insert the option either (1) after the last *FLAGS variable, or 9257 # (2) before a word containing "conftest.", or (3) at the end. 9258 # Note that $ac_compile itself does not contain backslashes and begins 9259 # with a dollar sign (not a hyphen), so the echo should work correctly. 9260 lt_compile=`echo "$ac_compile" | $SED \ 9261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9263 -e 's:$: $lt_compiler_flag:'` 9264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9265 (eval "$lt_compile" 2>out/conftest.err) 9266 ac_status=$? 9267 cat out/conftest.err >&5 9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9269 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9270 then 9271 # The compiler can only warn and ignore the option if not recognized 9272 # So say no if there are warnings 9273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9276 lt_cv_prog_compiler_c_o=yes 9277 fi 9278 fi 9279 chmod u+w . 2>&5 9280 $RM conftest* 9281 # SGI C++ compiler will create directory out/ii_files/ for 9282 # template instantiation 9283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9284 $RM out/* && rmdir out 9285 cd .. 9286 $RM -r conftest 9287 $RM conftest* 9288 9289fi 9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9291$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9292 9293 9294 9295 9296 9297 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9299$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9300if ${lt_cv_prog_compiler_c_o+:} false; then : 9301 $as_echo_n "(cached) " >&6 9302else 9303 lt_cv_prog_compiler_c_o=no 9304 $RM -r conftest 2>/dev/null 9305 mkdir conftest 9306 cd conftest 9307 mkdir out 9308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9309 9310 lt_compiler_flag="-o out/conftest2.$ac_objext" 9311 # Insert the option either (1) after the last *FLAGS variable, or 9312 # (2) before a word containing "conftest.", or (3) at the end. 9313 # Note that $ac_compile itself does not contain backslashes and begins 9314 # with a dollar sign (not a hyphen), so the echo should work correctly. 9315 lt_compile=`echo "$ac_compile" | $SED \ 9316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9318 -e 's:$: $lt_compiler_flag:'` 9319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9320 (eval "$lt_compile" 2>out/conftest.err) 9321 ac_status=$? 9322 cat out/conftest.err >&5 9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9324 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9325 then 9326 # The compiler can only warn and ignore the option if not recognized 9327 # So say no if there are warnings 9328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9331 lt_cv_prog_compiler_c_o=yes 9332 fi 9333 fi 9334 chmod u+w . 2>&5 9335 $RM conftest* 9336 # SGI C++ compiler will create directory out/ii_files/ for 9337 # template instantiation 9338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9339 $RM out/* && rmdir out 9340 cd .. 9341 $RM -r conftest 9342 $RM conftest* 9343 9344fi 9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9346$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9347 9348 9349 9350 9351hard_links=nottested 9352if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9353 # do not overwrite the value of need_locks provided by the user 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9355$as_echo_n "checking if we can lock with hard links... " >&6; } 9356 hard_links=yes 9357 $RM conftest* 9358 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9359 touch conftest.a 9360 ln conftest.a conftest.b 2>&5 || hard_links=no 9361 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9363$as_echo "$hard_links" >&6; } 9364 if test no = "$hard_links"; then 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9366$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9367 need_locks=warn 9368 fi 9369else 9370 need_locks=no 9371fi 9372 9373 9374 9375 9376 9377 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9379$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9380 9381 runpath_var= 9382 allow_undefined_flag= 9383 always_export_symbols=no 9384 archive_cmds= 9385 archive_expsym_cmds= 9386 compiler_needs_object=no 9387 enable_shared_with_static_runtimes=no 9388 export_dynamic_flag_spec= 9389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9390 hardcode_automatic=no 9391 hardcode_direct=no 9392 hardcode_direct_absolute=no 9393 hardcode_libdir_flag_spec= 9394 hardcode_libdir_separator= 9395 hardcode_minus_L=no 9396 hardcode_shlibpath_var=unsupported 9397 inherit_rpath=no 9398 link_all_deplibs=unknown 9399 module_cmds= 9400 module_expsym_cmds= 9401 old_archive_from_new_cmds= 9402 old_archive_from_expsyms_cmds= 9403 thread_safe_flag_spec= 9404 whole_archive_flag_spec= 9405 # include_expsyms should be a list of space-separated symbols to be *always* 9406 # included in the symbol list 9407 include_expsyms= 9408 # exclude_expsyms can be an extended regexp of symbols to exclude 9409 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9410 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9411 # as well as any symbol that contains 'd'. 9412 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9413 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9414 # platforms (ab)use it in PIC code, but their linkers get confused if 9415 # the symbol is explicitly referenced. Since portable code cannot 9416 # rely on this symbol name, it's probably fine to never include it in 9417 # preloaded symbol tables. 9418 # Exclude shared library initialization/finalization symbols. 9419 extract_expsyms_cmds= 9420 9421 case $host_os in 9422 cygwin* | mingw* | pw32* | cegcc*) 9423 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9424 # When not using gcc, we currently assume that we are using 9425 # Microsoft Visual C++. 9426 if test yes != "$GCC"; then 9427 with_gnu_ld=no 9428 fi 9429 ;; 9430 interix*) 9431 # we just hope/assume this is gcc and not c89 (= MSVC++) 9432 with_gnu_ld=yes 9433 ;; 9434 openbsd* | bitrig*) 9435 with_gnu_ld=no 9436 ;; 9437 esac 9438 9439 ld_shlibs=yes 9440 9441 # On some targets, GNU ld is compatible enough with the native linker 9442 # that we're better off using the native interface for both. 9443 lt_use_gnu_ld_interface=no 9444 if test yes = "$with_gnu_ld"; then 9445 case $host_os in 9446 aix*) 9447 # The AIX port of GNU ld has always aspired to compatibility 9448 # with the native linker. However, as the warning in the GNU ld 9449 # block says, versions before 2.19.5* couldn't really create working 9450 # shared libraries, regardless of the interface used. 9451 case `$LD -v 2>&1` in 9452 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9453 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9454 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9455 *) 9456 lt_use_gnu_ld_interface=yes 9457 ;; 9458 esac 9459 ;; 9460 *) 9461 lt_use_gnu_ld_interface=yes 9462 ;; 9463 esac 9464 fi 9465 9466 if test yes = "$lt_use_gnu_ld_interface"; then 9467 # If archive_cmds runs LD, not CC, wlarc should be empty 9468 wlarc='$wl' 9469 9470 # Set some defaults for GNU ld with shared library support. These 9471 # are reset later if shared libraries are not supported. Putting them 9472 # here allows them to be overridden if necessary. 9473 runpath_var=LD_RUN_PATH 9474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9475 export_dynamic_flag_spec='$wl--export-dynamic' 9476 # ancient GNU ld didn't support --whole-archive et. al. 9477 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9478 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9479 else 9480 whole_archive_flag_spec= 9481 fi 9482 supports_anon_versioning=no 9483 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9484 *GNU\ gold*) supports_anon_versioning=yes ;; 9485 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9486 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9487 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9488 *\ 2.11.*) ;; # other 2.11 versions 9489 *) supports_anon_versioning=yes ;; 9490 esac 9491 9492 # See if GNU ld supports shared libraries. 9493 case $host_os in 9494 aix[3-9]*) 9495 # On AIX/PPC, the GNU linker is very broken 9496 if test ia64 != "$host_cpu"; then 9497 ld_shlibs=no 9498 cat <<_LT_EOF 1>&2 9499 9500*** Warning: the GNU linker, at least up to release 2.19, is reported 9501*** to be unable to reliably create shared libraries on AIX. 9502*** Therefore, libtool is disabling shared libraries support. If you 9503*** really care for shared libraries, you may want to install binutils 9504*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9505*** You will then need to restart the configuration process. 9506 9507_LT_EOF 9508 fi 9509 ;; 9510 9511 amigaos*) 9512 case $host_cpu in 9513 powerpc) 9514 # see comment about AmigaOS4 .so support 9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9516 archive_expsym_cmds='' 9517 ;; 9518 m68k) 9519 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)' 9520 hardcode_libdir_flag_spec='-L$libdir' 9521 hardcode_minus_L=yes 9522 ;; 9523 esac 9524 ;; 9525 9526 beos*) 9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9528 allow_undefined_flag=unsupported 9529 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9530 # support --undefined. This deserves some investigation. FIXME 9531 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9532 else 9533 ld_shlibs=no 9534 fi 9535 ;; 9536 9537 cygwin* | mingw* | pw32* | cegcc*) 9538 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9539 # as there is no search path for DLLs. 9540 hardcode_libdir_flag_spec='-L$libdir' 9541 export_dynamic_flag_spec='$wl--export-all-symbols' 9542 allow_undefined_flag=unsupported 9543 always_export_symbols=no 9544 enable_shared_with_static_runtimes=yes 9545 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' 9546 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9547 9548 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9550 # If the export-symbols file already is a .def file, use it as 9551 # is; otherwise, prepend EXPORTS... 9552 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9553 cp $export_symbols $output_objdir/$soname.def; 9554 else 9555 echo EXPORTS > $output_objdir/$soname.def; 9556 cat $export_symbols >> $output_objdir/$soname.def; 9557 fi~ 9558 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9559 else 9560 ld_shlibs=no 9561 fi 9562 ;; 9563 9564 haiku*) 9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9566 link_all_deplibs=yes 9567 ;; 9568 9569 os2*) 9570 hardcode_libdir_flag_spec='-L$libdir' 9571 hardcode_minus_L=yes 9572 allow_undefined_flag=unsupported 9573 shrext_cmds=.dll 9574 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9575 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9576 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9577 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9578 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9579 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9580 emximp -o $lib $output_objdir/$libname.def' 9581 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9582 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9583 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9584 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9585 prefix_cmds="$SED"~ 9586 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9587 prefix_cmds="$prefix_cmds -e 1d"; 9588 fi~ 9589 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9590 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9591 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9592 emximp -o $lib $output_objdir/$libname.def' 9593 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9594 enable_shared_with_static_runtimes=yes 9595 ;; 9596 9597 interix[3-9]*) 9598 hardcode_direct=no 9599 hardcode_shlibpath_var=no 9600 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9601 export_dynamic_flag_spec='$wl-E' 9602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9603 # Instead, shared libraries are loaded at an image base (0x10000000 by 9604 # default) and relocated if they conflict, which is a slow very memory 9605 # consuming and fragmenting process. To avoid this, we pick a random, 9606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9607 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9609 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' 9610 ;; 9611 9612 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9613 tmp_diet=no 9614 if test linux-dietlibc = "$host_os"; then 9615 case $cc_basename in 9616 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9617 esac 9618 fi 9619 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9620 && test no = "$tmp_diet" 9621 then 9622 tmp_addflag=' $pic_flag' 9623 tmp_sharedflag='-shared' 9624 case $cc_basename,$host_cpu in 9625 pgcc*) # Portland Group C compiler 9626 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' 9627 tmp_addflag=' $pic_flag' 9628 ;; 9629 pgf77* | pgf90* | pgf95* | pgfortran*) 9630 # Portland Group f77 and f90 compilers 9631 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' 9632 tmp_addflag=' $pic_flag -Mnomain' ;; 9633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9634 tmp_addflag=' -i_dynamic' ;; 9635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9636 tmp_addflag=' -i_dynamic -nofor_main' ;; 9637 ifc* | ifort*) # Intel Fortran compiler 9638 tmp_addflag=' -nofor_main' ;; 9639 lf95*) # Lahey Fortran 8.1 9640 whole_archive_flag_spec= 9641 tmp_sharedflag='--shared' ;; 9642 nagfor*) # NAGFOR 5.3 9643 tmp_sharedflag='-Wl,-shared' ;; 9644 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9645 tmp_sharedflag='-qmkshrobj' 9646 tmp_addflag= ;; 9647 nvcc*) # Cuda Compiler Driver 2.2 9648 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' 9649 compiler_needs_object=yes 9650 ;; 9651 esac 9652 case `$CC -V 2>&1 | sed 5q` in 9653 *Sun\ C*) # Sun C 5.9 9654 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' 9655 compiler_needs_object=yes 9656 tmp_sharedflag='-G' ;; 9657 *Sun\ F*) # Sun Fortran 8.3 9658 tmp_sharedflag='-G' ;; 9659 esac 9660 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9661 9662 if test yes = "$supports_anon_versioning"; then 9663 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9665 echo "local: *; };" >> $output_objdir/$libname.ver~ 9666 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9667 fi 9668 9669 case $cc_basename in 9670 tcc*) 9671 export_dynamic_flag_spec='-rdynamic' 9672 ;; 9673 xlf* | bgf* | bgxlf* | mpixlf*) 9674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9677 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9678 if test yes = "$supports_anon_versioning"; then 9679 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9681 echo "local: *; };" >> $output_objdir/$libname.ver~ 9682 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9683 fi 9684 ;; 9685 esac 9686 else 9687 ld_shlibs=no 9688 fi 9689 ;; 9690 9691 netbsd*) 9692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9693 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9694 wlarc= 9695 else 9696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9697 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9698 fi 9699 ;; 9700 9701 solaris*) 9702 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9703 ld_shlibs=no 9704 cat <<_LT_EOF 1>&2 9705 9706*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9707*** create shared libraries on Solaris systems. Therefore, libtool 9708*** is disabling shared libraries support. We urge you to upgrade GNU 9709*** binutils to release 2.9.1 or newer. Another option is to modify 9710*** your PATH or compiler configuration so that the native linker is 9711*** used, and then restart. 9712 9713_LT_EOF 9714 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9716 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9717 else 9718 ld_shlibs=no 9719 fi 9720 ;; 9721 9722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9723 case `$LD -v 2>&1` in 9724 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9725 ld_shlibs=no 9726 cat <<_LT_EOF 1>&2 9727 9728*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9729*** reliably create shared libraries on SCO systems. Therefore, libtool 9730*** is disabling shared libraries support. We urge you to upgrade GNU 9731*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9732*** your PATH or compiler configuration so that the native linker is 9733*** used, and then restart. 9734 9735_LT_EOF 9736 ;; 9737 *) 9738 # For security reasons, it is highly recommended that you always 9739 # use absolute paths for naming shared libraries, and exclude the 9740 # DT_RUNPATH tag from executables and libraries. But doing so 9741 # requires that you compile everything twice, which is a pain. 9742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9743 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9745 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9746 else 9747 ld_shlibs=no 9748 fi 9749 ;; 9750 esac 9751 ;; 9752 9753 sunos4*) 9754 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9755 wlarc= 9756 hardcode_direct=yes 9757 hardcode_shlibpath_var=no 9758 ;; 9759 9760 *) 9761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9764 else 9765 ld_shlibs=no 9766 fi 9767 ;; 9768 esac 9769 9770 if test no = "$ld_shlibs"; then 9771 runpath_var= 9772 hardcode_libdir_flag_spec= 9773 export_dynamic_flag_spec= 9774 whole_archive_flag_spec= 9775 fi 9776 else 9777 # PORTME fill in a description of your system's linker (not GNU ld) 9778 case $host_os in 9779 aix3*) 9780 allow_undefined_flag=unsupported 9781 always_export_symbols=yes 9782 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' 9783 # Note: this linker hardcodes the directories in LIBPATH if there 9784 # are no directories specified by -L. 9785 hardcode_minus_L=yes 9786 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9787 # Neither direct hardcoding nor static linking is supported with a 9788 # broken collect2. 9789 hardcode_direct=unsupported 9790 fi 9791 ;; 9792 9793 aix[4-9]*) 9794 if test ia64 = "$host_cpu"; then 9795 # On IA64, the linker does run time linking by default, so we don't 9796 # have to do anything special. 9797 aix_use_runtimelinking=no 9798 exp_sym_flag='-Bexport' 9799 no_entry_flag= 9800 else 9801 # If we're using GNU nm, then we don't want the "-C" option. 9802 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9803 # Without the "-l" option, or with the "-B" option, AIX nm treats 9804 # weak defined symbols like other global defined symbols, whereas 9805 # GNU nm marks them as "W". 9806 # While the 'weak' keyword is ignored in the Export File, we need 9807 # it in the Import File for the 'aix-soname' feature, so we have 9808 # to replace the "-B" option with "-P" for AIX nm. 9809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9810 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' 9811 else 9812 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' 9813 fi 9814 aix_use_runtimelinking=no 9815 9816 # Test if we are trying to use run time linking or normal 9817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9818 # have runtime linking enabled, and use it for executables. 9819 # For shared libraries, we enable/disable runtime linking 9820 # depending on the kind of the shared library created - 9821 # when "with_aix_soname,aix_use_runtimelinking" is: 9822 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9823 # "aix,yes" lib.so shared, rtl:yes, for executables 9824 # lib.a static archive 9825 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9826 # lib.a(lib.so.V) shared, rtl:no, for executables 9827 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9828 # lib.a(lib.so.V) shared, rtl:no 9829 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9830 # lib.a static archive 9831 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9832 for ld_flag in $LDFLAGS; do 9833 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9834 aix_use_runtimelinking=yes 9835 break 9836 fi 9837 done 9838 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9839 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9840 # so we don't have lib.a shared libs to link our executables. 9841 # We have to force runtime linking in this case. 9842 aix_use_runtimelinking=yes 9843 LDFLAGS="$LDFLAGS -Wl,-brtl" 9844 fi 9845 ;; 9846 esac 9847 9848 exp_sym_flag='-bexport' 9849 no_entry_flag='-bnoentry' 9850 fi 9851 9852 # When large executables or shared objects are built, AIX ld can 9853 # have problems creating the table of contents. If linking a library 9854 # or program results in "error TOC overflow" add -mminimal-toc to 9855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9857 9858 archive_cmds='' 9859 hardcode_direct=yes 9860 hardcode_direct_absolute=yes 9861 hardcode_libdir_separator=':' 9862 link_all_deplibs=yes 9863 file_list_spec='$wl-f,' 9864 case $with_aix_soname,$aix_use_runtimelinking in 9865 aix,*) ;; # traditional, no import file 9866 svr4,* | *,yes) # use import file 9867 # The Import File defines what to hardcode. 9868 hardcode_direct=no 9869 hardcode_direct_absolute=no 9870 ;; 9871 esac 9872 9873 if test yes = "$GCC"; then 9874 case $host_os in aix4.[012]|aix4.[012].*) 9875 # We only want to do this on AIX 4.2 and lower, the check 9876 # below for broken collect2 doesn't work under 4.3+ 9877 collect2name=`$CC -print-prog-name=collect2` 9878 if test -f "$collect2name" && 9879 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9880 then 9881 # We have reworked collect2 9882 : 9883 else 9884 # We have old collect2 9885 hardcode_direct=unsupported 9886 # It fails to find uninstalled libraries when the uninstalled 9887 # path is not listed in the libpath. Setting hardcode_minus_L 9888 # to unsupported forces relinking 9889 hardcode_minus_L=yes 9890 hardcode_libdir_flag_spec='-L$libdir' 9891 hardcode_libdir_separator= 9892 fi 9893 ;; 9894 esac 9895 shared_flag='-shared' 9896 if test yes = "$aix_use_runtimelinking"; then 9897 shared_flag="$shared_flag "'$wl-G' 9898 fi 9899 # Need to ensure runtime linking is disabled for the traditional 9900 # shared library, or the linker may eventually find shared libraries 9901 # /with/ Import File - we do not want to mix them. 9902 shared_flag_aix='-shared' 9903 shared_flag_svr4='-shared $wl-G' 9904 else 9905 # not using gcc 9906 if test ia64 = "$host_cpu"; then 9907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9908 # chokes on -Wl,-G. The following line is correct: 9909 shared_flag='-G' 9910 else 9911 if test yes = "$aix_use_runtimelinking"; then 9912 shared_flag='$wl-G' 9913 else 9914 shared_flag='$wl-bM:SRE' 9915 fi 9916 shared_flag_aix='$wl-bM:SRE' 9917 shared_flag_svr4='$wl-G' 9918 fi 9919 fi 9920 9921 export_dynamic_flag_spec='$wl-bexpall' 9922 # It seems that -bexpall does not export symbols beginning with 9923 # underscore (_), so it is better to generate a list of symbols to export. 9924 always_export_symbols=yes 9925 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9926 # Warning - without using the other runtime loading flags (-brtl), 9927 # -berok will link without error, but may produce a broken library. 9928 allow_undefined_flag='-berok' 9929 # Determine the default libpath from the value encoded in an 9930 # empty executable. 9931 if test set = "${lt_cv_aix_libpath+set}"; then 9932 aix_libpath=$lt_cv_aix_libpath 9933else 9934 if ${lt_cv_aix_libpath_+:} false; then : 9935 $as_echo_n "(cached) " >&6 9936else 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939 9940int 9941main () 9942{ 9943 9944 ; 9945 return 0; 9946} 9947_ACEOF 9948if ac_fn_c_try_link "$LINENO"; then : 9949 9950 lt_aix_libpath_sed=' 9951 /Import File Strings/,/^$/ { 9952 /^0/ { 9953 s/^0 *\([^ ]*\) *$/\1/ 9954 p 9955 } 9956 }' 9957 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9958 # Check for a 64-bit object if we didn't find anything. 9959 if test -z "$lt_cv_aix_libpath_"; then 9960 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9961 fi 9962fi 9963rm -f core conftest.err conftest.$ac_objext \ 9964 conftest$ac_exeext conftest.$ac_ext 9965 if test -z "$lt_cv_aix_libpath_"; then 9966 lt_cv_aix_libpath_=/usr/lib:/lib 9967 fi 9968 9969fi 9970 9971 aix_libpath=$lt_cv_aix_libpath_ 9972fi 9973 9974 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9975 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 9976 else 9977 if test ia64 = "$host_cpu"; then 9978 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9979 allow_undefined_flag="-z nodefs" 9980 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" 9981 else 9982 # Determine the default libpath from the value encoded in an 9983 # empty executable. 9984 if test set = "${lt_cv_aix_libpath+set}"; then 9985 aix_libpath=$lt_cv_aix_libpath 9986else 9987 if ${lt_cv_aix_libpath_+:} false; then : 9988 $as_echo_n "(cached) " >&6 9989else 9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9991/* end confdefs.h. */ 9992 9993int 9994main () 9995{ 9996 9997 ; 9998 return 0; 9999} 10000_ACEOF 10001if ac_fn_c_try_link "$LINENO"; then : 10002 10003 lt_aix_libpath_sed=' 10004 /Import File Strings/,/^$/ { 10005 /^0/ { 10006 s/^0 *\([^ ]*\) *$/\1/ 10007 p 10008 } 10009 }' 10010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10011 # Check for a 64-bit object if we didn't find anything. 10012 if test -z "$lt_cv_aix_libpath_"; then 10013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10014 fi 10015fi 10016rm -f core conftest.err conftest.$ac_objext \ 10017 conftest$ac_exeext conftest.$ac_ext 10018 if test -z "$lt_cv_aix_libpath_"; then 10019 lt_cv_aix_libpath_=/usr/lib:/lib 10020 fi 10021 10022fi 10023 10024 aix_libpath=$lt_cv_aix_libpath_ 10025fi 10026 10027 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10028 # Warning - without using the other run time loading flags, 10029 # -berok will link without error, but may produce a broken library. 10030 no_undefined_flag=' $wl-bernotok' 10031 allow_undefined_flag=' $wl-berok' 10032 if test yes = "$with_gnu_ld"; then 10033 # We only use this code for GNU lds that support --whole-archive. 10034 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10035 else 10036 # Exported symbols can be pulled into shared objects from archives 10037 whole_archive_flag_spec='$convenience' 10038 fi 10039 archive_cmds_need_lc=yes 10040 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10041 # -brtl affects multiple linker settings, -berok does not and is overridden later 10042 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10043 if test svr4 != "$with_aix_soname"; then 10044 # This is similar to how AIX traditionally builds its shared libraries. 10045 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' 10046 fi 10047 if test aix != "$with_aix_soname"; then 10048 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' 10049 else 10050 # used by -dlpreopen to get the symbols 10051 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10052 fi 10053 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10054 fi 10055 fi 10056 ;; 10057 10058 amigaos*) 10059 case $host_cpu in 10060 powerpc) 10061 # see comment about AmigaOS4 .so support 10062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10063 archive_expsym_cmds='' 10064 ;; 10065 m68k) 10066 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)' 10067 hardcode_libdir_flag_spec='-L$libdir' 10068 hardcode_minus_L=yes 10069 ;; 10070 esac 10071 ;; 10072 10073 bsdi[45]*) 10074 export_dynamic_flag_spec=-rdynamic 10075 ;; 10076 10077 cygwin* | mingw* | pw32* | cegcc*) 10078 # When not using gcc, we currently assume that we are using 10079 # Microsoft Visual C++. 10080 # hardcode_libdir_flag_spec is actually meaningless, as there is 10081 # no search path for DLLs. 10082 case $cc_basename in 10083 cl*) 10084 # Native MSVC 10085 hardcode_libdir_flag_spec=' ' 10086 allow_undefined_flag=unsupported 10087 always_export_symbols=yes 10088 file_list_spec='@' 10089 # Tell ltmain to make .lib files, not .a files. 10090 libext=lib 10091 # Tell ltmain to make .dll files, not .so files. 10092 shrext_cmds=.dll 10093 # FIXME: Setting linknames here is a bad hack. 10094 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10095 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10096 cp "$export_symbols" "$output_objdir/$soname.def"; 10097 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10098 else 10099 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10100 fi~ 10101 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10102 linknames=' 10103 # The linker will not automatically build a static lib if we build a DLL. 10104 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10105 enable_shared_with_static_runtimes=yes 10106 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10108 # Don't use ranlib 10109 old_postinstall_cmds='chmod 644 $oldlib' 10110 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10111 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10112 case $lt_outputfile in 10113 *.exe|*.EXE) ;; 10114 *) 10115 lt_outputfile=$lt_outputfile.exe 10116 lt_tool_outputfile=$lt_tool_outputfile.exe 10117 ;; 10118 esac~ 10119 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10120 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10121 $RM "$lt_outputfile.manifest"; 10122 fi' 10123 ;; 10124 *) 10125 # Assume MSVC wrapper 10126 hardcode_libdir_flag_spec=' ' 10127 allow_undefined_flag=unsupported 10128 # Tell ltmain to make .lib files, not .a files. 10129 libext=lib 10130 # Tell ltmain to make .dll files, not .so files. 10131 shrext_cmds=.dll 10132 # FIXME: Setting linknames here is a bad hack. 10133 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10134 # The linker will automatically build a .lib file if we build a DLL. 10135 old_archive_from_new_cmds='true' 10136 # FIXME: Should let the user specify the lib program. 10137 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10138 enable_shared_with_static_runtimes=yes 10139 ;; 10140 esac 10141 ;; 10142 10143 darwin* | rhapsody*) 10144 10145 10146 archive_cmds_need_lc=no 10147 hardcode_direct=no 10148 hardcode_automatic=yes 10149 hardcode_shlibpath_var=unsupported 10150 if test yes = "$lt_cv_ld_force_load"; then 10151 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\"`' 10152 10153 else 10154 whole_archive_flag_spec='' 10155 fi 10156 link_all_deplibs=yes 10157 allow_undefined_flag=$_lt_dar_allow_undefined 10158 case $cc_basename in 10159 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10160 *) _lt_dar_can_shared=$GCC ;; 10161 esac 10162 if test yes = "$_lt_dar_can_shared"; then 10163 output_verbose_link_cmd=func_echo_all 10164 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10165 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10166 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" 10167 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" 10168 10169 else 10170 ld_shlibs=no 10171 fi 10172 10173 ;; 10174 10175 dgux*) 10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10177 hardcode_libdir_flag_spec='-L$libdir' 10178 hardcode_shlibpath_var=no 10179 ;; 10180 10181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10182 # support. Future versions do this automatically, but an explicit c++rt0.o 10183 # does not break anything, and helps significantly (at the cost of a little 10184 # extra space). 10185 freebsd2.2*) 10186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10187 hardcode_libdir_flag_spec='-R$libdir' 10188 hardcode_direct=yes 10189 hardcode_shlibpath_var=no 10190 ;; 10191 10192 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10193 freebsd2.*) 10194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10195 hardcode_direct=yes 10196 hardcode_minus_L=yes 10197 hardcode_shlibpath_var=no 10198 ;; 10199 10200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10201 freebsd* | dragonfly*) 10202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10203 hardcode_libdir_flag_spec='-R$libdir' 10204 hardcode_direct=yes 10205 hardcode_shlibpath_var=no 10206 ;; 10207 10208 hpux9*) 10209 if test yes = "$GCC"; then 10210 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' 10211 else 10212 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' 10213 fi 10214 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10215 hardcode_libdir_separator=: 10216 hardcode_direct=yes 10217 10218 # hardcode_minus_L: Not really in the search PATH, 10219 # but as the default location of the library. 10220 hardcode_minus_L=yes 10221 export_dynamic_flag_spec='$wl-E' 10222 ;; 10223 10224 hpux10*) 10225 if test yes,no = "$GCC,$with_gnu_ld"; then 10226 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10227 else 10228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10229 fi 10230 if test no = "$with_gnu_ld"; then 10231 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10232 hardcode_libdir_separator=: 10233 hardcode_direct=yes 10234 hardcode_direct_absolute=yes 10235 export_dynamic_flag_spec='$wl-E' 10236 # hardcode_minus_L: Not really in the search PATH, 10237 # but as the default location of the library. 10238 hardcode_minus_L=yes 10239 fi 10240 ;; 10241 10242 hpux11*) 10243 if test yes,no = "$GCC,$with_gnu_ld"; then 10244 case $host_cpu in 10245 hppa*64*) 10246 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10247 ;; 10248 ia64*) 10249 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10250 ;; 10251 *) 10252 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10253 ;; 10254 esac 10255 else 10256 case $host_cpu in 10257 hppa*64*) 10258 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10259 ;; 10260 ia64*) 10261 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10262 ;; 10263 *) 10264 10265 # Older versions of the 11.00 compiler do not understand -b yet 10266 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10268$as_echo_n "checking if $CC understands -b... " >&6; } 10269if ${lt_cv_prog_compiler__b+:} false; then : 10270 $as_echo_n "(cached) " >&6 10271else 10272 lt_cv_prog_compiler__b=no 10273 save_LDFLAGS=$LDFLAGS 10274 LDFLAGS="$LDFLAGS -b" 10275 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10277 # The linker can only warn and ignore the option if not recognized 10278 # So say no if there are warnings 10279 if test -s conftest.err; then 10280 # Append any errors to the config.log. 10281 cat conftest.err 1>&5 10282 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10284 if diff conftest.exp conftest.er2 >/dev/null; then 10285 lt_cv_prog_compiler__b=yes 10286 fi 10287 else 10288 lt_cv_prog_compiler__b=yes 10289 fi 10290 fi 10291 $RM -r conftest* 10292 LDFLAGS=$save_LDFLAGS 10293 10294fi 10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10296$as_echo "$lt_cv_prog_compiler__b" >&6; } 10297 10298if test yes = "$lt_cv_prog_compiler__b"; then 10299 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10300else 10301 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10302fi 10303 10304 ;; 10305 esac 10306 fi 10307 if test no = "$with_gnu_ld"; then 10308 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10309 hardcode_libdir_separator=: 10310 10311 case $host_cpu in 10312 hppa*64*|ia64*) 10313 hardcode_direct=no 10314 hardcode_shlibpath_var=no 10315 ;; 10316 *) 10317 hardcode_direct=yes 10318 hardcode_direct_absolute=yes 10319 export_dynamic_flag_spec='$wl-E' 10320 10321 # hardcode_minus_L: Not really in the search PATH, 10322 # but as the default location of the library. 10323 hardcode_minus_L=yes 10324 ;; 10325 esac 10326 fi 10327 ;; 10328 10329 irix5* | irix6* | nonstopux*) 10330 if test yes = "$GCC"; then 10331 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' 10332 # Try to use the -exported_symbol ld option, if it does not 10333 # work, assume that -exports_file does not work either and 10334 # implicitly export all symbols. 10335 # This should be the same for all languages, so no per-tag cache variable. 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10337$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10338if ${lt_cv_irix_exported_symbol+:} false; then : 10339 $as_echo_n "(cached) " >&6 10340else 10341 save_LDFLAGS=$LDFLAGS 10342 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345int foo (void) { return 0; } 10346_ACEOF 10347if ac_fn_c_try_link "$LINENO"; then : 10348 lt_cv_irix_exported_symbol=yes 10349else 10350 lt_cv_irix_exported_symbol=no 10351fi 10352rm -f core conftest.err conftest.$ac_objext \ 10353 conftest$ac_exeext conftest.$ac_ext 10354 LDFLAGS=$save_LDFLAGS 10355fi 10356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10357$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10358 if test yes = "$lt_cv_irix_exported_symbol"; then 10359 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' 10360 fi 10361 else 10362 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' 10363 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' 10364 fi 10365 archive_cmds_need_lc='no' 10366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10367 hardcode_libdir_separator=: 10368 inherit_rpath=yes 10369 link_all_deplibs=yes 10370 ;; 10371 10372 linux*) 10373 case $cc_basename in 10374 tcc*) 10375 # Fabrice Bellard et al's Tiny C Compiler 10376 ld_shlibs=yes 10377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10378 ;; 10379 esac 10380 ;; 10381 10382 netbsd*) 10383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10385 else 10386 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10387 fi 10388 hardcode_libdir_flag_spec='-R$libdir' 10389 hardcode_direct=yes 10390 hardcode_shlibpath_var=no 10391 ;; 10392 10393 newsos6) 10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10395 hardcode_direct=yes 10396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10397 hardcode_libdir_separator=: 10398 hardcode_shlibpath_var=no 10399 ;; 10400 10401 *nto* | *qnx*) 10402 ;; 10403 10404 openbsd* | bitrig*) 10405 if test -f /usr/libexec/ld.so; then 10406 hardcode_direct=yes 10407 hardcode_shlibpath_var=no 10408 hardcode_direct_absolute=yes 10409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10411 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10412 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10413 export_dynamic_flag_spec='$wl-E' 10414 else 10415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10416 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10417 fi 10418 else 10419 ld_shlibs=no 10420 fi 10421 ;; 10422 10423 os2*) 10424 hardcode_libdir_flag_spec='-L$libdir' 10425 hardcode_minus_L=yes 10426 allow_undefined_flag=unsupported 10427 shrext_cmds=.dll 10428 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10429 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10430 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10431 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10432 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10433 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10434 emximp -o $lib $output_objdir/$libname.def' 10435 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10436 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10437 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10438 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10439 prefix_cmds="$SED"~ 10440 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10441 prefix_cmds="$prefix_cmds -e 1d"; 10442 fi~ 10443 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10444 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10445 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10446 emximp -o $lib $output_objdir/$libname.def' 10447 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10448 enable_shared_with_static_runtimes=yes 10449 ;; 10450 10451 osf3*) 10452 if test yes = "$GCC"; then 10453 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10454 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' 10455 else 10456 allow_undefined_flag=' -expect_unresolved \*' 10457 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' 10458 fi 10459 archive_cmds_need_lc='no' 10460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10461 hardcode_libdir_separator=: 10462 ;; 10463 10464 osf4* | osf5*) # as osf3* with the addition of -msym flag 10465 if test yes = "$GCC"; then 10466 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10467 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' 10468 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10469 else 10470 allow_undefined_flag=' -expect_unresolved \*' 10471 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' 10472 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~ 10473 $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' 10474 10475 # Both c and cxx compiler support -rpath directly 10476 hardcode_libdir_flag_spec='-rpath $libdir' 10477 fi 10478 archive_cmds_need_lc='no' 10479 hardcode_libdir_separator=: 10480 ;; 10481 10482 solaris*) 10483 no_undefined_flag=' -z defs' 10484 if test yes = "$GCC"; then 10485 wlarc='$wl' 10486 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10488 $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' 10489 else 10490 case `$CC -V 2>&1` in 10491 *"Compilers 5.0"*) 10492 wlarc='' 10493 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10494 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10495 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10496 ;; 10497 *) 10498 wlarc='$wl' 10499 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10500 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10501 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10502 ;; 10503 esac 10504 fi 10505 hardcode_libdir_flag_spec='-R$libdir' 10506 hardcode_shlibpath_var=no 10507 case $host_os in 10508 solaris2.[0-5] | solaris2.[0-5].*) ;; 10509 *) 10510 # The compiler driver will combine and reorder linker options, 10511 # but understands '-z linker_flag'. GCC discards it without '$wl', 10512 # but is careful enough not to reorder. 10513 # Supported since Solaris 2.6 (maybe 2.5.1?) 10514 if test yes = "$GCC"; then 10515 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10516 else 10517 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10518 fi 10519 ;; 10520 esac 10521 link_all_deplibs=yes 10522 ;; 10523 10524 sunos4*) 10525 if test sequent = "$host_vendor"; then 10526 # Use $CC to link under sequent, because it throws in some extra .o 10527 # files that make .init and .fini sections work. 10528 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10529 else 10530 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10531 fi 10532 hardcode_libdir_flag_spec='-L$libdir' 10533 hardcode_direct=yes 10534 hardcode_minus_L=yes 10535 hardcode_shlibpath_var=no 10536 ;; 10537 10538 sysv4) 10539 case $host_vendor in 10540 sni) 10541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10542 hardcode_direct=yes # is this really true??? 10543 ;; 10544 siemens) 10545 ## LD is ld it makes a PLAMLIB 10546 ## CC just makes a GrossModule. 10547 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10548 reload_cmds='$CC -r -o $output$reload_objs' 10549 hardcode_direct=no 10550 ;; 10551 motorola) 10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10553 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10554 ;; 10555 esac 10556 runpath_var='LD_RUN_PATH' 10557 hardcode_shlibpath_var=no 10558 ;; 10559 10560 sysv4.3*) 10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10562 hardcode_shlibpath_var=no 10563 export_dynamic_flag_spec='-Bexport' 10564 ;; 10565 10566 sysv4*MP*) 10567 if test -d /usr/nec; then 10568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10569 hardcode_shlibpath_var=no 10570 runpath_var=LD_RUN_PATH 10571 hardcode_runpath_var=yes 10572 ld_shlibs=yes 10573 fi 10574 ;; 10575 10576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10577 no_undefined_flag='$wl-z,text' 10578 archive_cmds_need_lc=no 10579 hardcode_shlibpath_var=no 10580 runpath_var='LD_RUN_PATH' 10581 10582 if test yes = "$GCC"; then 10583 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10584 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10585 else 10586 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10587 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10588 fi 10589 ;; 10590 10591 sysv5* | sco3.2v5* | sco5v6*) 10592 # Note: We CANNOT use -z defs as we might desire, because we do not 10593 # link with -lc, and that would cause any symbols used from libc to 10594 # always be unresolved, which means just about no library would 10595 # ever link correctly. If we're not using GNU ld we use -z text 10596 # though, which does catch some bad symbols but isn't as heavy-handed 10597 # as -z defs. 10598 no_undefined_flag='$wl-z,text' 10599 allow_undefined_flag='$wl-z,nodefs' 10600 archive_cmds_need_lc=no 10601 hardcode_shlibpath_var=no 10602 hardcode_libdir_flag_spec='$wl-R,$libdir' 10603 hardcode_libdir_separator=':' 10604 link_all_deplibs=yes 10605 export_dynamic_flag_spec='$wl-Bexport' 10606 runpath_var='LD_RUN_PATH' 10607 10608 if test yes = "$GCC"; then 10609 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10610 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10611 else 10612 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10613 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10614 fi 10615 ;; 10616 10617 uts4*) 10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10619 hardcode_libdir_flag_spec='-L$libdir' 10620 hardcode_shlibpath_var=no 10621 ;; 10622 10623 *) 10624 ld_shlibs=no 10625 ;; 10626 esac 10627 10628 if test sni = "$host_vendor"; then 10629 case $host in 10630 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10631 export_dynamic_flag_spec='$wl-Blargedynsym' 10632 ;; 10633 esac 10634 fi 10635 fi 10636 10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10638$as_echo "$ld_shlibs" >&6; } 10639test no = "$ld_shlibs" && can_build_shared=no 10640 10641with_gnu_ld=$with_gnu_ld 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657# 10658# Do we need to explicitly link libc? 10659# 10660case "x$archive_cmds_need_lc" in 10661x|xyes) 10662 # Assume -lc should be added 10663 archive_cmds_need_lc=yes 10664 10665 if test yes,yes = "$GCC,$enable_shared"; then 10666 case $archive_cmds in 10667 *'~'*) 10668 # FIXME: we may have to deal with multi-command sequences. 10669 ;; 10670 '$CC '*) 10671 # Test whether the compiler implicitly links with -lc since on some 10672 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10673 # to ld, don't add -lc before -lgcc. 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10675$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10676if ${lt_cv_archive_cmds_need_lc+:} false; then : 10677 $as_echo_n "(cached) " >&6 10678else 10679 $RM conftest* 10680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10681 10682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10683 (eval $ac_compile) 2>&5 10684 ac_status=$? 10685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10686 test $ac_status = 0; } 2>conftest.err; then 10687 soname=conftest 10688 lib=conftest 10689 libobjs=conftest.$ac_objext 10690 deplibs= 10691 wl=$lt_prog_compiler_wl 10692 pic_flag=$lt_prog_compiler_pic 10693 compiler_flags=-v 10694 linker_flags=-v 10695 verstring= 10696 output_objdir=. 10697 libname=conftest 10698 lt_save_allow_undefined_flag=$allow_undefined_flag 10699 allow_undefined_flag= 10700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10701 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10702 ac_status=$? 10703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10704 test $ac_status = 0; } 10705 then 10706 lt_cv_archive_cmds_need_lc=no 10707 else 10708 lt_cv_archive_cmds_need_lc=yes 10709 fi 10710 allow_undefined_flag=$lt_save_allow_undefined_flag 10711 else 10712 cat conftest.err 1>&5 10713 fi 10714 $RM conftest* 10715 10716fi 10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10718$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10719 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10720 ;; 10721 esac 10722 fi 10723 ;; 10724esac 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10878$as_echo_n "checking dynamic linker characteristics... " >&6; } 10879 10880if test yes = "$GCC"; then 10881 case $host_os in 10882 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10883 *) lt_awk_arg='/^libraries:/' ;; 10884 esac 10885 case $host_os in 10886 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10887 *) lt_sed_strip_eq='s|=/|/|g' ;; 10888 esac 10889 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10890 case $lt_search_path_spec in 10891 *\;*) 10892 # if the path contains ";" then we assume it to be the separator 10893 # otherwise default to the standard path separator (i.e. ":") - it is 10894 # assumed that no part of a normal pathname contains ";" but that should 10895 # okay in the real world where ";" in dirpaths is itself problematic. 10896 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10897 ;; 10898 *) 10899 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10900 ;; 10901 esac 10902 # Ok, now we have the path, separated by spaces, we can step through it 10903 # and add multilib dir if necessary... 10904 lt_tmp_lt_search_path_spec= 10905 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10906 # ...but if some path component already ends with the multilib dir we assume 10907 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10908 case "$lt_multi_os_dir; $lt_search_path_spec " in 10909 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10910 lt_multi_os_dir= 10911 ;; 10912 esac 10913 for lt_sys_path in $lt_search_path_spec; do 10914 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10915 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10916 elif test -n "$lt_multi_os_dir"; then 10917 test -d "$lt_sys_path" && \ 10918 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10919 fi 10920 done 10921 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10922BEGIN {RS = " "; FS = "/|\n";} { 10923 lt_foo = ""; 10924 lt_count = 0; 10925 for (lt_i = NF; lt_i > 0; lt_i--) { 10926 if ($lt_i != "" && $lt_i != ".") { 10927 if ($lt_i == "..") { 10928 lt_count++; 10929 } else { 10930 if (lt_count == 0) { 10931 lt_foo = "/" $lt_i lt_foo; 10932 } else { 10933 lt_count--; 10934 } 10935 } 10936 } 10937 } 10938 if (lt_foo != "") { lt_freq[lt_foo]++; } 10939 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10940}'` 10941 # AWK program above erroneously prepends '/' to C:/dos/paths 10942 # for these hosts. 10943 case $host_os in 10944 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10945 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10946 esac 10947 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10948else 10949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10950fi 10951library_names_spec= 10952libname_spec='lib$name' 10953soname_spec= 10954shrext_cmds=.so 10955postinstall_cmds= 10956postuninstall_cmds= 10957finish_cmds= 10958finish_eval= 10959shlibpath_var= 10960shlibpath_overrides_runpath=unknown 10961version_type=none 10962dynamic_linker="$host_os ld.so" 10963sys_lib_dlsearch_path_spec="/lib /usr/lib" 10964need_lib_prefix=unknown 10965hardcode_into_libs=no 10966 10967# when you set need_version to no, make sure it does not cause -set_version 10968# flags to be left without arguments 10969need_version=unknown 10970 10971 10972 10973case $host_os in 10974aix3*) 10975 version_type=linux # correct to gnu/linux during the next big refactor 10976 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10977 shlibpath_var=LIBPATH 10978 10979 # AIX 3 has no versioning support, so we append a major version to the name. 10980 soname_spec='$libname$release$shared_ext$major' 10981 ;; 10982 10983aix[4-9]*) 10984 version_type=linux # correct to gnu/linux during the next big refactor 10985 need_lib_prefix=no 10986 need_version=no 10987 hardcode_into_libs=yes 10988 if test ia64 = "$host_cpu"; then 10989 # AIX 5 supports IA64 10990 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10991 shlibpath_var=LD_LIBRARY_PATH 10992 else 10993 # With GCC up to 2.95.x, collect2 would create an import file 10994 # for dependence libraries. The import file would start with 10995 # the line '#! .'. This would cause the generated library to 10996 # depend on '.', always an invalid library. This was fixed in 10997 # development snapshots of GCC prior to 3.0. 10998 case $host_os in 10999 aix4 | aix4.[01] | aix4.[01].*) 11000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11001 echo ' yes ' 11002 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11003 : 11004 else 11005 can_build_shared=no 11006 fi 11007 ;; 11008 esac 11009 # Using Import Files as archive members, it is possible to support 11010 # filename-based versioning of shared library archives on AIX. While 11011 # this would work for both with and without runtime linking, it will 11012 # prevent static linking of such archives. So we do filename-based 11013 # shared library versioning with .so extension only, which is used 11014 # when both runtime linking and shared linking is enabled. 11015 # Unfortunately, runtime linking may impact performance, so we do 11016 # not want this to be the default eventually. Also, we use the 11017 # versioned .so libs for executables only if there is the -brtl 11018 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11019 # To allow for filename-based versioning support, we need to create 11020 # libNAME.so.V as an archive file, containing: 11021 # *) an Import File, referring to the versioned filename of the 11022 # archive as well as the shared archive member, telling the 11023 # bitwidth (32 or 64) of that shared object, and providing the 11024 # list of exported symbols of that shared object, eventually 11025 # decorated with the 'weak' keyword 11026 # *) the shared object with the F_LOADONLY flag set, to really avoid 11027 # it being seen by the linker. 11028 # At run time we better use the real file rather than another symlink, 11029 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11030 11031 case $with_aix_soname,$aix_use_runtimelinking in 11032 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11033 # soname into executable. Probably we can add versioning support to 11034 # collect2, so additional links can be useful in future. 11035 aix,yes) # traditional libtool 11036 dynamic_linker='AIX unversionable lib.so' 11037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11038 # instead of lib<name>.a to let people know that these are not 11039 # typical AIX shared libraries. 11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11041 ;; 11042 aix,no) # traditional AIX only 11043 dynamic_linker='AIX lib.a(lib.so.V)' 11044 # We preserve .a as extension for shared libraries through AIX4.2 11045 # and later when we are not doing run time linking. 11046 library_names_spec='$libname$release.a $libname.a' 11047 soname_spec='$libname$release$shared_ext$major' 11048 ;; 11049 svr4,*) # full svr4 only 11050 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11051 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11052 # We do not specify a path in Import Files, so LIBPATH fires. 11053 shlibpath_overrides_runpath=yes 11054 ;; 11055 *,yes) # both, prefer svr4 11056 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11057 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11058 # unpreferred sharedlib libNAME.a needs extra handling 11059 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"' 11060 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"' 11061 # We do not specify a path in Import Files, so LIBPATH fires. 11062 shlibpath_overrides_runpath=yes 11063 ;; 11064 *,no) # both, prefer aix 11065 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11066 library_names_spec='$libname$release.a $libname.a' 11067 soname_spec='$libname$release$shared_ext$major' 11068 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11069 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)' 11070 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"' 11071 ;; 11072 esac 11073 shlibpath_var=LIBPATH 11074 fi 11075 ;; 11076 11077amigaos*) 11078 case $host_cpu in 11079 powerpc) 11080 # Since July 2007 AmigaOS4 officially supports .so libraries. 11081 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11083 ;; 11084 m68k) 11085 library_names_spec='$libname.ixlibrary $libname.a' 11086 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11087 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' 11088 ;; 11089 esac 11090 ;; 11091 11092beos*) 11093 library_names_spec='$libname$shared_ext' 11094 dynamic_linker="$host_os ld.so" 11095 shlibpath_var=LIBRARY_PATH 11096 ;; 11097 11098bsdi[45]*) 11099 version_type=linux # correct to gnu/linux during the next big refactor 11100 need_version=no 11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11102 soname_spec='$libname$release$shared_ext$major' 11103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11104 shlibpath_var=LD_LIBRARY_PATH 11105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11107 # the default ld.so.conf also contains /usr/contrib/lib and 11108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11109 # libtool to hard-code these into programs 11110 ;; 11111 11112cygwin* | mingw* | pw32* | cegcc*) 11113 version_type=windows 11114 shrext_cmds=.dll 11115 need_version=no 11116 need_lib_prefix=no 11117 11118 case $GCC,$cc_basename in 11119 yes,*) 11120 # gcc 11121 library_names_spec='$libname.dll.a' 11122 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11123 postinstall_cmds='base_file=`basename \$file`~ 11124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11125 dldir=$destdir/`dirname \$dlpath`~ 11126 test -d \$dldir || mkdir -p \$dldir~ 11127 $install_prog $dir/$dlname \$dldir/$dlname~ 11128 chmod a+x \$dldir/$dlname~ 11129 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11130 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11131 fi' 11132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11133 dlpath=$dir/\$dldll~ 11134 $RM \$dlpath' 11135 shlibpath_overrides_runpath=yes 11136 11137 case $host_os in 11138 cygwin*) 11139 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11140 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11141 11142 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11143 ;; 11144 mingw* | cegcc*) 11145 # MinGW DLLs use traditional 'lib' prefix 11146 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11147 ;; 11148 pw32*) 11149 # pw32 DLLs use 'pw' prefix rather than 'lib' 11150 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11151 ;; 11152 esac 11153 dynamic_linker='Win32 ld.exe' 11154 ;; 11155 11156 *,cl*) 11157 # Native MSVC 11158 libname_spec='$name' 11159 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11160 library_names_spec='$libname.dll.lib' 11161 11162 case $build_os in 11163 mingw*) 11164 sys_lib_search_path_spec= 11165 lt_save_ifs=$IFS 11166 IFS=';' 11167 for lt_path in $LIB 11168 do 11169 IFS=$lt_save_ifs 11170 # Let DOS variable expansion print the short 8.3 style file name. 11171 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11172 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11173 done 11174 IFS=$lt_save_ifs 11175 # Convert to MSYS style. 11176 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11177 ;; 11178 cygwin*) 11179 # Convert to unix form, then to dos form, then back to unix form 11180 # but this time dos style (no spaces!) so that the unix form looks 11181 # like /cygdrive/c/PROGRA~1:/cygdr... 11182 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11183 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11184 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11185 ;; 11186 *) 11187 sys_lib_search_path_spec=$LIB 11188 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11189 # It is most probably a Windows format PATH. 11190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11191 else 11192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11193 fi 11194 # FIXME: find the short name or the path components, as spaces are 11195 # common. (e.g. "Program Files" -> "PROGRA~1") 11196 ;; 11197 esac 11198 11199 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11200 postinstall_cmds='base_file=`basename \$file`~ 11201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11202 dldir=$destdir/`dirname \$dlpath`~ 11203 test -d \$dldir || mkdir -p \$dldir~ 11204 $install_prog $dir/$dlname \$dldir/$dlname' 11205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11206 dlpath=$dir/\$dldll~ 11207 $RM \$dlpath' 11208 shlibpath_overrides_runpath=yes 11209 dynamic_linker='Win32 link.exe' 11210 ;; 11211 11212 *) 11213 # Assume MSVC wrapper 11214 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11215 dynamic_linker='Win32 ld.exe' 11216 ;; 11217 esac 11218 # FIXME: first we should search . and the directory the executable is in 11219 shlibpath_var=PATH 11220 ;; 11221 11222darwin* | rhapsody*) 11223 dynamic_linker="$host_os dyld" 11224 version_type=darwin 11225 need_lib_prefix=no 11226 need_version=no 11227 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11228 soname_spec='$libname$release$major$shared_ext' 11229 shlibpath_overrides_runpath=yes 11230 shlibpath_var=DYLD_LIBRARY_PATH 11231 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11232 11233 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11235 ;; 11236 11237dgux*) 11238 version_type=linux # correct to gnu/linux during the next big refactor 11239 need_lib_prefix=no 11240 need_version=no 11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11242 soname_spec='$libname$release$shared_ext$major' 11243 shlibpath_var=LD_LIBRARY_PATH 11244 ;; 11245 11246freebsd* | dragonfly*) 11247 # DragonFly does not have aout. When/if they implement a new 11248 # versioning mechanism, adjust this. 11249 if test -x /usr/bin/objformat; then 11250 objformat=`/usr/bin/objformat` 11251 else 11252 case $host_os in 11253 freebsd[23].*) objformat=aout ;; 11254 *) objformat=elf ;; 11255 esac 11256 fi 11257 version_type=freebsd-$objformat 11258 case $version_type in 11259 freebsd-elf*) 11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11261 soname_spec='$libname$release$shared_ext$major' 11262 need_version=no 11263 need_lib_prefix=no 11264 ;; 11265 freebsd-*) 11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11267 need_version=yes 11268 ;; 11269 esac 11270 shlibpath_var=LD_LIBRARY_PATH 11271 case $host_os in 11272 freebsd2.*) 11273 shlibpath_overrides_runpath=yes 11274 ;; 11275 freebsd3.[01]* | freebsdelf3.[01]*) 11276 shlibpath_overrides_runpath=yes 11277 hardcode_into_libs=yes 11278 ;; 11279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11281 shlibpath_overrides_runpath=no 11282 hardcode_into_libs=yes 11283 ;; 11284 *) # from 4.6 on, and DragonFly 11285 shlibpath_overrides_runpath=yes 11286 hardcode_into_libs=yes 11287 ;; 11288 esac 11289 ;; 11290 11291haiku*) 11292 version_type=linux # correct to gnu/linux during the next big refactor 11293 need_lib_prefix=no 11294 need_version=no 11295 dynamic_linker="$host_os runtime_loader" 11296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11297 soname_spec='$libname$release$shared_ext$major' 11298 shlibpath_var=LIBRARY_PATH 11299 shlibpath_overrides_runpath=no 11300 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11301 hardcode_into_libs=yes 11302 ;; 11303 11304hpux9* | hpux10* | hpux11*) 11305 # Give a soname corresponding to the major version so that dld.sl refuses to 11306 # link against other versions. 11307 version_type=sunos 11308 need_lib_prefix=no 11309 need_version=no 11310 case $host_cpu in 11311 ia64*) 11312 shrext_cmds='.so' 11313 hardcode_into_libs=yes 11314 dynamic_linker="$host_os dld.so" 11315 shlibpath_var=LD_LIBRARY_PATH 11316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11318 soname_spec='$libname$release$shared_ext$major' 11319 if test 32 = "$HPUX_IA64_MODE"; then 11320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11321 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11322 else 11323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11324 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11325 fi 11326 ;; 11327 hppa*64*) 11328 shrext_cmds='.sl' 11329 hardcode_into_libs=yes 11330 dynamic_linker="$host_os dld.sl" 11331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11334 soname_spec='$libname$release$shared_ext$major' 11335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11337 ;; 11338 *) 11339 shrext_cmds='.sl' 11340 dynamic_linker="$host_os dld.sl" 11341 shlibpath_var=SHLIB_PATH 11342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11344 soname_spec='$libname$release$shared_ext$major' 11345 ;; 11346 esac 11347 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11348 postinstall_cmds='chmod 555 $lib' 11349 # or fails outright, so override atomically: 11350 install_override_mode=555 11351 ;; 11352 11353interix[3-9]*) 11354 version_type=linux # correct to gnu/linux during the next big refactor 11355 need_lib_prefix=no 11356 need_version=no 11357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11358 soname_spec='$libname$release$shared_ext$major' 11359 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11360 shlibpath_var=LD_LIBRARY_PATH 11361 shlibpath_overrides_runpath=no 11362 hardcode_into_libs=yes 11363 ;; 11364 11365irix5* | irix6* | nonstopux*) 11366 case $host_os in 11367 nonstopux*) version_type=nonstopux ;; 11368 *) 11369 if test yes = "$lt_cv_prog_gnu_ld"; then 11370 version_type=linux # correct to gnu/linux during the next big refactor 11371 else 11372 version_type=irix 11373 fi ;; 11374 esac 11375 need_lib_prefix=no 11376 need_version=no 11377 soname_spec='$libname$release$shared_ext$major' 11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11379 case $host_os in 11380 irix5* | nonstopux*) 11381 libsuff= shlibsuff= 11382 ;; 11383 *) 11384 case $LD in # libtool.m4 will add one of these switches to LD 11385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11386 libsuff= shlibsuff= libmagic=32-bit;; 11387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11388 libsuff=32 shlibsuff=N32 libmagic=N32;; 11389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11390 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11391 *) libsuff= shlibsuff= libmagic=never-match;; 11392 esac 11393 ;; 11394 esac 11395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11396 shlibpath_overrides_runpath=no 11397 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11398 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11399 hardcode_into_libs=yes 11400 ;; 11401 11402# No shared lib support for Linux oldld, aout, or coff. 11403linux*oldld* | linux*aout* | linux*coff*) 11404 dynamic_linker=no 11405 ;; 11406 11407linux*android*) 11408 version_type=none # Android doesn't support versioned libraries. 11409 need_lib_prefix=no 11410 need_version=no 11411 library_names_spec='$libname$release$shared_ext' 11412 soname_spec='$libname$release$shared_ext' 11413 finish_cmds= 11414 shlibpath_var=LD_LIBRARY_PATH 11415 shlibpath_overrides_runpath=yes 11416 11417 # This implies no fast_install, which is unacceptable. 11418 # Some rework will be needed to allow for fast_install 11419 # before this can be enabled. 11420 hardcode_into_libs=yes 11421 11422 dynamic_linker='Android linker' 11423 # Don't embed -rpath directories since the linker doesn't support them. 11424 hardcode_libdir_flag_spec='-L$libdir' 11425 ;; 11426 11427# This must be glibc/ELF. 11428linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11429 version_type=linux # correct to gnu/linux during the next big refactor 11430 need_lib_prefix=no 11431 need_version=no 11432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11433 soname_spec='$libname$release$shared_ext$major' 11434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11435 shlibpath_var=LD_LIBRARY_PATH 11436 shlibpath_overrides_runpath=no 11437 11438 # Some binutils ld are patched to set DT_RUNPATH 11439 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11440 $as_echo_n "(cached) " >&6 11441else 11442 lt_cv_shlibpath_overrides_runpath=no 11443 save_LDFLAGS=$LDFLAGS 11444 save_libdir=$libdir 11445 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11446 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11448/* end confdefs.h. */ 11449 11450int 11451main () 11452{ 11453 11454 ; 11455 return 0; 11456} 11457_ACEOF 11458if ac_fn_c_try_link "$LINENO"; then : 11459 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11460 lt_cv_shlibpath_overrides_runpath=yes 11461fi 11462fi 11463rm -f core conftest.err conftest.$ac_objext \ 11464 conftest$ac_exeext conftest.$ac_ext 11465 LDFLAGS=$save_LDFLAGS 11466 libdir=$save_libdir 11467 11468fi 11469 11470 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11471 11472 # This implies no fast_install, which is unacceptable. 11473 # Some rework will be needed to allow for fast_install 11474 # before this can be enabled. 11475 hardcode_into_libs=yes 11476 11477 # Ideally, we could use ldconfig to report *all* directores which are 11478 # searched for libraries, however this is still not possible. Aside from not 11479 # being certain /sbin/ldconfig is available, command 11480 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11481 # even though it is searched at run-time. Try to do the best guess by 11482 # appending ld.so.conf contents (and includes) to the search path. 11483 if test -f /etc/ld.so.conf; then 11484 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' ' '` 11485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11486 fi 11487 11488 # We used to test for /lib/ld.so.1 and disable shared libraries on 11489 # powerpc, because MkLinux only supported shared libraries with the 11490 # GNU dynamic linker. Since this was broken with cross compilers, 11491 # most powerpc-linux boxes support dynamic linking these days and 11492 # people can always --disable-shared, the test was removed, and we 11493 # assume the GNU/Linux dynamic linker is in use. 11494 dynamic_linker='GNU/Linux ld.so' 11495 ;; 11496 11497netbsd*) 11498 version_type=sunos 11499 need_lib_prefix=no 11500 need_version=no 11501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11504 dynamic_linker='NetBSD (a.out) ld.so' 11505 else 11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11507 soname_spec='$libname$release$shared_ext$major' 11508 dynamic_linker='NetBSD ld.elf_so' 11509 fi 11510 shlibpath_var=LD_LIBRARY_PATH 11511 shlibpath_overrides_runpath=yes 11512 hardcode_into_libs=yes 11513 ;; 11514 11515newsos6) 11516 version_type=linux # correct to gnu/linux during the next big refactor 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11518 shlibpath_var=LD_LIBRARY_PATH 11519 shlibpath_overrides_runpath=yes 11520 ;; 11521 11522*nto* | *qnx*) 11523 version_type=qnx 11524 need_lib_prefix=no 11525 need_version=no 11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11527 soname_spec='$libname$release$shared_ext$major' 11528 shlibpath_var=LD_LIBRARY_PATH 11529 shlibpath_overrides_runpath=no 11530 hardcode_into_libs=yes 11531 dynamic_linker='ldqnx.so' 11532 ;; 11533 11534openbsd* | bitrig*) 11535 version_type=sunos 11536 sys_lib_dlsearch_path_spec=/usr/lib 11537 need_lib_prefix=no 11538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11539 need_version=no 11540 else 11541 need_version=yes 11542 fi 11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11545 shlibpath_var=LD_LIBRARY_PATH 11546 shlibpath_overrides_runpath=yes 11547 ;; 11548 11549os2*) 11550 libname_spec='$name' 11551 version_type=windows 11552 shrext_cmds=.dll 11553 need_version=no 11554 need_lib_prefix=no 11555 # OS/2 can only load a DLL with a base name of 8 characters or less. 11556 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11557 v=$($ECHO $release$versuffix | tr -d .-); 11558 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11559 $ECHO $n$v`$shared_ext' 11560 library_names_spec='${libname}_dll.$libext' 11561 dynamic_linker='OS/2 ld.exe' 11562 shlibpath_var=BEGINLIBPATH 11563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11565 postinstall_cmds='base_file=`basename \$file`~ 11566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11567 dldir=$destdir/`dirname \$dlpath`~ 11568 test -d \$dldir || mkdir -p \$dldir~ 11569 $install_prog $dir/$dlname \$dldir/$dlname~ 11570 chmod a+x \$dldir/$dlname~ 11571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11573 fi' 11574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11575 dlpath=$dir/\$dldll~ 11576 $RM \$dlpath' 11577 ;; 11578 11579osf3* | osf4* | osf5*) 11580 version_type=osf 11581 need_lib_prefix=no 11582 need_version=no 11583 soname_spec='$libname$release$shared_ext$major' 11584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11585 shlibpath_var=LD_LIBRARY_PATH 11586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11588 ;; 11589 11590rdos*) 11591 dynamic_linker=no 11592 ;; 11593 11594solaris*) 11595 version_type=linux # correct to gnu/linux during the next big refactor 11596 need_lib_prefix=no 11597 need_version=no 11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11599 soname_spec='$libname$release$shared_ext$major' 11600 shlibpath_var=LD_LIBRARY_PATH 11601 shlibpath_overrides_runpath=yes 11602 hardcode_into_libs=yes 11603 # ldd complains unless libraries are executable 11604 postinstall_cmds='chmod +x $lib' 11605 ;; 11606 11607sunos4*) 11608 version_type=sunos 11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11611 shlibpath_var=LD_LIBRARY_PATH 11612 shlibpath_overrides_runpath=yes 11613 if test yes = "$with_gnu_ld"; then 11614 need_lib_prefix=no 11615 fi 11616 need_version=yes 11617 ;; 11618 11619sysv4 | sysv4.3*) 11620 version_type=linux # correct to gnu/linux during the next big refactor 11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11622 soname_spec='$libname$release$shared_ext$major' 11623 shlibpath_var=LD_LIBRARY_PATH 11624 case $host_vendor in 11625 sni) 11626 shlibpath_overrides_runpath=no 11627 need_lib_prefix=no 11628 runpath_var=LD_RUN_PATH 11629 ;; 11630 siemens) 11631 need_lib_prefix=no 11632 ;; 11633 motorola) 11634 need_lib_prefix=no 11635 need_version=no 11636 shlibpath_overrides_runpath=no 11637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11638 ;; 11639 esac 11640 ;; 11641 11642sysv4*MP*) 11643 if test -d /usr/nec; then 11644 version_type=linux # correct to gnu/linux during the next big refactor 11645 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11646 soname_spec='$libname$shared_ext.$major' 11647 shlibpath_var=LD_LIBRARY_PATH 11648 fi 11649 ;; 11650 11651sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11652 version_type=sco 11653 need_lib_prefix=no 11654 need_version=no 11655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11656 soname_spec='$libname$release$shared_ext$major' 11657 shlibpath_var=LD_LIBRARY_PATH 11658 shlibpath_overrides_runpath=yes 11659 hardcode_into_libs=yes 11660 if test yes = "$with_gnu_ld"; then 11661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11662 else 11663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11664 case $host_os in 11665 sco3.2v5*) 11666 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11667 ;; 11668 esac 11669 fi 11670 sys_lib_dlsearch_path_spec='/usr/lib' 11671 ;; 11672 11673tpf*) 11674 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11675 version_type=linux # correct to gnu/linux during the next big refactor 11676 need_lib_prefix=no 11677 need_version=no 11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11679 shlibpath_var=LD_LIBRARY_PATH 11680 shlibpath_overrides_runpath=no 11681 hardcode_into_libs=yes 11682 ;; 11683 11684uts4*) 11685 version_type=linux # correct to gnu/linux during the next big refactor 11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11687 soname_spec='$libname$release$shared_ext$major' 11688 shlibpath_var=LD_LIBRARY_PATH 11689 ;; 11690 11691*) 11692 dynamic_linker=no 11693 ;; 11694esac 11695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11696$as_echo "$dynamic_linker" >&6; } 11697test no = "$dynamic_linker" && can_build_shared=no 11698 11699variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11700if test yes = "$GCC"; then 11701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11702fi 11703 11704if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11705 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11706fi 11707 11708if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11709 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11710fi 11711 11712# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11713configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11714 11715# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11716func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11717 11718# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11719configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11818$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11819hardcode_action= 11820if test -n "$hardcode_libdir_flag_spec" || 11821 test -n "$runpath_var" || 11822 test yes = "$hardcode_automatic"; then 11823 11824 # We can hardcode non-existent directories. 11825 if test no != "$hardcode_direct" && 11826 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11827 # have to relink, otherwise we might link with an installed library 11828 # when we should be linking with a yet-to-be-installed one 11829 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11830 test no != "$hardcode_minus_L"; then 11831 # Linking always hardcodes the temporary library directory. 11832 hardcode_action=relink 11833 else 11834 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11835 hardcode_action=immediate 11836 fi 11837else 11838 # We cannot hardcode anything, or else we can only hardcode existing 11839 # directories. 11840 hardcode_action=unsupported 11841fi 11842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11843$as_echo "$hardcode_action" >&6; } 11844 11845if test relink = "$hardcode_action" || 11846 test yes = "$inherit_rpath"; then 11847 # Fast installation is not supported 11848 enable_fast_install=no 11849elif test yes = "$shlibpath_overrides_runpath" || 11850 test no = "$enable_shared"; then 11851 # Fast installation is not necessary 11852 enable_fast_install=needless 11853fi 11854 11855 11856 11857 11858 11859 11860 if test yes != "$enable_dlopen"; then 11861 enable_dlopen=unknown 11862 enable_dlopen_self=unknown 11863 enable_dlopen_self_static=unknown 11864else 11865 lt_cv_dlopen=no 11866 lt_cv_dlopen_libs= 11867 11868 case $host_os in 11869 beos*) 11870 lt_cv_dlopen=load_add_on 11871 lt_cv_dlopen_libs= 11872 lt_cv_dlopen_self=yes 11873 ;; 11874 11875 mingw* | pw32* | cegcc*) 11876 lt_cv_dlopen=LoadLibrary 11877 lt_cv_dlopen_libs= 11878 ;; 11879 11880 cygwin*) 11881 lt_cv_dlopen=dlopen 11882 lt_cv_dlopen_libs= 11883 ;; 11884 11885 darwin*) 11886 # if libdl is installed we need to link against it 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11888$as_echo_n "checking for dlopen in -ldl... " >&6; } 11889if ${ac_cv_lib_dl_dlopen+:} false; then : 11890 $as_echo_n "(cached) " >&6 11891else 11892 ac_check_lib_save_LIBS=$LIBS 11893LIBS="-ldl $LIBS" 11894cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11895/* end confdefs.h. */ 11896 11897/* Override any GCC internal prototype to avoid an error. 11898 Use char because int might match the return type of a GCC 11899 builtin and then its argument prototype would still apply. */ 11900#ifdef __cplusplus 11901extern "C" 11902#endif 11903char dlopen (); 11904int 11905main () 11906{ 11907return dlopen (); 11908 ; 11909 return 0; 11910} 11911_ACEOF 11912if ac_fn_c_try_link "$LINENO"; then : 11913 ac_cv_lib_dl_dlopen=yes 11914else 11915 ac_cv_lib_dl_dlopen=no 11916fi 11917rm -f core conftest.err conftest.$ac_objext \ 11918 conftest$ac_exeext conftest.$ac_ext 11919LIBS=$ac_check_lib_save_LIBS 11920fi 11921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11922$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11923if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11924 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11925else 11926 11927 lt_cv_dlopen=dyld 11928 lt_cv_dlopen_libs= 11929 lt_cv_dlopen_self=yes 11930 11931fi 11932 11933 ;; 11934 11935 tpf*) 11936 # Don't try to run any link tests for TPF. We know it's impossible 11937 # because TPF is a cross-compiler, and we know how we open DSOs. 11938 lt_cv_dlopen=dlopen 11939 lt_cv_dlopen_libs= 11940 lt_cv_dlopen_self=no 11941 ;; 11942 11943 *) 11944 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11945if test "x$ac_cv_func_shl_load" = xyes; then : 11946 lt_cv_dlopen=shl_load 11947else 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11949$as_echo_n "checking for shl_load in -ldld... " >&6; } 11950if ${ac_cv_lib_dld_shl_load+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952else 11953 ac_check_lib_save_LIBS=$LIBS 11954LIBS="-ldld $LIBS" 11955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11956/* end confdefs.h. */ 11957 11958/* Override any GCC internal prototype to avoid an error. 11959 Use char because int might match the return type of a GCC 11960 builtin and then its argument prototype would still apply. */ 11961#ifdef __cplusplus 11962extern "C" 11963#endif 11964char shl_load (); 11965int 11966main () 11967{ 11968return shl_load (); 11969 ; 11970 return 0; 11971} 11972_ACEOF 11973if ac_fn_c_try_link "$LINENO"; then : 11974 ac_cv_lib_dld_shl_load=yes 11975else 11976 ac_cv_lib_dld_shl_load=no 11977fi 11978rm -f core conftest.err conftest.$ac_objext \ 11979 conftest$ac_exeext conftest.$ac_ext 11980LIBS=$ac_check_lib_save_LIBS 11981fi 11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11983$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11984if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11985 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11986else 11987 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11988if test "x$ac_cv_func_dlopen" = xyes; then : 11989 lt_cv_dlopen=dlopen 11990else 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11992$as_echo_n "checking for dlopen in -ldl... " >&6; } 11993if ${ac_cv_lib_dl_dlopen+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 ac_check_lib_save_LIBS=$LIBS 11997LIBS="-ldl $LIBS" 11998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11999/* end confdefs.h. */ 12000 12001/* Override any GCC internal prototype to avoid an error. 12002 Use char because int might match the return type of a GCC 12003 builtin and then its argument prototype would still apply. */ 12004#ifdef __cplusplus 12005extern "C" 12006#endif 12007char dlopen (); 12008int 12009main () 12010{ 12011return dlopen (); 12012 ; 12013 return 0; 12014} 12015_ACEOF 12016if ac_fn_c_try_link "$LINENO"; then : 12017 ac_cv_lib_dl_dlopen=yes 12018else 12019 ac_cv_lib_dl_dlopen=no 12020fi 12021rm -f core conftest.err conftest.$ac_objext \ 12022 conftest$ac_exeext conftest.$ac_ext 12023LIBS=$ac_check_lib_save_LIBS 12024fi 12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12026$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12027if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12029else 12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12031$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12032if ${ac_cv_lib_svld_dlopen+:} false; then : 12033 $as_echo_n "(cached) " >&6 12034else 12035 ac_check_lib_save_LIBS=$LIBS 12036LIBS="-lsvld $LIBS" 12037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039 12040/* Override any GCC internal prototype to avoid an error. 12041 Use char because int might match the return type of a GCC 12042 builtin and then its argument prototype would still apply. */ 12043#ifdef __cplusplus 12044extern "C" 12045#endif 12046char dlopen (); 12047int 12048main () 12049{ 12050return dlopen (); 12051 ; 12052 return 0; 12053} 12054_ACEOF 12055if ac_fn_c_try_link "$LINENO"; then : 12056 ac_cv_lib_svld_dlopen=yes 12057else 12058 ac_cv_lib_svld_dlopen=no 12059fi 12060rm -f core conftest.err conftest.$ac_objext \ 12061 conftest$ac_exeext conftest.$ac_ext 12062LIBS=$ac_check_lib_save_LIBS 12063fi 12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12065$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12066if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12067 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12068else 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12070$as_echo_n "checking for dld_link in -ldld... " >&6; } 12071if ${ac_cv_lib_dld_dld_link+:} false; then : 12072 $as_echo_n "(cached) " >&6 12073else 12074 ac_check_lib_save_LIBS=$LIBS 12075LIBS="-ldld $LIBS" 12076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12077/* end confdefs.h. */ 12078 12079/* Override any GCC internal prototype to avoid an error. 12080 Use char because int might match the return type of a GCC 12081 builtin and then its argument prototype would still apply. */ 12082#ifdef __cplusplus 12083extern "C" 12084#endif 12085char dld_link (); 12086int 12087main () 12088{ 12089return dld_link (); 12090 ; 12091 return 0; 12092} 12093_ACEOF 12094if ac_fn_c_try_link "$LINENO"; then : 12095 ac_cv_lib_dld_dld_link=yes 12096else 12097 ac_cv_lib_dld_dld_link=no 12098fi 12099rm -f core conftest.err conftest.$ac_objext \ 12100 conftest$ac_exeext conftest.$ac_ext 12101LIBS=$ac_check_lib_save_LIBS 12102fi 12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12104$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12105if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12106 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12107fi 12108 12109 12110fi 12111 12112 12113fi 12114 12115 12116fi 12117 12118 12119fi 12120 12121 12122fi 12123 12124 ;; 12125 esac 12126 12127 if test no = "$lt_cv_dlopen"; then 12128 enable_dlopen=no 12129 else 12130 enable_dlopen=yes 12131 fi 12132 12133 case $lt_cv_dlopen in 12134 dlopen) 12135 save_CPPFLAGS=$CPPFLAGS 12136 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12137 12138 save_LDFLAGS=$LDFLAGS 12139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12140 12141 save_LIBS=$LIBS 12142 LIBS="$lt_cv_dlopen_libs $LIBS" 12143 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12145$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12146if ${lt_cv_dlopen_self+:} false; then : 12147 $as_echo_n "(cached) " >&6 12148else 12149 if test yes = "$cross_compiling"; then : 12150 lt_cv_dlopen_self=cross 12151else 12152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12153 lt_status=$lt_dlunknown 12154 cat > conftest.$ac_ext <<_LT_EOF 12155#line $LINENO "configure" 12156#include "confdefs.h" 12157 12158#if HAVE_DLFCN_H 12159#include <dlfcn.h> 12160#endif 12161 12162#include <stdio.h> 12163 12164#ifdef RTLD_GLOBAL 12165# define LT_DLGLOBAL RTLD_GLOBAL 12166#else 12167# ifdef DL_GLOBAL 12168# define LT_DLGLOBAL DL_GLOBAL 12169# else 12170# define LT_DLGLOBAL 0 12171# endif 12172#endif 12173 12174/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12175 find out it does not work in some platform. */ 12176#ifndef LT_DLLAZY_OR_NOW 12177# ifdef RTLD_LAZY 12178# define LT_DLLAZY_OR_NOW RTLD_LAZY 12179# else 12180# ifdef DL_LAZY 12181# define LT_DLLAZY_OR_NOW DL_LAZY 12182# else 12183# ifdef RTLD_NOW 12184# define LT_DLLAZY_OR_NOW RTLD_NOW 12185# else 12186# ifdef DL_NOW 12187# define LT_DLLAZY_OR_NOW DL_NOW 12188# else 12189# define LT_DLLAZY_OR_NOW 0 12190# endif 12191# endif 12192# endif 12193# endif 12194#endif 12195 12196/* When -fvisibility=hidden is used, assume the code has been annotated 12197 correspondingly for the symbols needed. */ 12198#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12199int fnord () __attribute__((visibility("default"))); 12200#endif 12201 12202int fnord () { return 42; } 12203int main () 12204{ 12205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12206 int status = $lt_dlunknown; 12207 12208 if (self) 12209 { 12210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12211 else 12212 { 12213 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12214 else puts (dlerror ()); 12215 } 12216 /* dlclose (self); */ 12217 } 12218 else 12219 puts (dlerror ()); 12220 12221 return status; 12222} 12223_LT_EOF 12224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12225 (eval $ac_link) 2>&5 12226 ac_status=$? 12227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12228 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12229 (./conftest; exit; ) >&5 2>/dev/null 12230 lt_status=$? 12231 case x$lt_status in 12232 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12233 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12234 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12235 esac 12236 else : 12237 # compilation failed 12238 lt_cv_dlopen_self=no 12239 fi 12240fi 12241rm -fr conftest* 12242 12243 12244fi 12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12246$as_echo "$lt_cv_dlopen_self" >&6; } 12247 12248 if test yes = "$lt_cv_dlopen_self"; then 12249 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12251$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12252if ${lt_cv_dlopen_self_static+:} false; then : 12253 $as_echo_n "(cached) " >&6 12254else 12255 if test yes = "$cross_compiling"; then : 12256 lt_cv_dlopen_self_static=cross 12257else 12258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12259 lt_status=$lt_dlunknown 12260 cat > conftest.$ac_ext <<_LT_EOF 12261#line $LINENO "configure" 12262#include "confdefs.h" 12263 12264#if HAVE_DLFCN_H 12265#include <dlfcn.h> 12266#endif 12267 12268#include <stdio.h> 12269 12270#ifdef RTLD_GLOBAL 12271# define LT_DLGLOBAL RTLD_GLOBAL 12272#else 12273# ifdef DL_GLOBAL 12274# define LT_DLGLOBAL DL_GLOBAL 12275# else 12276# define LT_DLGLOBAL 0 12277# endif 12278#endif 12279 12280/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12281 find out it does not work in some platform. */ 12282#ifndef LT_DLLAZY_OR_NOW 12283# ifdef RTLD_LAZY 12284# define LT_DLLAZY_OR_NOW RTLD_LAZY 12285# else 12286# ifdef DL_LAZY 12287# define LT_DLLAZY_OR_NOW DL_LAZY 12288# else 12289# ifdef RTLD_NOW 12290# define LT_DLLAZY_OR_NOW RTLD_NOW 12291# else 12292# ifdef DL_NOW 12293# define LT_DLLAZY_OR_NOW DL_NOW 12294# else 12295# define LT_DLLAZY_OR_NOW 0 12296# endif 12297# endif 12298# endif 12299# endif 12300#endif 12301 12302/* When -fvisibility=hidden is used, assume the code has been annotated 12303 correspondingly for the symbols needed. */ 12304#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12305int fnord () __attribute__((visibility("default"))); 12306#endif 12307 12308int fnord () { return 42; } 12309int main () 12310{ 12311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12312 int status = $lt_dlunknown; 12313 12314 if (self) 12315 { 12316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12317 else 12318 { 12319 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12320 else puts (dlerror ()); 12321 } 12322 /* dlclose (self); */ 12323 } 12324 else 12325 puts (dlerror ()); 12326 12327 return status; 12328} 12329_LT_EOF 12330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12331 (eval $ac_link) 2>&5 12332 ac_status=$? 12333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12334 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12335 (./conftest; exit; ) >&5 2>/dev/null 12336 lt_status=$? 12337 case x$lt_status in 12338 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12339 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12340 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12341 esac 12342 else : 12343 # compilation failed 12344 lt_cv_dlopen_self_static=no 12345 fi 12346fi 12347rm -fr conftest* 12348 12349 12350fi 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12352$as_echo "$lt_cv_dlopen_self_static" >&6; } 12353 fi 12354 12355 CPPFLAGS=$save_CPPFLAGS 12356 LDFLAGS=$save_LDFLAGS 12357 LIBS=$save_LIBS 12358 ;; 12359 esac 12360 12361 case $lt_cv_dlopen_self in 12362 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12363 *) enable_dlopen_self=unknown ;; 12364 esac 12365 12366 case $lt_cv_dlopen_self_static in 12367 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12368 *) enable_dlopen_self_static=unknown ;; 12369 esac 12370fi 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388striplib= 12389old_striplib= 12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12391$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12392if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12393 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12394 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12396$as_echo "yes" >&6; } 12397else 12398# FIXME - insert some real tests, host_os isn't really good enough 12399 case $host_os in 12400 darwin*) 12401 if test -n "$STRIP"; then 12402 striplib="$STRIP -x" 12403 old_striplib="$STRIP -S" 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12405$as_echo "yes" >&6; } 12406 else 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12408$as_echo "no" >&6; } 12409 fi 12410 ;; 12411 *) 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12413$as_echo "no" >&6; } 12414 ;; 12415 esac 12416fi 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 # Report what library types will actually be built 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12431$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12433$as_echo "$can_build_shared" >&6; } 12434 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12436$as_echo_n "checking whether to build shared libraries... " >&6; } 12437 test no = "$can_build_shared" && enable_shared=no 12438 12439 # On AIX, shared libraries and static libraries use the same namespace, and 12440 # are all built from PIC. 12441 case $host_os in 12442 aix3*) 12443 test yes = "$enable_shared" && enable_static=no 12444 if test -n "$RANLIB"; then 12445 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12446 postinstall_cmds='$RANLIB $lib' 12447 fi 12448 ;; 12449 12450 aix[4-9]*) 12451 if test ia64 != "$host_cpu"; then 12452 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12453 yes,aix,yes) ;; # shared object as lib.so file only 12454 yes,svr4,*) ;; # shared object as lib.so archive member only 12455 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12456 esac 12457 fi 12458 ;; 12459 esac 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12461$as_echo "$enable_shared" >&6; } 12462 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12464$as_echo_n "checking whether to build static libraries... " >&6; } 12465 # Make sure either enable_shared or enable_static is yes. 12466 test yes = "$enable_shared" || enable_static=yes 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12468$as_echo "$enable_static" >&6; } 12469 12470 12471 12472 12473fi 12474ac_ext=c 12475ac_cpp='$CPP $CPPFLAGS' 12476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12478ac_compiler_gnu=$ac_cv_c_compiler_gnu 12479 12480CC=$lt_save_CC 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 ac_config_commands="$ac_config_commands libtool" 12497 12498 12499 12500 12501# Only expand once: 12502 12503 12504 12505# other programs 12506 12507 12508LIB_MAJ=2 12509 12510 12511cat >>confdefs.h <<_ACEOF 12512#define LIB_MAJ $LIB_MAJ 12513_ACEOF 12514 12515 12516# Check whether --enable-debug was given. 12517if test "${enable_debug+set}" = set; then : 12518 enableval=$enable_debug; 12519$as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h 12520 12521fi 12522 12523 12524# Check whether --enable-unversioned-modules was given. 12525if test "${enable_unversioned_modules+set}" = set; then : 12526 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then : 12527 12528 12529$as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h 12530 12531 12532fi 12533fi 12534 12535 12536 12537# Check whether --with-modules-dir was given. 12538if test "${with_modules_dir+set}" = set; then : 12539 withval=$with_modules_dir; if test x"$withval" != x"no"; then : 12540 12541 OPENPAM_MODULES_DIR="$withval" 12542 12543cat >>confdefs.h <<_ACEOF 12544#define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}" 12545_ACEOF 12546 12547 12548fi 12549fi 12550 12551 12552 if test x"$OPENPAM_MODULES_DIR" != x""; then 12553 CUSTOM_MODULES_DIR_TRUE= 12554 CUSTOM_MODULES_DIR_FALSE='#' 12555else 12556 CUSTOM_MODULES_DIR_TRUE='#' 12557 CUSTOM_MODULES_DIR_FALSE= 12558fi 12559 12560 12561 12562# Check whether --with-doc was given. 12563if test "${with_doc+set}" = set; then : 12564 withval=$with_doc; 12565else 12566 with_doc=yes 12567fi 12568 12569 if test x"$with_doc" = x"yes"; then 12570 WITH_DOC_TRUE= 12571 WITH_DOC_FALSE='#' 12572else 12573 WITH_DOC_TRUE='#' 12574 WITH_DOC_FALSE= 12575fi 12576 12577 12578 12579# Check whether --with-pam-unix was given. 12580if test "${with_pam_unix+set}" = set; then : 12581 withval=$with_pam_unix; 12582else 12583 with_pam_unix=no 12584fi 12585 12586 if test x"$with_pam_unix" = x"yes"; then 12587 WITH_PAM_UNIX_TRUE= 12588 WITH_PAM_UNIX_FALSE='#' 12589else 12590 WITH_PAM_UNIX_TRUE='#' 12591 WITH_PAM_UNIX_FALSE= 12592fi 12593 12594 12595 12596# Check whether --with-pamtest was given. 12597if test "${with_pamtest+set}" = set; then : 12598 withval=$with_pamtest; 12599else 12600 with_pamtest=no 12601fi 12602 12603 if test x"$with_pamtest" = x"yes"; then 12604 WITH_PAMTEST_TRUE= 12605 WITH_PAMTEST_FALSE='#' 12606else 12607 WITH_PAMTEST_TRUE='#' 12608 WITH_PAMTEST_FALSE= 12609fi 12610 12611 12612 12613# Check whether --with-su was given. 12614if test "${with_su+set}" = set; then : 12615 withval=$with_su; 12616else 12617 with_su=no 12618fi 12619 12620 if test x"$with_su" = x"yes"; then 12621 WITH_SU_TRUE= 12622 WITH_SU_FALSE='#' 12623else 12624 WITH_SU_TRUE='#' 12625 WITH_SU_FALSE= 12626fi 12627 12628 12629 12630# Check whether --with-system-libpam was given. 12631if test "${with_system_libpam+set}" = set; then : 12632 withval=$with_system_libpam; 12633else 12634 with_system_libpam=no 12635fi 12636 12637 if test x"$with_system_libpam" = x"yes"; then 12638 WITH_SYSTEM_LIBPAM_TRUE= 12639 WITH_SYSTEM_LIBPAM_FALSE='#' 12640else 12641 WITH_SYSTEM_LIBPAM_TRUE='#' 12642 WITH_SYSTEM_LIBPAM_FALSE= 12643fi 12644 12645 12646for ac_header in crypt.h 12647do : 12648 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 12649if test "x$ac_cv_header_crypt_h" = xyes; then : 12650 cat >>confdefs.h <<_ACEOF 12651#define HAVE_CRYPT_H 1 12652_ACEOF 12653 12654fi 12655 12656done 12657 12658 12659for ac_func in asprintf vasprintf 12660do : 12661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12662ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12663if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12664 cat >>confdefs.h <<_ACEOF 12665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12666_ACEOF 12667 12668fi 12669done 12670 12671for ac_func in dlfunc fdlopen 12672do : 12673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12674ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12675if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12676 cat >>confdefs.h <<_ACEOF 12677#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12678_ACEOF 12679 12680fi 12681done 12682 12683for ac_func in fpurge 12684do : 12685 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge" 12686if test "x$ac_cv_func_fpurge" = xyes; then : 12687 cat >>confdefs.h <<_ACEOF 12688#define HAVE_FPURGE 1 12689_ACEOF 12690 12691fi 12692done 12693 12694for ac_func in setlogmask 12695do : 12696 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask" 12697if test "x$ac_cv_func_setlogmask" = xyes; then : 12698 cat >>confdefs.h <<_ACEOF 12699#define HAVE_SETLOGMASK 1 12700_ACEOF 12701 12702fi 12703done 12704 12705for ac_func in strlcat strlcmp strlcpy strlset 12706do : 12707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12708ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12709if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12710 cat >>confdefs.h <<_ACEOF 12711#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12712_ACEOF 12713 12714fi 12715done 12716 12717 12718saved_LIBS="${LIBS}" 12719LIBS="" 12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12721$as_echo_n "checking for dlopen in -ldl... " >&6; } 12722if ${ac_cv_lib_dl_dlopen+:} false; then : 12723 $as_echo_n "(cached) " >&6 12724else 12725 ac_check_lib_save_LIBS=$LIBS 12726LIBS="-ldl $LIBS" 12727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12728/* end confdefs.h. */ 12729 12730/* Override any GCC internal prototype to avoid an error. 12731 Use char because int might match the return type of a GCC 12732 builtin and then its argument prototype would still apply. */ 12733#ifdef __cplusplus 12734extern "C" 12735#endif 12736char dlopen (); 12737int 12738main () 12739{ 12740return dlopen (); 12741 ; 12742 return 0; 12743} 12744_ACEOF 12745if ac_fn_c_try_link "$LINENO"; then : 12746 ac_cv_lib_dl_dlopen=yes 12747else 12748 ac_cv_lib_dl_dlopen=no 12749fi 12750rm -f core conftest.err conftest.$ac_objext \ 12751 conftest$ac_exeext conftest.$ac_ext 12752LIBS=$ac_check_lib_save_LIBS 12753fi 12754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12755$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12756if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12757 cat >>confdefs.h <<_ACEOF 12758#define HAVE_LIBDL 1 12759_ACEOF 12760 12761 LIBS="-ldl $LIBS" 12762 12763fi 12764 12765DL_LIBS="${LIBS}" 12766LIBS="${saved_LIBS}" 12767 12768 12769saved_LIBS="${LIBS}" 12770LIBS="" 12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 12772$as_echo_n "checking for crypt in -lcrypt... " >&6; } 12773if ${ac_cv_lib_crypt_crypt+:} false; then : 12774 $as_echo_n "(cached) " >&6 12775else 12776 ac_check_lib_save_LIBS=$LIBS 12777LIBS="-lcrypt $LIBS" 12778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12779/* end confdefs.h. */ 12780 12781/* Override any GCC internal prototype to avoid an error. 12782 Use char because int might match the return type of a GCC 12783 builtin and then its argument prototype would still apply. */ 12784#ifdef __cplusplus 12785extern "C" 12786#endif 12787char crypt (); 12788int 12789main () 12790{ 12791return crypt (); 12792 ; 12793 return 0; 12794} 12795_ACEOF 12796if ac_fn_c_try_link "$LINENO"; then : 12797 ac_cv_lib_crypt_crypt=yes 12798else 12799 ac_cv_lib_crypt_crypt=no 12800fi 12801rm -f core conftest.err conftest.$ac_objext \ 12802 conftest$ac_exeext conftest.$ac_ext 12803LIBS=$ac_check_lib_save_LIBS 12804fi 12805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 12806$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 12807if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 12808 cat >>confdefs.h <<_ACEOF 12809#define HAVE_LIBCRYPT 1 12810_ACEOF 12811 12812 LIBS="-lcrypt $LIBS" 12813 12814fi 12815 12816CRYPT_LIBS="${LIBS}" 12817LIBS="${saved_LIBS}" 12818 12819 12820saved_LIBS="${LIBS}" 12821LIBS="" 12822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 12823$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 12824if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then : 12825 $as_echo_n "(cached) " >&6 12826else 12827 ac_check_lib_save_LIBS=$LIBS 12828LIBS="-lcrypto $LIBS" 12829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12830/* end confdefs.h. */ 12831 12832/* Override any GCC internal prototype to avoid an error. 12833 Use char because int might match the return type of a GCC 12834 builtin and then its argument prototype would still apply. */ 12835#ifdef __cplusplus 12836extern "C" 12837#endif 12838char HMAC_CTX_init (); 12839int 12840main () 12841{ 12842return HMAC_CTX_init (); 12843 ; 12844 return 0; 12845} 12846_ACEOF 12847if ac_fn_c_try_link "$LINENO"; then : 12848 ac_cv_lib_crypto_HMAC_CTX_init=yes 12849else 12850 ac_cv_lib_crypto_HMAC_CTX_init=no 12851fi 12852rm -f core conftest.err conftest.$ac_objext \ 12853 conftest$ac_exeext conftest.$ac_ext 12854LIBS=$ac_check_lib_save_LIBS 12855fi 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5 12857$as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; } 12858if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then : 12859 cat >>confdefs.h <<_ACEOF 12860#define HAVE_LIBCRYPTO 1 12861_ACEOF 12862 12863 LIBS="-lcrypto $LIBS" 12864 12865fi 12866 12867CRYPTO_LIBS="${LIBS}" 12868LIBS="${saved_LIBS}" 12869 12870 12871saved_LIBS="${LIBS}" 12872LIBS="" 12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 12874$as_echo_n "checking for pam_start in -lpam... " >&6; } 12875if ${ac_cv_lib_pam_pam_start+:} false; then : 12876 $as_echo_n "(cached) " >&6 12877else 12878 ac_check_lib_save_LIBS=$LIBS 12879LIBS="-lpam $LIBS" 12880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12881/* end confdefs.h. */ 12882 12883/* Override any GCC internal prototype to avoid an error. 12884 Use char because int might match the return type of a GCC 12885 builtin and then its argument prototype would still apply. */ 12886#ifdef __cplusplus 12887extern "C" 12888#endif 12889char pam_start (); 12890int 12891main () 12892{ 12893return pam_start (); 12894 ; 12895 return 0; 12896} 12897_ACEOF 12898if ac_fn_c_try_link "$LINENO"; then : 12899 ac_cv_lib_pam_pam_start=yes 12900else 12901 ac_cv_lib_pam_pam_start=no 12902fi 12903rm -f core conftest.err conftest.$ac_objext \ 12904 conftest$ac_exeext conftest.$ac_ext 12905LIBS=$ac_check_lib_save_LIBS 12906fi 12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 12908$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 12909if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 12910 cat >>confdefs.h <<_ACEOF 12911#define HAVE_LIBPAM 1 12912_ACEOF 12913 12914 LIBS="-lpam $LIBS" 12915 12916fi 12917 12918SYSTEM_LIBPAM="${LIBS}" 12919LIBS="${saved_LIBS}" 12920 12921 12922save_LIBS="${LIBS}" 12923LIBS="" 12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cryb_test_version" >&5 12925$as_echo_n "checking for library containing cryb_test_version... " >&6; } 12926if ${ac_cv_search_cryb_test_version+:} false; then : 12927 $as_echo_n "(cached) " >&6 12928else 12929 ac_func_search_save_LIBS=$LIBS 12930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12931/* end confdefs.h. */ 12932 12933/* Override any GCC internal prototype to avoid an error. 12934 Use char because int might match the return type of a GCC 12935 builtin and then its argument prototype would still apply. */ 12936#ifdef __cplusplus 12937extern "C" 12938#endif 12939char cryb_test_version (); 12940int 12941main () 12942{ 12943return cryb_test_version (); 12944 ; 12945 return 0; 12946} 12947_ACEOF 12948for ac_lib in '' cryb-test; do 12949 if test -z "$ac_lib"; then 12950 ac_res="none required" 12951 else 12952 ac_res=-l$ac_lib 12953 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12954 fi 12955 if ac_fn_c_try_link "$LINENO"; then : 12956 ac_cv_search_cryb_test_version=$ac_res 12957fi 12958rm -f core conftest.err conftest.$ac_objext \ 12959 conftest$ac_exeext 12960 if ${ac_cv_search_cryb_test_version+:} false; then : 12961 break 12962fi 12963done 12964if ${ac_cv_search_cryb_test_version+:} false; then : 12965 12966else 12967 ac_cv_search_cryb_test_version=no 12968fi 12969rm conftest.$ac_ext 12970LIBS=$ac_func_search_save_LIBS 12971fi 12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cryb_test_version" >&5 12973$as_echo "$ac_cv_search_cryb_test_version" >&6; } 12974ac_res=$ac_cv_search_cryb_test_version 12975if test "$ac_res" != no; then : 12976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12977 12978 CRYB_TEST_LIBS="${LIBS}" 12979 12980else 12981 12982 CRYB_TEST_LIBS="" 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cryb-test library not available, unit tests disabled" >&5 12984$as_echo "$as_me: WARNING: cryb-test library not available, unit tests disabled" >&2;} 12985 12986fi 12987 12988LIBS="${save_LIBS}" 12989 12990 if test x"$CRYB_TEST_LIBS" != x"" ; then 12991 WITH_TEST_TRUE= 12992 WITH_TEST_FALSE='#' 12993else 12994 WITH_TEST_TRUE='#' 12995 WITH_TEST_FALSE= 12996fi 12997 12998 12999# Check whether --enable-developer-warnings was given. 13000if test "${enable_developer_warnings+set}" = set; then : 13001 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual" 13002fi 13003 13004# Check whether --enable-debugging-symbols was given. 13005if test "${enable_debugging_symbols+set}" = set; then : 13006 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline" 13007fi 13008 13009# Check whether --enable-werror was given. 13010if test "${enable_werror+set}" = set; then : 13011 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror" 13012fi 13013 13014 13015ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile misc/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_return/Makefile modules/pam_unix/Makefile t/Makefile" 13016 13017ac_config_files="$ac_config_files mkpkgng" 13018 13019ac_config_files="$ac_config_files misc/coverage.sh" 13020 13021ac_config_files="$ac_config_files misc/coverity.sh" 13022 13023cat >confcache <<\_ACEOF 13024# This file is a shell script that caches the results of configure 13025# tests run on this system so they can be shared between configure 13026# scripts and configure runs, see configure's option --config-cache. 13027# It is not useful on other systems. If it contains results you don't 13028# want to keep, you may remove or edit it. 13029# 13030# config.status only pays attention to the cache file if you give it 13031# the --recheck option to rerun configure. 13032# 13033# `ac_cv_env_foo' variables (set or unset) will be overridden when 13034# loading this file, other *unset* `ac_cv_foo' will be assigned the 13035# following values. 13036 13037_ACEOF 13038 13039# The following way of writing the cache mishandles newlines in values, 13040# but we know of no workaround that is simple, portable, and efficient. 13041# So, we kill variables containing newlines. 13042# Ultrix sh set writes to stderr and can't be redirected directly, 13043# and sets the high bit in the cache file unless we assign to the vars. 13044( 13045 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13046 eval ac_val=\$$ac_var 13047 case $ac_val in #( 13048 *${as_nl}*) 13049 case $ac_var in #( 13050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13051$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13052 esac 13053 case $ac_var in #( 13054 _ | IFS | as_nl) ;; #( 13055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13056 *) { eval $ac_var=; unset $ac_var;} ;; 13057 esac ;; 13058 esac 13059 done 13060 13061 (set) 2>&1 | 13062 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13063 *${as_nl}ac_space=\ *) 13064 # `set' does not quote correctly, so add quotes: double-quote 13065 # substitution turns \\\\ into \\, and sed turns \\ into \. 13066 sed -n \ 13067 "s/'/'\\\\''/g; 13068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13069 ;; #( 13070 *) 13071 # `set' quotes correctly as required by POSIX, so do not add quotes. 13072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13073 ;; 13074 esac | 13075 sort 13076) | 13077 sed ' 13078 /^ac_cv_env_/b end 13079 t clear 13080 :clear 13081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13082 t end 13083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13084 :end' >>confcache 13085if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13086 if test -w "$cache_file"; then 13087 if test "x$cache_file" != "x/dev/null"; then 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13089$as_echo "$as_me: updating cache $cache_file" >&6;} 13090 if test ! -f "$cache_file" || test -h "$cache_file"; then 13091 cat confcache >"$cache_file" 13092 else 13093 case $cache_file in #( 13094 */* | ?:*) 13095 mv -f confcache "$cache_file"$$ && 13096 mv -f "$cache_file"$$ "$cache_file" ;; #( 13097 *) 13098 mv -f confcache "$cache_file" ;; 13099 esac 13100 fi 13101 fi 13102 else 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13104$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13105 fi 13106fi 13107rm -f confcache 13108 13109test "x$prefix" = xNONE && prefix=$ac_default_prefix 13110# Let make expand exec_prefix. 13111test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13112 13113DEFS=-DHAVE_CONFIG_H 13114 13115ac_libobjs= 13116ac_ltlibobjs= 13117for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13118 # 1. Remove the extension, and $U if already installed. 13119 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13120 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13121 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13122 # will be set to the directory where LIBOBJS objects are built. 13123 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13124 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13125done 13126LIBOBJS=$ac_libobjs 13127 13128LTLIBOBJS=$ac_ltlibobjs 13129 13130 13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13132$as_echo_n "checking that generated files are newer than configure... " >&6; } 13133 if test -n "$am_sleep_pid"; then 13134 # Hide warnings about reused PIDs. 13135 wait $am_sleep_pid 2>/dev/null 13136 fi 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13138$as_echo "done" >&6; } 13139 if test -n "$EXEEXT"; then 13140 am__EXEEXT_TRUE= 13141 am__EXEEXT_FALSE='#' 13142else 13143 am__EXEEXT_TRUE='#' 13144 am__EXEEXT_FALSE= 13145fi 13146 13147if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13148 as_fn_error $? "conditional \"AMDEP\" was never defined. 13149Usually this means the macro was only invoked conditionally." "$LINENO" 5 13150fi 13151if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13152 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13153Usually this means the macro was only invoked conditionally." "$LINENO" 5 13154fi 13155if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then 13156 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined. 13157Usually this means the macro was only invoked conditionally." "$LINENO" 5 13158fi 13159if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then 13160 as_fn_error $? "conditional \"WITH_DOC\" was never defined. 13161Usually this means the macro was only invoked conditionally." "$LINENO" 5 13162fi 13163if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then 13164 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined. 13165Usually this means the macro was only invoked conditionally." "$LINENO" 5 13166fi 13167if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then 13168 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined. 13169Usually this means the macro was only invoked conditionally." "$LINENO" 5 13170fi 13171if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then 13172 as_fn_error $? "conditional \"WITH_SU\" was never defined. 13173Usually this means the macro was only invoked conditionally." "$LINENO" 5 13174fi 13175if test -z "${WITH_SYSTEM_LIBPAM_TRUE}" && test -z "${WITH_SYSTEM_LIBPAM_FALSE}"; then 13176 as_fn_error $? "conditional \"WITH_SYSTEM_LIBPAM\" was never defined. 13177Usually this means the macro was only invoked conditionally." "$LINENO" 5 13178fi 13179if test -z "${WITH_TEST_TRUE}" && test -z "${WITH_TEST_FALSE}"; then 13180 as_fn_error $? "conditional \"WITH_TEST\" was never defined. 13181Usually this means the macro was only invoked conditionally." "$LINENO" 5 13182fi 13183 13184: "${CONFIG_STATUS=./config.status}" 13185ac_write_fail=0 13186ac_clean_files_save=$ac_clean_files 13187ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13189$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13190as_write_fail=0 13191cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13192#! $SHELL 13193# Generated by $as_me. 13194# Run this file to recreate the current configuration. 13195# Compiler output produced by configure, useful for debugging 13196# configure, is in config.log if it exists. 13197 13198debug=false 13199ac_cs_recheck=false 13200ac_cs_silent=false 13201 13202SHELL=\${CONFIG_SHELL-$SHELL} 13203export SHELL 13204_ASEOF 13205cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13206## -------------------- ## 13207## M4sh Initialization. ## 13208## -------------------- ## 13209 13210# Be more Bourne compatible 13211DUALCASE=1; export DUALCASE # for MKS sh 13212if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13213 emulate sh 13214 NULLCMD=: 13215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13216 # is contrary to our usage. Disable this feature. 13217 alias -g '${1+"$@"}'='"$@"' 13218 setopt NO_GLOB_SUBST 13219else 13220 case `(set -o) 2>/dev/null` in #( 13221 *posix*) : 13222 set -o posix ;; #( 13223 *) : 13224 ;; 13225esac 13226fi 13227 13228 13229as_nl=' 13230' 13231export as_nl 13232# Printing a long string crashes Solaris 7 /usr/bin/printf. 13233as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13234as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13235as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13236# Prefer a ksh shell builtin over an external printf program on Solaris, 13237# but without wasting forks for bash or zsh. 13238if test -z "$BASH_VERSION$ZSH_VERSION" \ 13239 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13240 as_echo='print -r --' 13241 as_echo_n='print -rn --' 13242elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13243 as_echo='printf %s\n' 13244 as_echo_n='printf %s' 13245else 13246 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13247 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13248 as_echo_n='/usr/ucb/echo -n' 13249 else 13250 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13251 as_echo_n_body='eval 13252 arg=$1; 13253 case $arg in #( 13254 *"$as_nl"*) 13255 expr "X$arg" : "X\\(.*\\)$as_nl"; 13256 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13257 esac; 13258 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13259 ' 13260 export as_echo_n_body 13261 as_echo_n='sh -c $as_echo_n_body as_echo' 13262 fi 13263 export as_echo_body 13264 as_echo='sh -c $as_echo_body as_echo' 13265fi 13266 13267# The user is always right. 13268if test "${PATH_SEPARATOR+set}" != set; then 13269 PATH_SEPARATOR=: 13270 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13271 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13272 PATH_SEPARATOR=';' 13273 } 13274fi 13275 13276 13277# IFS 13278# We need space, tab and new line, in precisely that order. Quoting is 13279# there to prevent editors from complaining about space-tab. 13280# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13281# splitting by setting IFS to empty value.) 13282IFS=" "" $as_nl" 13283 13284# Find who we are. Look in the path if we contain no directory separator. 13285as_myself= 13286case $0 in #(( 13287 *[\\/]* ) as_myself=$0 ;; 13288 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13289for as_dir in $PATH 13290do 13291 IFS=$as_save_IFS 13292 test -z "$as_dir" && as_dir=. 13293 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13294 done 13295IFS=$as_save_IFS 13296 13297 ;; 13298esac 13299# We did not find ourselves, most probably we were run as `sh COMMAND' 13300# in which case we are not to be found in the path. 13301if test "x$as_myself" = x; then 13302 as_myself=$0 13303fi 13304if test ! -f "$as_myself"; then 13305 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13306 exit 1 13307fi 13308 13309# Unset variables that we do not need and which cause bugs (e.g. in 13310# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13311# suppresses any "Segmentation fault" message there. '((' could 13312# trigger a bug in pdksh 5.2.14. 13313for as_var in BASH_ENV ENV MAIL MAILPATH 13314do eval test x\${$as_var+set} = xset \ 13315 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13316done 13317PS1='$ ' 13318PS2='> ' 13319PS4='+ ' 13320 13321# NLS nuisances. 13322LC_ALL=C 13323export LC_ALL 13324LANGUAGE=C 13325export LANGUAGE 13326 13327# CDPATH. 13328(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13329 13330 13331# as_fn_error STATUS ERROR [LINENO LOG_FD] 13332# ---------------------------------------- 13333# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13334# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13335# script with STATUS, using 1 if that was 0. 13336as_fn_error () 13337{ 13338 as_status=$1; test $as_status -eq 0 && as_status=1 13339 if test "$4"; then 13340 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13341 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13342 fi 13343 $as_echo "$as_me: error: $2" >&2 13344 as_fn_exit $as_status 13345} # as_fn_error 13346 13347 13348# as_fn_set_status STATUS 13349# ----------------------- 13350# Set $? to STATUS, without forking. 13351as_fn_set_status () 13352{ 13353 return $1 13354} # as_fn_set_status 13355 13356# as_fn_exit STATUS 13357# ----------------- 13358# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13359as_fn_exit () 13360{ 13361 set +e 13362 as_fn_set_status $1 13363 exit $1 13364} # as_fn_exit 13365 13366# as_fn_unset VAR 13367# --------------- 13368# Portably unset VAR. 13369as_fn_unset () 13370{ 13371 { eval $1=; unset $1;} 13372} 13373as_unset=as_fn_unset 13374# as_fn_append VAR VALUE 13375# ---------------------- 13376# Append the text in VALUE to the end of the definition contained in VAR. Take 13377# advantage of any shell optimizations that allow amortized linear growth over 13378# repeated appends, instead of the typical quadratic growth present in naive 13379# implementations. 13380if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13381 eval 'as_fn_append () 13382 { 13383 eval $1+=\$2 13384 }' 13385else 13386 as_fn_append () 13387 { 13388 eval $1=\$$1\$2 13389 } 13390fi # as_fn_append 13391 13392# as_fn_arith ARG... 13393# ------------------ 13394# Perform arithmetic evaluation on the ARGs, and store the result in the 13395# global $as_val. Take advantage of shells that can avoid forks. The arguments 13396# must be portable across $(()) and expr. 13397if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13398 eval 'as_fn_arith () 13399 { 13400 as_val=$(( $* )) 13401 }' 13402else 13403 as_fn_arith () 13404 { 13405 as_val=`expr "$@" || test $? -eq 1` 13406 } 13407fi # as_fn_arith 13408 13409 13410if expr a : '\(a\)' >/dev/null 2>&1 && 13411 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13412 as_expr=expr 13413else 13414 as_expr=false 13415fi 13416 13417if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13418 as_basename=basename 13419else 13420 as_basename=false 13421fi 13422 13423if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13424 as_dirname=dirname 13425else 13426 as_dirname=false 13427fi 13428 13429as_me=`$as_basename -- "$0" || 13430$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13431 X"$0" : 'X\(//\)$' \| \ 13432 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13433$as_echo X/"$0" | 13434 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13435 s//\1/ 13436 q 13437 } 13438 /^X\/\(\/\/\)$/{ 13439 s//\1/ 13440 q 13441 } 13442 /^X\/\(\/\).*/{ 13443 s//\1/ 13444 q 13445 } 13446 s/.*/./; q'` 13447 13448# Avoid depending upon Character Ranges. 13449as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13450as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13451as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13452as_cr_digits='0123456789' 13453as_cr_alnum=$as_cr_Letters$as_cr_digits 13454 13455ECHO_C= ECHO_N= ECHO_T= 13456case `echo -n x` in #((((( 13457-n*) 13458 case `echo 'xy\c'` in 13459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13460 xy) ECHO_C='\c';; 13461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13462 ECHO_T=' ';; 13463 esac;; 13464*) 13465 ECHO_N='-n';; 13466esac 13467 13468rm -f conf$$ conf$$.exe conf$$.file 13469if test -d conf$$.dir; then 13470 rm -f conf$$.dir/conf$$.file 13471else 13472 rm -f conf$$.dir 13473 mkdir conf$$.dir 2>/dev/null 13474fi 13475if (echo >conf$$.file) 2>/dev/null; then 13476 if ln -s conf$$.file conf$$ 2>/dev/null; then 13477 as_ln_s='ln -s' 13478 # ... but there are two gotchas: 13479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13481 # In both cases, we have to default to `cp -pR'. 13482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13483 as_ln_s='cp -pR' 13484 elif ln conf$$.file conf$$ 2>/dev/null; then 13485 as_ln_s=ln 13486 else 13487 as_ln_s='cp -pR' 13488 fi 13489else 13490 as_ln_s='cp -pR' 13491fi 13492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13493rmdir conf$$.dir 2>/dev/null 13494 13495 13496# as_fn_mkdir_p 13497# ------------- 13498# Create "$as_dir" as a directory, including parents if necessary. 13499as_fn_mkdir_p () 13500{ 13501 13502 case $as_dir in #( 13503 -*) as_dir=./$as_dir;; 13504 esac 13505 test -d "$as_dir" || eval $as_mkdir_p || { 13506 as_dirs= 13507 while :; do 13508 case $as_dir in #( 13509 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13510 *) as_qdir=$as_dir;; 13511 esac 13512 as_dirs="'$as_qdir' $as_dirs" 13513 as_dir=`$as_dirname -- "$as_dir" || 13514$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13515 X"$as_dir" : 'X\(//\)[^/]' \| \ 13516 X"$as_dir" : 'X\(//\)$' \| \ 13517 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13518$as_echo X"$as_dir" | 13519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13520 s//\1/ 13521 q 13522 } 13523 /^X\(\/\/\)[^/].*/{ 13524 s//\1/ 13525 q 13526 } 13527 /^X\(\/\/\)$/{ 13528 s//\1/ 13529 q 13530 } 13531 /^X\(\/\).*/{ 13532 s//\1/ 13533 q 13534 } 13535 s/.*/./; q'` 13536 test -d "$as_dir" && break 13537 done 13538 test -z "$as_dirs" || eval "mkdir $as_dirs" 13539 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13540 13541 13542} # as_fn_mkdir_p 13543if mkdir -p . 2>/dev/null; then 13544 as_mkdir_p='mkdir -p "$as_dir"' 13545else 13546 test -d ./-p && rmdir ./-p 13547 as_mkdir_p=false 13548fi 13549 13550 13551# as_fn_executable_p FILE 13552# ----------------------- 13553# Test if FILE is an executable regular file. 13554as_fn_executable_p () 13555{ 13556 test -f "$1" && test -x "$1" 13557} # as_fn_executable_p 13558as_test_x='test -x' 13559as_executable_p=as_fn_executable_p 13560 13561# Sed expression to map a string onto a valid CPP name. 13562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13563 13564# Sed expression to map a string onto a valid variable name. 13565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13566 13567 13568exec 6>&1 13569## ----------------------------------- ## 13570## Main body of $CONFIG_STATUS script. ## 13571## ----------------------------------- ## 13572_ASEOF 13573test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13574 13575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13576# Save the log message, to keep $0 and so on meaningful, and to 13577# report actual input values of CONFIG_FILES etc. instead of their 13578# values after options handling. 13579ac_log=" 13580This file was extended by OpenPAM $as_me 20170219, which was 13581generated by GNU Autoconf 2.69. Invocation command line was 13582 13583 CONFIG_FILES = $CONFIG_FILES 13584 CONFIG_HEADERS = $CONFIG_HEADERS 13585 CONFIG_LINKS = $CONFIG_LINKS 13586 CONFIG_COMMANDS = $CONFIG_COMMANDS 13587 $ $0 $@ 13588 13589on `(hostname || uname -n) 2>/dev/null | sed 1q` 13590" 13591 13592_ACEOF 13593 13594case $ac_config_files in *" 13595"*) set x $ac_config_files; shift; ac_config_files=$*;; 13596esac 13597 13598case $ac_config_headers in *" 13599"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13600esac 13601 13602 13603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13604# Files that config.status was made for. 13605config_files="$ac_config_files" 13606config_headers="$ac_config_headers" 13607config_commands="$ac_config_commands" 13608 13609_ACEOF 13610 13611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13612ac_cs_usage="\ 13613\`$as_me' instantiates files and other configuration actions 13614from templates according to the current configuration. Unless the files 13615and actions are specified as TAGs, all are instantiated by default. 13616 13617Usage: $0 [OPTION]... [TAG]... 13618 13619 -h, --help print this help, then exit 13620 -V, --version print version number and configuration settings, then exit 13621 --config print configuration, then exit 13622 -q, --quiet, --silent 13623 do not print progress messages 13624 -d, --debug don't remove temporary files 13625 --recheck update $as_me by reconfiguring in the same conditions 13626 --file=FILE[:TEMPLATE] 13627 instantiate the configuration file FILE 13628 --header=FILE[:TEMPLATE] 13629 instantiate the configuration header FILE 13630 13631Configuration files: 13632$config_files 13633 13634Configuration headers: 13635$config_headers 13636 13637Configuration commands: 13638$config_commands 13639 13640Report bugs to <des@des.no>. 13641OpenPAM home page: <http://www.openpam.org/>." 13642 13643_ACEOF 13644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13645ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13646ac_cs_version="\\ 13647OpenPAM config.status 20170219 13648configured by $0, generated by GNU Autoconf 2.69, 13649 with options \\"\$ac_cs_config\\" 13650 13651Copyright (C) 2012 Free Software Foundation, Inc. 13652This config.status script is free software; the Free Software Foundation 13653gives unlimited permission to copy, distribute and modify it." 13654 13655ac_pwd='$ac_pwd' 13656srcdir='$srcdir' 13657INSTALL='$INSTALL' 13658MKDIR_P='$MKDIR_P' 13659AWK='$AWK' 13660test -n "\$AWK" || AWK=awk 13661_ACEOF 13662 13663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13664# The default lists apply if the user does not specify any file. 13665ac_need_defaults=: 13666while test $# != 0 13667do 13668 case $1 in 13669 --*=?*) 13670 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13671 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13672 ac_shift=: 13673 ;; 13674 --*=) 13675 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13676 ac_optarg= 13677 ac_shift=: 13678 ;; 13679 *) 13680 ac_option=$1 13681 ac_optarg=$2 13682 ac_shift=shift 13683 ;; 13684 esac 13685 13686 case $ac_option in 13687 # Handling of the options. 13688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13689 ac_cs_recheck=: ;; 13690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13691 $as_echo "$ac_cs_version"; exit ;; 13692 --config | --confi | --conf | --con | --co | --c ) 13693 $as_echo "$ac_cs_config"; exit ;; 13694 --debug | --debu | --deb | --de | --d | -d ) 13695 debug=: ;; 13696 --file | --fil | --fi | --f ) 13697 $ac_shift 13698 case $ac_optarg in 13699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13700 '') as_fn_error $? "missing file argument" ;; 13701 esac 13702 as_fn_append CONFIG_FILES " '$ac_optarg'" 13703 ac_need_defaults=false;; 13704 --header | --heade | --head | --hea ) 13705 $ac_shift 13706 case $ac_optarg in 13707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13708 esac 13709 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13710 ac_need_defaults=false;; 13711 --he | --h) 13712 # Conflict between --help and --header 13713 as_fn_error $? "ambiguous option: \`$1' 13714Try \`$0 --help' for more information.";; 13715 --help | --hel | -h ) 13716 $as_echo "$ac_cs_usage"; exit ;; 13717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13718 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13719 ac_cs_silent=: ;; 13720 13721 # This is an error. 13722 -*) as_fn_error $? "unrecognized option: \`$1' 13723Try \`$0 --help' for more information." ;; 13724 13725 *) as_fn_append ac_config_targets " $1" 13726 ac_need_defaults=false ;; 13727 13728 esac 13729 shift 13730done 13731 13732ac_configure_extra_args= 13733 13734if $ac_cs_silent; then 13735 exec 6>/dev/null 13736 ac_configure_extra_args="$ac_configure_extra_args --silent" 13737fi 13738 13739_ACEOF 13740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13741if \$ac_cs_recheck; then 13742 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13743 shift 13744 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13745 CONFIG_SHELL='$SHELL' 13746 export CONFIG_SHELL 13747 exec "\$@" 13748fi 13749 13750_ACEOF 13751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13752exec 5>>config.log 13753{ 13754 echo 13755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13756## Running $as_me. ## 13757_ASBOX 13758 $as_echo "$ac_log" 13759} >&5 13760 13761_ACEOF 13762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13763# 13764# INIT-COMMANDS 13765# 13766AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13767 13768 13769# The HP-UX ksh and POSIX shell print the target directory to stdout 13770# if CDPATH is set. 13771(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13772 13773sed_quote_subst='$sed_quote_subst' 13774double_quote_subst='$double_quote_subst' 13775delay_variable_subst='$delay_variable_subst' 13776macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13777macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13778enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13779enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13780pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13781enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13782shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13783SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13784ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13785PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13786host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13787host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13788host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13789build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13790build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13791build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13792SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13793Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13794GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13795EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13796FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13797LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13798NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13799LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13800max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13801ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13802exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13803lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13804lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13805lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13806lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13807lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13808reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13809reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13810OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13811deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13812file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13813file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13814want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13815DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13816sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13817AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13818AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13819archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13820STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13821RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13822old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13823old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13824old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13825lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13826CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13827CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13828compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13829GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13830lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13831lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13832lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13833lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13834lt_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"`' 13835lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13836nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13837lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13838lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13839objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13840MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13841lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13842lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13843lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13844lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13845lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13846need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13847MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13848DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13849NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13850LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13851OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13852OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13853libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13854shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13855extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13856archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13857enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13858export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13859whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13860compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13861old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13862old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13863archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13864archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13865module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13866module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13867with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13868allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13869no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13870hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13871hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13872hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13873hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13874hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13875hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13876hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13877inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13878link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13879always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13880export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13881exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13882include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13883prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13884postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13885file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13886variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13887need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13888need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13889version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13890runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13891shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13892shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13893libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13894library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13895soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13896install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13897postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13898postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13899finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13900finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13901hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13902sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13903configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13904configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13905hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13906enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13907enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13908enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13909old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13910striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13911 13912LTCC='$LTCC' 13913LTCFLAGS='$LTCFLAGS' 13914compiler='$compiler_DEFAULT' 13915 13916# A function that is used when there is no print builtin or printf. 13917func_fallback_echo () 13918{ 13919 eval 'cat <<_LTECHO_EOF 13920\$1 13921_LTECHO_EOF' 13922} 13923 13924# Quote evaled strings. 13925for var in SHELL \ 13926ECHO \ 13927PATH_SEPARATOR \ 13928SED \ 13929GREP \ 13930EGREP \ 13931FGREP \ 13932LD \ 13933NM \ 13934LN_S \ 13935lt_SP2NL \ 13936lt_NL2SP \ 13937reload_flag \ 13938OBJDUMP \ 13939deplibs_check_method \ 13940file_magic_cmd \ 13941file_magic_glob \ 13942want_nocaseglob \ 13943DLLTOOL \ 13944sharedlib_from_linklib_cmd \ 13945AR \ 13946AR_FLAGS \ 13947archiver_list_spec \ 13948STRIP \ 13949RANLIB \ 13950CC \ 13951CFLAGS \ 13952compiler \ 13953lt_cv_sys_global_symbol_pipe \ 13954lt_cv_sys_global_symbol_to_cdecl \ 13955lt_cv_sys_global_symbol_to_import \ 13956lt_cv_sys_global_symbol_to_c_name_address \ 13957lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13958lt_cv_nm_interface \ 13959nm_file_list_spec \ 13960lt_cv_truncate_bin \ 13961lt_prog_compiler_no_builtin_flag \ 13962lt_prog_compiler_pic \ 13963lt_prog_compiler_wl \ 13964lt_prog_compiler_static \ 13965lt_cv_prog_compiler_c_o \ 13966need_locks \ 13967MANIFEST_TOOL \ 13968DSYMUTIL \ 13969NMEDIT \ 13970LIPO \ 13971OTOOL \ 13972OTOOL64 \ 13973shrext_cmds \ 13974export_dynamic_flag_spec \ 13975whole_archive_flag_spec \ 13976compiler_needs_object \ 13977with_gnu_ld \ 13978allow_undefined_flag \ 13979no_undefined_flag \ 13980hardcode_libdir_flag_spec \ 13981hardcode_libdir_separator \ 13982exclude_expsyms \ 13983include_expsyms \ 13984file_list_spec \ 13985variables_saved_for_relink \ 13986libname_spec \ 13987library_names_spec \ 13988soname_spec \ 13989install_override_mode \ 13990finish_eval \ 13991old_striplib \ 13992striplib; do 13993 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13994 *[\\\\\\\`\\"\\\$]*) 13995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13996 ;; 13997 *) 13998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13999 ;; 14000 esac 14001done 14002 14003# Double-quote double-evaled strings. 14004for var in reload_cmds \ 14005old_postinstall_cmds \ 14006old_postuninstall_cmds \ 14007old_archive_cmds \ 14008extract_expsyms_cmds \ 14009old_archive_from_new_cmds \ 14010old_archive_from_expsyms_cmds \ 14011archive_cmds \ 14012archive_expsym_cmds \ 14013module_cmds \ 14014module_expsym_cmds \ 14015export_symbols_cmds \ 14016prelink_cmds \ 14017postlink_cmds \ 14018postinstall_cmds \ 14019postuninstall_cmds \ 14020finish_cmds \ 14021sys_lib_search_path_spec \ 14022configure_time_dlsearch_path \ 14023configure_time_lt_sys_library_path; do 14024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14025 *[\\\\\\\`\\"\\\$]*) 14026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14027 ;; 14028 *) 14029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14030 ;; 14031 esac 14032done 14033 14034ac_aux_dir='$ac_aux_dir' 14035 14036# See if we are running on zsh, and set the options that allow our 14037# commands through without removal of \ escapes INIT. 14038if test -n "\${ZSH_VERSION+set}"; then 14039 setopt NO_GLOB_SUBST 14040fi 14041 14042 14043 PACKAGE='$PACKAGE' 14044 VERSION='$VERSION' 14045 RM='$RM' 14046 ofile='$ofile' 14047 14048 14049 14050 14051_ACEOF 14052 14053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14054 14055# Handling of arguments. 14056for ac_config_target in $ac_config_targets 14057do 14058 case $ac_config_target in 14059 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14060 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14061 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14062 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14063 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 14064 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;; 14065 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;; 14066 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;; 14067 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14068 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 14069 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14070 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;; 14071 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 14072 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;; 14073 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; 14074 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 14075 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;; 14076 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;; 14077 "modules/pam_return/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_return/Makefile" ;; 14078 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;; 14079 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; 14080 "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;; 14081 "misc/coverage.sh") CONFIG_FILES="$CONFIG_FILES misc/coverage.sh" ;; 14082 "misc/coverity.sh") CONFIG_FILES="$CONFIG_FILES misc/coverity.sh" ;; 14083 14084 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14085 esac 14086done 14087 14088 14089# If the user did not use the arguments to specify the items to instantiate, 14090# then the envvar interface is used. Set only those that are not. 14091# We use the long form for the default assignment because of an extremely 14092# bizarre bug on SunOS 4.1.3. 14093if $ac_need_defaults; then 14094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14097fi 14098 14099# Have a temporary directory for convenience. Make it in the build tree 14100# simply because there is no reason against having it here, and in addition, 14101# creating and moving files from /tmp can sometimes cause problems. 14102# Hook for its removal unless debugging. 14103# Note that there is a small window in which the directory will not be cleaned: 14104# after its creation but before its name has been assigned to `$tmp'. 14105$debug || 14106{ 14107 tmp= ac_tmp= 14108 trap 'exit_status=$? 14109 : "${ac_tmp:=$tmp}" 14110 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14111' 0 14112 trap 'as_fn_exit 1' 1 2 13 15 14113} 14114# Create a (secure) tmp directory for tmp files. 14115 14116{ 14117 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14118 test -d "$tmp" 14119} || 14120{ 14121 tmp=./conf$$-$RANDOM 14122 (umask 077 && mkdir "$tmp") 14123} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14124ac_tmp=$tmp 14125 14126# Set up the scripts for CONFIG_FILES section. 14127# No need to generate them if there are no CONFIG_FILES. 14128# This happens for instance with `./config.status config.h'. 14129if test -n "$CONFIG_FILES"; then 14130 14131 14132ac_cr=`echo X | tr X '\015'` 14133# On cygwin, bash can eat \r inside `` if the user requested igncr. 14134# But we know of no other shell where ac_cr would be empty at this 14135# point, so we can use a bashism as a fallback. 14136if test "x$ac_cr" = x; then 14137 eval ac_cr=\$\'\\r\' 14138fi 14139ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14140if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14141 ac_cs_awk_cr='\\r' 14142else 14143 ac_cs_awk_cr=$ac_cr 14144fi 14145 14146echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14147_ACEOF 14148 14149 14150{ 14151 echo "cat >conf$$subs.awk <<_ACEOF" && 14152 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14153 echo "_ACEOF" 14154} >conf$$subs.sh || 14155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14156ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14157ac_delim='%!_!# ' 14158for ac_last_try in false false false false false :; do 14159 . ./conf$$subs.sh || 14160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14161 14162 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14163 if test $ac_delim_n = $ac_delim_num; then 14164 break 14165 elif $ac_last_try; then 14166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14167 else 14168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14169 fi 14170done 14171rm -f conf$$subs.sh 14172 14173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14174cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14175_ACEOF 14176sed -n ' 14177h 14178s/^/S["/; s/!.*/"]=/ 14179p 14180g 14181s/^[^!]*!// 14182:repl 14183t repl 14184s/'"$ac_delim"'$// 14185t delim 14186:nl 14187h 14188s/\(.\{148\}\)..*/\1/ 14189t more1 14190s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14191p 14192n 14193b repl 14194:more1 14195s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14196p 14197g 14198s/.\{148\}// 14199t nl 14200:delim 14201h 14202s/\(.\{148\}\)..*/\1/ 14203t more2 14204s/["\\]/\\&/g; s/^/"/; s/$/"/ 14205p 14206b 14207:more2 14208s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14209p 14210g 14211s/.\{148\}// 14212t delim 14213' <conf$$subs.awk | sed ' 14214/^[^""]/{ 14215 N 14216 s/\n// 14217} 14218' >>$CONFIG_STATUS || ac_write_fail=1 14219rm -f conf$$subs.awk 14220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14221_ACAWK 14222cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14223 for (key in S) S_is_set[key] = 1 14224 FS = "" 14225 14226} 14227{ 14228 line = $ 0 14229 nfields = split(line, field, "@") 14230 substed = 0 14231 len = length(field[1]) 14232 for (i = 2; i < nfields; i++) { 14233 key = field[i] 14234 keylen = length(key) 14235 if (S_is_set[key]) { 14236 value = S[key] 14237 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14238 len += length(value) + length(field[++i]) 14239 substed = 1 14240 } else 14241 len += 1 + keylen 14242 } 14243 14244 print line 14245} 14246 14247_ACAWK 14248_ACEOF 14249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14250if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14251 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14252else 14253 cat 14254fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14255 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14256_ACEOF 14257 14258# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14259# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14260# trailing colons and then remove the whole line if VPATH becomes empty 14261# (actually we leave an empty line to preserve line numbers). 14262if test "x$srcdir" = x.; then 14263 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14264h 14265s/// 14266s/^/:/ 14267s/[ ]*$/:/ 14268s/:\$(srcdir):/:/g 14269s/:\${srcdir}:/:/g 14270s/:@srcdir@:/:/g 14271s/^:*// 14272s/:*$// 14273x 14274s/\(=[ ]*\).*/\1/ 14275G 14276s/\n// 14277s/^[^=]*=[ ]*$// 14278}' 14279fi 14280 14281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14282fi # test -n "$CONFIG_FILES" 14283 14284# Set up the scripts for CONFIG_HEADERS section. 14285# No need to generate them if there are no CONFIG_HEADERS. 14286# This happens for instance with `./config.status Makefile'. 14287if test -n "$CONFIG_HEADERS"; then 14288cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14289BEGIN { 14290_ACEOF 14291 14292# Transform confdefs.h into an awk script `defines.awk', embedded as 14293# here-document in config.status, that substitutes the proper values into 14294# config.h.in to produce config.h. 14295 14296# Create a delimiter string that does not exist in confdefs.h, to ease 14297# handling of long lines. 14298ac_delim='%!_!# ' 14299for ac_last_try in false false :; do 14300 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14301 if test -z "$ac_tt"; then 14302 break 14303 elif $ac_last_try; then 14304 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14305 else 14306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14307 fi 14308done 14309 14310# For the awk script, D is an array of macro values keyed by name, 14311# likewise P contains macro parameters if any. Preserve backslash 14312# newline sequences. 14313 14314ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14315sed -n ' 14316s/.\{148\}/&'"$ac_delim"'/g 14317t rset 14318:rset 14319s/^[ ]*#[ ]*define[ ][ ]*/ / 14320t def 14321d 14322:def 14323s/\\$// 14324t bsnl 14325s/["\\]/\\&/g 14326s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14327D["\1"]=" \3"/p 14328s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14329d 14330:bsnl 14331s/["\\]/\\&/g 14332s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14333D["\1"]=" \3\\\\\\n"\\/p 14334t cont 14335s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14336t cont 14337d 14338:cont 14339n 14340s/.\{148\}/&'"$ac_delim"'/g 14341t clear 14342:clear 14343s/\\$// 14344t bsnlc 14345s/["\\]/\\&/g; s/^/"/; s/$/"/p 14346d 14347:bsnlc 14348s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14349b cont 14350' <confdefs.h | sed ' 14351s/'"$ac_delim"'/"\\\ 14352"/g' >>$CONFIG_STATUS || ac_write_fail=1 14353 14354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14355 for (key in D) D_is_set[key] = 1 14356 FS = "" 14357} 14358/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14359 line = \$ 0 14360 split(line, arg, " ") 14361 if (arg[1] == "#") { 14362 defundef = arg[2] 14363 mac1 = arg[3] 14364 } else { 14365 defundef = substr(arg[1], 2) 14366 mac1 = arg[2] 14367 } 14368 split(mac1, mac2, "(") #) 14369 macro = mac2[1] 14370 prefix = substr(line, 1, index(line, defundef) - 1) 14371 if (D_is_set[macro]) { 14372 # Preserve the white space surrounding the "#". 14373 print prefix "define", macro P[macro] D[macro] 14374 next 14375 } else { 14376 # Replace #undef with comments. This is necessary, for example, 14377 # in the case of _POSIX_SOURCE, which is predefined and required 14378 # on some systems where configure will not decide to define it. 14379 if (defundef == "undef") { 14380 print "/*", prefix defundef, macro, "*/" 14381 next 14382 } 14383 } 14384} 14385{ print } 14386_ACAWK 14387_ACEOF 14388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14389 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14390fi # test -n "$CONFIG_HEADERS" 14391 14392 14393eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14394shift 14395for ac_tag 14396do 14397 case $ac_tag in 14398 :[FHLC]) ac_mode=$ac_tag; continue;; 14399 esac 14400 case $ac_mode$ac_tag in 14401 :[FHL]*:*);; 14402 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14403 :[FH]-) ac_tag=-:-;; 14404 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14405 esac 14406 ac_save_IFS=$IFS 14407 IFS=: 14408 set x $ac_tag 14409 IFS=$ac_save_IFS 14410 shift 14411 ac_file=$1 14412 shift 14413 14414 case $ac_mode in 14415 :L) ac_source=$1;; 14416 :[FH]) 14417 ac_file_inputs= 14418 for ac_f 14419 do 14420 case $ac_f in 14421 -) ac_f="$ac_tmp/stdin";; 14422 *) # Look for the file first in the build tree, then in the source tree 14423 # (if the path is not absolute). The absolute path cannot be DOS-style, 14424 # because $ac_f cannot contain `:'. 14425 test -f "$ac_f" || 14426 case $ac_f in 14427 [\\/$]*) false;; 14428 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14429 esac || 14430 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14431 esac 14432 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14433 as_fn_append ac_file_inputs " '$ac_f'" 14434 done 14435 14436 # Let's still pretend it is `configure' which instantiates (i.e., don't 14437 # use $as_me), people would be surprised to read: 14438 # /* config.h. Generated by config.status. */ 14439 configure_input='Generated from '` 14440 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14441 `' by configure.' 14442 if test x"$ac_file" != x-; then 14443 configure_input="$ac_file. $configure_input" 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14445$as_echo "$as_me: creating $ac_file" >&6;} 14446 fi 14447 # Neutralize special characters interpreted by sed in replacement strings. 14448 case $configure_input in #( 14449 *\&* | *\|* | *\\* ) 14450 ac_sed_conf_input=`$as_echo "$configure_input" | 14451 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14452 *) ac_sed_conf_input=$configure_input;; 14453 esac 14454 14455 case $ac_tag in 14456 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14458 esac 14459 ;; 14460 esac 14461 14462 ac_dir=`$as_dirname -- "$ac_file" || 14463$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14464 X"$ac_file" : 'X\(//\)[^/]' \| \ 14465 X"$ac_file" : 'X\(//\)$' \| \ 14466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14467$as_echo X"$ac_file" | 14468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14469 s//\1/ 14470 q 14471 } 14472 /^X\(\/\/\)[^/].*/{ 14473 s//\1/ 14474 q 14475 } 14476 /^X\(\/\/\)$/{ 14477 s//\1/ 14478 q 14479 } 14480 /^X\(\/\).*/{ 14481 s//\1/ 14482 q 14483 } 14484 s/.*/./; q'` 14485 as_dir="$ac_dir"; as_fn_mkdir_p 14486 ac_builddir=. 14487 14488case "$ac_dir" in 14489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14490*) 14491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14492 # A ".." for each directory in $ac_dir_suffix. 14493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14494 case $ac_top_builddir_sub in 14495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14497 esac ;; 14498esac 14499ac_abs_top_builddir=$ac_pwd 14500ac_abs_builddir=$ac_pwd$ac_dir_suffix 14501# for backward compatibility: 14502ac_top_builddir=$ac_top_build_prefix 14503 14504case $srcdir in 14505 .) # We are building in place. 14506 ac_srcdir=. 14507 ac_top_srcdir=$ac_top_builddir_sub 14508 ac_abs_top_srcdir=$ac_pwd ;; 14509 [\\/]* | ?:[\\/]* ) # Absolute name. 14510 ac_srcdir=$srcdir$ac_dir_suffix; 14511 ac_top_srcdir=$srcdir 14512 ac_abs_top_srcdir=$srcdir ;; 14513 *) # Relative name. 14514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14515 ac_top_srcdir=$ac_top_build_prefix$srcdir 14516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14517esac 14518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14519 14520 14521 case $ac_mode in 14522 :F) 14523 # 14524 # CONFIG_FILE 14525 # 14526 14527 case $INSTALL in 14528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14530 esac 14531 ac_MKDIR_P=$MKDIR_P 14532 case $MKDIR_P in 14533 [\\/$]* | ?:[\\/]* ) ;; 14534 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14535 esac 14536_ACEOF 14537 14538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14539# If the template does not know about datarootdir, expand it. 14540# FIXME: This hack should be removed a few years after 2.60. 14541ac_datarootdir_hack=; ac_datarootdir_seen= 14542ac_sed_dataroot=' 14543/datarootdir/ { 14544 p 14545 q 14546} 14547/@datadir@/p 14548/@docdir@/p 14549/@infodir@/p 14550/@localedir@/p 14551/@mandir@/p' 14552case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14553*datarootdir*) ac_datarootdir_seen=yes;; 14554*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14556$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14557_ACEOF 14558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14559 ac_datarootdir_hack=' 14560 s&@datadir@&$datadir&g 14561 s&@docdir@&$docdir&g 14562 s&@infodir@&$infodir&g 14563 s&@localedir@&$localedir&g 14564 s&@mandir@&$mandir&g 14565 s&\\\${datarootdir}&$datarootdir&g' ;; 14566esac 14567_ACEOF 14568 14569# Neutralize VPATH when `$srcdir' = `.'. 14570# Shell code in configure.ac might set extrasub. 14571# FIXME: do we really want to maintain this feature? 14572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14573ac_sed_extra="$ac_vpsub 14574$extrasub 14575_ACEOF 14576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14577:t 14578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14579s|@configure_input@|$ac_sed_conf_input|;t t 14580s&@top_builddir@&$ac_top_builddir_sub&;t t 14581s&@top_build_prefix@&$ac_top_build_prefix&;t t 14582s&@srcdir@&$ac_srcdir&;t t 14583s&@abs_srcdir@&$ac_abs_srcdir&;t t 14584s&@top_srcdir@&$ac_top_srcdir&;t t 14585s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14586s&@builddir@&$ac_builddir&;t t 14587s&@abs_builddir@&$ac_abs_builddir&;t t 14588s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14589s&@INSTALL@&$ac_INSTALL&;t t 14590s&@MKDIR_P@&$ac_MKDIR_P&;t t 14591$ac_datarootdir_hack 14592" 14593eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14594 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14595 14596test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14597 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14598 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14599 "$ac_tmp/out"`; test -z "$ac_out"; } && 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14601which seems to be undefined. Please make sure it is defined" >&5 14602$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14603which seems to be undefined. Please make sure it is defined" >&2;} 14604 14605 rm -f "$ac_tmp/stdin" 14606 case $ac_file in 14607 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14608 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14609 esac \ 14610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14611 ;; 14612 :H) 14613 # 14614 # CONFIG_HEADER 14615 # 14616 if test x"$ac_file" != x-; then 14617 { 14618 $as_echo "/* $configure_input */" \ 14619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14620 } >"$ac_tmp/config.h" \ 14621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14622 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14624$as_echo "$as_me: $ac_file is unchanged" >&6;} 14625 else 14626 rm -f "$ac_file" 14627 mv "$ac_tmp/config.h" "$ac_file" \ 14628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14629 fi 14630 else 14631 $as_echo "/* $configure_input */" \ 14632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14633 || as_fn_error $? "could not create -" "$LINENO" 5 14634 fi 14635# Compute "$ac_file"'s index in $config_headers. 14636_am_arg="$ac_file" 14637_am_stamp_count=1 14638for _am_header in $config_headers :; do 14639 case $_am_header in 14640 $_am_arg | $_am_arg:* ) 14641 break ;; 14642 * ) 14643 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14644 esac 14645done 14646echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14647$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14648 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14649 X"$_am_arg" : 'X\(//\)$' \| \ 14650 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14651$as_echo X"$_am_arg" | 14652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14653 s//\1/ 14654 q 14655 } 14656 /^X\(\/\/\)[^/].*/{ 14657 s//\1/ 14658 q 14659 } 14660 /^X\(\/\/\)$/{ 14661 s//\1/ 14662 q 14663 } 14664 /^X\(\/\).*/{ 14665 s//\1/ 14666 q 14667 } 14668 s/.*/./; q'`/stamp-h$_am_stamp_count 14669 ;; 14670 14671 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14672$as_echo "$as_me: executing $ac_file commands" >&6;} 14673 ;; 14674 esac 14675 14676 14677 case $ac_file$ac_mode in 14678 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14679 # Older Autoconf quotes --file arguments for eval, but not when files 14680 # are listed without --file. Let's play safe and only enable the eval 14681 # if we detect the quoting. 14682 case $CONFIG_FILES in 14683 *\'*) eval set x "$CONFIG_FILES" ;; 14684 *) set x $CONFIG_FILES ;; 14685 esac 14686 shift 14687 for mf 14688 do 14689 # Strip MF so we end up with the name of the file. 14690 mf=`echo "$mf" | sed -e 's/:.*$//'` 14691 # Check whether this is an Automake generated Makefile or not. 14692 # We used to match only the files named 'Makefile.in', but 14693 # some people rename them; so instead we look at the file content. 14694 # Grep'ing the first line is not enough: some people post-process 14695 # each Makefile.in and add a new line on top of each file to say so. 14696 # Grep'ing the whole file is not good either: AIX grep has a line 14697 # limit of 2048, but all sed's we know have understand at least 4000. 14698 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14699 dirpart=`$as_dirname -- "$mf" || 14700$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14701 X"$mf" : 'X\(//\)[^/]' \| \ 14702 X"$mf" : 'X\(//\)$' \| \ 14703 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14704$as_echo X"$mf" | 14705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14706 s//\1/ 14707 q 14708 } 14709 /^X\(\/\/\)[^/].*/{ 14710 s//\1/ 14711 q 14712 } 14713 /^X\(\/\/\)$/{ 14714 s//\1/ 14715 q 14716 } 14717 /^X\(\/\).*/{ 14718 s//\1/ 14719 q 14720 } 14721 s/.*/./; q'` 14722 else 14723 continue 14724 fi 14725 # Extract the definition of DEPDIR, am__include, and am__quote 14726 # from the Makefile without running 'make'. 14727 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14728 test -z "$DEPDIR" && continue 14729 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14730 test -z "$am__include" && continue 14731 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14732 # Find all dependency output files, they are included files with 14733 # $(DEPDIR) in their names. We invoke sed twice because it is the 14734 # simplest approach to changing $(DEPDIR) to its actual value in the 14735 # expansion. 14736 for file in `sed -n " 14737 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14738 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14739 # Make sure the directory exists. 14740 test -f "$dirpart/$file" && continue 14741 fdir=`$as_dirname -- "$file" || 14742$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14743 X"$file" : 'X\(//\)[^/]' \| \ 14744 X"$file" : 'X\(//\)$' \| \ 14745 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14746$as_echo X"$file" | 14747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14748 s//\1/ 14749 q 14750 } 14751 /^X\(\/\/\)[^/].*/{ 14752 s//\1/ 14753 q 14754 } 14755 /^X\(\/\/\)$/{ 14756 s//\1/ 14757 q 14758 } 14759 /^X\(\/\).*/{ 14760 s//\1/ 14761 q 14762 } 14763 s/.*/./; q'` 14764 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14765 # echo "creating $dirpart/$file" 14766 echo '# dummy' > "$dirpart/$file" 14767 done 14768 done 14769} 14770 ;; 14771 "libtool":C) 14772 14773 # See if we are running on zsh, and set the options that allow our 14774 # commands through without removal of \ escapes. 14775 if test -n "${ZSH_VERSION+set}"; then 14776 setopt NO_GLOB_SUBST 14777 fi 14778 14779 cfgfile=${ofile}T 14780 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14781 $RM "$cfgfile" 14782 14783 cat <<_LT_EOF >> "$cfgfile" 14784#! $SHELL 14785# Generated automatically by $as_me ($PACKAGE) $VERSION 14786# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14787# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14788 14789# Provide generalized library-building support services. 14790# Written by Gordon Matzigkeit, 1996 14791 14792# Copyright (C) 2014 Free Software Foundation, Inc. 14793# This is free software; see the source for copying conditions. There is NO 14794# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14795 14796# GNU Libtool is free software; you can redistribute it and/or modify 14797# it under the terms of the GNU General Public License as published by 14798# the Free Software Foundation; either version 2 of of the License, or 14799# (at your option) any later version. 14800# 14801# As a special exception to the GNU General Public License, if you 14802# distribute this file as part of a program or library that is built 14803# using GNU Libtool, you may include this file under the same 14804# distribution terms that you use for the rest of that program. 14805# 14806# GNU Libtool is distributed in the hope that it will be useful, but 14807# WITHOUT ANY WARRANTY; without even the implied warranty of 14808# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14809# GNU General Public License for more details. 14810# 14811# You should have received a copy of the GNU General Public License 14812# along with this program. If not, see <http://www.gnu.org/licenses/>. 14813 14814 14815# The names of the tagged configurations supported by this script. 14816available_tags='' 14817 14818# Configured defaults for sys_lib_dlsearch_path munging. 14819: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14820 14821# ### BEGIN LIBTOOL CONFIG 14822 14823# Which release of libtool.m4 was used? 14824macro_version=$macro_version 14825macro_revision=$macro_revision 14826 14827# Whether or not to build static libraries. 14828build_old_libs=$enable_static 14829 14830# Whether or not to build shared libraries. 14831build_libtool_libs=$enable_shared 14832 14833# What type of objects to build. 14834pic_mode=$pic_mode 14835 14836# Whether or not to optimize for fast installation. 14837fast_install=$enable_fast_install 14838 14839# Shared archive member basename,for filename based shared library versioning on AIX. 14840shared_archive_member_spec=$shared_archive_member_spec 14841 14842# Shell to use when invoking shell scripts. 14843SHELL=$lt_SHELL 14844 14845# An echo program that protects backslashes. 14846ECHO=$lt_ECHO 14847 14848# The PATH separator for the build system. 14849PATH_SEPARATOR=$lt_PATH_SEPARATOR 14850 14851# The host system. 14852host_alias=$host_alias 14853host=$host 14854host_os=$host_os 14855 14856# The build system. 14857build_alias=$build_alias 14858build=$build 14859build_os=$build_os 14860 14861# A sed program that does not truncate output. 14862SED=$lt_SED 14863 14864# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14865Xsed="\$SED -e 1s/^X//" 14866 14867# A grep program that handles long lines. 14868GREP=$lt_GREP 14869 14870# An ERE matcher. 14871EGREP=$lt_EGREP 14872 14873# A literal string matcher. 14874FGREP=$lt_FGREP 14875 14876# A BSD- or MS-compatible name lister. 14877NM=$lt_NM 14878 14879# Whether we need soft or hard links. 14880LN_S=$lt_LN_S 14881 14882# What is the maximum length of a command? 14883max_cmd_len=$max_cmd_len 14884 14885# Object file suffix (normally "o"). 14886objext=$ac_objext 14887 14888# Executable file suffix (normally ""). 14889exeext=$exeext 14890 14891# whether the shell understands "unset". 14892lt_unset=$lt_unset 14893 14894# turn spaces into newlines. 14895SP2NL=$lt_lt_SP2NL 14896 14897# turn newlines into spaces. 14898NL2SP=$lt_lt_NL2SP 14899 14900# convert \$build file names to \$host format. 14901to_host_file_cmd=$lt_cv_to_host_file_cmd 14902 14903# convert \$build files to toolchain format. 14904to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14905 14906# An object symbol dumper. 14907OBJDUMP=$lt_OBJDUMP 14908 14909# Method to check whether dependent libraries are shared objects. 14910deplibs_check_method=$lt_deplibs_check_method 14911 14912# Command to use when deplibs_check_method = "file_magic". 14913file_magic_cmd=$lt_file_magic_cmd 14914 14915# How to find potential files when deplibs_check_method = "file_magic". 14916file_magic_glob=$lt_file_magic_glob 14917 14918# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14919want_nocaseglob=$lt_want_nocaseglob 14920 14921# DLL creation program. 14922DLLTOOL=$lt_DLLTOOL 14923 14924# Command to associate shared and link libraries. 14925sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14926 14927# The archiver. 14928AR=$lt_AR 14929 14930# Flags to create an archive. 14931AR_FLAGS=$lt_AR_FLAGS 14932 14933# How to feed a file listing to the archiver. 14934archiver_list_spec=$lt_archiver_list_spec 14935 14936# A symbol stripping program. 14937STRIP=$lt_STRIP 14938 14939# Commands used to install an old-style archive. 14940RANLIB=$lt_RANLIB 14941old_postinstall_cmds=$lt_old_postinstall_cmds 14942old_postuninstall_cmds=$lt_old_postuninstall_cmds 14943 14944# Whether to use a lock for old archive extraction. 14945lock_old_archive_extraction=$lock_old_archive_extraction 14946 14947# A C compiler. 14948LTCC=$lt_CC 14949 14950# LTCC compiler flags. 14951LTCFLAGS=$lt_CFLAGS 14952 14953# Take the output of nm and produce a listing of raw symbols and C names. 14954global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14955 14956# Transform the output of nm in a proper C declaration. 14957global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14958 14959# Transform the output of nm into a list of symbols to manually relocate. 14960global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14961 14962# Transform the output of nm in a C name address pair. 14963global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14964 14965# Transform the output of nm in a C name address pair when lib prefix is needed. 14966global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14967 14968# The name lister interface. 14969nm_interface=$lt_lt_cv_nm_interface 14970 14971# Specify filename containing input files for \$NM. 14972nm_file_list_spec=$lt_nm_file_list_spec 14973 14974# The root where to search for dependent libraries,and where our libraries should be installed. 14975lt_sysroot=$lt_sysroot 14976 14977# Command to truncate a binary pipe. 14978lt_truncate_bin=$lt_lt_cv_truncate_bin 14979 14980# The name of the directory that contains temporary libtool files. 14981objdir=$objdir 14982 14983# Used to examine libraries when file_magic_cmd begins with "file". 14984MAGIC_CMD=$MAGIC_CMD 14985 14986# Must we lock files when doing compilation? 14987need_locks=$lt_need_locks 14988 14989# Manifest tool. 14990MANIFEST_TOOL=$lt_MANIFEST_TOOL 14991 14992# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14993DSYMUTIL=$lt_DSYMUTIL 14994 14995# Tool to change global to local symbols on Mac OS X. 14996NMEDIT=$lt_NMEDIT 14997 14998# Tool to manipulate fat objects and archives on Mac OS X. 14999LIPO=$lt_LIPO 15000 15001# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15002OTOOL=$lt_OTOOL 15003 15004# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15005OTOOL64=$lt_OTOOL64 15006 15007# Old archive suffix (normally "a"). 15008libext=$libext 15009 15010# Shared library suffix (normally ".so"). 15011shrext_cmds=$lt_shrext_cmds 15012 15013# The commands to extract the exported symbol list from a shared archive. 15014extract_expsyms_cmds=$lt_extract_expsyms_cmds 15015 15016# Variables whose values should be saved in libtool wrapper scripts and 15017# restored at link time. 15018variables_saved_for_relink=$lt_variables_saved_for_relink 15019 15020# Do we need the "lib" prefix for modules? 15021need_lib_prefix=$need_lib_prefix 15022 15023# Do we need a version for libraries? 15024need_version=$need_version 15025 15026# Library versioning type. 15027version_type=$version_type 15028 15029# Shared library runtime path variable. 15030runpath_var=$runpath_var 15031 15032# Shared library path variable. 15033shlibpath_var=$shlibpath_var 15034 15035# Is shlibpath searched before the hard-coded library search path? 15036shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15037 15038# Format of library name prefix. 15039libname_spec=$lt_libname_spec 15040 15041# List of archive names. First name is the real one, the rest are links. 15042# The last name is the one that the linker finds with -lNAME 15043library_names_spec=$lt_library_names_spec 15044 15045# The coded name of the library, if different from the real name. 15046soname_spec=$lt_soname_spec 15047 15048# Permission mode override for installation of shared libraries. 15049install_override_mode=$lt_install_override_mode 15050 15051# Command to use after installation of a shared archive. 15052postinstall_cmds=$lt_postinstall_cmds 15053 15054# Command to use after uninstallation of a shared archive. 15055postuninstall_cmds=$lt_postuninstall_cmds 15056 15057# Commands used to finish a libtool library installation in a directory. 15058finish_cmds=$lt_finish_cmds 15059 15060# As "finish_cmds", except a single script fragment to be evaled but 15061# not shown. 15062finish_eval=$lt_finish_eval 15063 15064# Whether we should hardcode library paths into libraries. 15065hardcode_into_libs=$hardcode_into_libs 15066 15067# Compile-time system search path for libraries. 15068sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15069 15070# Detected run-time system search path for libraries. 15071sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15072 15073# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15074configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15075 15076# Whether dlopen is supported. 15077dlopen_support=$enable_dlopen 15078 15079# Whether dlopen of programs is supported. 15080dlopen_self=$enable_dlopen_self 15081 15082# Whether dlopen of statically linked programs is supported. 15083dlopen_self_static=$enable_dlopen_self_static 15084 15085# Commands to strip libraries. 15086old_striplib=$lt_old_striplib 15087striplib=$lt_striplib 15088 15089 15090# The linker used to build libraries. 15091LD=$lt_LD 15092 15093# How to create reloadable object files. 15094reload_flag=$lt_reload_flag 15095reload_cmds=$lt_reload_cmds 15096 15097# Commands used to build an old-style archive. 15098old_archive_cmds=$lt_old_archive_cmds 15099 15100# A language specific compiler. 15101CC=$lt_compiler 15102 15103# Is the compiler the GNU compiler? 15104with_gcc=$GCC 15105 15106# Compiler flag to turn off builtin functions. 15107no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15108 15109# Additional compiler flags for building library objects. 15110pic_flag=$lt_lt_prog_compiler_pic 15111 15112# How to pass a linker flag through the compiler. 15113wl=$lt_lt_prog_compiler_wl 15114 15115# Compiler flag to prevent dynamic linking. 15116link_static_flag=$lt_lt_prog_compiler_static 15117 15118# Does compiler simultaneously support -c and -o options? 15119compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15120 15121# Whether or not to add -lc for building shared libraries. 15122build_libtool_need_lc=$archive_cmds_need_lc 15123 15124# Whether or not to disallow shared libs when runtime libs are static. 15125allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15126 15127# Compiler flag to allow reflexive dlopens. 15128export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15129 15130# Compiler flag to generate shared objects directly from archives. 15131whole_archive_flag_spec=$lt_whole_archive_flag_spec 15132 15133# Whether the compiler copes with passing no objects directly. 15134compiler_needs_object=$lt_compiler_needs_object 15135 15136# Create an old-style archive from a shared archive. 15137old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15138 15139# Create a temporary old-style archive to link instead of a shared archive. 15140old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15141 15142# Commands used to build a shared archive. 15143archive_cmds=$lt_archive_cmds 15144archive_expsym_cmds=$lt_archive_expsym_cmds 15145 15146# Commands used to build a loadable module if different from building 15147# a shared archive. 15148module_cmds=$lt_module_cmds 15149module_expsym_cmds=$lt_module_expsym_cmds 15150 15151# Whether we are building with GNU ld or not. 15152with_gnu_ld=$lt_with_gnu_ld 15153 15154# Flag that allows shared libraries with undefined symbols to be built. 15155allow_undefined_flag=$lt_allow_undefined_flag 15156 15157# Flag that enforces no undefined symbols. 15158no_undefined_flag=$lt_no_undefined_flag 15159 15160# Flag to hardcode \$libdir into a binary during linking. 15161# This must work even if \$libdir does not exist 15162hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15163 15164# Whether we need a single "-rpath" flag with a separated argument. 15165hardcode_libdir_separator=$lt_hardcode_libdir_separator 15166 15167# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15168# DIR into the resulting binary. 15169hardcode_direct=$hardcode_direct 15170 15171# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15172# DIR into the resulting binary and the resulting library dependency is 15173# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15174# library is relocated. 15175hardcode_direct_absolute=$hardcode_direct_absolute 15176 15177# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15178# into the resulting binary. 15179hardcode_minus_L=$hardcode_minus_L 15180 15181# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15182# into the resulting binary. 15183hardcode_shlibpath_var=$hardcode_shlibpath_var 15184 15185# Set to "yes" if building a shared library automatically hardcodes DIR 15186# into the library and all subsequent libraries and executables linked 15187# against it. 15188hardcode_automatic=$hardcode_automatic 15189 15190# Set to yes if linker adds runtime paths of dependent libraries 15191# to runtime path list. 15192inherit_rpath=$inherit_rpath 15193 15194# Whether libtool must link a program against all its dependency libraries. 15195link_all_deplibs=$link_all_deplibs 15196 15197# Set to "yes" if exported symbols are required. 15198always_export_symbols=$always_export_symbols 15199 15200# The commands to list exported symbols. 15201export_symbols_cmds=$lt_export_symbols_cmds 15202 15203# Symbols that should not be listed in the preloaded symbols. 15204exclude_expsyms=$lt_exclude_expsyms 15205 15206# Symbols that must always be exported. 15207include_expsyms=$lt_include_expsyms 15208 15209# Commands necessary for linking programs (against libraries) with templates. 15210prelink_cmds=$lt_prelink_cmds 15211 15212# Commands necessary for finishing linking programs. 15213postlink_cmds=$lt_postlink_cmds 15214 15215# Specify filename containing input files. 15216file_list_spec=$lt_file_list_spec 15217 15218# How to hardcode a shared library path into an executable. 15219hardcode_action=$hardcode_action 15220 15221# ### END LIBTOOL CONFIG 15222 15223_LT_EOF 15224 15225 cat <<'_LT_EOF' >> "$cfgfile" 15226 15227# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15228 15229# func_munge_path_list VARIABLE PATH 15230# ----------------------------------- 15231# VARIABLE is name of variable containing _space_ separated list of 15232# directories to be munged by the contents of PATH, which is string 15233# having a format: 15234# "DIR[:DIR]:" 15235# string "DIR[ DIR]" will be prepended to VARIABLE 15236# ":DIR[:DIR]" 15237# string "DIR[ DIR]" will be appended to VARIABLE 15238# "DIRP[:DIRP]::[DIRA:]DIRA" 15239# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15240# "DIRA[ DIRA]" will be appended to VARIABLE 15241# "DIR[:DIR]" 15242# VARIABLE will be replaced by "DIR[ DIR]" 15243func_munge_path_list () 15244{ 15245 case x$2 in 15246 x) 15247 ;; 15248 *:) 15249 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15250 ;; 15251 x:*) 15252 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15253 ;; 15254 *::*) 15255 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15256 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15257 ;; 15258 *) 15259 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15260 ;; 15261 esac 15262} 15263 15264 15265# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15266func_cc_basename () 15267{ 15268 for cc_temp in $*""; do 15269 case $cc_temp in 15270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15272 \-*) ;; 15273 *) break;; 15274 esac 15275 done 15276 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15277} 15278 15279 15280# ### END FUNCTIONS SHARED WITH CONFIGURE 15281 15282_LT_EOF 15283 15284 case $host_os in 15285 aix3*) 15286 cat <<\_LT_EOF >> "$cfgfile" 15287# AIX sometimes has problems with the GCC collect2 program. For some 15288# reason, if we set the COLLECT_NAMES environment variable, the problems 15289# vanish in a puff of smoke. 15290if test set != "${COLLECT_NAMES+set}"; then 15291 COLLECT_NAMES= 15292 export COLLECT_NAMES 15293fi 15294_LT_EOF 15295 ;; 15296 esac 15297 15298 15299ltmain=$ac_aux_dir/ltmain.sh 15300 15301 15302 # We use sed instead of cat because bash on DJGPP gets confused if 15303 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15304 # text mode, it properly converts lines to CR/LF. This bash problem 15305 # is reportedly fixed, but why not run on old versions too? 15306 sed '$q' "$ltmain" >> "$cfgfile" \ 15307 || (rm -f "$cfgfile"; exit 1) 15308 15309 mv -f "$cfgfile" "$ofile" || 15310 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15311 chmod +x "$ofile" 15312 15313 ;; 15314 "mkpkgng":F) chmod +x mkpkgng ;; 15315 "misc/coverage.sh":F) chmod +x misc/coverage.sh ;; 15316 "misc/coverity.sh":F) chmod +x misc/coverity.sh ;; 15317 15318 esac 15319done # for ac_tag 15320 15321 15322as_fn_exit 0 15323_ACEOF 15324ac_clean_files=$ac_clean_files_save 15325 15326test $ac_write_fail = 0 || 15327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15328 15329 15330# configure is writing to config.log, and then calls config.status. 15331# config.status does its own redirection, appending to config.log. 15332# Unfortunately, on DOS this fails, as config.log is still kept open 15333# by configure, so config.status won't be able to write to it; its 15334# output is simply discarded. So we exec the FD to /dev/null, 15335# effectively closing config.log, so it can be properly (re)opened and 15336# appended to by config.status. When coming back to configure, we 15337# need to make the FD available again. 15338if test "$no_create" != yes; then 15339 ac_cs_success=: 15340 ac_config_status_args= 15341 test "$silent" = yes && 15342 ac_config_status_args="$ac_config_status_args --quiet" 15343 exec 5>/dev/null 15344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15345 exec 5>>config.log 15346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15347 # would make configure fail if this is the last instruction. 15348 $ac_cs_success || as_fn_exit 1 15349fi 15350if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15352$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15353fi 15354 15355