1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for OpenSMTPD-extras 5.7.2. 4# 5# Report bugs to <bugs@opensmtpd.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@opensmtpd.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: 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='OpenSMTPD-extras' 592PACKAGE_TARNAME='opensmtpd-extras' 593PACKAGE_VERSION='5.7.2' 594PACKAGE_STRING='OpenSMTPD-extras 5.7.2' 595PACKAGE_BUGREPORT='bugs@opensmtpd.org' 596PACKAGE_URL='https://github.com/OpenSMTPD/OpenSMTPD-extras' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637REDIS_LDFLAGS 638REDIS_CPPFLAGS 639LUA_LDFLAGS 640LUA_CPPFLAGS 641PERL_LDFLAGS 642PERL_CPPFLAGS 643PYTHON_LDFLAGS 644PYTHON_CPPFLAGS 645HAVE_SCHEDULER_PYTHON_FALSE 646HAVE_SCHEDULER_PYTHON_TRUE 647HAVE_SCHEDULER_STUB_FALSE 648HAVE_SCHEDULER_STUB_TRUE 649HAVE_SCHEDULER_RAM_FALSE 650HAVE_SCHEDULER_RAM_TRUE 651HAVE_TOOL_STATS_FALSE 652HAVE_TOOL_STATS_TRUE 653HAVE_TABLE_STUB_FALSE 654HAVE_TABLE_STUB_TRUE 655HAVE_TABLE_SQLITE_FALSE 656HAVE_TABLE_SQLITE_TRUE 657HAVE_TABLE_PYTHON_FALSE 658HAVE_TABLE_PYTHON_TRUE 659HAVE_TABLE_PASSWD_FALSE 660HAVE_TABLE_PASSWD_TRUE 661HAVE_TABLE_SOCKETMAP_FALSE 662HAVE_TABLE_SOCKETMAP_TRUE 663HAVE_TABLE_REDIS_FALSE 664HAVE_TABLE_REDIS_TRUE 665HAVE_TABLE_POSTGRES_FALSE 666HAVE_TABLE_POSTGRES_TRUE 667HAVE_TABLE_MYSQL_FALSE 668HAVE_TABLE_MYSQL_TRUE 669MYSQL_CONFIG 670HAVE_TABLE_LDAP_FALSE 671HAVE_TABLE_LDAP_TRUE 672HAVE_QUEUE_STUB_FALSE 673HAVE_QUEUE_STUB_TRUE 674HAVE_QUEUE_RAM_FALSE 675HAVE_QUEUE_RAM_TRUE 676HAVE_QUEUE_PYTHON_FALSE 677HAVE_QUEUE_PYTHON_TRUE 678HAVE_QUEUE_NULL_FALSE 679HAVE_QUEUE_NULL_TRUE 680HAVE_FILTER_VOID_FALSE 681HAVE_FILTER_VOID_TRUE 682HAVE_FILTER_TRACE_FALSE 683HAVE_FILTER_TRACE_TRUE 684HAVE_FILTER_STUB_FALSE 685HAVE_FILTER_STUB_TRUE 686HAVE_FILTER_MONKEY_FALSE 687HAVE_FILTER_MONKEY_TRUE 688pkglibexecdir 689mansubdir 690MANTYPE 691STRIP_OPT 692PRIVSEP_PATH 693SMTPD_USER 694LIBOBJS 695NO_LIBASR_FALSE 696NO_LIBASR_TRUE 697MANFMT 698AM_BACKSLASH 699AM_DEFAULT_VERBOSITY 700AM_DEFAULT_V 701AM_V 702am__untar 703am__tar 704AMTAR 705am__leading_dot 706SET_MAKE 707mkdir_p 708MKDIR_P 709INSTALL_STRIP_PROGRAM 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720MANDOC 721NROFF 722GROFF 723SH 724TEST_MINUS_S_SH 725CAT 726LT_SYS_LIBRARY_PATH 727OTOOL64 728OTOOL 729LIPO 730NMEDIT 731DSYMUTIL 732MANIFEST_TOOL 733AWK 734RANLIB 735STRIP 736ac_ct_AR 737AR 738DLLTOOL 739OBJDUMP 740LN_S 741NM 742ac_ct_DUMPBIN 743DUMPBIN 744LD 745FGREP 746SED 747LIBTOOL 748INSTALL_DATA 749INSTALL_SCRIPT 750INSTALL_PROGRAM 751EGREP 752GREP 753CPP 754host_os 755host_vendor 756host_cpu 757host 758build_os 759build_vendor 760build_cpu 761build 762OBJEXT 763EXEEXT 764ac_ct_CC 765CPPFLAGS 766LDFLAGS 767CFLAGS 768CC 769target_alias 770host_alias 771build_alias 772LIBS 773ECHO_T 774ECHO_N 775ECHO_C 776DEFS 777mandir 778localedir 779libdir 780psdir 781pdfdir 782dvidir 783htmldir 784infodir 785docdir 786oldincludedir 787includedir 788localstatedir 789sharedstatedir 790sysconfdir 791datadir 792datarootdir 793libexecdir 794sbindir 795bindir 796program_transform_name 797prefix 798exec_prefix 799PACKAGE_URL 800PACKAGE_BUGREPORT 801PACKAGE_STRING 802PACKAGE_VERSION 803PACKAGE_TARNAME 804PACKAGE_NAME 805PATH_SEPARATOR 806SHELL' 807ac_subst_files='' 808ac_user_opts=' 809enable_option_checking 810enable_shared 811enable_static 812with_pic 813enable_fast_install 814with_aix_soname 815with_gnu_ld 816with_sysroot 817enable_libtool_lock 818enable_silent_rules 819with_rpath 820with_cflags 821with_cppflags 822with_ldflags 823with_libs 824with_Werror 825with_pie 826with_libssl 827with_user_smtpd 828with_path_empty 829enable_strip 830with_mantype 831with_filter_monkey 832with_filter_stub 833with_filter_trace 834with_filter_void 835with_queue_null 836with_queue_python 837with_queue_ram 838with_queue_stub 839with_table_ldap 840with_table_mysql 841with_table_postgres 842with_table_redis 843with_table_socketmap 844with_table_passwd 845with_table_python 846with_table_sqlite 847with_table_stub 848with_tool_stats 849with_scheduler_ram 850with_scheduler_stub 851with_scheduler_python 852with_python 853with_python_type 854with_perl 855with_lua 856with_lua_type 857with_libevent 858' 859 ac_precious_vars='build_alias 860host_alias 861target_alias 862CC 863CFLAGS 864LDFLAGS 865LIBS 866CPPFLAGS 867CPP 868LT_SYS_LIBRARY_PATH' 869 870 871# Initialize some variables set by options. 872ac_init_help= 873ac_init_version=false 874ac_unrecognized_opts= 875ac_unrecognized_sep= 876# The variables have the same names as the options, with 877# dashes changed to underlines. 878cache_file=/dev/null 879exec_prefix=NONE 880no_create= 881no_recursion= 882prefix=NONE 883program_prefix=NONE 884program_suffix=NONE 885program_transform_name=s,x,x, 886silent= 887site= 888srcdir= 889verbose= 890x_includes=NONE 891x_libraries=NONE 892 893# Installation directory options. 894# These are left unexpanded so users can "make install exec_prefix=/foo" 895# and all the variables that are supposed to be based on exec_prefix 896# by default will actually change. 897# Use braces instead of parens because sh, perl, etc. also accept them. 898# (The list follows the same order as the GNU Coding Standards.) 899bindir='${exec_prefix}/bin' 900sbindir='${exec_prefix}/sbin' 901libexecdir='${exec_prefix}/libexec' 902datarootdir='${prefix}/share' 903datadir='${datarootdir}' 904sysconfdir='${prefix}/etc' 905sharedstatedir='${prefix}/com' 906localstatedir='${prefix}/var' 907includedir='${prefix}/include' 908oldincludedir='/usr/include' 909docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 910infodir='${datarootdir}/info' 911htmldir='${docdir}' 912dvidir='${docdir}' 913pdfdir='${docdir}' 914psdir='${docdir}' 915libdir='${exec_prefix}/lib' 916localedir='${datarootdir}/locale' 917mandir='${datarootdir}/man' 918 919ac_prev= 920ac_dashdash= 921for ac_option 922do 923 # If the previous option needs an argument, assign it. 924 if test -n "$ac_prev"; then 925 eval $ac_prev=\$ac_option 926 ac_prev= 927 continue 928 fi 929 930 case $ac_option in 931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 932 *=) ac_optarg= ;; 933 *) ac_optarg=yes ;; 934 esac 935 936 # Accept the important Cygnus configure options, so we can diagnose typos. 937 938 case $ac_dashdash$ac_option in 939 --) 940 ac_dashdash=yes ;; 941 942 -bindir | --bindir | --bindi | --bind | --bin | --bi) 943 ac_prev=bindir ;; 944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 945 bindir=$ac_optarg ;; 946 947 -build | --build | --buil | --bui | --bu) 948 ac_prev=build_alias ;; 949 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 950 build_alias=$ac_optarg ;; 951 952 -cache-file | --cache-file | --cache-fil | --cache-fi \ 953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 954 ac_prev=cache_file ;; 955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 957 cache_file=$ac_optarg ;; 958 959 --config-cache | -C) 960 cache_file=config.cache ;; 961 962 -datadir | --datadir | --datadi | --datad) 963 ac_prev=datadir ;; 964 -datadir=* | --datadir=* | --datadi=* | --datad=*) 965 datadir=$ac_optarg ;; 966 967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 968 | --dataroo | --dataro | --datar) 969 ac_prev=datarootdir ;; 970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 972 datarootdir=$ac_optarg ;; 973 974 -disable-* | --disable-*) 975 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 976 # Reject names that are not valid shell variable names. 977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978 as_fn_error $? "invalid feature name: $ac_useropt" 979 ac_useropt_orig=$ac_useropt 980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 981 case $ac_user_opts in 982 *" 983"enable_$ac_useropt" 984"*) ;; 985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 986 ac_unrecognized_sep=', ';; 987 esac 988 eval enable_$ac_useropt=no ;; 989 990 -docdir | --docdir | --docdi | --doc | --do) 991 ac_prev=docdir ;; 992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 993 docdir=$ac_optarg ;; 994 995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 996 ac_prev=dvidir ;; 997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 998 dvidir=$ac_optarg ;; 999 1000 -enable-* | --enable-*) 1001 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1002 # Reject names that are not valid shell variable names. 1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1004 as_fn_error $? "invalid feature name: $ac_useropt" 1005 ac_useropt_orig=$ac_useropt 1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1007 case $ac_user_opts in 1008 *" 1009"enable_$ac_useropt" 1010"*) ;; 1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1012 ac_unrecognized_sep=', ';; 1013 esac 1014 eval enable_$ac_useropt=\$ac_optarg ;; 1015 1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1018 | --exec | --exe | --ex) 1019 ac_prev=exec_prefix ;; 1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1022 | --exec=* | --exe=* | --ex=*) 1023 exec_prefix=$ac_optarg ;; 1024 1025 -gas | --gas | --ga | --g) 1026 # Obsolete; use --with-gas. 1027 with_gas=yes ;; 1028 1029 -help | --help | --hel | --he | -h) 1030 ac_init_help=long ;; 1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1032 ac_init_help=recursive ;; 1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1034 ac_init_help=short ;; 1035 1036 -host | --host | --hos | --ho) 1037 ac_prev=host_alias ;; 1038 -host=* | --host=* | --hos=* | --ho=*) 1039 host_alias=$ac_optarg ;; 1040 1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1042 ac_prev=htmldir ;; 1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1044 | --ht=*) 1045 htmldir=$ac_optarg ;; 1046 1047 -includedir | --includedir | --includedi | --included | --include \ 1048 | --includ | --inclu | --incl | --inc) 1049 ac_prev=includedir ;; 1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1051 | --includ=* | --inclu=* | --incl=* | --inc=*) 1052 includedir=$ac_optarg ;; 1053 1054 -infodir | --infodir | --infodi | --infod | --info | --inf) 1055 ac_prev=infodir ;; 1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1057 infodir=$ac_optarg ;; 1058 1059 -libdir | --libdir | --libdi | --libd) 1060 ac_prev=libdir ;; 1061 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1062 libdir=$ac_optarg ;; 1063 1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1065 | --libexe | --libex | --libe) 1066 ac_prev=libexecdir ;; 1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1068 | --libexe=* | --libex=* | --libe=*) 1069 libexecdir=$ac_optarg ;; 1070 1071 -localedir | --localedir | --localedi | --localed | --locale) 1072 ac_prev=localedir ;; 1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1074 localedir=$ac_optarg ;; 1075 1076 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1077 | --localstate | --localstat | --localsta | --localst | --locals) 1078 ac_prev=localstatedir ;; 1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1081 localstatedir=$ac_optarg ;; 1082 1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1084 ac_prev=mandir ;; 1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1086 mandir=$ac_optarg ;; 1087 1088 -nfp | --nfp | --nf) 1089 # Obsolete; use --without-fp. 1090 with_fp=no ;; 1091 1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1093 | --no-cr | --no-c | -n) 1094 no_create=yes ;; 1095 1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1098 no_recursion=yes ;; 1099 1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1102 | --oldin | --oldi | --old | --ol | --o) 1103 ac_prev=oldincludedir ;; 1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1107 oldincludedir=$ac_optarg ;; 1108 1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1110 ac_prev=prefix ;; 1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1112 prefix=$ac_optarg ;; 1113 1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1115 | --program-pre | --program-pr | --program-p) 1116 ac_prev=program_prefix ;; 1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1119 program_prefix=$ac_optarg ;; 1120 1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1122 | --program-suf | --program-su | --program-s) 1123 ac_prev=program_suffix ;; 1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1126 program_suffix=$ac_optarg ;; 1127 1128 -program-transform-name | --program-transform-name \ 1129 | --program-transform-nam | --program-transform-na \ 1130 | --program-transform-n | --program-transform- \ 1131 | --program-transform | --program-transfor \ 1132 | --program-transfo | --program-transf \ 1133 | --program-trans | --program-tran \ 1134 | --progr-tra | --program-tr | --program-t) 1135 ac_prev=program_transform_name ;; 1136 -program-transform-name=* | --program-transform-name=* \ 1137 | --program-transform-nam=* | --program-transform-na=* \ 1138 | --program-transform-n=* | --program-transform-=* \ 1139 | --program-transform=* | --program-transfor=* \ 1140 | --program-transfo=* | --program-transf=* \ 1141 | --program-trans=* | --program-tran=* \ 1142 | --progr-tra=* | --program-tr=* | --program-t=*) 1143 program_transform_name=$ac_optarg ;; 1144 1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1146 ac_prev=pdfdir ;; 1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1148 pdfdir=$ac_optarg ;; 1149 1150 -psdir | --psdir | --psdi | --psd | --ps) 1151 ac_prev=psdir ;; 1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1153 psdir=$ac_optarg ;; 1154 1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1156 | -silent | --silent | --silen | --sile | --sil) 1157 silent=yes ;; 1158 1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1160 ac_prev=sbindir ;; 1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1162 | --sbi=* | --sb=*) 1163 sbindir=$ac_optarg ;; 1164 1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1167 | --sharedst | --shareds | --shared | --share | --shar \ 1168 | --sha | --sh) 1169 ac_prev=sharedstatedir ;; 1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1173 | --sha=* | --sh=*) 1174 sharedstatedir=$ac_optarg ;; 1175 1176 -site | --site | --sit) 1177 ac_prev=site ;; 1178 -site=* | --site=* | --sit=*) 1179 site=$ac_optarg ;; 1180 1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1182 ac_prev=srcdir ;; 1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1184 srcdir=$ac_optarg ;; 1185 1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1187 | --syscon | --sysco | --sysc | --sys | --sy) 1188 ac_prev=sysconfdir ;; 1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1191 sysconfdir=$ac_optarg ;; 1192 1193 -target | --target | --targe | --targ | --tar | --ta | --t) 1194 ac_prev=target_alias ;; 1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1196 target_alias=$ac_optarg ;; 1197 1198 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1199 verbose=yes ;; 1200 1201 -version | --version | --versio | --versi | --vers | -V) 1202 ac_init_version=: ;; 1203 1204 -with-* | --with-*) 1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1206 # Reject names that are not valid shell variable names. 1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1208 as_fn_error $? "invalid package name: $ac_useropt" 1209 ac_useropt_orig=$ac_useropt 1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1211 case $ac_user_opts in 1212 *" 1213"with_$ac_useropt" 1214"*) ;; 1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1216 ac_unrecognized_sep=', ';; 1217 esac 1218 eval with_$ac_useropt=\$ac_optarg ;; 1219 1220 -without-* | --without-*) 1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1222 # Reject names that are not valid shell variable names. 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1224 as_fn_error $? "invalid package name: $ac_useropt" 1225 ac_useropt_orig=$ac_useropt 1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1227 case $ac_user_opts in 1228 *" 1229"with_$ac_useropt" 1230"*) ;; 1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1232 ac_unrecognized_sep=', ';; 1233 esac 1234 eval with_$ac_useropt=no ;; 1235 1236 --x) 1237 # Obsolete; use --with-x. 1238 with_x=yes ;; 1239 1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1241 | --x-incl | --x-inc | --x-in | --x-i) 1242 ac_prev=x_includes ;; 1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1245 x_includes=$ac_optarg ;; 1246 1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1249 ac_prev=x_libraries ;; 1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1252 x_libraries=$ac_optarg ;; 1253 1254 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1255Try \`$0 --help' for more information" 1256 ;; 1257 1258 *=*) 1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1260 # Reject names that are not valid shell variable names. 1261 case $ac_envvar in #( 1262 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1264 esac 1265 eval $ac_envvar=\$ac_optarg 1266 export $ac_envvar ;; 1267 1268 *) 1269 # FIXME: should be removed in autoconf 3.0. 1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1274 ;; 1275 1276 esac 1277done 1278 1279if test -n "$ac_prev"; then 1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1281 as_fn_error $? "missing argument to $ac_option" 1282fi 1283 1284if test -n "$ac_unrecognized_opts"; then 1285 case $enable_option_checking in 1286 no) ;; 1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1289 esac 1290fi 1291 1292# Check all directory arguments for consistency. 1293for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1294 datadir sysconfdir sharedstatedir localstatedir includedir \ 1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1296 libdir localedir mandir 1297do 1298 eval ac_val=\$$ac_var 1299 # Remove trailing slashes. 1300 case $ac_val in 1301 */ ) 1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1303 eval $ac_var=\$ac_val;; 1304 esac 1305 # Be sure to have absolute directory names. 1306 case $ac_val in 1307 [\\/$]* | ?:[\\/]* ) continue;; 1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1309 esac 1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1311done 1312 1313# There might be people who depend on the old broken behavior: `$host' 1314# used to hold the argument of --host etc. 1315# FIXME: To remove some day. 1316build=$build_alias 1317host=$host_alias 1318target=$target_alias 1319 1320# FIXME: To remove some day. 1321if test "x$host_alias" != x; then 1322 if test "x$build_alias" = x; then 1323 cross_compiling=maybe 1324 elif test "x$build_alias" != "x$host_alias"; then 1325 cross_compiling=yes 1326 fi 1327fi 1328 1329ac_tool_prefix= 1330test -n "$host_alias" && ac_tool_prefix=$host_alias- 1331 1332test "$silent" = yes && exec 6>/dev/null 1333 1334 1335ac_pwd=`pwd` && test -n "$ac_pwd" && 1336ac_ls_di=`ls -di .` && 1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1338 as_fn_error $? "working directory cannot be determined" 1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1340 as_fn_error $? "pwd does not report name of working directory" 1341 1342 1343# Find the source files, if location was not specified. 1344if test -z "$srcdir"; then 1345 ac_srcdir_defaulted=yes 1346 # Try the directory containing this script, then the parent directory. 1347 ac_confdir=`$as_dirname -- "$as_myself" || 1348$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1349 X"$as_myself" : 'X\(//\)[^/]' \| \ 1350 X"$as_myself" : 'X\(//\)$' \| \ 1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1352$as_echo X"$as_myself" | 1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)[^/].*/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)$/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\).*/{ 1366 s//\1/ 1367 q 1368 } 1369 s/.*/./; q'` 1370 srcdir=$ac_confdir 1371 if test ! -r "$srcdir/$ac_unique_file"; then 1372 srcdir=.. 1373 fi 1374else 1375 ac_srcdir_defaulted=no 1376fi 1377if test ! -r "$srcdir/$ac_unique_file"; then 1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1380fi 1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1382ac_abs_confdir=`( 1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1384 pwd)` 1385# When building in place, set srcdir=. 1386if test "$ac_abs_confdir" = "$ac_pwd"; then 1387 srcdir=. 1388fi 1389# Remove unnecessary trailing slashes from srcdir. 1390# Double slashes in file names in object file debugging info 1391# mess up M-x gdb in Emacs. 1392case $srcdir in 1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1394esac 1395for ac_var in $ac_precious_vars; do 1396 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_env_${ac_var}_value=\$${ac_var} 1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1400done 1401 1402# 1403# Report the --help message. 1404# 1405if test "$ac_init_help" = "long"; then 1406 # Omit some internal or obsolete options to make the list less imposing. 1407 # This message is too long to be a string in the A/UX 3.1 sh. 1408 cat <<_ACEOF 1409\`configure' configures OpenSMTPD-extras 5.7.2 to adapt to many kinds of systems. 1410 1411Usage: $0 [OPTION]... [VAR=VALUE]... 1412 1413To assign environment variables (e.g., CC, CFLAGS...), specify them as 1414VAR=VALUE. See below for descriptions of some of the useful variables. 1415 1416Defaults for the options are specified in brackets. 1417 1418Configuration: 1419 -h, --help display this help and exit 1420 --help=short display options specific to this package 1421 --help=recursive display the short help of all the included packages 1422 -V, --version display version information and exit 1423 -q, --quiet, --silent do not print \`checking ...' messages 1424 --cache-file=FILE cache test results in FILE [disabled] 1425 -C, --config-cache alias for \`--cache-file=config.cache' 1426 -n, --no-create do not create output files 1427 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1428 1429Installation directories: 1430 --prefix=PREFIX install architecture-independent files in PREFIX 1431 [$ac_default_prefix] 1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1433 [PREFIX] 1434 1435By default, \`make install' will install all the files in 1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1437an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1438for instance \`--prefix=\$HOME'. 1439 1440For better control, use the options below. 1441 1442Fine tuning of the installation directories: 1443 --bindir=DIR user executables [EPREFIX/bin] 1444 --sbindir=DIR system admin executables [EPREFIX/sbin] 1445 --libexecdir=DIR program executables [EPREFIX/libexec] 1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1449 --libdir=DIR object code libraries [EPREFIX/lib] 1450 --includedir=DIR C header files [PREFIX/include] 1451 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1454 --infodir=DIR info documentation [DATAROOTDIR/info] 1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1456 --mandir=DIR man documentation [DATAROOTDIR/man] 1457 --docdir=DIR documentation root 1458 [DATAROOTDIR/doc/opensmtpd-extras] 1459 --htmldir=DIR html documentation [DOCDIR] 1460 --dvidir=DIR dvi documentation [DOCDIR] 1461 --pdfdir=DIR pdf documentation [DOCDIR] 1462 --psdir=DIR ps documentation [DOCDIR] 1463_ACEOF 1464 1465 cat <<\_ACEOF 1466 1467Program names: 1468 --program-prefix=PREFIX prepend PREFIX to installed program names 1469 --program-suffix=SUFFIX append SUFFIX to installed program names 1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1471 1472System types: 1473 --build=BUILD configure for building on BUILD [guessed] 1474 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1475_ACEOF 1476fi 1477 1478if test -n "$ac_init_help"; then 1479 case $ac_init_help in 1480 short | recursive ) echo "Configuration of OpenSMTPD-extras 5.7.2:";; 1481 esac 1482 cat <<\_ACEOF 1483 1484Optional Features: 1485 --disable-option-checking ignore unrecognized --enable/--with options 1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1488 --enable-shared[=PKGS] build shared libraries [default=yes] 1489 --enable-static[=PKGS] build static libraries [default=yes] 1490 --enable-fast-install[=PKGS] 1491 optimize for fast installation [default=yes] 1492 --disable-libtool-lock avoid locking (might break parallel builds) 1493 --enable-silent-rules less verbose build output (undo: "make V=1") 1494 --disable-silent-rules verbose build output (undo: "make V=0") 1495 --disable-strip Disable calling strip(1) on install 1496 1497Optional Packages: 1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1501 both] 1502 --with-aix-soname=aix|svr4|both 1503 shared library versioning (aka "SONAME") variant to 1504 provide on AIX, [default=aix]. 1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1507 compiler's sysroot if not specified). 1508 --without-rpath Disable auto-added -R linker paths 1509 --with-cflags Specify additional flags to pass to compiler 1510 --with-cppflags Specify additional flags to pass to preprocessor 1511 --with-ldflags Specify additional flags to pass to linker 1512 --with-libs Specify additional libraries to link with 1513 --with-Werror Build main code with -Werror 1514 --with-pie Build Position Independent Executables if possible 1515 --with-libssl=PATH Specify path to libssl installation 1516 --with-user-smtpd=user Specify non-privileged user for privilege separation (default=_smtpd) 1517 --with-path-empty=PATH Specify path to empty directory (default=/var/empty) 1518 --with-mantype=man|cat|doc Set man page type 1519 --with-filter-monkey Enable filter monkey 1520 --with-filter-stub Enable filter stub 1521 --with-filter-trace Enable filter trace 1522 --with-filter-void Enable filter void 1523 --with-queue-null Enable queue null 1524 --with-queue-python Enable queue python 1525 --with-queue-ram Enable queue ram 1526 --with-queue-stub Enable queue stub 1527 --with-table-ldap Enable table LDAP 1528 --with-table-mysql Enable table MySQL 1529 --with-table-postgres Enable table PostgreSQL 1530 --with-table-redis Enable table Redis 1531 --with-table-socketmap Enable table socketmap 1532 --with-table-passwd Enable table passwd 1533 --with-table-python Enable table python 1534 --with-table-sqlite Enable table SQLite 1535 --with-table-stub Enable table stub 1536 --with-tool-stats Enable tool stats 1537 --with-scheduler-ram Enable scheduler ram 1538 --with-scheduler-stub Enable scheduler stub 1539 --with-scheduler-python Enable scheduler python 1540 --with-python=PATH Specify prefix of python installation 1541 --with-python-type=PATH Specify the type of python used 1542 --with-perl=PATH Specify prefix of perl installation 1543 --with-lua=PATH Specify prefix of lua installation 1544 --with-lua-type=PATH Specify the type of lua used (automatic if unspecified, otherwise luajit, lua, or another version) 1545 --with-libevent=PATH Specify path to libevent installation 1546 1547Some influential environment variables: 1548 CC C compiler command 1549 CFLAGS C compiler flags 1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1551 nonstandard directory <lib dir> 1552 LIBS libraries to pass to the linker, e.g. -l<library> 1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1554 you have headers in a nonstandard directory <include dir> 1555 CPP C preprocessor 1556 LT_SYS_LIBRARY_PATH 1557 User-defined run-time library search path. 1558 1559Use these variables to override the choices made by `configure' or to help 1560it to find libraries and programs with nonstandard names/locations. 1561 1562Report bugs to <bugs@opensmtpd.org>. 1563OpenSMTPD-extras home page: <https://github.com/OpenSMTPD/OpenSMTPD-extras>. 1564_ACEOF 1565ac_status=$? 1566fi 1567 1568if test "$ac_init_help" = "recursive"; then 1569 # If there are subdirs, report their specific --help. 1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1571 test -d "$ac_dir" || 1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1573 continue 1574 ac_builddir=. 1575 1576case "$ac_dir" in 1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578*) 1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1580 # A ".." for each directory in $ac_dir_suffix. 1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1582 case $ac_top_builddir_sub in 1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1585 esac ;; 1586esac 1587ac_abs_top_builddir=$ac_pwd 1588ac_abs_builddir=$ac_pwd$ac_dir_suffix 1589# for backward compatibility: 1590ac_top_builddir=$ac_top_build_prefix 1591 1592case $srcdir in 1593 .) # We are building in place. 1594 ac_srcdir=. 1595 ac_top_srcdir=$ac_top_builddir_sub 1596 ac_abs_top_srcdir=$ac_pwd ;; 1597 [\\/]* | ?:[\\/]* ) # Absolute name. 1598 ac_srcdir=$srcdir$ac_dir_suffix; 1599 ac_top_srcdir=$srcdir 1600 ac_abs_top_srcdir=$srcdir ;; 1601 *) # Relative name. 1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1603 ac_top_srcdir=$ac_top_build_prefix$srcdir 1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1605esac 1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1607 1608 cd "$ac_dir" || { ac_status=$?; continue; } 1609 # Check for guested configure. 1610 if test -f "$ac_srcdir/configure.gnu"; then 1611 echo && 1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1613 elif test -f "$ac_srcdir/configure"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure" --help=recursive 1616 else 1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1618 fi || ac_status=$? 1619 cd "$ac_pwd" || { ac_status=$?; break; } 1620 done 1621fi 1622 1623test -n "$ac_init_help" && exit $ac_status 1624if $ac_init_version; then 1625 cat <<\_ACEOF 1626OpenSMTPD-extras configure 5.7.2 1627generated by GNU Autoconf 2.69 1628 1629Copyright (C) 2012 Free Software Foundation, Inc. 1630This configure script is free software; the Free Software Foundation 1631gives unlimited permission to copy, distribute and modify it. 1632_ACEOF 1633 exit 1634fi 1635 1636## ------------------------ ## 1637## Autoconf initialization. ## 1638## ------------------------ ## 1639 1640# ac_fn_c_try_compile LINENO 1641# -------------------------- 1642# Try to compile conftest.$ac_ext, and return whether this succeeded. 1643ac_fn_c_try_compile () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 rm -f conftest.$ac_objext 1647 if { { ac_try="$ac_compile" 1648case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_compile") 2>conftest.err 1655 ac_status=$? 1656 if test -s conftest.err; then 1657 grep -v '^ *+' conftest.err >conftest.er1 1658 cat conftest.er1 >&5 1659 mv -f conftest.er1 conftest.err 1660 fi 1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; } && { 1663 test -z "$ac_c_werror_flag" || 1664 test ! -s conftest.err 1665 } && test -s conftest.$ac_objext; then : 1666 ac_retval=0 1667else 1668 $as_echo "$as_me: failed program was:" >&5 1669sed 's/^/| /' conftest.$ac_ext >&5 1670 1671 ac_retval=1 1672fi 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 as_fn_set_status $ac_retval 1675 1676} # ac_fn_c_try_compile 1677 1678# ac_fn_c_try_run LINENO 1679# ---------------------- 1680# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1681# that executables *can* be run. 1682ac_fn_c_try_run () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 if { { ac_try="$ac_link" 1686case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_link") 2>&5 1693 ac_status=$? 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1696 { { case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701$as_echo "$ac_try_echo"; } >&5 1702 (eval "$ac_try") 2>&5 1703 ac_status=$? 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; }; }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: program exited with status $ac_status" >&5 1709 $as_echo "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=$ac_status 1713fi 1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_run 1719 1720# ac_fn_c_try_cpp LINENO 1721# ---------------------- 1722# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1723ac_fn_c_try_cpp () 1724{ 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1726 if { { ac_try="$ac_cpp conftest.$ac_ext" 1727case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1734 ac_status=$? 1735 if test -s conftest.err; then 1736 grep -v '^ *+' conftest.err >conftest.er1 1737 cat conftest.er1 >&5 1738 mv -f conftest.er1 conftest.err 1739 fi 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } > conftest.i && { 1742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1743 test ! -s conftest.err 1744 }; then : 1745 ac_retval=0 1746else 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=1 1751fi 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_cpp 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval \${$3+:} false; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_header_compile 1787 1788# ac_fn_c_try_link LINENO 1789# ----------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_link () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 rm -f conftest.$ac_objext conftest$ac_exeext 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { 1811 test -z "$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 } && test -s conftest$ac_exeext && { 1814 test "$cross_compiling" = yes || 1815 test -x conftest$ac_exeext 1816 }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=1 1823fi 1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1826 # interfere with the next link command; also delete a directory that is 1827 # left behind by Apple's compiler. We do this before executing the actions. 1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 as_fn_set_status $ac_retval 1831 1832} # ac_fn_c_try_link 1833 1834# ac_fn_c_check_func LINENO FUNC VAR 1835# ---------------------------------- 1836# Tests whether FUNC exists, setting the cache variable VAR accordingly 1837ac_fn_c_check_func () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1841$as_echo_n "checking for $2... " >&6; } 1842if eval \${$3+:} false; then : 1843 $as_echo_n "(cached) " >&6 1844else 1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1846/* end confdefs.h. */ 1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1849#define $2 innocuous_$2 1850 1851/* System header to define __stub macros and hopefully few prototypes, 1852 which can conflict with char $2 (); below. 1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1854 <limits.h> exists even on freestanding compilers. */ 1855 1856#ifdef __STDC__ 1857# include <limits.h> 1858#else 1859# include <assert.h> 1860#endif 1861 1862#undef $2 1863 1864/* Override any GCC internal prototype to avoid an error. 1865 Use char because int might match the return type of a GCC 1866 builtin and then its argument prototype would still apply. */ 1867#ifdef __cplusplus 1868extern "C" 1869#endif 1870char $2 (); 1871/* The GNU C library defines this for functions which it implements 1872 to always fail with ENOSYS. Some functions are actually named 1873 something starting with __ and the normal name is an alias. */ 1874#if defined __stub_$2 || defined __stub___$2 1875choke me 1876#endif 1877 1878int 1879main () 1880{ 1881return $2 (); 1882 ; 1883 return 0; 1884} 1885_ACEOF 1886if ac_fn_c_try_link "$LINENO"; then : 1887 eval "$3=yes" 1888else 1889 eval "$3=no" 1890fi 1891rm -f core conftest.err conftest.$ac_objext \ 1892 conftest$ac_exeext conftest.$ac_ext 1893fi 1894eval ac_res=\$$3 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1896$as_echo "$ac_res" >&6; } 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 1899} # ac_fn_c_check_func 1900 1901# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1902# --------------------------------------------- 1903# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1904# accordingly. 1905ac_fn_c_check_decl () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 as_decl_name=`echo $2|sed 's/ *(.*//'` 1909 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1911$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914else 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918int 1919main () 1920{ 1921#ifndef $as_decl_name 1922#ifdef __cplusplus 1923 (void) $as_decl_use; 1924#else 1925 (void) $as_decl_name; 1926#endif 1927#endif 1928 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933if ac_fn_c_try_compile "$LINENO"; then : 1934 eval "$3=yes" 1935else 1936 eval "$3=no" 1937fi 1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1939fi 1940eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942$as_echo "$ac_res" >&6; } 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 1945} # ac_fn_c_check_decl 1946 1947# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1948# ------------------------------------------------------- 1949# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1950# the include files in INCLUDES and setting the cache variable VAR 1951# accordingly. 1952ac_fn_c_check_header_mongrel () 1953{ 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1955 if eval \${$3+:} false; then : 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957$as_echo_n "checking for $2... " >&6; } 1958if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960fi 1961eval ac_res=\$$3 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1963$as_echo "$ac_res" >&6; } 1964else 1965 # Is the header compilable? 1966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1967$as_echo_n "checking $2 usability... " >&6; } 1968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1969/* end confdefs.h. */ 1970$4 1971#include <$2> 1972_ACEOF 1973if ac_fn_c_try_compile "$LINENO"; then : 1974 ac_header_compiler=yes 1975else 1976 ac_header_compiler=no 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1980$as_echo "$ac_header_compiler" >&6; } 1981 1982# Is the header present? 1983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1984$as_echo_n "checking $2 presence... " >&6; } 1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987#include <$2> 1988_ACEOF 1989if ac_fn_c_try_cpp "$LINENO"; then : 1990 ac_header_preproc=yes 1991else 1992 ac_header_preproc=no 1993fi 1994rm -f conftest.err conftest.i conftest.$ac_ext 1995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1996$as_echo "$ac_header_preproc" >&6; } 1997 1998# So? What about this header? 1999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2000 yes:no: ) 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2002$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2004$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2005 ;; 2006 no:yes:* ) 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2008$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2010$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2012$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2014$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2016$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2017( $as_echo "## --------------------------------- ## 2018## Report this to bugs@opensmtpd.org ## 2019## --------------------------------- ##" 2020 ) | sed "s/^/$as_me: WARNING: /" >&2 2021 ;; 2022esac 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2024$as_echo_n "checking for $2... " >&6; } 2025if eval \${$3+:} false; then : 2026 $as_echo_n "(cached) " >&6 2027else 2028 eval "$3=\$ac_header_compiler" 2029fi 2030eval ac_res=\$$3 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2032$as_echo "$ac_res" >&6; } 2033fi 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2035 2036} # ac_fn_c_check_header_mongrel 2037 2038# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2039# ------------------------------------------- 2040# Tests whether TYPE exists after having included INCLUDES, setting cache 2041# variable VAR accordingly. 2042ac_fn_c_check_type () 2043{ 2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2046$as_echo_n "checking for $2... " >&6; } 2047if eval \${$3+:} false; then : 2048 $as_echo_n "(cached) " >&6 2049else 2050 eval "$3=no" 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$4 2054int 2055main () 2056{ 2057if (sizeof ($2)) 2058 return 0; 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_compile "$LINENO"; then : 2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2065/* end confdefs.h. */ 2066$4 2067int 2068main () 2069{ 2070if (sizeof (($2))) 2071 return 0; 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO"; then : 2077 2078else 2079 eval "$3=yes" 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082fi 2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2084fi 2085eval ac_res=\$$3 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2087$as_echo "$ac_res" >&6; } 2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2089 2090} # ac_fn_c_check_type 2091 2092# ac_fn_c_find_uintX_t LINENO BITS VAR 2093# ------------------------------------ 2094# Finds an unsigned integer type with width BITS, setting cache variable VAR 2095# accordingly. 2096ac_fn_c_find_uintX_t () 2097{ 2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2100$as_echo_n "checking for uint$2_t... " >&6; } 2101if eval \${$3+:} false; then : 2102 $as_echo_n "(cached) " >&6 2103else 2104 eval "$3=no" 2105 # Order is important - never check a type that is potentially smaller 2106 # than half of the expected target width. 2107 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2108 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$ac_includes_default 2112int 2113main () 2114{ 2115static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2116test_array [0] = 0; 2117return test_array [0]; 2118 2119 ; 2120 return 0; 2121} 2122_ACEOF 2123if ac_fn_c_try_compile "$LINENO"; then : 2124 case $ac_type in #( 2125 uint$2_t) : 2126 eval "$3=yes" ;; #( 2127 *) : 2128 eval "$3=\$ac_type" ;; 2129esac 2130fi 2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2132 if eval test \"x\$"$3"\" = x"no"; then : 2133 2134else 2135 break 2136fi 2137 done 2138fi 2139eval ac_res=\$$3 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2141$as_echo "$ac_res" >&6; } 2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2143 2144} # ac_fn_c_find_uintX_t 2145 2146# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2147# -------------------------------------------- 2148# Tries to find the compile-time value of EXPR in a program that includes 2149# INCLUDES, setting VAR accordingly. Returns whether the value could be 2150# computed 2151ac_fn_c_compute_int () 2152{ 2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2154 if test "$cross_compiling" = yes; then 2155 # Depending upon the size, compute the lo and hi bounds. 2156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159int 2160main () 2161{ 2162static int test_array [1 - 2 * !(($2) >= 0)]; 2163test_array [0] = 0; 2164return test_array [0]; 2165 2166 ; 2167 return 0; 2168} 2169_ACEOF 2170if ac_fn_c_try_compile "$LINENO"; then : 2171 ac_lo=0 ac_mid=0 2172 while :; do 2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2174/* end confdefs.h. */ 2175$4 2176int 2177main () 2178{ 2179static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2180test_array [0] = 0; 2181return test_array [0]; 2182 2183 ; 2184 return 0; 2185} 2186_ACEOF 2187if ac_fn_c_try_compile "$LINENO"; then : 2188 ac_hi=$ac_mid; break 2189else 2190 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2191 if test $ac_lo -le $ac_mid; then 2192 ac_lo= ac_hi= 2193 break 2194 fi 2195 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2196fi 2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2198 done 2199else 2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2201/* end confdefs.h. */ 2202$4 2203int 2204main () 2205{ 2206static int test_array [1 - 2 * !(($2) < 0)]; 2207test_array [0] = 0; 2208return test_array [0]; 2209 2210 ; 2211 return 0; 2212} 2213_ACEOF 2214if ac_fn_c_try_compile "$LINENO"; then : 2215 ac_hi=-1 ac_mid=-1 2216 while :; do 2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2218/* end confdefs.h. */ 2219$4 2220int 2221main () 2222{ 2223static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2224test_array [0] = 0; 2225return test_array [0]; 2226 2227 ; 2228 return 0; 2229} 2230_ACEOF 2231if ac_fn_c_try_compile "$LINENO"; then : 2232 ac_lo=$ac_mid; break 2233else 2234 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2235 if test $ac_mid -le $ac_hi; then 2236 ac_lo= ac_hi= 2237 break 2238 fi 2239 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2240fi 2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2242 done 2243else 2244 ac_lo= ac_hi= 2245fi 2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2247fi 2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2249# Binary search between lo and hi bounds. 2250while test "x$ac_lo" != "x$ac_hi"; do 2251 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2253/* end confdefs.h. */ 2254$4 2255int 2256main () 2257{ 2258static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2259test_array [0] = 0; 2260return test_array [0]; 2261 2262 ; 2263 return 0; 2264} 2265_ACEOF 2266if ac_fn_c_try_compile "$LINENO"; then : 2267 ac_hi=$ac_mid 2268else 2269 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2270fi 2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2272done 2273case $ac_lo in #(( 2274?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2275'') ac_retval=1 ;; 2276esac 2277 else 2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2279/* end confdefs.h. */ 2280$4 2281static long int longval () { return $2; } 2282static unsigned long int ulongval () { return $2; } 2283#include <stdio.h> 2284#include <stdlib.h> 2285int 2286main () 2287{ 2288 2289 FILE *f = fopen ("conftest.val", "w"); 2290 if (! f) 2291 return 1; 2292 if (($2) < 0) 2293 { 2294 long int i = longval (); 2295 if (i != ($2)) 2296 return 1; 2297 fprintf (f, "%ld", i); 2298 } 2299 else 2300 { 2301 unsigned long int i = ulongval (); 2302 if (i != ($2)) 2303 return 1; 2304 fprintf (f, "%lu", i); 2305 } 2306 /* Do not output a trailing newline, as this causes \r\n confusion 2307 on some platforms. */ 2308 return ferror (f) || fclose (f) != 0; 2309 2310 ; 2311 return 0; 2312} 2313_ACEOF 2314if ac_fn_c_try_run "$LINENO"; then : 2315 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2316else 2317 ac_retval=1 2318fi 2319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2320 conftest.$ac_objext conftest.beam conftest.$ac_ext 2321rm -f conftest.val 2322 2323 fi 2324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2325 as_fn_set_status $ac_retval 2326 2327} # ac_fn_c_compute_int 2328 2329# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2330# ---------------------------------------------------- 2331# Tries to find if the field MEMBER exists in type AGGR, after including 2332# INCLUDES, setting cache variable VAR accordingly. 2333ac_fn_c_check_member () 2334{ 2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2337$as_echo_n "checking for $2.$3... " >&6; } 2338if eval \${$4+:} false; then : 2339 $as_echo_n "(cached) " >&6 2340else 2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2342/* end confdefs.h. */ 2343$5 2344int 2345main () 2346{ 2347static $2 ac_aggr; 2348if (ac_aggr.$3) 2349return 0; 2350 ; 2351 return 0; 2352} 2353_ACEOF 2354if ac_fn_c_try_compile "$LINENO"; then : 2355 eval "$4=yes" 2356else 2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2358/* end confdefs.h. */ 2359$5 2360int 2361main () 2362{ 2363static $2 ac_aggr; 2364if (sizeof ac_aggr.$3) 2365return 0; 2366 ; 2367 return 0; 2368} 2369_ACEOF 2370if ac_fn_c_try_compile "$LINENO"; then : 2371 eval "$4=yes" 2372else 2373 eval "$4=no" 2374fi 2375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2376fi 2377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2378fi 2379eval ac_res=\$$4 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2381$as_echo "$ac_res" >&6; } 2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2383 2384} # ac_fn_c_check_member 2385cat >config.log <<_ACEOF 2386This file contains any messages produced by compilers while 2387running configure, to aid debugging if configure makes a mistake. 2388 2389It was created by OpenSMTPD-extras $as_me 5.7.2, which was 2390generated by GNU Autoconf 2.69. Invocation command line was 2391 2392 $ $0 $@ 2393 2394_ACEOF 2395exec 5>>config.log 2396{ 2397cat <<_ASUNAME 2398## --------- ## 2399## Platform. ## 2400## --------- ## 2401 2402hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2403uname -m = `(uname -m) 2>/dev/null || echo unknown` 2404uname -r = `(uname -r) 2>/dev/null || echo unknown` 2405uname -s = `(uname -s) 2>/dev/null || echo unknown` 2406uname -v = `(uname -v) 2>/dev/null || echo unknown` 2407 2408/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2409/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2410 2411/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2412/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2413/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2414/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2415/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2416/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2417/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2418 2419_ASUNAME 2420 2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422for as_dir in $PATH 2423do 2424 IFS=$as_save_IFS 2425 test -z "$as_dir" && as_dir=. 2426 $as_echo "PATH: $as_dir" 2427 done 2428IFS=$as_save_IFS 2429 2430} >&5 2431 2432cat >&5 <<_ACEOF 2433 2434 2435## ----------- ## 2436## Core tests. ## 2437## ----------- ## 2438 2439_ACEOF 2440 2441 2442# Keep a trace of the command line. 2443# Strip out --no-create and --no-recursion so they do not pile up. 2444# Strip out --silent because we don't want to record it for future runs. 2445# Also quote any args containing shell meta-characters. 2446# Make two passes to allow for proper duplicate-argument suppression. 2447ac_configure_args= 2448ac_configure_args0= 2449ac_configure_args1= 2450ac_must_keep_next=false 2451for ac_pass in 1 2 2452do 2453 for ac_arg 2454 do 2455 case $ac_arg in 2456 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2458 | -silent | --silent | --silen | --sile | --sil) 2459 continue ;; 2460 *\'*) 2461 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2462 esac 2463 case $ac_pass in 2464 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2465 2) 2466 as_fn_append ac_configure_args1 " '$ac_arg'" 2467 if test $ac_must_keep_next = true; then 2468 ac_must_keep_next=false # Got value, back to normal. 2469 else 2470 case $ac_arg in 2471 *=* | --config-cache | -C | -disable-* | --disable-* \ 2472 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2473 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2474 | -with-* | --with-* | -without-* | --without-* | --x) 2475 case "$ac_configure_args0 " in 2476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2477 esac 2478 ;; 2479 -* ) ac_must_keep_next=true ;; 2480 esac 2481 fi 2482 as_fn_append ac_configure_args " '$ac_arg'" 2483 ;; 2484 esac 2485 done 2486done 2487{ ac_configure_args0=; unset ac_configure_args0;} 2488{ ac_configure_args1=; unset ac_configure_args1;} 2489 2490# When interrupted or exit'd, cleanup temporary files, and complete 2491# config.log. We remove comments because anyway the quotes in there 2492# would cause problems or look ugly. 2493# WARNING: Use '\'' to represent an apostrophe within the trap. 2494# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2495trap 'exit_status=$? 2496 # Save into config.log some information that might help in debugging. 2497 { 2498 echo 2499 2500 $as_echo "## ---------------- ## 2501## Cache variables. ## 2502## ---------------- ##" 2503 echo 2504 # The following way of writing the cache mishandles newlines in values, 2505( 2506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2507 eval ac_val=\$$ac_var 2508 case $ac_val in #( 2509 *${as_nl}*) 2510 case $ac_var in #( 2511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2512$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2513 esac 2514 case $ac_var in #( 2515 _ | IFS | as_nl) ;; #( 2516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2517 *) { eval $ac_var=; unset $ac_var;} ;; 2518 esac ;; 2519 esac 2520 done 2521 (set) 2>&1 | 2522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2523 *${as_nl}ac_space=\ *) 2524 sed -n \ 2525 "s/'\''/'\''\\\\'\'''\''/g; 2526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2527 ;; #( 2528 *) 2529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2530 ;; 2531 esac | 2532 sort 2533) 2534 echo 2535 2536 $as_echo "## ----------------- ## 2537## Output variables. ## 2538## ----------------- ##" 2539 echo 2540 for ac_var in $ac_subst_vars 2541 do 2542 eval ac_val=\$$ac_var 2543 case $ac_val in 2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2545 esac 2546 $as_echo "$ac_var='\''$ac_val'\''" 2547 done | sort 2548 echo 2549 2550 if test -n "$ac_subst_files"; then 2551 $as_echo "## ------------------- ## 2552## File substitutions. ## 2553## ------------------- ##" 2554 echo 2555 for ac_var in $ac_subst_files 2556 do 2557 eval ac_val=\$$ac_var 2558 case $ac_val in 2559 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2560 esac 2561 $as_echo "$ac_var='\''$ac_val'\''" 2562 done | sort 2563 echo 2564 fi 2565 2566 if test -s confdefs.h; then 2567 $as_echo "## ----------- ## 2568## confdefs.h. ## 2569## ----------- ##" 2570 echo 2571 cat confdefs.h 2572 echo 2573 fi 2574 test "$ac_signal" != 0 && 2575 $as_echo "$as_me: caught signal $ac_signal" 2576 $as_echo "$as_me: exit $exit_status" 2577 } >&5 2578 rm -f core *.core core.conftest.* && 2579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2580 exit $exit_status 2581' 0 2582for ac_signal in 1 2 13 15; do 2583 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2584done 2585ac_signal=0 2586 2587# confdefs.h avoids OS command line length limits that DEFS can exceed. 2588rm -f -r conftest* confdefs.h 2589 2590$as_echo "/* confdefs.h */" > confdefs.h 2591 2592# Predefined preprocessor variables. 2593 2594cat >>confdefs.h <<_ACEOF 2595#define PACKAGE_NAME "$PACKAGE_NAME" 2596_ACEOF 2597 2598cat >>confdefs.h <<_ACEOF 2599#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2600_ACEOF 2601 2602cat >>confdefs.h <<_ACEOF 2603#define PACKAGE_VERSION "$PACKAGE_VERSION" 2604_ACEOF 2605 2606cat >>confdefs.h <<_ACEOF 2607#define PACKAGE_STRING "$PACKAGE_STRING" 2608_ACEOF 2609 2610cat >>confdefs.h <<_ACEOF 2611#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2612_ACEOF 2613 2614cat >>confdefs.h <<_ACEOF 2615#define PACKAGE_URL "$PACKAGE_URL" 2616_ACEOF 2617 2618 2619# Let the site file select an alternate cache file if it wants to. 2620# Prefer an explicitly selected file to automatically selected ones. 2621ac_site_file1=NONE 2622ac_site_file2=NONE 2623if test -n "$CONFIG_SITE"; then 2624 # We do not want a PATH search for config.site. 2625 case $CONFIG_SITE in #(( 2626 -*) ac_site_file1=./$CONFIG_SITE;; 2627 */*) ac_site_file1=$CONFIG_SITE;; 2628 *) ac_site_file1=./$CONFIG_SITE;; 2629 esac 2630elif test "x$prefix" != xNONE; then 2631 ac_site_file1=$prefix/share/config.site 2632 ac_site_file2=$prefix/etc/config.site 2633else 2634 ac_site_file1=$ac_default_prefix/share/config.site 2635 ac_site_file2=$ac_default_prefix/etc/config.site 2636fi 2637for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2638do 2639 test "x$ac_site_file" = xNONE && continue 2640 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2642$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2643 sed 's/^/| /' "$ac_site_file" >&5 2644 . "$ac_site_file" \ 2645 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2647as_fn_error $? "failed to load site script $ac_site_file 2648See \`config.log' for more details" "$LINENO" 5; } 2649 fi 2650done 2651 2652if test -r "$cache_file"; then 2653 # Some versions of bash will fail to source /dev/null (special files 2654 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2655 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2657$as_echo "$as_me: loading cache $cache_file" >&6;} 2658 case $cache_file in 2659 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2660 *) . "./$cache_file";; 2661 esac 2662 fi 2663else 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2665$as_echo "$as_me: creating cache $cache_file" >&6;} 2666 >$cache_file 2667fi 2668 2669# Check that the precious variables saved in the cache have kept the same 2670# value. 2671ac_cache_corrupted=false 2672for ac_var in $ac_precious_vars; do 2673 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2674 eval ac_new_set=\$ac_env_${ac_var}_set 2675 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2676 eval ac_new_val=\$ac_env_${ac_var}_value 2677 case $ac_old_set,$ac_new_set in 2678 set,) 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2680$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2681 ac_cache_corrupted=: ;; 2682 ,set) 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2684$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2685 ac_cache_corrupted=: ;; 2686 ,);; 2687 *) 2688 if test "x$ac_old_val" != "x$ac_new_val"; then 2689 # differences in whitespace do not lead to failure. 2690 ac_old_val_w=`echo x $ac_old_val` 2691 ac_new_val_w=`echo x $ac_new_val` 2692 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2694$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2695 ac_cache_corrupted=: 2696 else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2698$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2699 eval $ac_var=\$ac_old_val 2700 fi 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2702$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2704$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2705 fi;; 2706 esac 2707 # Pass precious variables to config.status. 2708 if test "$ac_new_set" = set; then 2709 case $ac_new_val in 2710 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2711 *) ac_arg=$ac_var=$ac_new_val ;; 2712 esac 2713 case " $ac_configure_args " in 2714 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2715 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2716 esac 2717 fi 2718done 2719if $ac_cache_corrupted; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2723$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2724 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2725fi 2726## -------------------- ## 2727## Main body of script. ## 2728## -------------------- ## 2729 2730ac_ext=c 2731ac_cpp='$CPP $CPPFLAGS' 2732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2734ac_compiler_gnu=$ac_cv_c_compiler_gnu 2735 2736 2737 2738ac_ext=c 2739ac_cpp='$CPP $CPPFLAGS' 2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2742ac_compiler_gnu=$ac_cv_c_compiler_gnu 2743 2744 2745 2746ac_config_headers="$ac_config_headers config.h" 2747 2748ac_ext=c 2749ac_cpp='$CPP $CPPFLAGS' 2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2752ac_compiler_gnu=$ac_cv_c_compiler_gnu 2753if test -n "$ac_tool_prefix"; then 2754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2755set dummy ${ac_tool_prefix}gcc; ac_word=$2 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2757$as_echo_n "checking for $ac_word... " >&6; } 2758if ${ac_cv_prog_CC+:} false; then : 2759 $as_echo_n "(cached) " >&6 2760else 2761 if test -n "$CC"; then 2762 ac_cv_prog_CC="$CC" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2771 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776 done 2777IFS=$as_save_IFS 2778 2779fi 2780fi 2781CC=$ac_cv_prog_CC 2782if test -n "$CC"; then 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2784$as_echo "$CC" >&6; } 2785else 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2787$as_echo "no" >&6; } 2788fi 2789 2790 2791fi 2792if test -z "$ac_cv_prog_CC"; then 2793 ac_ct_CC=$CC 2794 # Extract the first word of "gcc", so it can be a program name with args. 2795set dummy gcc; ac_word=$2 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2797$as_echo_n "checking for $ac_word... " >&6; } 2798if ${ac_cv_prog_ac_ct_CC+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 if test -n "$ac_ct_CC"; then 2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2803else 2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805for as_dir in $PATH 2806do 2807 IFS=$as_save_IFS 2808 test -z "$as_dir" && as_dir=. 2809 for ac_exec_ext in '' $ac_executable_extensions; do 2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2811 ac_cv_prog_ac_ct_CC="gcc" 2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2813 break 2 2814 fi 2815done 2816 done 2817IFS=$as_save_IFS 2818 2819fi 2820fi 2821ac_ct_CC=$ac_cv_prog_ac_ct_CC 2822if test -n "$ac_ct_CC"; then 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2824$as_echo "$ac_ct_CC" >&6; } 2825else 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2827$as_echo "no" >&6; } 2828fi 2829 2830 if test "x$ac_ct_CC" = x; then 2831 CC="" 2832 else 2833 case $cross_compiling:$ac_tool_warned in 2834yes:) 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2837ac_tool_warned=yes ;; 2838esac 2839 CC=$ac_ct_CC 2840 fi 2841else 2842 CC="$ac_cv_prog_CC" 2843fi 2844 2845if test -z "$CC"; then 2846 if test -n "$ac_tool_prefix"; then 2847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2848set dummy ${ac_tool_prefix}cc; ac_word=$2 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2850$as_echo_n "checking for $ac_word... " >&6; } 2851if ${ac_cv_prog_CC+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2864 ac_cv_prog_CC="${ac_tool_prefix}cc" 2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869 done 2870IFS=$as_save_IFS 2871 2872fi 2873fi 2874CC=$ac_cv_prog_CC 2875if test -n "$CC"; then 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2877$as_echo "$CC" >&6; } 2878else 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2880$as_echo "no" >&6; } 2881fi 2882 2883 2884 fi 2885fi 2886if test -z "$CC"; then 2887 # Extract the first word of "cc", so it can be a program name with args. 2888set dummy cc; ac_word=$2 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2890$as_echo_n "checking for $ac_word... " >&6; } 2891if ${ac_cv_prog_CC+:} false; then : 2892 $as_echo_n "(cached) " >&6 2893else 2894 if test -n "$CC"; then 2895 ac_cv_prog_CC="$CC" # Let the user override the test. 2896else 2897 ac_prog_rejected=no 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2906 ac_prog_rejected=yes 2907 continue 2908 fi 2909 ac_cv_prog_CC="cc" 2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913done 2914 done 2915IFS=$as_save_IFS 2916 2917if test $ac_prog_rejected = yes; then 2918 # We found a bogon in the path, so make sure we never use it. 2919 set dummy $ac_cv_prog_CC 2920 shift 2921 if test $# != 0; then 2922 # We chose a different compiler from the bogus one. 2923 # However, it has the same basename, so the bogon will be chosen 2924 # first if we set CC to just the basename; use the full file name. 2925 shift 2926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2927 fi 2928fi 2929fi 2930fi 2931CC=$ac_cv_prog_CC 2932if test -n "$CC"; then 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2934$as_echo "$CC" >&6; } 2935else 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2937$as_echo "no" >&6; } 2938fi 2939 2940 2941fi 2942if test -z "$CC"; then 2943 if test -n "$ac_tool_prefix"; then 2944 for ac_prog in cl.exe 2945 do 2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2947set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2949$as_echo_n "checking for $ac_word... " >&6; } 2950if ${ac_cv_prog_CC+:} false; then : 2951 $as_echo_n "(cached) " >&6 2952else 2953 if test -n "$CC"; then 2954 ac_cv_prog_CC="$CC" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 test -z "$as_dir" && as_dir=. 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2965 break 2 2966 fi 2967done 2968 done 2969IFS=$as_save_IFS 2970 2971fi 2972fi 2973CC=$ac_cv_prog_CC 2974if test -n "$CC"; then 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2976$as_echo "$CC" >&6; } 2977else 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2979$as_echo "no" >&6; } 2980fi 2981 2982 2983 test -n "$CC" && break 2984 done 2985fi 2986if test -z "$CC"; then 2987 ac_ct_CC=$CC 2988 for ac_prog in cl.exe 2989do 2990 # Extract the first word of "$ac_prog", so it can be a program name with args. 2991set dummy $ac_prog; ac_word=$2 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2993$as_echo_n "checking for $ac_word... " >&6; } 2994if ${ac_cv_prog_ac_ct_CC+:} false; then : 2995 $as_echo_n "(cached) " >&6 2996else 2997 if test -n "$ac_ct_CC"; then 2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2999else 3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH 3002do 3003 IFS=$as_save_IFS 3004 test -z "$as_dir" && as_dir=. 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3007 ac_cv_prog_ac_ct_CC="$ac_prog" 3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3009 break 2 3010 fi 3011done 3012 done 3013IFS=$as_save_IFS 3014 3015fi 3016fi 3017ac_ct_CC=$ac_cv_prog_ac_ct_CC 3018if test -n "$ac_ct_CC"; then 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3020$as_echo "$ac_ct_CC" >&6; } 3021else 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3023$as_echo "no" >&6; } 3024fi 3025 3026 3027 test -n "$ac_ct_CC" && break 3028done 3029 3030 if test "x$ac_ct_CC" = x; then 3031 CC="" 3032 else 3033 case $cross_compiling:$ac_tool_warned in 3034yes:) 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3037ac_tool_warned=yes ;; 3038esac 3039 CC=$ac_ct_CC 3040 fi 3041fi 3042 3043fi 3044 3045 3046test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3048as_fn_error $? "no acceptable C compiler found in \$PATH 3049See \`config.log' for more details" "$LINENO" 5; } 3050 3051# Provide some information about the compiler. 3052$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3053set X $ac_compile 3054ac_compiler=$2 3055for ac_option in --version -v -V -qversion; do 3056 { { ac_try="$ac_compiler $ac_option >&5" 3057case "(($ac_try" in 3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3059 *) ac_try_echo=$ac_try;; 3060esac 3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3062$as_echo "$ac_try_echo"; } >&5 3063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3064 ac_status=$? 3065 if test -s conftest.err; then 3066 sed '10a\ 3067... rest of stderr output deleted ... 3068 10q' conftest.err >conftest.er1 3069 cat conftest.er1 >&5 3070 fi 3071 rm -f conftest.er1 conftest.err 3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3073 test $ac_status = 0; } 3074done 3075 3076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3077/* end confdefs.h. */ 3078 3079int 3080main () 3081{ 3082 3083 ; 3084 return 0; 3085} 3086_ACEOF 3087ac_clean_files_save=$ac_clean_files 3088ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3089# Try to create an executable without -o first, disregard a.out. 3090# It will help us diagnose broken compilers, and finding out an intuition 3091# of exeext. 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3093$as_echo_n "checking whether the C compiler works... " >&6; } 3094ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3095 3096# The possible output files: 3097ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3098 3099ac_rmfiles= 3100for ac_file in $ac_files 3101do 3102 case $ac_file in 3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3104 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3105 esac 3106done 3107rm -f $ac_rmfiles 3108 3109if { { ac_try="$ac_link_default" 3110case "(($ac_try" in 3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3112 *) ac_try_echo=$ac_try;; 3113esac 3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3115$as_echo "$ac_try_echo"; } >&5 3116 (eval "$ac_link_default") 2>&5 3117 ac_status=$? 3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3119 test $ac_status = 0; }; then : 3120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3121# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3122# in a Makefile. We should not override ac_cv_exeext if it was cached, 3123# so that the user can short-circuit this test for compilers unknown to 3124# Autoconf. 3125for ac_file in $ac_files '' 3126do 3127 test -f "$ac_file" || continue 3128 case $ac_file in 3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3130 ;; 3131 [ab].out ) 3132 # We found the default executable, but exeext='' is most 3133 # certainly right. 3134 break;; 3135 *.* ) 3136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3137 then :; else 3138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3139 fi 3140 # We set ac_cv_exeext here because the later test for it is not 3141 # safe: cross compilers may not add the suffix if given an `-o' 3142 # argument, so we may need to know it at that point already. 3143 # Even if this section looks crufty: it has the advantage of 3144 # actually working. 3145 break;; 3146 * ) 3147 break;; 3148 esac 3149done 3150test "$ac_cv_exeext" = no && ac_cv_exeext= 3151 3152else 3153 ac_file='' 3154fi 3155if test -z "$ac_file"; then : 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3157$as_echo "no" >&6; } 3158$as_echo "$as_me: failed program was:" >&5 3159sed 's/^/| /' conftest.$ac_ext >&5 3160 3161{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3163as_fn_error 77 "C compiler cannot create executables 3164See \`config.log' for more details" "$LINENO" 5; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3167$as_echo "yes" >&6; } 3168fi 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3170$as_echo_n "checking for C compiler default output file name... " >&6; } 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3172$as_echo "$ac_file" >&6; } 3173ac_exeext=$ac_cv_exeext 3174 3175rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3176ac_clean_files=$ac_clean_files_save 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3178$as_echo_n "checking for suffix of executables... " >&6; } 3179if { { ac_try="$ac_link" 3180case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3185$as_echo "$ac_try_echo"; } >&5 3186 (eval "$ac_link") 2>&5 3187 ac_status=$? 3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3189 test $ac_status = 0; }; then : 3190 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3191# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3192# work properly (i.e., refer to `conftest.exe'), while it won't with 3193# `rm'. 3194for ac_file in conftest.exe conftest conftest.*; do 3195 test -f "$ac_file" || continue 3196 case $ac_file in 3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3199 break;; 3200 * ) break;; 3201 esac 3202done 3203else 3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3206as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3207See \`config.log' for more details" "$LINENO" 5; } 3208fi 3209rm -f conftest conftest$ac_cv_exeext 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3211$as_echo "$ac_cv_exeext" >&6; } 3212 3213rm -f conftest.$ac_ext 3214EXEEXT=$ac_cv_exeext 3215ac_exeext=$EXEEXT 3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3217/* end confdefs.h. */ 3218#include <stdio.h> 3219int 3220main () 3221{ 3222FILE *f = fopen ("conftest.out", "w"); 3223 return ferror (f) || fclose (f) != 0; 3224 3225 ; 3226 return 0; 3227} 3228_ACEOF 3229ac_clean_files="$ac_clean_files conftest.out" 3230# Check that the compiler produces executables we can run. If not, either 3231# the compiler is broken, or we cross compile. 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3233$as_echo_n "checking whether we are cross compiling... " >&6; } 3234if test "$cross_compiling" != yes; then 3235 { { ac_try="$ac_link" 3236case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239esac 3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3241$as_echo "$ac_try_echo"; } >&5 3242 (eval "$ac_link") 2>&5 3243 ac_status=$? 3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3245 test $ac_status = 0; } 3246 if { ac_try='./conftest$ac_cv_exeext' 3247 { { case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3252$as_echo "$ac_try_echo"; } >&5 3253 (eval "$ac_try") 2>&5 3254 ac_status=$? 3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3256 test $ac_status = 0; }; }; then 3257 cross_compiling=no 3258 else 3259 if test "$cross_compiling" = maybe; then 3260 cross_compiling=yes 3261 else 3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3264as_fn_error $? "cannot run C compiled programs. 3265If you meant to cross compile, use \`--host'. 3266See \`config.log' for more details" "$LINENO" 5; } 3267 fi 3268 fi 3269fi 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3271$as_echo "$cross_compiling" >&6; } 3272 3273rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3274ac_clean_files=$ac_clean_files_save 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3276$as_echo_n "checking for suffix of object files... " >&6; } 3277if ${ac_cv_objext+:} false; then : 3278 $as_echo_n "(cached) " >&6 3279else 3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3281/* end confdefs.h. */ 3282 3283int 3284main () 3285{ 3286 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291rm -f conftest.o conftest.obj 3292if { { ac_try="$ac_compile" 3293case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296esac 3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3298$as_echo "$ac_try_echo"; } >&5 3299 (eval "$ac_compile") 2>&5 3300 ac_status=$? 3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3302 test $ac_status = 0; }; then : 3303 for ac_file in conftest.o conftest.obj conftest.*; do 3304 test -f "$ac_file" || continue; 3305 case $ac_file in 3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3308 break;; 3309 esac 3310done 3311else 3312 $as_echo "$as_me: failed program was:" >&5 3313sed 's/^/| /' conftest.$ac_ext >&5 3314 3315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3317as_fn_error $? "cannot compute suffix of object files: cannot compile 3318See \`config.log' for more details" "$LINENO" 5; } 3319fi 3320rm -f conftest.$ac_cv_objext conftest.$ac_ext 3321fi 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3323$as_echo "$ac_cv_objext" >&6; } 3324OBJEXT=$ac_cv_objext 3325ac_objext=$OBJEXT 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3328if ${ac_cv_c_compiler_gnu+:} false; then : 3329 $as_echo_n "(cached) " >&6 3330else 3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3332/* end confdefs.h. */ 3333 3334int 3335main () 3336{ 3337#ifndef __GNUC__ 3338 choke me 3339#endif 3340 3341 ; 3342 return 0; 3343} 3344_ACEOF 3345if ac_fn_c_try_compile "$LINENO"; then : 3346 ac_compiler_gnu=yes 3347else 3348 ac_compiler_gnu=no 3349fi 3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3351ac_cv_c_compiler_gnu=$ac_compiler_gnu 3352 3353fi 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3355$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3356if test $ac_compiler_gnu = yes; then 3357 GCC=yes 3358else 3359 GCC= 3360fi 3361ac_test_CFLAGS=${CFLAGS+set} 3362ac_save_CFLAGS=$CFLAGS 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3364$as_echo_n "checking whether $CC accepts -g... " >&6; } 3365if ${ac_cv_prog_cc_g+:} false; then : 3366 $as_echo_n "(cached) " >&6 3367else 3368 ac_save_c_werror_flag=$ac_c_werror_flag 3369 ac_c_werror_flag=yes 3370 ac_cv_prog_cc_g=no 3371 CFLAGS="-g" 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373/* end confdefs.h. */ 3374 3375int 3376main () 3377{ 3378 3379 ; 3380 return 0; 3381} 3382_ACEOF 3383if ac_fn_c_try_compile "$LINENO"; then : 3384 ac_cv_prog_cc_g=yes 3385else 3386 CFLAGS="" 3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398if ac_fn_c_try_compile "$LINENO"; then : 3399 3400else 3401 ac_c_werror_flag=$ac_save_c_werror_flag 3402 CFLAGS="-g" 3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3404/* end confdefs.h. */ 3405 3406int 3407main () 3408{ 3409 3410 ; 3411 return 0; 3412} 3413_ACEOF 3414if ac_fn_c_try_compile "$LINENO"; then : 3415 ac_cv_prog_cc_g=yes 3416fi 3417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3418fi 3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3420fi 3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3422 ac_c_werror_flag=$ac_save_c_werror_flag 3423fi 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3425$as_echo "$ac_cv_prog_cc_g" >&6; } 3426if test "$ac_test_CFLAGS" = set; then 3427 CFLAGS=$ac_save_CFLAGS 3428elif test $ac_cv_prog_cc_g = yes; then 3429 if test "$GCC" = yes; then 3430 CFLAGS="-g -O2" 3431 else 3432 CFLAGS="-g" 3433 fi 3434else 3435 if test "$GCC" = yes; then 3436 CFLAGS="-O2" 3437 else 3438 CFLAGS= 3439 fi 3440fi 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3443if ${ac_cv_prog_cc_c89+:} false; then : 3444 $as_echo_n "(cached) " >&6 3445else 3446 ac_cv_prog_cc_c89=no 3447ac_save_CC=$CC 3448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449/* end confdefs.h. */ 3450#include <stdarg.h> 3451#include <stdio.h> 3452struct stat; 3453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3454struct buf { int x; }; 3455FILE * (*rcsopen) (struct buf *, struct stat *, int); 3456static char *e (p, i) 3457 char **p; 3458 int i; 3459{ 3460 return p[i]; 3461} 3462static char *f (char * (*g) (char **, int), char **p, ...) 3463{ 3464 char *s; 3465 va_list v; 3466 va_start (v,p); 3467 s = g (p, va_arg (v,int)); 3468 va_end (v); 3469 return s; 3470} 3471 3472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3473 function prototypes and stuff, but not '\xHH' hex character constants. 3474 These don't provoke an error unfortunately, instead are silently treated 3475 as 'x'. The following induces an error, until -std is added to get 3476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3477 array size at least. It's necessary to write '\x00'==0 to get something 3478 that's true only with -std. */ 3479int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3480 3481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3482 inside strings and character constants. */ 3483#define FOO(x) 'x' 3484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3485 3486int test (int i, double x); 3487struct s1 {int (*f) (int a);}; 3488struct s2 {int (*f) (double a);}; 3489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3490int argc; 3491char **argv; 3492int 3493main () 3494{ 3495return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3496 ; 3497 return 0; 3498} 3499_ACEOF 3500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3502do 3503 CC="$ac_save_CC $ac_arg" 3504 if ac_fn_c_try_compile "$LINENO"; then : 3505 ac_cv_prog_cc_c89=$ac_arg 3506fi 3507rm -f core conftest.err conftest.$ac_objext 3508 test "x$ac_cv_prog_cc_c89" != "xno" && break 3509done 3510rm -f conftest.$ac_ext 3511CC=$ac_save_CC 3512 3513fi 3514# AC_CACHE_VAL 3515case "x$ac_cv_prog_cc_c89" in 3516 x) 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3518$as_echo "none needed" >&6; } ;; 3519 xno) 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3521$as_echo "unsupported" >&6; } ;; 3522 *) 3523 CC="$CC $ac_cv_prog_cc_c89" 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3526esac 3527if test "x$ac_cv_prog_cc_c89" != xno; then : 3528 3529fi 3530 3531ac_ext=c 3532ac_cpp='$CPP $CPPFLAGS' 3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3535ac_compiler_gnu=$ac_cv_c_compiler_gnu 3536 3537ac_aux_dir= 3538for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3539 if test -f "$ac_dir/install-sh"; then 3540 ac_aux_dir=$ac_dir 3541 ac_install_sh="$ac_aux_dir/install-sh -c" 3542 break 3543 elif test -f "$ac_dir/install.sh"; then 3544 ac_aux_dir=$ac_dir 3545 ac_install_sh="$ac_aux_dir/install.sh -c" 3546 break 3547 elif test -f "$ac_dir/shtool"; then 3548 ac_aux_dir=$ac_dir 3549 ac_install_sh="$ac_aux_dir/shtool install -c" 3550 break 3551 fi 3552done 3553if test -z "$ac_aux_dir"; then 3554 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3555fi 3556 3557# These three variables are undocumented and unsupported, 3558# and are intended to be withdrawn in a future Autoconf release. 3559# They can cause serious problems if a builder's source tree is in a directory 3560# whose full name contains unusual characters. 3561ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3562ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3563ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3564 3565 3566# Expand $ac_aux_dir to an absolute path. 3567am_aux_dir=`cd "$ac_aux_dir" && pwd` 3568 3569ac_ext=c 3570ac_cpp='$CPP $CPPFLAGS' 3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3573ac_compiler_gnu=$ac_cv_c_compiler_gnu 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3575$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3576if ${am_cv_prog_cc_c_o+:} false; then : 3577 $as_echo_n "(cached) " >&6 3578else 3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3580/* end confdefs.h. */ 3581 3582int 3583main () 3584{ 3585 3586 ; 3587 return 0; 3588} 3589_ACEOF 3590 # Make sure it works both with $CC and with simple cc. 3591 # Following AC_PROG_CC_C_O, we do the test twice because some 3592 # compilers refuse to overwrite an existing .o file with -o, 3593 # though they will create one. 3594 am_cv_prog_cc_c_o=yes 3595 for am_i in 1 2; do 3596 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3597 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3598 ac_status=$? 3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3600 (exit $ac_status); } \ 3601 && test -f conftest2.$ac_objext; then 3602 : OK 3603 else 3604 am_cv_prog_cc_c_o=no 3605 break 3606 fi 3607 done 3608 rm -f core conftest* 3609 unset am_i 3610fi 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3612$as_echo "$am_cv_prog_cc_c_o" >&6; } 3613if test "$am_cv_prog_cc_c_o" != yes; then 3614 # Losing compiler, so override with the script. 3615 # FIXME: It is wrong to rewrite CC. 3616 # But if we don't then we get into trouble of one sort or another. 3617 # A longer-term fix would be to have automake use am__CC in this case, 3618 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3619 CC="$am_aux_dir/compile $CC" 3620fi 3621ac_ext=c 3622ac_cpp='$CPP $CPPFLAGS' 3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3625ac_compiler_gnu=$ac_cv_c_compiler_gnu 3626 3627 3628# Make sure we can run config.sub. 3629$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3631 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3633$as_echo_n "checking build system type... " >&6; } 3634if ${ac_cv_build+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 ac_build_alias=$build_alias 3638test "x$ac_build_alias" = x && 3639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3640test "x$ac_build_alias" = x && 3641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3642ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3644 3645fi 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3647$as_echo "$ac_cv_build" >&6; } 3648case $ac_cv_build in 3649*-*-*) ;; 3650*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3651esac 3652build=$ac_cv_build 3653ac_save_IFS=$IFS; IFS='-' 3654set x $ac_cv_build 3655shift 3656build_cpu=$1 3657build_vendor=$2 3658shift; shift 3659# Remember, the first character of IFS is used to create $*, 3660# except with old shells: 3661build_os=$* 3662IFS=$ac_save_IFS 3663case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3664 3665 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3667$as_echo_n "checking host system type... " >&6; } 3668if ${ac_cv_host+:} false; then : 3669 $as_echo_n "(cached) " >&6 3670else 3671 if test "x$host_alias" = x; then 3672 ac_cv_host=$ac_cv_build 3673else 3674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3676fi 3677 3678fi 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3680$as_echo "$ac_cv_host" >&6; } 3681case $ac_cv_host in 3682*-*-*) ;; 3683*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3684esac 3685host=$ac_cv_host 3686ac_save_IFS=$IFS; IFS='-' 3687set x $ac_cv_host 3688shift 3689host_cpu=$1 3690host_vendor=$2 3691shift; shift 3692# Remember, the first character of IFS is used to create $*, 3693# except with old shells: 3694host_os=$* 3695IFS=$ac_save_IFS 3696case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3697 3698 3699 3700ac_ext=c 3701ac_cpp='$CPP $CPPFLAGS' 3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3704ac_compiler_gnu=$ac_cv_c_compiler_gnu 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3706$as_echo_n "checking how to run the C preprocessor... " >&6; } 3707# On Suns, sometimes $CPP names a directory. 3708if test -n "$CPP" && test -d "$CPP"; then 3709 CPP= 3710fi 3711if test -z "$CPP"; then 3712 if ${ac_cv_prog_CPP+:} false; then : 3713 $as_echo_n "(cached) " >&6 3714else 3715 # Double quotes because CPP needs to be expanded 3716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3717 do 3718 ac_preproc_ok=false 3719for ac_c_preproc_warn_flag in '' yes 3720do 3721 # Use a header file that comes with gcc, so configuring glibc 3722 # with a fresh cross-compiler works. 3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3724 # <limits.h> exists even on freestanding compilers. 3725 # On the NeXT, cc -E runs the code through the compiler's parser, 3726 # not just through cpp. "Syntax error" is here to catch this case. 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729#ifdef __STDC__ 3730# include <limits.h> 3731#else 3732# include <assert.h> 3733#endif 3734 Syntax error 3735_ACEOF 3736if ac_fn_c_try_cpp "$LINENO"; then : 3737 3738else 3739 # Broken: fails on valid input. 3740continue 3741fi 3742rm -f conftest.err conftest.i conftest.$ac_ext 3743 3744 # OK, works on sane cases. Now check whether nonexistent headers 3745 # can be detected and how. 3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747/* end confdefs.h. */ 3748#include <ac_nonexistent.h> 3749_ACEOF 3750if ac_fn_c_try_cpp "$LINENO"; then : 3751 # Broken: success on invalid input. 3752continue 3753else 3754 # Passes both tests. 3755ac_preproc_ok=: 3756break 3757fi 3758rm -f conftest.err conftest.i conftest.$ac_ext 3759 3760done 3761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3762rm -f conftest.i conftest.err conftest.$ac_ext 3763if $ac_preproc_ok; then : 3764 break 3765fi 3766 3767 done 3768 ac_cv_prog_CPP=$CPP 3769 3770fi 3771 CPP=$ac_cv_prog_CPP 3772else 3773 ac_cv_prog_CPP=$CPP 3774fi 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3776$as_echo "$CPP" >&6; } 3777ac_preproc_ok=false 3778for ac_c_preproc_warn_flag in '' yes 3779do 3780 # Use a header file that comes with gcc, so configuring glibc 3781 # with a fresh cross-compiler works. 3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3783 # <limits.h> exists even on freestanding compilers. 3784 # On the NeXT, cc -E runs the code through the compiler's parser, 3785 # not just through cpp. "Syntax error" is here to catch this case. 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788#ifdef __STDC__ 3789# include <limits.h> 3790#else 3791# include <assert.h> 3792#endif 3793 Syntax error 3794_ACEOF 3795if ac_fn_c_try_cpp "$LINENO"; then : 3796 3797else 3798 # Broken: fails on valid input. 3799continue 3800fi 3801rm -f conftest.err conftest.i conftest.$ac_ext 3802 3803 # OK, works on sane cases. Now check whether nonexistent headers 3804 # can be detected and how. 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807#include <ac_nonexistent.h> 3808_ACEOF 3809if ac_fn_c_try_cpp "$LINENO"; then : 3810 # Broken: success on invalid input. 3811continue 3812else 3813 # Passes both tests. 3814ac_preproc_ok=: 3815break 3816fi 3817rm -f conftest.err conftest.i conftest.$ac_ext 3818 3819done 3820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3821rm -f conftest.i conftest.err conftest.$ac_ext 3822if $ac_preproc_ok; then : 3823 3824else 3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3828See \`config.log' for more details" "$LINENO" 5; } 3829fi 3830 3831ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836 3837 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3839$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3840if ${ac_cv_path_GREP+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 if test -z "$GREP"; then 3844 ac_path_GREP_found=false 3845 # Loop through the user's path and test for each of PROGNAME-LIST 3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3848do 3849 IFS=$as_save_IFS 3850 test -z "$as_dir" && as_dir=. 3851 for ac_prog in grep ggrep; do 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3854 as_fn_executable_p "$ac_path_GREP" || continue 3855# Check for GNU ac_path_GREP and select it if it is found. 3856 # Check for GNU $ac_path_GREP 3857case `"$ac_path_GREP" --version 2>&1` in 3858*GNU*) 3859 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3860*) 3861 ac_count=0 3862 $as_echo_n 0123456789 >"conftest.in" 3863 while : 3864 do 3865 cat "conftest.in" "conftest.in" >"conftest.tmp" 3866 mv "conftest.tmp" "conftest.in" 3867 cp "conftest.in" "conftest.nl" 3868 $as_echo 'GREP' >> "conftest.nl" 3869 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3871 as_fn_arith $ac_count + 1 && ac_count=$as_val 3872 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3873 # Best one so far, save it but keep looking for a better one 3874 ac_cv_path_GREP="$ac_path_GREP" 3875 ac_path_GREP_max=$ac_count 3876 fi 3877 # 10*(2^10) chars as input seems more than enough 3878 test $ac_count -gt 10 && break 3879 done 3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3881esac 3882 3883 $ac_path_GREP_found && break 3 3884 done 3885 done 3886 done 3887IFS=$as_save_IFS 3888 if test -z "$ac_cv_path_GREP"; then 3889 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3890 fi 3891else 3892 ac_cv_path_GREP=$GREP 3893fi 3894 3895fi 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3897$as_echo "$ac_cv_path_GREP" >&6; } 3898 GREP="$ac_cv_path_GREP" 3899 3900 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3902$as_echo_n "checking for egrep... " >&6; } 3903if ${ac_cv_path_EGREP+:} false; then : 3904 $as_echo_n "(cached) " >&6 3905else 3906 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3907 then ac_cv_path_EGREP="$GREP -E" 3908 else 3909 if test -z "$EGREP"; then 3910 ac_path_EGREP_found=false 3911 # Loop through the user's path and test for each of PROGNAME-LIST 3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3914do 3915 IFS=$as_save_IFS 3916 test -z "$as_dir" && as_dir=. 3917 for ac_prog in egrep; do 3918 for ac_exec_ext in '' $ac_executable_extensions; do 3919 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3920 as_fn_executable_p "$ac_path_EGREP" || continue 3921# Check for GNU ac_path_EGREP and select it if it is found. 3922 # Check for GNU $ac_path_EGREP 3923case `"$ac_path_EGREP" --version 2>&1` in 3924*GNU*) 3925 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3926*) 3927 ac_count=0 3928 $as_echo_n 0123456789 >"conftest.in" 3929 while : 3930 do 3931 cat "conftest.in" "conftest.in" >"conftest.tmp" 3932 mv "conftest.tmp" "conftest.in" 3933 cp "conftest.in" "conftest.nl" 3934 $as_echo 'EGREP' >> "conftest.nl" 3935 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3937 as_fn_arith $ac_count + 1 && ac_count=$as_val 3938 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3939 # Best one so far, save it but keep looking for a better one 3940 ac_cv_path_EGREP="$ac_path_EGREP" 3941 ac_path_EGREP_max=$ac_count 3942 fi 3943 # 10*(2^10) chars as input seems more than enough 3944 test $ac_count -gt 10 && break 3945 done 3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3947esac 3948 3949 $ac_path_EGREP_found && break 3 3950 done 3951 done 3952 done 3953IFS=$as_save_IFS 3954 if test -z "$ac_cv_path_EGREP"; then 3955 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3956 fi 3957else 3958 ac_cv_path_EGREP=$EGREP 3959fi 3960 3961 fi 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3964$as_echo "$ac_cv_path_EGREP" >&6; } 3965 EGREP="$ac_cv_path_EGREP" 3966 3967 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3969$as_echo_n "checking for ANSI C header files... " >&6; } 3970if ${ac_cv_header_stdc+:} false; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975#include <stdlib.h> 3976#include <stdarg.h> 3977#include <string.h> 3978#include <float.h> 3979 3980int 3981main () 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO"; then : 3989 ac_cv_header_stdc=yes 3990else 3991 ac_cv_header_stdc=no 3992fi 3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3994 3995if test $ac_cv_header_stdc = yes; then 3996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999#include <string.h> 4000 4001_ACEOF 4002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4003 $EGREP "memchr" >/dev/null 2>&1; then : 4004 4005else 4006 ac_cv_header_stdc=no 4007fi 4008rm -f conftest* 4009 4010fi 4011 4012if test $ac_cv_header_stdc = yes; then 4013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016#include <stdlib.h> 4017 4018_ACEOF 4019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4020 $EGREP "free" >/dev/null 2>&1; then : 4021 4022else 4023 ac_cv_header_stdc=no 4024fi 4025rm -f conftest* 4026 4027fi 4028 4029if test $ac_cv_header_stdc = yes; then 4030 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4031 if test "$cross_compiling" = yes; then : 4032 : 4033else 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036#include <ctype.h> 4037#include <stdlib.h> 4038#if ((' ' & 0x0FF) == 0x020) 4039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4041#else 4042# define ISLOWER(c) \ 4043 (('a' <= (c) && (c) <= 'i') \ 4044 || ('j' <= (c) && (c) <= 'r') \ 4045 || ('s' <= (c) && (c) <= 'z')) 4046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4047#endif 4048 4049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4050int 4051main () 4052{ 4053 int i; 4054 for (i = 0; i < 256; i++) 4055 if (XOR (islower (i), ISLOWER (i)) 4056 || toupper (i) != TOUPPER (i)) 4057 return 2; 4058 return 0; 4059} 4060_ACEOF 4061if ac_fn_c_try_run "$LINENO"; then : 4062 4063else 4064 ac_cv_header_stdc=no 4065fi 4066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4067 conftest.$ac_objext conftest.beam conftest.$ac_ext 4068fi 4069 4070fi 4071fi 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4073$as_echo "$ac_cv_header_stdc" >&6; } 4074if test $ac_cv_header_stdc = yes; then 4075 4076$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4077 4078fi 4079 4080# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4081for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4082 inttypes.h stdint.h unistd.h 4083do : 4084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4085ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4086" 4087if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4088 cat >>confdefs.h <<_ACEOF 4089#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4090_ACEOF 4091 4092fi 4093 4094done 4095 4096 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4098$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4099if ${ac_cv_c_bigendian+:} false; then : 4100 $as_echo_n "(cached) " >&6 4101else 4102 ac_cv_c_bigendian=unknown 4103 # See if we're dealing with a universal compiler. 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106#ifndef __APPLE_CC__ 4107 not a universal capable compiler 4108 #endif 4109 typedef int dummy; 4110 4111_ACEOF 4112if ac_fn_c_try_compile "$LINENO"; then : 4113 4114 # Check for potential -arch flags. It is not universal unless 4115 # there are at least two -arch flags with different values. 4116 ac_arch= 4117 ac_prev= 4118 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4119 if test -n "$ac_prev"; then 4120 case $ac_word in 4121 i?86 | x86_64 | ppc | ppc64) 4122 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4123 ac_arch=$ac_word 4124 else 4125 ac_cv_c_bigendian=universal 4126 break 4127 fi 4128 ;; 4129 esac 4130 ac_prev= 4131 elif test "x$ac_word" = "x-arch"; then 4132 ac_prev=arch 4133 fi 4134 done 4135fi 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4137 if test $ac_cv_c_bigendian = unknown; then 4138 # See if sys/param.h defines the BYTE_ORDER macro. 4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4140/* end confdefs.h. */ 4141#include <sys/types.h> 4142 #include <sys/param.h> 4143 4144int 4145main () 4146{ 4147#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4148 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4149 && LITTLE_ENDIAN) 4150 bogus endian macros 4151 #endif 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157if ac_fn_c_try_compile "$LINENO"; then : 4158 # It does; now see whether it defined to BIG_ENDIAN or not. 4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161#include <sys/types.h> 4162 #include <sys/param.h> 4163 4164int 4165main () 4166{ 4167#if BYTE_ORDER != BIG_ENDIAN 4168 not big endian 4169 #endif 4170 4171 ; 4172 return 0; 4173} 4174_ACEOF 4175if ac_fn_c_try_compile "$LINENO"; then : 4176 ac_cv_c_bigendian=yes 4177else 4178 ac_cv_c_bigendian=no 4179fi 4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4181fi 4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4183 fi 4184 if test $ac_cv_c_bigendian = unknown; then 4185 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4187/* end confdefs.h. */ 4188#include <limits.h> 4189 4190int 4191main () 4192{ 4193#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4194 bogus endian macros 4195 #endif 4196 4197 ; 4198 return 0; 4199} 4200_ACEOF 4201if ac_fn_c_try_compile "$LINENO"; then : 4202 # It does; now see whether it defined to _BIG_ENDIAN or not. 4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204/* end confdefs.h. */ 4205#include <limits.h> 4206 4207int 4208main () 4209{ 4210#ifndef _BIG_ENDIAN 4211 not big endian 4212 #endif 4213 4214 ; 4215 return 0; 4216} 4217_ACEOF 4218if ac_fn_c_try_compile "$LINENO"; then : 4219 ac_cv_c_bigendian=yes 4220else 4221 ac_cv_c_bigendian=no 4222fi 4223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4224fi 4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4226 fi 4227 if test $ac_cv_c_bigendian = unknown; then 4228 # Compile a test program. 4229 if test "$cross_compiling" = yes; then : 4230 # Try to guess by grepping values from an object file. 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233short int ascii_mm[] = 4234 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4235 short int ascii_ii[] = 4236 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4237 int use_ascii (int i) { 4238 return ascii_mm[i] + ascii_ii[i]; 4239 } 4240 short int ebcdic_ii[] = 4241 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4242 short int ebcdic_mm[] = 4243 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4244 int use_ebcdic (int i) { 4245 return ebcdic_mm[i] + ebcdic_ii[i]; 4246 } 4247 extern int foo; 4248 4249int 4250main () 4251{ 4252return use_ascii (foo) == use_ebcdic (foo); 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257if ac_fn_c_try_compile "$LINENO"; then : 4258 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4259 ac_cv_c_bigendian=yes 4260 fi 4261 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4262 if test "$ac_cv_c_bigendian" = unknown; then 4263 ac_cv_c_bigendian=no 4264 else 4265 # finding both strings is unlikely to happen, but who knows? 4266 ac_cv_c_bigendian=unknown 4267 fi 4268 fi 4269fi 4270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4271else 4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4273/* end confdefs.h. */ 4274$ac_includes_default 4275int 4276main () 4277{ 4278 4279 /* Are we little or big endian? From Harbison&Steele. */ 4280 union 4281 { 4282 long int l; 4283 char c[sizeof (long int)]; 4284 } u; 4285 u.l = 1; 4286 return u.c[sizeof (long int) - 1] == 1; 4287 4288 ; 4289 return 0; 4290} 4291_ACEOF 4292if ac_fn_c_try_run "$LINENO"; then : 4293 ac_cv_c_bigendian=no 4294else 4295 ac_cv_c_bigendian=yes 4296fi 4297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4298 conftest.$ac_objext conftest.beam conftest.$ac_ext 4299fi 4300 4301 fi 4302fi 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4304$as_echo "$ac_cv_c_bigendian" >&6; } 4305 case $ac_cv_c_bigendian in #( 4306 yes) 4307 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4308;; #( 4309 no) 4310 ;; #( 4311 universal) 4312 4313$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4314 4315 ;; #( 4316 *) 4317 as_fn_error $? "unknown endianness 4318 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4319 esac 4320 4321 4322# Checks for programs. 4323ac_ext=c 4324ac_cpp='$CPP $CPPFLAGS' 4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4327ac_compiler_gnu=$ac_cv_c_compiler_gnu 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4329$as_echo_n "checking how to run the C preprocessor... " >&6; } 4330# On Suns, sometimes $CPP names a directory. 4331if test -n "$CPP" && test -d "$CPP"; then 4332 CPP= 4333fi 4334if test -z "$CPP"; then 4335 if ${ac_cv_prog_CPP+:} false; then : 4336 $as_echo_n "(cached) " >&6 4337else 4338 # Double quotes because CPP needs to be expanded 4339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4340 do 4341 ac_preproc_ok=false 4342for ac_c_preproc_warn_flag in '' yes 4343do 4344 # Use a header file that comes with gcc, so configuring glibc 4345 # with a fresh cross-compiler works. 4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4347 # <limits.h> exists even on freestanding compilers. 4348 # On the NeXT, cc -E runs the code through the compiler's parser, 4349 # not just through cpp. "Syntax error" is here to catch this case. 4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4351/* end confdefs.h. */ 4352#ifdef __STDC__ 4353# include <limits.h> 4354#else 4355# include <assert.h> 4356#endif 4357 Syntax error 4358_ACEOF 4359if ac_fn_c_try_cpp "$LINENO"; then : 4360 4361else 4362 # Broken: fails on valid input. 4363continue 4364fi 4365rm -f conftest.err conftest.i conftest.$ac_ext 4366 4367 # OK, works on sane cases. Now check whether nonexistent headers 4368 # can be detected and how. 4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4370/* end confdefs.h. */ 4371#include <ac_nonexistent.h> 4372_ACEOF 4373if ac_fn_c_try_cpp "$LINENO"; then : 4374 # Broken: success on invalid input. 4375continue 4376else 4377 # Passes both tests. 4378ac_preproc_ok=: 4379break 4380fi 4381rm -f conftest.err conftest.i conftest.$ac_ext 4382 4383done 4384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4385rm -f conftest.i conftest.err conftest.$ac_ext 4386if $ac_preproc_ok; then : 4387 break 4388fi 4389 4390 done 4391 ac_cv_prog_CPP=$CPP 4392 4393fi 4394 CPP=$ac_cv_prog_CPP 4395else 4396 ac_cv_prog_CPP=$CPP 4397fi 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4399$as_echo "$CPP" >&6; } 4400ac_preproc_ok=false 4401for ac_c_preproc_warn_flag in '' yes 4402do 4403 # Use a header file that comes with gcc, so configuring glibc 4404 # with a fresh cross-compiler works. 4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4406 # <limits.h> exists even on freestanding compilers. 4407 # On the NeXT, cc -E runs the code through the compiler's parser, 4408 # not just through cpp. "Syntax error" is here to catch this case. 4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4410/* end confdefs.h. */ 4411#ifdef __STDC__ 4412# include <limits.h> 4413#else 4414# include <assert.h> 4415#endif 4416 Syntax error 4417_ACEOF 4418if ac_fn_c_try_cpp "$LINENO"; then : 4419 4420else 4421 # Broken: fails on valid input. 4422continue 4423fi 4424rm -f conftest.err conftest.i conftest.$ac_ext 4425 4426 # OK, works on sane cases. Now check whether nonexistent headers 4427 # can be detected and how. 4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4429/* end confdefs.h. */ 4430#include <ac_nonexistent.h> 4431_ACEOF 4432if ac_fn_c_try_cpp "$LINENO"; then : 4433 # Broken: success on invalid input. 4434continue 4435else 4436 # Passes both tests. 4437ac_preproc_ok=: 4438break 4439fi 4440rm -f conftest.err conftest.i conftest.$ac_ext 4441 4442done 4443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4444rm -f conftest.i conftest.err conftest.$ac_ext 4445if $ac_preproc_ok; then : 4446 4447else 4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4450as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4451See \`config.log' for more details" "$LINENO" 5; } 4452fi 4453 4454ac_ext=c 4455ac_cpp='$CPP $CPPFLAGS' 4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4458ac_compiler_gnu=$ac_cv_c_compiler_gnu 4459 4460# Find a good install program. We prefer a C program (faster), 4461# so one script is as good as another. But avoid the broken or 4462# incompatible versions: 4463# SysV /etc/install, /usr/sbin/install 4464# SunOS /usr/etc/install 4465# IRIX /sbin/install 4466# AIX /bin/install 4467# AmigaOS /C/install, which installs bootblocks on floppy discs 4468# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4469# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4470# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4471# OS/2's system install, which has a completely different semantic 4472# ./install, which can be erroneously created by make from ./install.sh. 4473# Reject install programs that cannot install multiple files. 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4475$as_echo_n "checking for a BSD-compatible install... " >&6; } 4476if test -z "$INSTALL"; then 4477if ${ac_cv_path_install+:} false; then : 4478 $as_echo_n "(cached) " >&6 4479else 4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4481for as_dir in $PATH 4482do 4483 IFS=$as_save_IFS 4484 test -z "$as_dir" && as_dir=. 4485 # Account for people who put trailing slashes in PATH elements. 4486case $as_dir/ in #(( 4487 ./ | .// | /[cC]/* | \ 4488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4489 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4490 /usr/ucb/* ) ;; 4491 *) 4492 # OSF1 and SCO ODT 3.0 have their own names for install. 4493 # Don't use installbsd from OSF since it installs stuff as root 4494 # by default. 4495 for ac_prog in ginstall scoinst install; do 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4498 if test $ac_prog = install && 4499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4500 # AIX install. It has an incompatible calling convention. 4501 : 4502 elif test $ac_prog = install && 4503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4504 # program-specific install script used by HP pwplus--don't use. 4505 : 4506 else 4507 rm -rf conftest.one conftest.two conftest.dir 4508 echo one > conftest.one 4509 echo two > conftest.two 4510 mkdir conftest.dir 4511 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4512 test -s conftest.one && test -s conftest.two && 4513 test -s conftest.dir/conftest.one && 4514 test -s conftest.dir/conftest.two 4515 then 4516 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4517 break 3 4518 fi 4519 fi 4520 fi 4521 done 4522 done 4523 ;; 4524esac 4525 4526 done 4527IFS=$as_save_IFS 4528 4529rm -rf conftest.one conftest.two conftest.dir 4530 4531fi 4532 if test "${ac_cv_path_install+set}" = set; then 4533 INSTALL=$ac_cv_path_install 4534 else 4535 # As a last resort, use the slow shell script. Don't cache a 4536 # value for INSTALL within a source directory, because that will 4537 # break other packages using the cache if that directory is 4538 # removed, or if the value is a relative name. 4539 INSTALL=$ac_install_sh 4540 fi 4541fi 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4543$as_echo "$INSTALL" >&6; } 4544 4545# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4546# It thinks the first close brace ends the variable substitution. 4547test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4548 4549test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4550 4551test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4552 4553case `pwd` in 4554 *\ * | *\ *) 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4556$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4557esac 4558 4559 4560 4561macro_version='2.4.6' 4562macro_revision='2.4.6' 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576ltmain=$ac_aux_dir/ltmain.sh 4577 4578# Backslashify metacharacters that are still active within 4579# double-quoted strings. 4580sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4581 4582# Same as above, but do not quote variable references. 4583double_quote_subst='s/\(["`\\]\)/\\\1/g' 4584 4585# Sed substitution to delay expansion of an escaped shell variable in a 4586# double_quote_subst'ed string. 4587delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4588 4589# Sed substitution to delay expansion of an escaped single quote. 4590delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4591 4592# Sed substitution to avoid accidental globbing in evaled expressions 4593no_glob_subst='s/\*/\\\*/g' 4594 4595ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4596ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4597ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4598 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4600$as_echo_n "checking how to print strings... " >&6; } 4601# Test print first, because it will be a builtin if present. 4602if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4603 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4604 ECHO='print -r --' 4605elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4606 ECHO='printf %s\n' 4607else 4608 # Use this function as a fallback that always works. 4609 func_fallback_echo () 4610 { 4611 eval 'cat <<_LTECHO_EOF 4612$1 4613_LTECHO_EOF' 4614 } 4615 ECHO='func_fallback_echo' 4616fi 4617 4618# func_echo_all arg... 4619# Invoke $ECHO with all args, space-separated. 4620func_echo_all () 4621{ 4622 $ECHO "" 4623} 4624 4625case $ECHO in 4626 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4627$as_echo "printf" >&6; } ;; 4628 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4629$as_echo "print -r" >&6; } ;; 4630 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4631$as_echo "cat" >&6; } ;; 4632esac 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4648$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4649if ${ac_cv_path_SED+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4653 for ac_i in 1 2 3 4 5 6 7; do 4654 ac_script="$ac_script$as_nl$ac_script" 4655 done 4656 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4657 { ac_script=; unset ac_script;} 4658 if test -z "$SED"; then 4659 ac_path_SED_found=false 4660 # Loop through the user's path and test for each of PROGNAME-LIST 4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4662for as_dir in $PATH 4663do 4664 IFS=$as_save_IFS 4665 test -z "$as_dir" && as_dir=. 4666 for ac_prog in sed gsed; do 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4669 as_fn_executable_p "$ac_path_SED" || continue 4670# Check for GNU ac_path_SED and select it if it is found. 4671 # Check for GNU $ac_path_SED 4672case `"$ac_path_SED" --version 2>&1` in 4673*GNU*) 4674 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4675*) 4676 ac_count=0 4677 $as_echo_n 0123456789 >"conftest.in" 4678 while : 4679 do 4680 cat "conftest.in" "conftest.in" >"conftest.tmp" 4681 mv "conftest.tmp" "conftest.in" 4682 cp "conftest.in" "conftest.nl" 4683 $as_echo '' >> "conftest.nl" 4684 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4686 as_fn_arith $ac_count + 1 && ac_count=$as_val 4687 if test $ac_count -gt ${ac_path_SED_max-0}; then 4688 # Best one so far, save it but keep looking for a better one 4689 ac_cv_path_SED="$ac_path_SED" 4690 ac_path_SED_max=$ac_count 4691 fi 4692 # 10*(2^10) chars as input seems more than enough 4693 test $ac_count -gt 10 && break 4694 done 4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4696esac 4697 4698 $ac_path_SED_found && break 3 4699 done 4700 done 4701 done 4702IFS=$as_save_IFS 4703 if test -z "$ac_cv_path_SED"; then 4704 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4705 fi 4706else 4707 ac_cv_path_SED=$SED 4708fi 4709 4710fi 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4712$as_echo "$ac_cv_path_SED" >&6; } 4713 SED="$ac_cv_path_SED" 4714 rm -f conftest.sed 4715 4716test -z "$SED" && SED=sed 4717Xsed="$SED -e 1s/^X//" 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4730$as_echo_n "checking for fgrep... " >&6; } 4731if ${ac_cv_path_FGREP+:} false; then : 4732 $as_echo_n "(cached) " >&6 4733else 4734 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4735 then ac_cv_path_FGREP="$GREP -F" 4736 else 4737 if test -z "$FGREP"; then 4738 ac_path_FGREP_found=false 4739 # Loop through the user's path and test for each of PROGNAME-LIST 4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4742do 4743 IFS=$as_save_IFS 4744 test -z "$as_dir" && as_dir=. 4745 for ac_prog in fgrep; do 4746 for ac_exec_ext in '' $ac_executable_extensions; do 4747 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4748 as_fn_executable_p "$ac_path_FGREP" || continue 4749# Check for GNU ac_path_FGREP and select it if it is found. 4750 # Check for GNU $ac_path_FGREP 4751case `"$ac_path_FGREP" --version 2>&1` in 4752*GNU*) 4753 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4754*) 4755 ac_count=0 4756 $as_echo_n 0123456789 >"conftest.in" 4757 while : 4758 do 4759 cat "conftest.in" "conftest.in" >"conftest.tmp" 4760 mv "conftest.tmp" "conftest.in" 4761 cp "conftest.in" "conftest.nl" 4762 $as_echo 'FGREP' >> "conftest.nl" 4763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4765 as_fn_arith $ac_count + 1 && ac_count=$as_val 4766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4767 # Best one so far, save it but keep looking for a better one 4768 ac_cv_path_FGREP="$ac_path_FGREP" 4769 ac_path_FGREP_max=$ac_count 4770 fi 4771 # 10*(2^10) chars as input seems more than enough 4772 test $ac_count -gt 10 && break 4773 done 4774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4775esac 4776 4777 $ac_path_FGREP_found && break 3 4778 done 4779 done 4780 done 4781IFS=$as_save_IFS 4782 if test -z "$ac_cv_path_FGREP"; then 4783 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4784 fi 4785else 4786 ac_cv_path_FGREP=$FGREP 4787fi 4788 4789 fi 4790fi 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4792$as_echo "$ac_cv_path_FGREP" >&6; } 4793 FGREP="$ac_cv_path_FGREP" 4794 4795 4796test -z "$GREP" && GREP=grep 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816# Check whether --with-gnu-ld was given. 4817if test "${with_gnu_ld+set}" = set; then : 4818 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4819else 4820 with_gnu_ld=no 4821fi 4822 4823ac_prog=ld 4824if test yes = "$GCC"; then 4825 # Check if gcc -print-prog-name=ld gives a path. 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4827$as_echo_n "checking for ld used by $CC... " >&6; } 4828 case $host in 4829 *-*-mingw*) 4830 # gcc leaves a trailing carriage return, which upsets mingw 4831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4832 *) 4833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4834 esac 4835 case $ac_prog in 4836 # Accept absolute paths. 4837 [\\/]* | ?:[\\/]*) 4838 re_direlt='/[^/][^/]*/\.\./' 4839 # Canonicalize the pathname of ld 4840 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4841 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4842 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4843 done 4844 test -z "$LD" && LD=$ac_prog 4845 ;; 4846 "") 4847 # If it fails, then pretend we aren't using GCC. 4848 ac_prog=ld 4849 ;; 4850 *) 4851 # If it is relative, then search for the first ld in PATH. 4852 with_gnu_ld=unknown 4853 ;; 4854 esac 4855elif test yes = "$with_gnu_ld"; then 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4857$as_echo_n "checking for GNU ld... " >&6; } 4858else 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4860$as_echo_n "checking for non-GNU ld... " >&6; } 4861fi 4862if ${lt_cv_path_LD+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864else 4865 if test -z "$LD"; then 4866 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4867 for ac_dir in $PATH; do 4868 IFS=$lt_save_ifs 4869 test -z "$ac_dir" && ac_dir=. 4870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4871 lt_cv_path_LD=$ac_dir/$ac_prog 4872 # Check to see if the program is GNU ld. I'd rather use --version, 4873 # but apparently some variants of GNU ld only accept -v. 4874 # Break only if it was the GNU/non-GNU ld that we prefer. 4875 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4876 *GNU* | *'with BFD'*) 4877 test no != "$with_gnu_ld" && break 4878 ;; 4879 *) 4880 test yes != "$with_gnu_ld" && break 4881 ;; 4882 esac 4883 fi 4884 done 4885 IFS=$lt_save_ifs 4886else 4887 lt_cv_path_LD=$LD # Let the user override the test with a path. 4888fi 4889fi 4890 4891LD=$lt_cv_path_LD 4892if test -n "$LD"; then 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4894$as_echo "$LD" >&6; } 4895else 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4897$as_echo "no" >&6; } 4898fi 4899test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4901$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4902if ${lt_cv_prog_gnu_ld+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4906case `$LD -v 2>&1 </dev/null` in 4907*GNU* | *'with BFD'*) 4908 lt_cv_prog_gnu_ld=yes 4909 ;; 4910*) 4911 lt_cv_prog_gnu_ld=no 4912 ;; 4913esac 4914fi 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4916$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4917with_gnu_ld=$lt_cv_prog_gnu_ld 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4928$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4929if ${lt_cv_path_NM+:} false; then : 4930 $as_echo_n "(cached) " >&6 4931else 4932 if test -n "$NM"; then 4933 # Let the user override the test. 4934 lt_cv_path_NM=$NM 4935else 4936 lt_nm_to_check=${ac_tool_prefix}nm 4937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4938 lt_nm_to_check="$lt_nm_to_check nm" 4939 fi 4940 for lt_tmp_nm in $lt_nm_to_check; do 4941 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4943 IFS=$lt_save_ifs 4944 test -z "$ac_dir" && ac_dir=. 4945 tmp_nm=$ac_dir/$lt_tmp_nm 4946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4947 # Check to see if the nm accepts a BSD-compat flag. 4948 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4949 # nm: unknown option "B" ignored 4950 # Tru64's nm complains that /dev/null is an invalid object file 4951 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4952 case $build_os in 4953 mingw*) lt_bad_file=conftest.nm/nofile ;; 4954 *) lt_bad_file=/dev/null ;; 4955 esac 4956 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4957 *$lt_bad_file* | *'Invalid file or object type'*) 4958 lt_cv_path_NM="$tmp_nm -B" 4959 break 2 4960 ;; 4961 *) 4962 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4963 */dev/null*) 4964 lt_cv_path_NM="$tmp_nm -p" 4965 break 2 4966 ;; 4967 *) 4968 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4969 continue # so that we can try to find one that supports BSD flags 4970 ;; 4971 esac 4972 ;; 4973 esac 4974 fi 4975 done 4976 IFS=$lt_save_ifs 4977 done 4978 : ${lt_cv_path_NM=no} 4979fi 4980fi 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4982$as_echo "$lt_cv_path_NM" >&6; } 4983if test no != "$lt_cv_path_NM"; then 4984 NM=$lt_cv_path_NM 4985else 4986 # Didn't find any BSD compatible name lister, look for dumpbin. 4987 if test -n "$DUMPBIN"; then : 4988 # Let the user override the test. 4989 else 4990 if test -n "$ac_tool_prefix"; then 4991 for ac_prog in dumpbin "link -dump" 4992 do 4993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4994set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4996$as_echo_n "checking for $ac_word... " >&6; } 4997if ${ac_cv_prog_DUMPBIN+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 if test -n "$DUMPBIN"; then 5001 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5002else 5003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5004for as_dir in $PATH 5005do 5006 IFS=$as_save_IFS 5007 test -z "$as_dir" && as_dir=. 5008 for ac_exec_ext in '' $ac_executable_extensions; do 5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5010 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5012 break 2 5013 fi 5014done 5015 done 5016IFS=$as_save_IFS 5017 5018fi 5019fi 5020DUMPBIN=$ac_cv_prog_DUMPBIN 5021if test -n "$DUMPBIN"; then 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5023$as_echo "$DUMPBIN" >&6; } 5024else 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5026$as_echo "no" >&6; } 5027fi 5028 5029 5030 test -n "$DUMPBIN" && break 5031 done 5032fi 5033if test -z "$DUMPBIN"; then 5034 ac_ct_DUMPBIN=$DUMPBIN 5035 for ac_prog in dumpbin "link -dump" 5036do 5037 # Extract the first word of "$ac_prog", so it can be a program name with args. 5038set dummy $ac_prog; ac_word=$2 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5040$as_echo_n "checking for $ac_word... " >&6; } 5041if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 if test -n "$ac_ct_DUMPBIN"; then 5045 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5046else 5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5048for as_dir in $PATH 5049do 5050 IFS=$as_save_IFS 5051 test -z "$as_dir" && as_dir=. 5052 for ac_exec_ext in '' $ac_executable_extensions; do 5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5054 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5056 break 2 5057 fi 5058done 5059 done 5060IFS=$as_save_IFS 5061 5062fi 5063fi 5064ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5065if test -n "$ac_ct_DUMPBIN"; then 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5067$as_echo "$ac_ct_DUMPBIN" >&6; } 5068else 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5070$as_echo "no" >&6; } 5071fi 5072 5073 5074 test -n "$ac_ct_DUMPBIN" && break 5075done 5076 5077 if test "x$ac_ct_DUMPBIN" = x; then 5078 DUMPBIN=":" 5079 else 5080 case $cross_compiling:$ac_tool_warned in 5081yes:) 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5084ac_tool_warned=yes ;; 5085esac 5086 DUMPBIN=$ac_ct_DUMPBIN 5087 fi 5088fi 5089 5090 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5091 *COFF*) 5092 DUMPBIN="$DUMPBIN -symbols -headers" 5093 ;; 5094 *) 5095 DUMPBIN=: 5096 ;; 5097 esac 5098 fi 5099 5100 if test : != "$DUMPBIN"; then 5101 NM=$DUMPBIN 5102 fi 5103fi 5104test -z "$NM" && NM=nm 5105 5106 5107 5108 5109 5110 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5112$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5113if ${lt_cv_nm_interface+:} false; then : 5114 $as_echo_n "(cached) " >&6 5115else 5116 lt_cv_nm_interface="BSD nm" 5117 echo "int some_variable = 0;" > conftest.$ac_ext 5118 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5119 (eval "$ac_compile" 2>conftest.err) 5120 cat conftest.err >&5 5121 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5122 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5123 cat conftest.err >&5 5124 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5125 cat conftest.out >&5 5126 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5127 lt_cv_nm_interface="MS dumpbin" 5128 fi 5129 rm -f conftest* 5130fi 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5132$as_echo "$lt_cv_nm_interface" >&6; } 5133 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5135$as_echo_n "checking whether ln -s works... " >&6; } 5136LN_S=$as_ln_s 5137if test "$LN_S" = "ln -s"; then 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5139$as_echo "yes" >&6; } 5140else 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5142$as_echo "no, using $LN_S" >&6; } 5143fi 5144 5145# find the maximum length of command line arguments 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5147$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5148if ${lt_cv_sys_max_cmd_len+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 i=0 5152 teststring=ABCD 5153 5154 case $build_os in 5155 msdosdjgpp*) 5156 # On DJGPP, this test can blow up pretty badly due to problems in libc 5157 # (any single argument exceeding 2000 bytes causes a buffer overrun 5158 # during glob expansion). Even if it were fixed, the result of this 5159 # check would be larger than it should be. 5160 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5161 ;; 5162 5163 gnu*) 5164 # Under GNU Hurd, this test is not required because there is 5165 # no limit to the length of command line arguments. 5166 # Libtool will interpret -1 as no limit whatsoever 5167 lt_cv_sys_max_cmd_len=-1; 5168 ;; 5169 5170 cygwin* | mingw* | cegcc*) 5171 # On Win9x/ME, this test blows up -- it succeeds, but takes 5172 # about 5 minutes as the teststring grows exponentially. 5173 # Worse, since 9x/ME are not pre-emptively multitasking, 5174 # you end up with a "frozen" computer, even though with patience 5175 # the test eventually succeeds (with a max line length of 256k). 5176 # Instead, let's just punt: use the minimum linelength reported by 5177 # all of the supported platforms: 8192 (on NT/2K/XP). 5178 lt_cv_sys_max_cmd_len=8192; 5179 ;; 5180 5181 mint*) 5182 # On MiNT this can take a long time and run out of memory. 5183 lt_cv_sys_max_cmd_len=8192; 5184 ;; 5185 5186 amigaos*) 5187 # On AmigaOS with pdksh, this test takes hours, literally. 5188 # So we just punt and use a minimum line length of 8192. 5189 lt_cv_sys_max_cmd_len=8192; 5190 ;; 5191 5192 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5193 # This has been around since 386BSD, at least. Likely further. 5194 if test -x /sbin/sysctl; then 5195 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5196 elif test -x /usr/sbin/sysctl; then 5197 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5198 else 5199 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5200 fi 5201 # And add a safety zone 5202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5204 ;; 5205 5206 interix*) 5207 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5208 lt_cv_sys_max_cmd_len=196608 5209 ;; 5210 5211 os2*) 5212 # The test takes a long time on OS/2. 5213 lt_cv_sys_max_cmd_len=8192 5214 ;; 5215 5216 osf*) 5217 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5218 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5219 # nice to cause kernel panics so lets avoid the loop below. 5220 # First set a reasonable default. 5221 lt_cv_sys_max_cmd_len=16384 5222 # 5223 if test -x /sbin/sysconfig; then 5224 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5225 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5226 esac 5227 fi 5228 ;; 5229 sco3.2v5*) 5230 lt_cv_sys_max_cmd_len=102400 5231 ;; 5232 sysv5* | sco5v6* | sysv4.2uw2*) 5233 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5234 if test -n "$kargmax"; then 5235 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5236 else 5237 lt_cv_sys_max_cmd_len=32768 5238 fi 5239 ;; 5240 *) 5241 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5242 if test -n "$lt_cv_sys_max_cmd_len" && \ 5243 test undefined != "$lt_cv_sys_max_cmd_len"; then 5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5246 else 5247 # Make teststring a little bigger before we do anything with it. 5248 # a 1K string should be a reasonable start. 5249 for i in 1 2 3 4 5 6 7 8; do 5250 teststring=$teststring$teststring 5251 done 5252 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5253 # If test is not a shell built-in, we'll probably end up computing a 5254 # maximum length that is only half of the actual maximum length, but 5255 # we can't tell. 5256 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5257 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5258 test 17 != "$i" # 1/2 MB should be enough 5259 do 5260 i=`expr $i + 1` 5261 teststring=$teststring$teststring 5262 done 5263 # Only check the string length outside the loop. 5264 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5265 teststring= 5266 # Add a significant safety factor because C++ compilers can tack on 5267 # massive amounts of additional arguments before passing them to the 5268 # linker. It appears as though 1/2 is a usable value. 5269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5270 fi 5271 ;; 5272 esac 5273 5274fi 5275 5276if test -n "$lt_cv_sys_max_cmd_len"; then 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5278$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5279else 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5281$as_echo "none" >&6; } 5282fi 5283max_cmd_len=$lt_cv_sys_max_cmd_len 5284 5285 5286 5287 5288 5289 5290: ${CP="cp -f"} 5291: ${MV="mv -f"} 5292: ${RM="rm -f"} 5293 5294if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5295 lt_unset=unset 5296else 5297 lt_unset=false 5298fi 5299 5300 5301 5302 5303 5304# test EBCDIC or ASCII 5305case `echo X|tr X '\101'` in 5306 A) # ASCII based system 5307 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5308 lt_SP2NL='tr \040 \012' 5309 lt_NL2SP='tr \015\012 \040\040' 5310 ;; 5311 *) # EBCDIC based system 5312 lt_SP2NL='tr \100 \n' 5313 lt_NL2SP='tr \r\n \100\100' 5314 ;; 5315esac 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5326$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5327if ${lt_cv_to_host_file_cmd+:} false; then : 5328 $as_echo_n "(cached) " >&6 5329else 5330 case $host in 5331 *-*-mingw* ) 5332 case $build in 5333 *-*-mingw* ) # actually msys 5334 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5335 ;; 5336 *-*-cygwin* ) 5337 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5338 ;; 5339 * ) # otherwise, assume *nix 5340 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5341 ;; 5342 esac 5343 ;; 5344 *-*-cygwin* ) 5345 case $build in 5346 *-*-mingw* ) # actually msys 5347 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5348 ;; 5349 *-*-cygwin* ) 5350 lt_cv_to_host_file_cmd=func_convert_file_noop 5351 ;; 5352 * ) # otherwise, assume *nix 5353 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5354 ;; 5355 esac 5356 ;; 5357 * ) # unhandled hosts (and "normal" native builds) 5358 lt_cv_to_host_file_cmd=func_convert_file_noop 5359 ;; 5360esac 5361 5362fi 5363 5364to_host_file_cmd=$lt_cv_to_host_file_cmd 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5366$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5367 5368 5369 5370 5371 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5373$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5374if ${lt_cv_to_tool_file_cmd+:} false; then : 5375 $as_echo_n "(cached) " >&6 5376else 5377 #assume ordinary cross tools, or native build. 5378lt_cv_to_tool_file_cmd=func_convert_file_noop 5379case $host in 5380 *-*-mingw* ) 5381 case $build in 5382 *-*-mingw* ) # actually msys 5383 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5384 ;; 5385 esac 5386 ;; 5387esac 5388 5389fi 5390 5391to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5393$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5394 5395 5396 5397 5398 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5400$as_echo_n "checking for $LD option to reload object files... " >&6; } 5401if ${lt_cv_ld_reload_flag+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 lt_cv_ld_reload_flag='-r' 5405fi 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5407$as_echo "$lt_cv_ld_reload_flag" >&6; } 5408reload_flag=$lt_cv_ld_reload_flag 5409case $reload_flag in 5410"" | " "*) ;; 5411*) reload_flag=" $reload_flag" ;; 5412esac 5413reload_cmds='$LD$reload_flag -o $output$reload_objs' 5414case $host_os in 5415 cygwin* | mingw* | pw32* | cegcc*) 5416 if test yes != "$GCC"; then 5417 reload_cmds=false 5418 fi 5419 ;; 5420 darwin*) 5421 if test yes = "$GCC"; then 5422 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5423 else 5424 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5425 fi 5426 ;; 5427esac 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437if test -n "$ac_tool_prefix"; then 5438 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5439set dummy ${ac_tool_prefix}objdump; ac_word=$2 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5441$as_echo_n "checking for $ac_word... " >&6; } 5442if ${ac_cv_prog_OBJDUMP+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 if test -n "$OBJDUMP"; then 5446 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5447else 5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5449for as_dir in $PATH 5450do 5451 IFS=$as_save_IFS 5452 test -z "$as_dir" && as_dir=. 5453 for ac_exec_ext in '' $ac_executable_extensions; do 5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5455 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5457 break 2 5458 fi 5459done 5460 done 5461IFS=$as_save_IFS 5462 5463fi 5464fi 5465OBJDUMP=$ac_cv_prog_OBJDUMP 5466if test -n "$OBJDUMP"; then 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5468$as_echo "$OBJDUMP" >&6; } 5469else 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5471$as_echo "no" >&6; } 5472fi 5473 5474 5475fi 5476if test -z "$ac_cv_prog_OBJDUMP"; then 5477 ac_ct_OBJDUMP=$OBJDUMP 5478 # Extract the first word of "objdump", so it can be a program name with args. 5479set dummy objdump; ac_word=$2 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5481$as_echo_n "checking for $ac_word... " >&6; } 5482if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 if test -n "$ac_ct_OBJDUMP"; then 5486 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5487else 5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5489for as_dir in $PATH 5490do 5491 IFS=$as_save_IFS 5492 test -z "$as_dir" && as_dir=. 5493 for ac_exec_ext in '' $ac_executable_extensions; do 5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5495 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5497 break 2 5498 fi 5499done 5500 done 5501IFS=$as_save_IFS 5502 5503fi 5504fi 5505ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5506if test -n "$ac_ct_OBJDUMP"; then 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5508$as_echo "$ac_ct_OBJDUMP" >&6; } 5509else 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5511$as_echo "no" >&6; } 5512fi 5513 5514 if test "x$ac_ct_OBJDUMP" = x; then 5515 OBJDUMP="false" 5516 else 5517 case $cross_compiling:$ac_tool_warned in 5518yes:) 5519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5521ac_tool_warned=yes ;; 5522esac 5523 OBJDUMP=$ac_ct_OBJDUMP 5524 fi 5525else 5526 OBJDUMP="$ac_cv_prog_OBJDUMP" 5527fi 5528 5529test -z "$OBJDUMP" && OBJDUMP=objdump 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5540$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5541if ${lt_cv_deplibs_check_method+:} false; then : 5542 $as_echo_n "(cached) " >&6 5543else 5544 lt_cv_file_magic_cmd='$MAGIC_CMD' 5545lt_cv_file_magic_test_file= 5546lt_cv_deplibs_check_method='unknown' 5547# Need to set the preceding variable on all platforms that support 5548# interlibrary dependencies. 5549# 'none' -- dependencies not supported. 5550# 'unknown' -- same as none, but documents that we really don't know. 5551# 'pass_all' -- all dependencies passed with no checks. 5552# 'test_compile' -- check by making test program. 5553# 'file_magic [[regex]]' -- check by looking for files in library path 5554# that responds to the $file_magic_cmd with a given extended regex. 5555# If you have 'file' or equivalent on your system and you're not sure 5556# whether 'pass_all' will *always* work, you probably want this one. 5557 5558case $host_os in 5559aix[4-9]*) 5560 lt_cv_deplibs_check_method=pass_all 5561 ;; 5562 5563beos*) 5564 lt_cv_deplibs_check_method=pass_all 5565 ;; 5566 5567bsdi[45]*) 5568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5569 lt_cv_file_magic_cmd='/usr/bin/file -L' 5570 lt_cv_file_magic_test_file=/shlib/libc.so 5571 ;; 5572 5573cygwin*) 5574 # func_win32_libid is a shell function defined in ltmain.sh 5575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5576 lt_cv_file_magic_cmd='func_win32_libid' 5577 ;; 5578 5579mingw* | pw32*) 5580 # Base MSYS/MinGW do not provide the 'file' command needed by 5581 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5582 # unless we find 'file', for example because we are cross-compiling. 5583 if ( file / ) >/dev/null 2>&1; then 5584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5585 lt_cv_file_magic_cmd='func_win32_libid' 5586 else 5587 # Keep this pattern in sync with the one in func_win32_libid. 5588 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5589 lt_cv_file_magic_cmd='$OBJDUMP -f' 5590 fi 5591 ;; 5592 5593cegcc*) 5594 # use the weaker test based on 'objdump'. See mingw*. 5595 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5596 lt_cv_file_magic_cmd='$OBJDUMP -f' 5597 ;; 5598 5599darwin* | rhapsody*) 5600 lt_cv_deplibs_check_method=pass_all 5601 ;; 5602 5603freebsd* | dragonfly*) 5604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5605 case $host_cpu in 5606 i*86 ) 5607 # Not sure whether the presence of OpenBSD here was a mistake. 5608 # Let's accept both of them until this is cleared up. 5609 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5610 lt_cv_file_magic_cmd=/usr/bin/file 5611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5612 ;; 5613 esac 5614 else 5615 lt_cv_deplibs_check_method=pass_all 5616 fi 5617 ;; 5618 5619haiku*) 5620 lt_cv_deplibs_check_method=pass_all 5621 ;; 5622 5623hpux10.20* | hpux11*) 5624 lt_cv_file_magic_cmd=/usr/bin/file 5625 case $host_cpu in 5626 ia64*) 5627 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5628 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5629 ;; 5630 hppa*64*) 5631 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]' 5632 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5633 ;; 5634 *) 5635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5636 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5637 ;; 5638 esac 5639 ;; 5640 5641interix[3-9]*) 5642 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5644 ;; 5645 5646irix5* | irix6* | nonstopux*) 5647 case $LD in 5648 *-32|*"-32 ") libmagic=32-bit;; 5649 *-n32|*"-n32 ") libmagic=N32;; 5650 *-64|*"-64 ") libmagic=64-bit;; 5651 *) libmagic=never-match;; 5652 esac 5653 lt_cv_deplibs_check_method=pass_all 5654 ;; 5655 5656# This must be glibc/ELF. 5657linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5658 lt_cv_deplibs_check_method=pass_all 5659 ;; 5660 5661netbsd*) 5662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5664 else 5665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5666 fi 5667 ;; 5668 5669newos6*) 5670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5671 lt_cv_file_magic_cmd=/usr/bin/file 5672 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5673 ;; 5674 5675*nto* | *qnx*) 5676 lt_cv_deplibs_check_method=pass_all 5677 ;; 5678 5679openbsd* | bitrig*) 5680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5682 else 5683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5684 fi 5685 ;; 5686 5687osf3* | osf4* | osf5*) 5688 lt_cv_deplibs_check_method=pass_all 5689 ;; 5690 5691rdos*) 5692 lt_cv_deplibs_check_method=pass_all 5693 ;; 5694 5695solaris*) 5696 lt_cv_deplibs_check_method=pass_all 5697 ;; 5698 5699sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5700 lt_cv_deplibs_check_method=pass_all 5701 ;; 5702 5703sysv4 | sysv4.3*) 5704 case $host_vendor in 5705 motorola) 5706 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]' 5707 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5708 ;; 5709 ncr) 5710 lt_cv_deplibs_check_method=pass_all 5711 ;; 5712 sequent) 5713 lt_cv_file_magic_cmd='/bin/file' 5714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5715 ;; 5716 sni) 5717 lt_cv_file_magic_cmd='/bin/file' 5718 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5719 lt_cv_file_magic_test_file=/lib/libc.so 5720 ;; 5721 siemens) 5722 lt_cv_deplibs_check_method=pass_all 5723 ;; 5724 pc) 5725 lt_cv_deplibs_check_method=pass_all 5726 ;; 5727 esac 5728 ;; 5729 5730tpf*) 5731 lt_cv_deplibs_check_method=pass_all 5732 ;; 5733os2*) 5734 lt_cv_deplibs_check_method=pass_all 5735 ;; 5736esac 5737 5738fi 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5740$as_echo "$lt_cv_deplibs_check_method" >&6; } 5741 5742file_magic_glob= 5743want_nocaseglob=no 5744if test "$build" = "$host"; then 5745 case $host_os in 5746 mingw* | pw32*) 5747 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5748 want_nocaseglob=yes 5749 else 5750 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5751 fi 5752 ;; 5753 esac 5754fi 5755 5756file_magic_cmd=$lt_cv_file_magic_cmd 5757deplibs_check_method=$lt_cv_deplibs_check_method 5758test -z "$deplibs_check_method" && deplibs_check_method=unknown 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781if test -n "$ac_tool_prefix"; then 5782 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5783set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5785$as_echo_n "checking for $ac_word... " >&6; } 5786if ${ac_cv_prog_DLLTOOL+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 if test -n "$DLLTOOL"; then 5790 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5791else 5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5793for as_dir in $PATH 5794do 5795 IFS=$as_save_IFS 5796 test -z "$as_dir" && as_dir=. 5797 for ac_exec_ext in '' $ac_executable_extensions; do 5798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5799 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5801 break 2 5802 fi 5803done 5804 done 5805IFS=$as_save_IFS 5806 5807fi 5808fi 5809DLLTOOL=$ac_cv_prog_DLLTOOL 5810if test -n "$DLLTOOL"; then 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5812$as_echo "$DLLTOOL" >&6; } 5813else 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5815$as_echo "no" >&6; } 5816fi 5817 5818 5819fi 5820if test -z "$ac_cv_prog_DLLTOOL"; then 5821 ac_ct_DLLTOOL=$DLLTOOL 5822 # Extract the first word of "dlltool", so it can be a program name with args. 5823set dummy dlltool; ac_word=$2 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5825$as_echo_n "checking for $ac_word... " >&6; } 5826if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 if test -n "$ac_ct_DLLTOOL"; then 5830 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5831else 5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5833for as_dir in $PATH 5834do 5835 IFS=$as_save_IFS 5836 test -z "$as_dir" && as_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5839 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5841 break 2 5842 fi 5843done 5844 done 5845IFS=$as_save_IFS 5846 5847fi 5848fi 5849ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5850if test -n "$ac_ct_DLLTOOL"; then 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5852$as_echo "$ac_ct_DLLTOOL" >&6; } 5853else 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5855$as_echo "no" >&6; } 5856fi 5857 5858 if test "x$ac_ct_DLLTOOL" = x; then 5859 DLLTOOL="false" 5860 else 5861 case $cross_compiling:$ac_tool_warned in 5862yes:) 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5865ac_tool_warned=yes ;; 5866esac 5867 DLLTOOL=$ac_ct_DLLTOOL 5868 fi 5869else 5870 DLLTOOL="$ac_cv_prog_DLLTOOL" 5871fi 5872 5873test -z "$DLLTOOL" && DLLTOOL=dlltool 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5885$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5886if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 lt_cv_sharedlib_from_linklib_cmd='unknown' 5890 5891case $host_os in 5892cygwin* | mingw* | pw32* | cegcc*) 5893 # two different shell functions defined in ltmain.sh; 5894 # decide which one to use based on capabilities of $DLLTOOL 5895 case `$DLLTOOL --help 2>&1` in 5896 *--identify-strict*) 5897 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5898 ;; 5899 *) 5900 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5901 ;; 5902 esac 5903 ;; 5904*) 5905 # fallback: assume linklib IS sharedlib 5906 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5907 ;; 5908esac 5909 5910fi 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5912$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5913sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5914test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5915 5916 5917 5918 5919 5920 5921 5922if test -n "$ac_tool_prefix"; then 5923 for ac_prog in ar 5924 do 5925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5926set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5928$as_echo_n "checking for $ac_word... " >&6; } 5929if ${ac_cv_prog_AR+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 if test -n "$AR"; then 5933 ac_cv_prog_AR="$AR" # Let the user override the test. 5934else 5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5936for as_dir in $PATH 5937do 5938 IFS=$as_save_IFS 5939 test -z "$as_dir" && as_dir=. 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5942 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947 done 5948IFS=$as_save_IFS 5949 5950fi 5951fi 5952AR=$ac_cv_prog_AR 5953if test -n "$AR"; then 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5955$as_echo "$AR" >&6; } 5956else 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5958$as_echo "no" >&6; } 5959fi 5960 5961 5962 test -n "$AR" && break 5963 done 5964fi 5965if test -z "$AR"; then 5966 ac_ct_AR=$AR 5967 for ac_prog in ar 5968do 5969 # Extract the first word of "$ac_prog", so it can be a program name with args. 5970set dummy $ac_prog; ac_word=$2 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5972$as_echo_n "checking for $ac_word... " >&6; } 5973if ${ac_cv_prog_ac_ct_AR+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 if test -n "$ac_ct_AR"; then 5977 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_ac_ct_AR="$ac_prog" 5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991 done 5992IFS=$as_save_IFS 5993 5994fi 5995fi 5996ac_ct_AR=$ac_cv_prog_ac_ct_AR 5997if test -n "$ac_ct_AR"; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5999$as_echo "$ac_ct_AR" >&6; } 6000else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6002$as_echo "no" >&6; } 6003fi 6004 6005 6006 test -n "$ac_ct_AR" && break 6007done 6008 6009 if test "x$ac_ct_AR" = x; then 6010 AR="false" 6011 else 6012 case $cross_compiling:$ac_tool_warned in 6013yes:) 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6016ac_tool_warned=yes ;; 6017esac 6018 AR=$ac_ct_AR 6019 fi 6020fi 6021 6022: ${AR=ar} 6023: ${AR_FLAGS=cru} 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6036$as_echo_n "checking for archiver @FILE support... " >&6; } 6037if ${lt_cv_ar_at_file+:} false; then : 6038 $as_echo_n "(cached) " >&6 6039else 6040 lt_cv_ar_at_file=no 6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6042/* end confdefs.h. */ 6043 6044int 6045main () 6046{ 6047 6048 ; 6049 return 0; 6050} 6051_ACEOF 6052if ac_fn_c_try_compile "$LINENO"; then : 6053 echo conftest.$ac_objext > conftest.lst 6054 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6056 (eval $lt_ar_try) 2>&5 6057 ac_status=$? 6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6059 test $ac_status = 0; } 6060 if test 0 -eq "$ac_status"; then 6061 # Ensure the archiver fails upon bogus file names. 6062 rm -f conftest.$ac_objext libconftest.a 6063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6064 (eval $lt_ar_try) 2>&5 6065 ac_status=$? 6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6067 test $ac_status = 0; } 6068 if test 0 -ne "$ac_status"; then 6069 lt_cv_ar_at_file=@ 6070 fi 6071 fi 6072 rm -f conftest.* libconftest.a 6073 6074fi 6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6076 6077fi 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6079$as_echo "$lt_cv_ar_at_file" >&6; } 6080 6081if test no = "$lt_cv_ar_at_file"; then 6082 archiver_list_spec= 6083else 6084 archiver_list_spec=$lt_cv_ar_at_file 6085fi 6086 6087 6088 6089 6090 6091 6092 6093if test -n "$ac_tool_prefix"; then 6094 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6095set dummy ${ac_tool_prefix}strip; ac_word=$2 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6097$as_echo_n "checking for $ac_word... " >&6; } 6098if ${ac_cv_prog_STRIP+:} false; then : 6099 $as_echo_n "(cached) " >&6 6100else 6101 if test -n "$STRIP"; then 6102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6103else 6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6105for as_dir in $PATH 6106do 6107 IFS=$as_save_IFS 6108 test -z "$as_dir" && as_dir=. 6109 for ac_exec_ext in '' $ac_executable_extensions; do 6110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6111 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6113 break 2 6114 fi 6115done 6116 done 6117IFS=$as_save_IFS 6118 6119fi 6120fi 6121STRIP=$ac_cv_prog_STRIP 6122if test -n "$STRIP"; then 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6124$as_echo "$STRIP" >&6; } 6125else 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6127$as_echo "no" >&6; } 6128fi 6129 6130 6131fi 6132if test -z "$ac_cv_prog_STRIP"; then 6133 ac_ct_STRIP=$STRIP 6134 # Extract the first word of "strip", so it can be a program name with args. 6135set dummy strip; ac_word=$2 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6137$as_echo_n "checking for $ac_word... " >&6; } 6138if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6139 $as_echo_n "(cached) " >&6 6140else 6141 if test -n "$ac_ct_STRIP"; then 6142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6143else 6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6145for as_dir in $PATH 6146do 6147 IFS=$as_save_IFS 6148 test -z "$as_dir" && as_dir=. 6149 for ac_exec_ext in '' $ac_executable_extensions; do 6150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6151 ac_cv_prog_ac_ct_STRIP="strip" 6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6153 break 2 6154 fi 6155done 6156 done 6157IFS=$as_save_IFS 6158 6159fi 6160fi 6161ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6162if test -n "$ac_ct_STRIP"; then 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6164$as_echo "$ac_ct_STRIP" >&6; } 6165else 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6167$as_echo "no" >&6; } 6168fi 6169 6170 if test "x$ac_ct_STRIP" = x; then 6171 STRIP=":" 6172 else 6173 case $cross_compiling:$ac_tool_warned in 6174yes:) 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6177ac_tool_warned=yes ;; 6178esac 6179 STRIP=$ac_ct_STRIP 6180 fi 6181else 6182 STRIP="$ac_cv_prog_STRIP" 6183fi 6184 6185test -z "$STRIP" && STRIP=: 6186 6187 6188 6189 6190 6191 6192if test -n "$ac_tool_prefix"; then 6193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6194set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if ${ac_cv_prog_RANLIB+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -n "$RANLIB"; then 6201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215 done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220RANLIB=$ac_cv_prog_RANLIB 6221if test -n "$RANLIB"; then 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6223$as_echo "$RANLIB" >&6; } 6224else 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226$as_echo "no" >&6; } 6227fi 6228 6229 6230fi 6231if test -z "$ac_cv_prog_RANLIB"; then 6232 ac_ct_RANLIB=$RANLIB 6233 # Extract the first word of "ranlib", so it can be a program name with args. 6234set dummy ranlib; ac_word=$2 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236$as_echo_n "checking for $ac_word... " >&6; } 6237if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$ac_ct_RANLIB"; then 6241 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 test -z "$as_dir" && as_dir=. 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6250 ac_cv_prog_ac_ct_RANLIB="ranlib" 6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255 done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6261if test -n "$ac_ct_RANLIB"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6263$as_echo "$ac_ct_RANLIB" >&6; } 6264else 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268 6269 if test "x$ac_ct_RANLIB" = x; then 6270 RANLIB=":" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 RANLIB=$ac_ct_RANLIB 6279 fi 6280else 6281 RANLIB="$ac_cv_prog_RANLIB" 6282fi 6283 6284test -z "$RANLIB" && RANLIB=: 6285 6286 6287 6288 6289 6290 6291# Determine commands to create old-style static archives. 6292old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6293old_postinstall_cmds='chmod 644 $oldlib' 6294old_postuninstall_cmds= 6295 6296if test -n "$RANLIB"; then 6297 case $host_os in 6298 bitrig* | openbsd*) 6299 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6300 ;; 6301 *) 6302 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6303 ;; 6304 esac 6305 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6306fi 6307 6308case $host_os in 6309 darwin*) 6310 lock_old_archive_extraction=yes ;; 6311 *) 6312 lock_old_archive_extraction=no ;; 6313esac 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335for ac_prog in gawk mawk nawk awk 6336do 6337 # Extract the first word of "$ac_prog", so it can be a program name with args. 6338set dummy $ac_prog; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_prog_AWK+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$AWK"; then 6345 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_AWK="$ac_prog" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364AWK=$ac_cv_prog_AWK 6365if test -n "$AWK"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6367$as_echo "$AWK" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 6374 test -n "$AWK" && break 6375done 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395# If no C compiler was specified, use CC. 6396LTCC=${LTCC-"$CC"} 6397 6398# If no C compiler flags were specified, use CFLAGS. 6399LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6400 6401# Allow CC to be a program name with arguments. 6402compiler=$CC 6403 6404 6405# Check for command to grab the raw symbol name followed by C symbol from nm. 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6407$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6408if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 6412# These are sane defaults that work on at least a few old systems. 6413# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6414 6415# Character class describing NM global symbol codes. 6416symcode='[BCDEGRST]' 6417 6418# Regexp to match symbols that can be accessed directly from C. 6419sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6420 6421# Define system-specific variables. 6422case $host_os in 6423aix*) 6424 symcode='[BCDT]' 6425 ;; 6426cygwin* | mingw* | pw32* | cegcc*) 6427 symcode='[ABCDGISTW]' 6428 ;; 6429hpux*) 6430 if test ia64 = "$host_cpu"; then 6431 symcode='[ABCDEGRST]' 6432 fi 6433 ;; 6434irix* | nonstopux*) 6435 symcode='[BCDEGRST]' 6436 ;; 6437osf*) 6438 symcode='[BCDEGQRST]' 6439 ;; 6440solaris*) 6441 symcode='[BDRT]' 6442 ;; 6443sco3.2v5*) 6444 symcode='[DT]' 6445 ;; 6446sysv4.2uw2*) 6447 symcode='[DT]' 6448 ;; 6449sysv5* | sco5v6* | unixware* | OpenUNIX*) 6450 symcode='[ABDT]' 6451 ;; 6452sysv4) 6453 symcode='[DFNSTU]' 6454 ;; 6455esac 6456 6457# If we're using GNU nm, then use its standard symbol codes. 6458case `$NM -V 2>&1` in 6459*GNU* | *'with BFD'*) 6460 symcode='[ABCDGIRSTW]' ;; 6461esac 6462 6463if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6464 # Gets list of data symbols to import. 6465 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6466 # Adjust the below global symbol transforms to fixup imported variables. 6467 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6468 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6469 lt_c_name_lib_hook="\ 6470 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6471 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6472else 6473 # Disable hooks by default. 6474 lt_cv_sys_global_symbol_to_import= 6475 lt_cdecl_hook= 6476 lt_c_name_hook= 6477 lt_c_name_lib_hook= 6478fi 6479 6480# Transform an extracted symbol line into a proper C declaration. 6481# Some systems (esp. on ia64) link data and code symbols differently, 6482# so use this general approach. 6483lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6484$lt_cdecl_hook\ 6485" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6486" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6487 6488# Transform an extracted symbol line into symbol name and symbol address 6489lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6490$lt_c_name_hook\ 6491" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6492" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6493 6494# Transform an extracted symbol line into symbol name with lib prefix and 6495# symbol address. 6496lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6497$lt_c_name_lib_hook\ 6498" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6499" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6500" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6501 6502# Handle CRLF in mingw tool chain 6503opt_cr= 6504case $build_os in 6505mingw*) 6506 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6507 ;; 6508esac 6509 6510# Try without a prefix underscore, then with it. 6511for ac_symprfx in "" "_"; do 6512 6513 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6514 symxfrm="\\1 $ac_symprfx\\2 \\2" 6515 6516 # Write the raw and C identifiers. 6517 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6518 # Fake it for dumpbin and say T for any non-static function, 6519 # D for any global variable and I for any imported variable. 6520 # Also find C++ and __fastcall symbols from MSVC++, 6521 # which start with @ or ?. 6522 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6523" {last_section=section; section=\$ 3};"\ 6524" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6525" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6526" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6527" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6528" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6529" \$ 0!~/External *\|/{next};"\ 6530" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6531" {if(hide[section]) next};"\ 6532" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6533" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6534" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6535" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6536" ' prfx=^$ac_symprfx" 6537 else 6538 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6539 fi 6540 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6541 6542 # Check to see that the pipe works correctly. 6543 pipe_works=no 6544 6545 rm -f conftest* 6546 cat > conftest.$ac_ext <<_LT_EOF 6547#ifdef __cplusplus 6548extern "C" { 6549#endif 6550char nm_test_var; 6551void nm_test_func(void); 6552void nm_test_func(void){} 6553#ifdef __cplusplus 6554} 6555#endif 6556int main(){nm_test_var='a';nm_test_func();return(0);} 6557_LT_EOF 6558 6559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6560 (eval $ac_compile) 2>&5 6561 ac_status=$? 6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6563 test $ac_status = 0; }; then 6564 # Now try to grab the symbols. 6565 nlist=conftest.nm 6566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6567 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6568 ac_status=$? 6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6570 test $ac_status = 0; } && test -s "$nlist"; then 6571 # Try sorting and uniquifying the output. 6572 if sort "$nlist" | uniq > "$nlist"T; then 6573 mv -f "$nlist"T "$nlist" 6574 else 6575 rm -f "$nlist"T 6576 fi 6577 6578 # Make sure that we snagged all the symbols we need. 6579 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6580 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6581 cat <<_LT_EOF > conftest.$ac_ext 6582/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6583#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6584/* DATA imports from DLLs on WIN32 can't be const, because runtime 6585 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6586# define LT_DLSYM_CONST 6587#elif defined __osf__ 6588/* This system does not cope well with relocations in const data. */ 6589# define LT_DLSYM_CONST 6590#else 6591# define LT_DLSYM_CONST const 6592#endif 6593 6594#ifdef __cplusplus 6595extern "C" { 6596#endif 6597 6598_LT_EOF 6599 # Now generate the symbol file. 6600 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6601 6602 cat <<_LT_EOF >> conftest.$ac_ext 6603 6604/* The mapping between symbol names and symbols. */ 6605LT_DLSYM_CONST struct { 6606 const char *name; 6607 void *address; 6608} 6609lt__PROGRAM__LTX_preloaded_symbols[] = 6610{ 6611 { "@PROGRAM@", (void *) 0 }, 6612_LT_EOF 6613 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6614 cat <<\_LT_EOF >> conftest.$ac_ext 6615 {0, (void *) 0} 6616}; 6617 6618/* This works around a problem in FreeBSD linker */ 6619#ifdef FREEBSD_WORKAROUND 6620static const void *lt_preloaded_setup() { 6621 return lt__PROGRAM__LTX_preloaded_symbols; 6622} 6623#endif 6624 6625#ifdef __cplusplus 6626} 6627#endif 6628_LT_EOF 6629 # Now try linking the two files. 6630 mv conftest.$ac_objext conftstm.$ac_objext 6631 lt_globsym_save_LIBS=$LIBS 6632 lt_globsym_save_CFLAGS=$CFLAGS 6633 LIBS=conftstm.$ac_objext 6634 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6636 (eval $ac_link) 2>&5 6637 ac_status=$? 6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6639 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6640 pipe_works=yes 6641 fi 6642 LIBS=$lt_globsym_save_LIBS 6643 CFLAGS=$lt_globsym_save_CFLAGS 6644 else 6645 echo "cannot find nm_test_func in $nlist" >&5 6646 fi 6647 else 6648 echo "cannot find nm_test_var in $nlist" >&5 6649 fi 6650 else 6651 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6652 fi 6653 else 6654 echo "$progname: failed program was:" >&5 6655 cat conftest.$ac_ext >&5 6656 fi 6657 rm -rf conftest* conftst* 6658 6659 # Do not use the global_symbol_pipe unless it works. 6660 if test yes = "$pipe_works"; then 6661 break 6662 else 6663 lt_cv_sys_global_symbol_pipe= 6664 fi 6665done 6666 6667fi 6668 6669if test -z "$lt_cv_sys_global_symbol_pipe"; then 6670 lt_cv_sys_global_symbol_to_cdecl= 6671fi 6672if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6674$as_echo "failed" >&6; } 6675else 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6677$as_echo "ok" >&6; } 6678fi 6679 6680# Response file support. 6681if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6682 nm_file_list_spec='@' 6683elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6684 nm_file_list_spec='@' 6685fi 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6724$as_echo_n "checking for sysroot... " >&6; } 6725 6726# Check whether --with-sysroot was given. 6727if test "${with_sysroot+set}" = set; then : 6728 withval=$with_sysroot; 6729else 6730 with_sysroot=no 6731fi 6732 6733 6734lt_sysroot= 6735case $with_sysroot in #( 6736 yes) 6737 if test yes = "$GCC"; then 6738 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6739 fi 6740 ;; #( 6741 /*) 6742 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6743 ;; #( 6744 no|'') 6745 ;; #( 6746 *) 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6748$as_echo "$with_sysroot" >&6; } 6749 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6750 ;; 6751esac 6752 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6754$as_echo "${lt_sysroot:-no}" >&6; } 6755 6756 6757 6758 6759 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6761$as_echo_n "checking for a working dd... " >&6; } 6762if ${ac_cv_path_lt_DD+:} false; then : 6763 $as_echo_n "(cached) " >&6 6764else 6765 printf 0123456789abcdef0123456789abcdef >conftest.i 6766cat conftest.i conftest.i >conftest2.i 6767: ${lt_DD:=$DD} 6768if test -z "$lt_DD"; then 6769 ac_path_lt_DD_found=false 6770 # Loop through the user's path and test for each of PROGNAME-LIST 6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6772for as_dir in $PATH 6773do 6774 IFS=$as_save_IFS 6775 test -z "$as_dir" && as_dir=. 6776 for ac_prog in dd; do 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6779 as_fn_executable_p "$ac_path_lt_DD" || continue 6780if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6781 cmp -s conftest.i conftest.out \ 6782 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6783fi 6784 $ac_path_lt_DD_found && break 3 6785 done 6786 done 6787 done 6788IFS=$as_save_IFS 6789 if test -z "$ac_cv_path_lt_DD"; then 6790 : 6791 fi 6792else 6793 ac_cv_path_lt_DD=$lt_DD 6794fi 6795 6796rm -f conftest.i conftest2.i conftest.out 6797fi 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6799$as_echo "$ac_cv_path_lt_DD" >&6; } 6800 6801 6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6803$as_echo_n "checking how to truncate binary pipes... " >&6; } 6804if ${lt_cv_truncate_bin+:} false; then : 6805 $as_echo_n "(cached) " >&6 6806else 6807 printf 0123456789abcdef0123456789abcdef >conftest.i 6808cat conftest.i conftest.i >conftest2.i 6809lt_cv_truncate_bin= 6810if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6811 cmp -s conftest.i conftest.out \ 6812 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6813fi 6814rm -f conftest.i conftest2.i conftest.out 6815test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6816fi 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6818$as_echo "$lt_cv_truncate_bin" >&6; } 6819 6820 6821 6822 6823 6824 6825 6826# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6827func_cc_basename () 6828{ 6829 for cc_temp in $*""; do 6830 case $cc_temp in 6831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6833 \-*) ;; 6834 *) break;; 6835 esac 6836 done 6837 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6838} 6839 6840# Check whether --enable-libtool-lock was given. 6841if test "${enable_libtool_lock+set}" = set; then : 6842 enableval=$enable_libtool_lock; 6843fi 6844 6845test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6846 6847# Some flags need to be propagated to the compiler or linker for good 6848# libtool support. 6849case $host in 6850ia64-*-hpux*) 6851 # Find out what ABI is being produced by ac_compile, and set mode 6852 # options accordingly. 6853 echo 'int i;' > conftest.$ac_ext 6854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6855 (eval $ac_compile) 2>&5 6856 ac_status=$? 6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6858 test $ac_status = 0; }; then 6859 case `/usr/bin/file conftest.$ac_objext` in 6860 *ELF-32*) 6861 HPUX_IA64_MODE=32 6862 ;; 6863 *ELF-64*) 6864 HPUX_IA64_MODE=64 6865 ;; 6866 esac 6867 fi 6868 rm -rf conftest* 6869 ;; 6870*-*-irix6*) 6871 # Find out what ABI is being produced by ac_compile, and set linker 6872 # options accordingly. 6873 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6875 (eval $ac_compile) 2>&5 6876 ac_status=$? 6877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6878 test $ac_status = 0; }; then 6879 if test yes = "$lt_cv_prog_gnu_ld"; then 6880 case `/usr/bin/file conftest.$ac_objext` in 6881 *32-bit*) 6882 LD="${LD-ld} -melf32bsmip" 6883 ;; 6884 *N32*) 6885 LD="${LD-ld} -melf32bmipn32" 6886 ;; 6887 *64-bit*) 6888 LD="${LD-ld} -melf64bmip" 6889 ;; 6890 esac 6891 else 6892 case `/usr/bin/file conftest.$ac_objext` in 6893 *32-bit*) 6894 LD="${LD-ld} -32" 6895 ;; 6896 *N32*) 6897 LD="${LD-ld} -n32" 6898 ;; 6899 *64-bit*) 6900 LD="${LD-ld} -64" 6901 ;; 6902 esac 6903 fi 6904 fi 6905 rm -rf conftest* 6906 ;; 6907 6908mips64*-*linux*) 6909 # Find out what ABI is being produced by ac_compile, and set linker 6910 # options accordingly. 6911 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6913 (eval $ac_compile) 2>&5 6914 ac_status=$? 6915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6916 test $ac_status = 0; }; then 6917 emul=elf 6918 case `/usr/bin/file conftest.$ac_objext` in 6919 *32-bit*) 6920 emul="${emul}32" 6921 ;; 6922 *64-bit*) 6923 emul="${emul}64" 6924 ;; 6925 esac 6926 case `/usr/bin/file conftest.$ac_objext` in 6927 *MSB*) 6928 emul="${emul}btsmip" 6929 ;; 6930 *LSB*) 6931 emul="${emul}ltsmip" 6932 ;; 6933 esac 6934 case `/usr/bin/file conftest.$ac_objext` in 6935 *N32*) 6936 emul="${emul}n32" 6937 ;; 6938 esac 6939 LD="${LD-ld} -m $emul" 6940 fi 6941 rm -rf conftest* 6942 ;; 6943 6944x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6945s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6946 # Find out what ABI is being produced by ac_compile, and set linker 6947 # options accordingly. Note that the listed cases only cover the 6948 # situations where additional linker options are needed (such as when 6949 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6950 # vice versa); the common cases where no linker options are needed do 6951 # not appear in the list. 6952 echo 'int i;' > conftest.$ac_ext 6953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6954 (eval $ac_compile) 2>&5 6955 ac_status=$? 6956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6957 test $ac_status = 0; }; then 6958 case `/usr/bin/file conftest.o` in 6959 *32-bit*) 6960 case $host in 6961 x86_64-*kfreebsd*-gnu) 6962 LD="${LD-ld} -m elf_i386_fbsd" 6963 ;; 6964 x86_64-*linux*) 6965 case `/usr/bin/file conftest.o` in 6966 *x86-64*) 6967 LD="${LD-ld} -m elf32_x86_64" 6968 ;; 6969 *) 6970 LD="${LD-ld} -m elf_i386" 6971 ;; 6972 esac 6973 ;; 6974 powerpc64le-*linux*) 6975 LD="${LD-ld} -m elf32lppclinux" 6976 ;; 6977 powerpc64-*linux*) 6978 LD="${LD-ld} -m elf32ppclinux" 6979 ;; 6980 s390x-*linux*) 6981 LD="${LD-ld} -m elf_s390" 6982 ;; 6983 sparc64-*linux*) 6984 LD="${LD-ld} -m elf32_sparc" 6985 ;; 6986 esac 6987 ;; 6988 *64-bit*) 6989 case $host in 6990 x86_64-*kfreebsd*-gnu) 6991 LD="${LD-ld} -m elf_x86_64_fbsd" 6992 ;; 6993 x86_64-*linux*) 6994 LD="${LD-ld} -m elf_x86_64" 6995 ;; 6996 powerpcle-*linux*) 6997 LD="${LD-ld} -m elf64lppc" 6998 ;; 6999 powerpc-*linux*) 7000 LD="${LD-ld} -m elf64ppc" 7001 ;; 7002 s390*-*linux*|s390*-*tpf*) 7003 LD="${LD-ld} -m elf64_s390" 7004 ;; 7005 sparc*-*linux*) 7006 LD="${LD-ld} -m elf64_sparc" 7007 ;; 7008 esac 7009 ;; 7010 esac 7011 fi 7012 rm -rf conftest* 7013 ;; 7014 7015*-*-sco3.2v5*) 7016 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7017 SAVE_CFLAGS=$CFLAGS 7018 CFLAGS="$CFLAGS -belf" 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7020$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7021if ${lt_cv_cc_needs_belf+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 ac_ext=c 7025ac_cpp='$CPP $CPPFLAGS' 7026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7028ac_compiler_gnu=$ac_cv_c_compiler_gnu 7029 7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7031/* end confdefs.h. */ 7032 7033int 7034main () 7035{ 7036 7037 ; 7038 return 0; 7039} 7040_ACEOF 7041if ac_fn_c_try_link "$LINENO"; then : 7042 lt_cv_cc_needs_belf=yes 7043else 7044 lt_cv_cc_needs_belf=no 7045fi 7046rm -f core conftest.err conftest.$ac_objext \ 7047 conftest$ac_exeext conftest.$ac_ext 7048 ac_ext=c 7049ac_cpp='$CPP $CPPFLAGS' 7050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7052ac_compiler_gnu=$ac_cv_c_compiler_gnu 7053 7054fi 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7056$as_echo "$lt_cv_cc_needs_belf" >&6; } 7057 if test yes != "$lt_cv_cc_needs_belf"; then 7058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7059 CFLAGS=$SAVE_CFLAGS 7060 fi 7061 ;; 7062*-*solaris*) 7063 # Find out what ABI is being produced by ac_compile, and set linker 7064 # options accordingly. 7065 echo 'int i;' > conftest.$ac_ext 7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7067 (eval $ac_compile) 2>&5 7068 ac_status=$? 7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7070 test $ac_status = 0; }; then 7071 case `/usr/bin/file conftest.o` in 7072 *64-bit*) 7073 case $lt_cv_prog_gnu_ld in 7074 yes*) 7075 case $host in 7076 i?86-*-solaris*|x86_64-*-solaris*) 7077 LD="${LD-ld} -m elf_x86_64" 7078 ;; 7079 sparc*-*-solaris*) 7080 LD="${LD-ld} -m elf64_sparc" 7081 ;; 7082 esac 7083 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7084 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7085 LD=${LD-ld}_sol2 7086 fi 7087 ;; 7088 *) 7089 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7090 LD="${LD-ld} -64" 7091 fi 7092 ;; 7093 esac 7094 ;; 7095 esac 7096 fi 7097 rm -rf conftest* 7098 ;; 7099esac 7100 7101need_locks=$enable_libtool_lock 7102 7103if test -n "$ac_tool_prefix"; then 7104 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7105set dummy ${ac_tool_prefix}mt; ac_word=$2 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7107$as_echo_n "checking for $ac_word... " >&6; } 7108if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 if test -n "$MANIFEST_TOOL"; then 7112 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7113else 7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7115for as_dir in $PATH 7116do 7117 IFS=$as_save_IFS 7118 test -z "$as_dir" && as_dir=. 7119 for ac_exec_ext in '' $ac_executable_extensions; do 7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7121 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7123 break 2 7124 fi 7125done 7126 done 7127IFS=$as_save_IFS 7128 7129fi 7130fi 7131MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7132if test -n "$MANIFEST_TOOL"; then 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7134$as_echo "$MANIFEST_TOOL" >&6; } 7135else 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7137$as_echo "no" >&6; } 7138fi 7139 7140 7141fi 7142if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7143 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7144 # Extract the first word of "mt", so it can be a program name with args. 7145set dummy mt; ac_word=$2 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7147$as_echo_n "checking for $ac_word... " >&6; } 7148if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 if test -n "$ac_ct_MANIFEST_TOOL"; then 7152 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7153else 7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7155for as_dir in $PATH 7156do 7157 IFS=$as_save_IFS 7158 test -z "$as_dir" && as_dir=. 7159 for ac_exec_ext in '' $ac_executable_extensions; do 7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7161 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7163 break 2 7164 fi 7165done 7166 done 7167IFS=$as_save_IFS 7168 7169fi 7170fi 7171ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7172if test -n "$ac_ct_MANIFEST_TOOL"; then 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7174$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7175else 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7177$as_echo "no" >&6; } 7178fi 7179 7180 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7181 MANIFEST_TOOL=":" 7182 else 7183 case $cross_compiling:$ac_tool_warned in 7184yes:) 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7187ac_tool_warned=yes ;; 7188esac 7189 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7190 fi 7191else 7192 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7193fi 7194 7195test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7197$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7198if ${lt_cv_path_mainfest_tool+:} false; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 lt_cv_path_mainfest_tool=no 7202 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7203 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7204 cat conftest.err >&5 7205 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7206 lt_cv_path_mainfest_tool=yes 7207 fi 7208 rm -f conftest* 7209fi 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7211$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7212if test yes != "$lt_cv_path_mainfest_tool"; then 7213 MANIFEST_TOOL=: 7214fi 7215 7216 7217 7218 7219 7220 7221 case $host_os in 7222 rhapsody* | darwin*) 7223 if test -n "$ac_tool_prefix"; then 7224 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7225set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7227$as_echo_n "checking for $ac_word... " >&6; } 7228if ${ac_cv_prog_DSYMUTIL+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 if test -n "$DSYMUTIL"; then 7232 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7233else 7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7235for as_dir in $PATH 7236do 7237 IFS=$as_save_IFS 7238 test -z "$as_dir" && as_dir=. 7239 for ac_exec_ext in '' $ac_executable_extensions; do 7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7241 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7243 break 2 7244 fi 7245done 7246 done 7247IFS=$as_save_IFS 7248 7249fi 7250fi 7251DSYMUTIL=$ac_cv_prog_DSYMUTIL 7252if test -n "$DSYMUTIL"; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7254$as_echo "$DSYMUTIL" >&6; } 7255else 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257$as_echo "no" >&6; } 7258fi 7259 7260 7261fi 7262if test -z "$ac_cv_prog_DSYMUTIL"; then 7263 ac_ct_DSYMUTIL=$DSYMUTIL 7264 # Extract the first word of "dsymutil", so it can be a program name with args. 7265set dummy dsymutil; ac_word=$2 7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7267$as_echo_n "checking for $ac_word... " >&6; } 7268if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 if test -n "$ac_ct_DSYMUTIL"; then 7272 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7273else 7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7275for as_dir in $PATH 7276do 7277 IFS=$as_save_IFS 7278 test -z "$as_dir" && as_dir=. 7279 for ac_exec_ext in '' $ac_executable_extensions; do 7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7281 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7283 break 2 7284 fi 7285done 7286 done 7287IFS=$as_save_IFS 7288 7289fi 7290fi 7291ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7292if test -n "$ac_ct_DSYMUTIL"; then 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7294$as_echo "$ac_ct_DSYMUTIL" >&6; } 7295else 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7297$as_echo "no" >&6; } 7298fi 7299 7300 if test "x$ac_ct_DSYMUTIL" = x; then 7301 DSYMUTIL=":" 7302 else 7303 case $cross_compiling:$ac_tool_warned in 7304yes:) 7305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7307ac_tool_warned=yes ;; 7308esac 7309 DSYMUTIL=$ac_ct_DSYMUTIL 7310 fi 7311else 7312 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7313fi 7314 7315 if test -n "$ac_tool_prefix"; then 7316 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7317set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7319$as_echo_n "checking for $ac_word... " >&6; } 7320if ${ac_cv_prog_NMEDIT+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322else 7323 if test -n "$NMEDIT"; then 7324 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7325else 7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7327for as_dir in $PATH 7328do 7329 IFS=$as_save_IFS 7330 test -z "$as_dir" && as_dir=. 7331 for ac_exec_ext in '' $ac_executable_extensions; do 7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7333 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7335 break 2 7336 fi 7337done 7338 done 7339IFS=$as_save_IFS 7340 7341fi 7342fi 7343NMEDIT=$ac_cv_prog_NMEDIT 7344if test -n "$NMEDIT"; then 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7346$as_echo "$NMEDIT" >&6; } 7347else 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7349$as_echo "no" >&6; } 7350fi 7351 7352 7353fi 7354if test -z "$ac_cv_prog_NMEDIT"; then 7355 ac_ct_NMEDIT=$NMEDIT 7356 # Extract the first word of "nmedit", so it can be a program name with args. 7357set dummy nmedit; ac_word=$2 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7359$as_echo_n "checking for $ac_word... " >&6; } 7360if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 if test -n "$ac_ct_NMEDIT"; then 7364 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7365else 7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367for as_dir in $PATH 7368do 7369 IFS=$as_save_IFS 7370 test -z "$as_dir" && as_dir=. 7371 for ac_exec_ext in '' $ac_executable_extensions; do 7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7373 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7375 break 2 7376 fi 7377done 7378 done 7379IFS=$as_save_IFS 7380 7381fi 7382fi 7383ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7384if test -n "$ac_ct_NMEDIT"; then 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7386$as_echo "$ac_ct_NMEDIT" >&6; } 7387else 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7389$as_echo "no" >&6; } 7390fi 7391 7392 if test "x$ac_ct_NMEDIT" = x; then 7393 NMEDIT=":" 7394 else 7395 case $cross_compiling:$ac_tool_warned in 7396yes:) 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7399ac_tool_warned=yes ;; 7400esac 7401 NMEDIT=$ac_ct_NMEDIT 7402 fi 7403else 7404 NMEDIT="$ac_cv_prog_NMEDIT" 7405fi 7406 7407 if test -n "$ac_tool_prefix"; then 7408 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7409set dummy ${ac_tool_prefix}lipo; ac_word=$2 7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7411$as_echo_n "checking for $ac_word... " >&6; } 7412if ${ac_cv_prog_LIPO+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 if test -n "$LIPO"; then 7416 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7417else 7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7419for as_dir in $PATH 7420do 7421 IFS=$as_save_IFS 7422 test -z "$as_dir" && as_dir=. 7423 for ac_exec_ext in '' $ac_executable_extensions; do 7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7425 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7427 break 2 7428 fi 7429done 7430 done 7431IFS=$as_save_IFS 7432 7433fi 7434fi 7435LIPO=$ac_cv_prog_LIPO 7436if test -n "$LIPO"; then 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7438$as_echo "$LIPO" >&6; } 7439else 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7441$as_echo "no" >&6; } 7442fi 7443 7444 7445fi 7446if test -z "$ac_cv_prog_LIPO"; then 7447 ac_ct_LIPO=$LIPO 7448 # Extract the first word of "lipo", so it can be a program name with args. 7449set dummy lipo; ac_word=$2 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7451$as_echo_n "checking for $ac_word... " >&6; } 7452if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 if test -n "$ac_ct_LIPO"; then 7456 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7457else 7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459for as_dir in $PATH 7460do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7465 ac_cv_prog_ac_ct_LIPO="lipo" 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7467 break 2 7468 fi 7469done 7470 done 7471IFS=$as_save_IFS 7472 7473fi 7474fi 7475ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7476if test -n "$ac_ct_LIPO"; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7478$as_echo "$ac_ct_LIPO" >&6; } 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7481$as_echo "no" >&6; } 7482fi 7483 7484 if test "x$ac_ct_LIPO" = x; then 7485 LIPO=":" 7486 else 7487 case $cross_compiling:$ac_tool_warned in 7488yes:) 7489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7491ac_tool_warned=yes ;; 7492esac 7493 LIPO=$ac_ct_LIPO 7494 fi 7495else 7496 LIPO="$ac_cv_prog_LIPO" 7497fi 7498 7499 if test -n "$ac_tool_prefix"; then 7500 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7501set dummy ${ac_tool_prefix}otool; ac_word=$2 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7503$as_echo_n "checking for $ac_word... " >&6; } 7504if ${ac_cv_prog_OTOOL+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 if test -n "$OTOOL"; then 7508 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7509else 7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7511for as_dir in $PATH 7512do 7513 IFS=$as_save_IFS 7514 test -z "$as_dir" && as_dir=. 7515 for ac_exec_ext in '' $ac_executable_extensions; do 7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7517 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7519 break 2 7520 fi 7521done 7522 done 7523IFS=$as_save_IFS 7524 7525fi 7526fi 7527OTOOL=$ac_cv_prog_OTOOL 7528if test -n "$OTOOL"; then 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7530$as_echo "$OTOOL" >&6; } 7531else 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7533$as_echo "no" >&6; } 7534fi 7535 7536 7537fi 7538if test -z "$ac_cv_prog_OTOOL"; then 7539 ac_ct_OTOOL=$OTOOL 7540 # Extract the first word of "otool", so it can be a program name with args. 7541set dummy otool; ac_word=$2 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7543$as_echo_n "checking for $ac_word... " >&6; } 7544if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7545 $as_echo_n "(cached) " >&6 7546else 7547 if test -n "$ac_ct_OTOOL"; then 7548 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7549else 7550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7551for as_dir in $PATH 7552do 7553 IFS=$as_save_IFS 7554 test -z "$as_dir" && as_dir=. 7555 for ac_exec_ext in '' $ac_executable_extensions; do 7556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7557 ac_cv_prog_ac_ct_OTOOL="otool" 7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7559 break 2 7560 fi 7561done 7562 done 7563IFS=$as_save_IFS 7564 7565fi 7566fi 7567ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7568if test -n "$ac_ct_OTOOL"; then 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7570$as_echo "$ac_ct_OTOOL" >&6; } 7571else 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7573$as_echo "no" >&6; } 7574fi 7575 7576 if test "x$ac_ct_OTOOL" = x; then 7577 OTOOL=":" 7578 else 7579 case $cross_compiling:$ac_tool_warned in 7580yes:) 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7583ac_tool_warned=yes ;; 7584esac 7585 OTOOL=$ac_ct_OTOOL 7586 fi 7587else 7588 OTOOL="$ac_cv_prog_OTOOL" 7589fi 7590 7591 if test -n "$ac_tool_prefix"; then 7592 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7593set dummy ${ac_tool_prefix}otool64; ac_word=$2 7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7595$as_echo_n "checking for $ac_word... " >&6; } 7596if ${ac_cv_prog_OTOOL64+:} false; then : 7597 $as_echo_n "(cached) " >&6 7598else 7599 if test -n "$OTOOL64"; then 7600 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7601else 7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7603for as_dir in $PATH 7604do 7605 IFS=$as_save_IFS 7606 test -z "$as_dir" && as_dir=. 7607 for ac_exec_ext in '' $ac_executable_extensions; do 7608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7609 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7611 break 2 7612 fi 7613done 7614 done 7615IFS=$as_save_IFS 7616 7617fi 7618fi 7619OTOOL64=$ac_cv_prog_OTOOL64 7620if test -n "$OTOOL64"; then 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7622$as_echo "$OTOOL64" >&6; } 7623else 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7625$as_echo "no" >&6; } 7626fi 7627 7628 7629fi 7630if test -z "$ac_cv_prog_OTOOL64"; then 7631 ac_ct_OTOOL64=$OTOOL64 7632 # Extract the first word of "otool64", so it can be a program name with args. 7633set dummy otool64; ac_word=$2 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7635$as_echo_n "checking for $ac_word... " >&6; } 7636if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 if test -n "$ac_ct_OTOOL64"; then 7640 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7641else 7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643for as_dir in $PATH 7644do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7649 ac_cv_prog_ac_ct_OTOOL64="otool64" 7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653done 7654 done 7655IFS=$as_save_IFS 7656 7657fi 7658fi 7659ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7660if test -n "$ac_ct_OTOOL64"; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7662$as_echo "$ac_ct_OTOOL64" >&6; } 7663else 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7665$as_echo "no" >&6; } 7666fi 7667 7668 if test "x$ac_ct_OTOOL64" = x; then 7669 OTOOL64=":" 7670 else 7671 case $cross_compiling:$ac_tool_warned in 7672yes:) 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7675ac_tool_warned=yes ;; 7676esac 7677 OTOOL64=$ac_ct_OTOOL64 7678 fi 7679else 7680 OTOOL64="$ac_cv_prog_OTOOL64" 7681fi 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7710$as_echo_n "checking for -single_module linker flag... " >&6; } 7711if ${lt_cv_apple_cc_single_mod+:} false; then : 7712 $as_echo_n "(cached) " >&6 7713else 7714 lt_cv_apple_cc_single_mod=no 7715 if test -z "$LT_MULTI_MODULE"; then 7716 # By default we will add the -single_module flag. You can override 7717 # by either setting the environment variable LT_MULTI_MODULE 7718 # non-empty at configure time, or by adding -multi_module to the 7719 # link flags. 7720 rm -rf libconftest.dylib* 7721 echo "int foo(void){return 1;}" > conftest.c 7722 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7723-dynamiclib -Wl,-single_module conftest.c" >&5 7724 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7725 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7726 _lt_result=$? 7727 # If there is a non-empty error log, and "single_module" 7728 # appears in it, assume the flag caused a linker warning 7729 if test -s conftest.err && $GREP single_module conftest.err; then 7730 cat conftest.err >&5 7731 # Otherwise, if the output was created with a 0 exit code from 7732 # the compiler, it worked. 7733 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7734 lt_cv_apple_cc_single_mod=yes 7735 else 7736 cat conftest.err >&5 7737 fi 7738 rm -rf libconftest.dylib* 7739 rm -f conftest.* 7740 fi 7741fi 7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7743$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7744 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7746$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7747if ${lt_cv_ld_exported_symbols_list+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 lt_cv_ld_exported_symbols_list=no 7751 save_LDFLAGS=$LDFLAGS 7752 echo "_main" > conftest.sym 7753 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7755/* end confdefs.h. */ 7756 7757int 7758main () 7759{ 7760 7761 ; 7762 return 0; 7763} 7764_ACEOF 7765if ac_fn_c_try_link "$LINENO"; then : 7766 lt_cv_ld_exported_symbols_list=yes 7767else 7768 lt_cv_ld_exported_symbols_list=no 7769fi 7770rm -f core conftest.err conftest.$ac_objext \ 7771 conftest$ac_exeext conftest.$ac_ext 7772 LDFLAGS=$save_LDFLAGS 7773 7774fi 7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7776$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7777 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7779$as_echo_n "checking for -force_load linker flag... " >&6; } 7780if ${lt_cv_ld_force_load+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 lt_cv_ld_force_load=no 7784 cat > conftest.c << _LT_EOF 7785int forced_loaded() { return 2;} 7786_LT_EOF 7787 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7788 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7789 echo "$AR cru libconftest.a conftest.o" >&5 7790 $AR cru libconftest.a conftest.o 2>&5 7791 echo "$RANLIB libconftest.a" >&5 7792 $RANLIB libconftest.a 2>&5 7793 cat > conftest.c << _LT_EOF 7794int main() { return 0;} 7795_LT_EOF 7796 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7797 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7798 _lt_result=$? 7799 if test -s conftest.err && $GREP force_load conftest.err; then 7800 cat conftest.err >&5 7801 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7802 lt_cv_ld_force_load=yes 7803 else 7804 cat conftest.err >&5 7805 fi 7806 rm -f conftest.err libconftest.a conftest conftest.c 7807 rm -rf conftest.dSYM 7808 7809fi 7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7811$as_echo "$lt_cv_ld_force_load" >&6; } 7812 case $host_os in 7813 rhapsody* | darwin1.[012]) 7814 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7815 darwin1.*) 7816 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7817 darwin*) # darwin 5.x on 7818 # if running on 10.5 or later, the deployment target defaults 7819 # to the OS version, if on x86, and 10.4, the deployment 7820 # target defaults to 10.4. Don't you love it? 7821 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7822 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7823 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7824 10.[012][,.]*) 7825 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7826 10.*) 7827 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7828 esac 7829 ;; 7830 esac 7831 if test yes = "$lt_cv_apple_cc_single_mod"; then 7832 _lt_dar_single_mod='$single_module' 7833 fi 7834 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7835 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7836 else 7837 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7838 fi 7839 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7840 _lt_dsymutil='~$DSYMUTIL $lib || :' 7841 else 7842 _lt_dsymutil= 7843 fi 7844 ;; 7845 esac 7846 7847# func_munge_path_list VARIABLE PATH 7848# ----------------------------------- 7849# VARIABLE is name of variable containing _space_ separated list of 7850# directories to be munged by the contents of PATH, which is string 7851# having a format: 7852# "DIR[:DIR]:" 7853# string "DIR[ DIR]" will be prepended to VARIABLE 7854# ":DIR[:DIR]" 7855# string "DIR[ DIR]" will be appended to VARIABLE 7856# "DIRP[:DIRP]::[DIRA:]DIRA" 7857# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7858# "DIRA[ DIRA]" will be appended to VARIABLE 7859# "DIR[:DIR]" 7860# VARIABLE will be replaced by "DIR[ DIR]" 7861func_munge_path_list () 7862{ 7863 case x$2 in 7864 x) 7865 ;; 7866 *:) 7867 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7868 ;; 7869 x:*) 7870 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7871 ;; 7872 *::*) 7873 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7874 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7875 ;; 7876 *) 7877 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7878 ;; 7879 esac 7880} 7881 7882for ac_header in dlfcn.h 7883do : 7884 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7885" 7886if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7887 cat >>confdefs.h <<_ACEOF 7888#define HAVE_DLFCN_H 1 7889_ACEOF 7890 7891fi 7892 7893done 7894 7895 7896 7897 7898 7899# Set options 7900 7901 7902 7903 enable_dlopen=no 7904 7905 7906 enable_win32_dll=no 7907 7908 7909 # Check whether --enable-shared was given. 7910if test "${enable_shared+set}" = set; then : 7911 enableval=$enable_shared; p=${PACKAGE-default} 7912 case $enableval in 7913 yes) enable_shared=yes ;; 7914 no) enable_shared=no ;; 7915 *) 7916 enable_shared=no 7917 # Look at the argument we got. We use all the common list separators. 7918 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7919 for pkg in $enableval; do 7920 IFS=$lt_save_ifs 7921 if test "X$pkg" = "X$p"; then 7922 enable_shared=yes 7923 fi 7924 done 7925 IFS=$lt_save_ifs 7926 ;; 7927 esac 7928else 7929 enable_shared=yes 7930fi 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 # Check whether --enable-static was given. 7941if test "${enable_static+set}" = set; then : 7942 enableval=$enable_static; p=${PACKAGE-default} 7943 case $enableval in 7944 yes) enable_static=yes ;; 7945 no) enable_static=no ;; 7946 *) 7947 enable_static=no 7948 # Look at the argument we got. We use all the common list separators. 7949 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7950 for pkg in $enableval; do 7951 IFS=$lt_save_ifs 7952 if test "X$pkg" = "X$p"; then 7953 enable_static=yes 7954 fi 7955 done 7956 IFS=$lt_save_ifs 7957 ;; 7958 esac 7959else 7960 enable_static=yes 7961fi 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972# Check whether --with-pic was given. 7973if test "${with_pic+set}" = set; then : 7974 withval=$with_pic; lt_p=${PACKAGE-default} 7975 case $withval in 7976 yes|no) pic_mode=$withval ;; 7977 *) 7978 pic_mode=default 7979 # Look at the argument we got. We use all the common list separators. 7980 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7981 for lt_pkg in $withval; do 7982 IFS=$lt_save_ifs 7983 if test "X$lt_pkg" = "X$lt_p"; then 7984 pic_mode=yes 7985 fi 7986 done 7987 IFS=$lt_save_ifs 7988 ;; 7989 esac 7990else 7991 pic_mode=default 7992fi 7993 7994 7995 7996 7997 7998 7999 8000 8001 # Check whether --enable-fast-install was given. 8002if test "${enable_fast_install+set}" = set; then : 8003 enableval=$enable_fast_install; p=${PACKAGE-default} 8004 case $enableval in 8005 yes) enable_fast_install=yes ;; 8006 no) enable_fast_install=no ;; 8007 *) 8008 enable_fast_install=no 8009 # Look at the argument we got. We use all the common list separators. 8010 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8011 for pkg in $enableval; do 8012 IFS=$lt_save_ifs 8013 if test "X$pkg" = "X$p"; then 8014 enable_fast_install=yes 8015 fi 8016 done 8017 IFS=$lt_save_ifs 8018 ;; 8019 esac 8020else 8021 enable_fast_install=yes 8022fi 8023 8024 8025 8026 8027 8028 8029 8030 8031 shared_archive_member_spec= 8032case $host,$enable_shared in 8033power*-*-aix[5-9]*,yes) 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8035$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8036 8037# Check whether --with-aix-soname was given. 8038if test "${with_aix_soname+set}" = set; then : 8039 withval=$with_aix_soname; case $withval in 8040 aix|svr4|both) 8041 ;; 8042 *) 8043 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8044 ;; 8045 esac 8046 lt_cv_with_aix_soname=$with_aix_soname 8047else 8048 if ${lt_cv_with_aix_soname+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050else 8051 lt_cv_with_aix_soname=aix 8052fi 8053 8054 with_aix_soname=$lt_cv_with_aix_soname 8055fi 8056 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8058$as_echo "$with_aix_soname" >&6; } 8059 if test aix != "$with_aix_soname"; then 8060 # For the AIX way of multilib, we name the shared archive member 8061 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8062 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8063 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8064 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8065 if test 64 = "${OBJECT_MODE-32}"; then 8066 shared_archive_member_spec=shr_64 8067 else 8068 shared_archive_member_spec=shr 8069 fi 8070 fi 8071 ;; 8072*) 8073 with_aix_soname=aix 8074 ;; 8075esac 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086# This can be used to rebuild libtool when needed 8087LIBTOOL_DEPS=$ltmain 8088 8089# Always use our own libtool. 8090LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121test -z "$LN_S" && LN_S="ln -s" 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136if test -n "${ZSH_VERSION+set}"; then 8137 setopt NO_GLOB_SUBST 8138fi 8139 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8141$as_echo_n "checking for objdir... " >&6; } 8142if ${lt_cv_objdir+:} false; then : 8143 $as_echo_n "(cached) " >&6 8144else 8145 rm -f .libs 2>/dev/null 8146mkdir .libs 2>/dev/null 8147if test -d .libs; then 8148 lt_cv_objdir=.libs 8149else 8150 # MS-DOS does not allow filenames that begin with a dot. 8151 lt_cv_objdir=_libs 8152fi 8153rmdir .libs 2>/dev/null 8154fi 8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8156$as_echo "$lt_cv_objdir" >&6; } 8157objdir=$lt_cv_objdir 8158 8159 8160 8161 8162 8163cat >>confdefs.h <<_ACEOF 8164#define LT_OBJDIR "$lt_cv_objdir/" 8165_ACEOF 8166 8167 8168 8169 8170case $host_os in 8171aix3*) 8172 # AIX sometimes has problems with the GCC collect2 program. For some 8173 # reason, if we set the COLLECT_NAMES environment variable, the problems 8174 # vanish in a puff of smoke. 8175 if test set != "${COLLECT_NAMES+set}"; then 8176 COLLECT_NAMES= 8177 export COLLECT_NAMES 8178 fi 8179 ;; 8180esac 8181 8182# Global variables: 8183ofile=libtool 8184can_build_shared=yes 8185 8186# All known linkers require a '.a' archive for static linking (except MSVC, 8187# which needs '.lib'). 8188libext=a 8189 8190with_gnu_ld=$lt_cv_prog_gnu_ld 8191 8192old_CC=$CC 8193old_CFLAGS=$CFLAGS 8194 8195# Set sane defaults for various variables 8196test -z "$CC" && CC=cc 8197test -z "$LTCC" && LTCC=$CC 8198test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8199test -z "$LD" && LD=ld 8200test -z "$ac_objext" && ac_objext=o 8201 8202func_cc_basename $compiler 8203cc_basename=$func_cc_basename_result 8204 8205 8206# Only perform the check for file, if the check method requires it 8207test -z "$MAGIC_CMD" && MAGIC_CMD=file 8208case $deplibs_check_method in 8209file_magic*) 8210 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8212$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8213if ${lt_cv_path_MAGIC_CMD+:} false; then : 8214 $as_echo_n "(cached) " >&6 8215else 8216 case $MAGIC_CMD in 8217[\\/*] | ?:[\\/]*) 8218 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8219 ;; 8220*) 8221 lt_save_MAGIC_CMD=$MAGIC_CMD 8222 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8224 for ac_dir in $ac_dummy; do 8225 IFS=$lt_save_ifs 8226 test -z "$ac_dir" && ac_dir=. 8227 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8228 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8229 if test -n "$file_magic_test_file"; then 8230 case $deplibs_check_method in 8231 "file_magic "*) 8232 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8233 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8235 $EGREP "$file_magic_regex" > /dev/null; then 8236 : 8237 else 8238 cat <<_LT_EOF 1>&2 8239 8240*** Warning: the command libtool uses to detect shared libraries, 8241*** $file_magic_cmd, produces output that libtool cannot recognize. 8242*** The result is that libtool may fail to recognize shared libraries 8243*** as such. This will affect the creation of libtool libraries that 8244*** depend on shared libraries, but programs linked with such libtool 8245*** libraries will work regardless of this problem. Nevertheless, you 8246*** may want to report the problem to your system manager and/or to 8247*** bug-libtool@gnu.org 8248 8249_LT_EOF 8250 fi ;; 8251 esac 8252 fi 8253 break 8254 fi 8255 done 8256 IFS=$lt_save_ifs 8257 MAGIC_CMD=$lt_save_MAGIC_CMD 8258 ;; 8259esac 8260fi 8261 8262MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8263if test -n "$MAGIC_CMD"; then 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8265$as_echo "$MAGIC_CMD" >&6; } 8266else 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8268$as_echo "no" >&6; } 8269fi 8270 8271 8272 8273 8274 8275if test -z "$lt_cv_path_MAGIC_CMD"; then 8276 if test -n "$ac_tool_prefix"; then 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8278$as_echo_n "checking for file... " >&6; } 8279if ${lt_cv_path_MAGIC_CMD+:} false; then : 8280 $as_echo_n "(cached) " >&6 8281else 8282 case $MAGIC_CMD in 8283[\\/*] | ?:[\\/]*) 8284 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8285 ;; 8286*) 8287 lt_save_MAGIC_CMD=$MAGIC_CMD 8288 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8290 for ac_dir in $ac_dummy; do 8291 IFS=$lt_save_ifs 8292 test -z "$ac_dir" && ac_dir=. 8293 if test -f "$ac_dir/file"; then 8294 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8295 if test -n "$file_magic_test_file"; then 8296 case $deplibs_check_method in 8297 "file_magic "*) 8298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8299 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8301 $EGREP "$file_magic_regex" > /dev/null; then 8302 : 8303 else 8304 cat <<_LT_EOF 1>&2 8305 8306*** Warning: the command libtool uses to detect shared libraries, 8307*** $file_magic_cmd, produces output that libtool cannot recognize. 8308*** The result is that libtool may fail to recognize shared libraries 8309*** as such. This will affect the creation of libtool libraries that 8310*** depend on shared libraries, but programs linked with such libtool 8311*** libraries will work regardless of this problem. Nevertheless, you 8312*** may want to report the problem to your system manager and/or to 8313*** bug-libtool@gnu.org 8314 8315_LT_EOF 8316 fi ;; 8317 esac 8318 fi 8319 break 8320 fi 8321 done 8322 IFS=$lt_save_ifs 8323 MAGIC_CMD=$lt_save_MAGIC_CMD 8324 ;; 8325esac 8326fi 8327 8328MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8329if test -n "$MAGIC_CMD"; then 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8331$as_echo "$MAGIC_CMD" >&6; } 8332else 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8334$as_echo "no" >&6; } 8335fi 8336 8337 8338 else 8339 MAGIC_CMD=: 8340 fi 8341fi 8342 8343 fi 8344 ;; 8345esac 8346 8347# Use C for the default configuration in the libtool script 8348 8349lt_save_CC=$CC 8350ac_ext=c 8351ac_cpp='$CPP $CPPFLAGS' 8352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8354ac_compiler_gnu=$ac_cv_c_compiler_gnu 8355 8356 8357# Source file extension for C test sources. 8358ac_ext=c 8359 8360# Object file extension for compiled C test sources. 8361objext=o 8362objext=$objext 8363 8364# Code to be used in simple compile tests 8365lt_simple_compile_test_code="int some_variable = 0;" 8366 8367# Code to be used in simple link tests 8368lt_simple_link_test_code='int main(){return(0);}' 8369 8370 8371 8372 8373 8374 8375 8376# If no C compiler was specified, use CC. 8377LTCC=${LTCC-"$CC"} 8378 8379# If no C compiler flags were specified, use CFLAGS. 8380LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8381 8382# Allow CC to be a program name with arguments. 8383compiler=$CC 8384 8385# Save the default compiler, since it gets overwritten when the other 8386# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8387compiler_DEFAULT=$CC 8388 8389# save warnings/boilerplate of simple test code 8390ac_outfile=conftest.$ac_objext 8391echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8392eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8393_lt_compiler_boilerplate=`cat conftest.err` 8394$RM conftest* 8395 8396ac_outfile=conftest.$ac_objext 8397echo "$lt_simple_link_test_code" >conftest.$ac_ext 8398eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8399_lt_linker_boilerplate=`cat conftest.err` 8400$RM -r conftest* 8401 8402 8403## CAVEAT EMPTOR: 8404## There is no encapsulation within the following macros, do not change 8405## the running order or otherwise move them around unless you know exactly 8406## what you are doing... 8407if test -n "$compiler"; then 8408 8409lt_prog_compiler_no_builtin_flag= 8410 8411if test yes = "$GCC"; then 8412 case $cc_basename in 8413 nvcc*) 8414 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8415 *) 8416 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8417 esac 8418 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8420$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8421if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8422 $as_echo_n "(cached) " >&6 8423else 8424 lt_cv_prog_compiler_rtti_exceptions=no 8425 ac_outfile=conftest.$ac_objext 8426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8427 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8428 # Insert the option either (1) after the last *FLAGS variable, or 8429 # (2) before a word containing "conftest.", or (3) at the end. 8430 # Note that $ac_compile itself does not contain backslashes and begins 8431 # with a dollar sign (not a hyphen), so the echo should work correctly. 8432 # The option is referenced via a variable to avoid confusing sed. 8433 lt_compile=`echo "$ac_compile" | $SED \ 8434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8436 -e 's:$: $lt_compiler_flag:'` 8437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8438 (eval "$lt_compile" 2>conftest.err) 8439 ac_status=$? 8440 cat conftest.err >&5 8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8442 if (exit $ac_status) && test -s "$ac_outfile"; then 8443 # The compiler can only warn and ignore the option if not recognized 8444 # So say no if there are warnings other than the usual output. 8445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8448 lt_cv_prog_compiler_rtti_exceptions=yes 8449 fi 8450 fi 8451 $RM conftest* 8452 8453fi 8454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8455$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8456 8457if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8458 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8459else 8460 : 8461fi 8462 8463fi 8464 8465 8466 8467 8468 8469 8470 lt_prog_compiler_wl= 8471lt_prog_compiler_pic= 8472lt_prog_compiler_static= 8473 8474 8475 if test yes = "$GCC"; then 8476 lt_prog_compiler_wl='-Wl,' 8477 lt_prog_compiler_static='-static' 8478 8479 case $host_os in 8480 aix*) 8481 # All AIX code is PIC. 8482 if test ia64 = "$host_cpu"; then 8483 # AIX 5 now supports IA64 processor 8484 lt_prog_compiler_static='-Bstatic' 8485 fi 8486 lt_prog_compiler_pic='-fPIC' 8487 ;; 8488 8489 amigaos*) 8490 case $host_cpu in 8491 powerpc) 8492 # see comment about AmigaOS4 .so support 8493 lt_prog_compiler_pic='-fPIC' 8494 ;; 8495 m68k) 8496 # FIXME: we need at least 68020 code to build shared libraries, but 8497 # adding the '-m68020' flag to GCC prevents building anything better, 8498 # like '-m68040'. 8499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8500 ;; 8501 esac 8502 ;; 8503 8504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8505 # PIC is the default for these OSes. 8506 ;; 8507 8508 mingw* | cygwin* | pw32* | os2* | cegcc*) 8509 # This hack is so that the source file can tell whether it is being 8510 # built for inclusion in a dll (and should export symbols for example). 8511 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8512 # (--disable-auto-import) libraries 8513 lt_prog_compiler_pic='-DDLL_EXPORT' 8514 case $host_os in 8515 os2*) 8516 lt_prog_compiler_static='$wl-static' 8517 ;; 8518 esac 8519 ;; 8520 8521 darwin* | rhapsody*) 8522 # PIC is the default on this platform 8523 # Common symbols not allowed in MH_DYLIB files 8524 lt_prog_compiler_pic='-fno-common' 8525 ;; 8526 8527 haiku*) 8528 # PIC is the default for Haiku. 8529 # The "-static" flag exists, but is broken. 8530 lt_prog_compiler_static= 8531 ;; 8532 8533 hpux*) 8534 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8535 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8536 # sets the default TLS model and affects inlining. 8537 case $host_cpu in 8538 hppa*64*) 8539 # +Z the default 8540 ;; 8541 *) 8542 lt_prog_compiler_pic='-fPIC' 8543 ;; 8544 esac 8545 ;; 8546 8547 interix[3-9]*) 8548 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8549 # Instead, we relocate shared libraries at runtime. 8550 ;; 8551 8552 msdosdjgpp*) 8553 # Just because we use GCC doesn't mean we suddenly get shared libraries 8554 # on systems that don't support them. 8555 lt_prog_compiler_can_build_shared=no 8556 enable_shared=no 8557 ;; 8558 8559 *nto* | *qnx*) 8560 # QNX uses GNU C++, but need to define -shared option too, otherwise 8561 # it will coredump. 8562 lt_prog_compiler_pic='-fPIC -shared' 8563 ;; 8564 8565 sysv4*MP*) 8566 if test -d /usr/nec; then 8567 lt_prog_compiler_pic=-Kconform_pic 8568 fi 8569 ;; 8570 8571 *) 8572 lt_prog_compiler_pic='-fPIC' 8573 ;; 8574 esac 8575 8576 case $cc_basename in 8577 nvcc*) # Cuda Compiler Driver 2.2 8578 lt_prog_compiler_wl='-Xlinker ' 8579 if test -n "$lt_prog_compiler_pic"; then 8580 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8581 fi 8582 ;; 8583 esac 8584 else 8585 # PORTME Check for flag to pass linker flags through the system compiler. 8586 case $host_os in 8587 aix*) 8588 lt_prog_compiler_wl='-Wl,' 8589 if test ia64 = "$host_cpu"; then 8590 # AIX 5 now supports IA64 processor 8591 lt_prog_compiler_static='-Bstatic' 8592 else 8593 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8594 fi 8595 ;; 8596 8597 darwin* | rhapsody*) 8598 # PIC is the default on this platform 8599 # Common symbols not allowed in MH_DYLIB files 8600 lt_prog_compiler_pic='-fno-common' 8601 case $cc_basename in 8602 nagfor*) 8603 # NAG Fortran compiler 8604 lt_prog_compiler_wl='-Wl,-Wl,,' 8605 lt_prog_compiler_pic='-PIC' 8606 lt_prog_compiler_static='-Bstatic' 8607 ;; 8608 esac 8609 ;; 8610 8611 mingw* | cygwin* | pw32* | os2* | cegcc*) 8612 # This hack is so that the source file can tell whether it is being 8613 # built for inclusion in a dll (and should export symbols for example). 8614 lt_prog_compiler_pic='-DDLL_EXPORT' 8615 case $host_os in 8616 os2*) 8617 lt_prog_compiler_static='$wl-static' 8618 ;; 8619 esac 8620 ;; 8621 8622 hpux9* | hpux10* | hpux11*) 8623 lt_prog_compiler_wl='-Wl,' 8624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8625 # not for PA HP-UX. 8626 case $host_cpu in 8627 hppa*64*|ia64*) 8628 # +Z the default 8629 ;; 8630 *) 8631 lt_prog_compiler_pic='+Z' 8632 ;; 8633 esac 8634 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8635 lt_prog_compiler_static='$wl-a ${wl}archive' 8636 ;; 8637 8638 irix5* | irix6* | nonstopux*) 8639 lt_prog_compiler_wl='-Wl,' 8640 # PIC (with -KPIC) is the default. 8641 lt_prog_compiler_static='-non_shared' 8642 ;; 8643 8644 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8645 case $cc_basename in 8646 # old Intel for x86_64, which still supported -KPIC. 8647 ecc*) 8648 lt_prog_compiler_wl='-Wl,' 8649 lt_prog_compiler_pic='-KPIC' 8650 lt_prog_compiler_static='-static' 8651 ;; 8652 # icc used to be incompatible with GCC. 8653 # ICC 10 doesn't accept -KPIC any more. 8654 icc* | ifort*) 8655 lt_prog_compiler_wl='-Wl,' 8656 lt_prog_compiler_pic='-fPIC' 8657 lt_prog_compiler_static='-static' 8658 ;; 8659 # Lahey Fortran 8.1. 8660 lf95*) 8661 lt_prog_compiler_wl='-Wl,' 8662 lt_prog_compiler_pic='--shared' 8663 lt_prog_compiler_static='--static' 8664 ;; 8665 nagfor*) 8666 # NAG Fortran compiler 8667 lt_prog_compiler_wl='-Wl,-Wl,,' 8668 lt_prog_compiler_pic='-PIC' 8669 lt_prog_compiler_static='-Bstatic' 8670 ;; 8671 tcc*) 8672 # Fabrice Bellard et al's Tiny C Compiler 8673 lt_prog_compiler_wl='-Wl,' 8674 lt_prog_compiler_pic='-fPIC' 8675 lt_prog_compiler_static='-static' 8676 ;; 8677 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8678 # Portland Group compilers (*not* the Pentium gcc compiler, 8679 # which looks to be a dead project) 8680 lt_prog_compiler_wl='-Wl,' 8681 lt_prog_compiler_pic='-fpic' 8682 lt_prog_compiler_static='-Bstatic' 8683 ;; 8684 ccc*) 8685 lt_prog_compiler_wl='-Wl,' 8686 # All Alpha code is PIC. 8687 lt_prog_compiler_static='-non_shared' 8688 ;; 8689 xl* | bgxl* | bgf* | mpixl*) 8690 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8691 lt_prog_compiler_wl='-Wl,' 8692 lt_prog_compiler_pic='-qpic' 8693 lt_prog_compiler_static='-qstaticlink' 8694 ;; 8695 *) 8696 case `$CC -V 2>&1 | sed 5q` in 8697 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8698 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8699 lt_prog_compiler_pic='-KPIC' 8700 lt_prog_compiler_static='-Bstatic' 8701 lt_prog_compiler_wl='' 8702 ;; 8703 *Sun\ F* | *Sun*Fortran*) 8704 lt_prog_compiler_pic='-KPIC' 8705 lt_prog_compiler_static='-Bstatic' 8706 lt_prog_compiler_wl='-Qoption ld ' 8707 ;; 8708 *Sun\ C*) 8709 # Sun C 5.9 8710 lt_prog_compiler_pic='-KPIC' 8711 lt_prog_compiler_static='-Bstatic' 8712 lt_prog_compiler_wl='-Wl,' 8713 ;; 8714 *Intel*\ [CF]*Compiler*) 8715 lt_prog_compiler_wl='-Wl,' 8716 lt_prog_compiler_pic='-fPIC' 8717 lt_prog_compiler_static='-static' 8718 ;; 8719 *Portland\ Group*) 8720 lt_prog_compiler_wl='-Wl,' 8721 lt_prog_compiler_pic='-fpic' 8722 lt_prog_compiler_static='-Bstatic' 8723 ;; 8724 esac 8725 ;; 8726 esac 8727 ;; 8728 8729 newsos6) 8730 lt_prog_compiler_pic='-KPIC' 8731 lt_prog_compiler_static='-Bstatic' 8732 ;; 8733 8734 *nto* | *qnx*) 8735 # QNX uses GNU C++, but need to define -shared option too, otherwise 8736 # it will coredump. 8737 lt_prog_compiler_pic='-fPIC -shared' 8738 ;; 8739 8740 osf3* | osf4* | osf5*) 8741 lt_prog_compiler_wl='-Wl,' 8742 # All OSF/1 code is PIC. 8743 lt_prog_compiler_static='-non_shared' 8744 ;; 8745 8746 rdos*) 8747 lt_prog_compiler_static='-non_shared' 8748 ;; 8749 8750 solaris*) 8751 lt_prog_compiler_pic='-KPIC' 8752 lt_prog_compiler_static='-Bstatic' 8753 case $cc_basename in 8754 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8755 lt_prog_compiler_wl='-Qoption ld ';; 8756 *) 8757 lt_prog_compiler_wl='-Wl,';; 8758 esac 8759 ;; 8760 8761 sunos4*) 8762 lt_prog_compiler_wl='-Qoption ld ' 8763 lt_prog_compiler_pic='-PIC' 8764 lt_prog_compiler_static='-Bstatic' 8765 ;; 8766 8767 sysv4 | sysv4.2uw2* | sysv4.3*) 8768 lt_prog_compiler_wl='-Wl,' 8769 lt_prog_compiler_pic='-KPIC' 8770 lt_prog_compiler_static='-Bstatic' 8771 ;; 8772 8773 sysv4*MP*) 8774 if test -d /usr/nec; then 8775 lt_prog_compiler_pic='-Kconform_pic' 8776 lt_prog_compiler_static='-Bstatic' 8777 fi 8778 ;; 8779 8780 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8781 lt_prog_compiler_wl='-Wl,' 8782 lt_prog_compiler_pic='-KPIC' 8783 lt_prog_compiler_static='-Bstatic' 8784 ;; 8785 8786 unicos*) 8787 lt_prog_compiler_wl='-Wl,' 8788 lt_prog_compiler_can_build_shared=no 8789 ;; 8790 8791 uts4*) 8792 lt_prog_compiler_pic='-pic' 8793 lt_prog_compiler_static='-Bstatic' 8794 ;; 8795 8796 *) 8797 lt_prog_compiler_can_build_shared=no 8798 ;; 8799 esac 8800 fi 8801 8802case $host_os in 8803 # For platforms that do not support PIC, -DPIC is meaningless: 8804 *djgpp*) 8805 lt_prog_compiler_pic= 8806 ;; 8807 *) 8808 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8809 ;; 8810esac 8811 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8813$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8814if ${lt_cv_prog_compiler_pic+:} false; then : 8815 $as_echo_n "(cached) " >&6 8816else 8817 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8818fi 8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8820$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8821lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8822 8823# 8824# Check to make sure the PIC flag actually works. 8825# 8826if test -n "$lt_prog_compiler_pic"; then 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8828$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8829if ${lt_cv_prog_compiler_pic_works+:} false; then : 8830 $as_echo_n "(cached) " >&6 8831else 8832 lt_cv_prog_compiler_pic_works=no 8833 ac_outfile=conftest.$ac_objext 8834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8835 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8836 # Insert the option either (1) after the last *FLAGS variable, or 8837 # (2) before a word containing "conftest.", or (3) at the end. 8838 # Note that $ac_compile itself does not contain backslashes and begins 8839 # with a dollar sign (not a hyphen), so the echo should work correctly. 8840 # The option is referenced via a variable to avoid confusing sed. 8841 lt_compile=`echo "$ac_compile" | $SED \ 8842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8844 -e 's:$: $lt_compiler_flag:'` 8845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8846 (eval "$lt_compile" 2>conftest.err) 8847 ac_status=$? 8848 cat conftest.err >&5 8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8850 if (exit $ac_status) && test -s "$ac_outfile"; then 8851 # The compiler can only warn and ignore the option if not recognized 8852 # So say no if there are warnings other than the usual output. 8853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8856 lt_cv_prog_compiler_pic_works=yes 8857 fi 8858 fi 8859 $RM conftest* 8860 8861fi 8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8863$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8864 8865if test yes = "$lt_cv_prog_compiler_pic_works"; then 8866 case $lt_prog_compiler_pic in 8867 "" | " "*) ;; 8868 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8869 esac 8870else 8871 lt_prog_compiler_pic= 8872 lt_prog_compiler_can_build_shared=no 8873fi 8874 8875fi 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887# 8888# Check to make sure the static flag actually works. 8889# 8890wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8892$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8893if ${lt_cv_prog_compiler_static_works+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895else 8896 lt_cv_prog_compiler_static_works=no 8897 save_LDFLAGS=$LDFLAGS 8898 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8899 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8901 # The linker can only warn and ignore the option if not recognized 8902 # So say no if there are warnings 8903 if test -s conftest.err; then 8904 # Append any errors to the config.log. 8905 cat conftest.err 1>&5 8906 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8908 if diff conftest.exp conftest.er2 >/dev/null; then 8909 lt_cv_prog_compiler_static_works=yes 8910 fi 8911 else 8912 lt_cv_prog_compiler_static_works=yes 8913 fi 8914 fi 8915 $RM -r conftest* 8916 LDFLAGS=$save_LDFLAGS 8917 8918fi 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8920$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8921 8922if test yes = "$lt_cv_prog_compiler_static_works"; then 8923 : 8924else 8925 lt_prog_compiler_static= 8926fi 8927 8928 8929 8930 8931 8932 8933 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8935$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8936if ${lt_cv_prog_compiler_c_o+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 lt_cv_prog_compiler_c_o=no 8940 $RM -r conftest 2>/dev/null 8941 mkdir conftest 8942 cd conftest 8943 mkdir out 8944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8945 8946 lt_compiler_flag="-o out/conftest2.$ac_objext" 8947 # Insert the option either (1) after the last *FLAGS variable, or 8948 # (2) before a word containing "conftest.", or (3) at the end. 8949 # Note that $ac_compile itself does not contain backslashes and begins 8950 # with a dollar sign (not a hyphen), so the echo should work correctly. 8951 lt_compile=`echo "$ac_compile" | $SED \ 8952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8954 -e 's:$: $lt_compiler_flag:'` 8955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8956 (eval "$lt_compile" 2>out/conftest.err) 8957 ac_status=$? 8958 cat out/conftest.err >&5 8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8960 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8961 then 8962 # The compiler can only warn and ignore the option if not recognized 8963 # So say no if there are warnings 8964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8967 lt_cv_prog_compiler_c_o=yes 8968 fi 8969 fi 8970 chmod u+w . 2>&5 8971 $RM conftest* 8972 # SGI C++ compiler will create directory out/ii_files/ for 8973 # template instantiation 8974 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8975 $RM out/* && rmdir out 8976 cd .. 8977 $RM -r conftest 8978 $RM conftest* 8979 8980fi 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8982$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8983 8984 8985 8986 8987 8988 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8990$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8991if ${lt_cv_prog_compiler_c_o+:} false; then : 8992 $as_echo_n "(cached) " >&6 8993else 8994 lt_cv_prog_compiler_c_o=no 8995 $RM -r conftest 2>/dev/null 8996 mkdir conftest 8997 cd conftest 8998 mkdir out 8999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9000 9001 lt_compiler_flag="-o out/conftest2.$ac_objext" 9002 # Insert the option either (1) after the last *FLAGS variable, or 9003 # (2) before a word containing "conftest.", or (3) at the end. 9004 # Note that $ac_compile itself does not contain backslashes and begins 9005 # with a dollar sign (not a hyphen), so the echo should work correctly. 9006 lt_compile=`echo "$ac_compile" | $SED \ 9007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9009 -e 's:$: $lt_compiler_flag:'` 9010 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9011 (eval "$lt_compile" 2>out/conftest.err) 9012 ac_status=$? 9013 cat out/conftest.err >&5 9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9015 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9016 then 9017 # The compiler can only warn and ignore the option if not recognized 9018 # So say no if there are warnings 9019 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9020 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9021 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9022 lt_cv_prog_compiler_c_o=yes 9023 fi 9024 fi 9025 chmod u+w . 2>&5 9026 $RM conftest* 9027 # SGI C++ compiler will create directory out/ii_files/ for 9028 # template instantiation 9029 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9030 $RM out/* && rmdir out 9031 cd .. 9032 $RM -r conftest 9033 $RM conftest* 9034 9035fi 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9037$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9038 9039 9040 9041 9042hard_links=nottested 9043if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9044 # do not overwrite the value of need_locks provided by the user 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9046$as_echo_n "checking if we can lock with hard links... " >&6; } 9047 hard_links=yes 9048 $RM conftest* 9049 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9050 touch conftest.a 9051 ln conftest.a conftest.b 2>&5 || hard_links=no 9052 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9054$as_echo "$hard_links" >&6; } 9055 if test no = "$hard_links"; then 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9057$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9058 need_locks=warn 9059 fi 9060else 9061 need_locks=no 9062fi 9063 9064 9065 9066 9067 9068 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9070$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9071 9072 runpath_var= 9073 allow_undefined_flag= 9074 always_export_symbols=no 9075 archive_cmds= 9076 archive_expsym_cmds= 9077 compiler_needs_object=no 9078 enable_shared_with_static_runtimes=no 9079 export_dynamic_flag_spec= 9080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9081 hardcode_automatic=no 9082 hardcode_direct=no 9083 hardcode_direct_absolute=no 9084 hardcode_libdir_flag_spec= 9085 hardcode_libdir_separator= 9086 hardcode_minus_L=no 9087 hardcode_shlibpath_var=unsupported 9088 inherit_rpath=no 9089 link_all_deplibs=unknown 9090 module_cmds= 9091 module_expsym_cmds= 9092 old_archive_from_new_cmds= 9093 old_archive_from_expsyms_cmds= 9094 thread_safe_flag_spec= 9095 whole_archive_flag_spec= 9096 # include_expsyms should be a list of space-separated symbols to be *always* 9097 # included in the symbol list 9098 include_expsyms= 9099 # exclude_expsyms can be an extended regexp of symbols to exclude 9100 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9101 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9102 # as well as any symbol that contains 'd'. 9103 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9104 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9105 # platforms (ab)use it in PIC code, but their linkers get confused if 9106 # the symbol is explicitly referenced. Since portable code cannot 9107 # rely on this symbol name, it's probably fine to never include it in 9108 # preloaded symbol tables. 9109 # Exclude shared library initialization/finalization symbols. 9110 extract_expsyms_cmds= 9111 9112 case $host_os in 9113 cygwin* | mingw* | pw32* | cegcc*) 9114 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9115 # When not using gcc, we currently assume that we are using 9116 # Microsoft Visual C++. 9117 if test yes != "$GCC"; then 9118 with_gnu_ld=no 9119 fi 9120 ;; 9121 interix*) 9122 # we just hope/assume this is gcc and not c89 (= MSVC++) 9123 with_gnu_ld=yes 9124 ;; 9125 openbsd* | bitrig*) 9126 with_gnu_ld=no 9127 ;; 9128 esac 9129 9130 ld_shlibs=yes 9131 9132 # On some targets, GNU ld is compatible enough with the native linker 9133 # that we're better off using the native interface for both. 9134 lt_use_gnu_ld_interface=no 9135 if test yes = "$with_gnu_ld"; then 9136 case $host_os in 9137 aix*) 9138 # The AIX port of GNU ld has always aspired to compatibility 9139 # with the native linker. However, as the warning in the GNU ld 9140 # block says, versions before 2.19.5* couldn't really create working 9141 # shared libraries, regardless of the interface used. 9142 case `$LD -v 2>&1` in 9143 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9144 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9145 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9146 *) 9147 lt_use_gnu_ld_interface=yes 9148 ;; 9149 esac 9150 ;; 9151 *) 9152 lt_use_gnu_ld_interface=yes 9153 ;; 9154 esac 9155 fi 9156 9157 if test yes = "$lt_use_gnu_ld_interface"; then 9158 # If archive_cmds runs LD, not CC, wlarc should be empty 9159 wlarc='$wl' 9160 9161 # Set some defaults for GNU ld with shared library support. These 9162 # are reset later if shared libraries are not supported. Putting them 9163 # here allows them to be overridden if necessary. 9164 runpath_var=LD_RUN_PATH 9165 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9166 export_dynamic_flag_spec='$wl--export-dynamic' 9167 # ancient GNU ld didn't support --whole-archive et. al. 9168 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9169 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9170 else 9171 whole_archive_flag_spec= 9172 fi 9173 supports_anon_versioning=no 9174 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9175 *GNU\ gold*) supports_anon_versioning=yes ;; 9176 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9177 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9178 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9179 *\ 2.11.*) ;; # other 2.11 versions 9180 *) supports_anon_versioning=yes ;; 9181 esac 9182 9183 # See if GNU ld supports shared libraries. 9184 case $host_os in 9185 aix[3-9]*) 9186 # On AIX/PPC, the GNU linker is very broken 9187 if test ia64 != "$host_cpu"; then 9188 ld_shlibs=no 9189 cat <<_LT_EOF 1>&2 9190 9191*** Warning: the GNU linker, at least up to release 2.19, is reported 9192*** to be unable to reliably create shared libraries on AIX. 9193*** Therefore, libtool is disabling shared libraries support. If you 9194*** really care for shared libraries, you may want to install binutils 9195*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9196*** You will then need to restart the configuration process. 9197 9198_LT_EOF 9199 fi 9200 ;; 9201 9202 amigaos*) 9203 case $host_cpu in 9204 powerpc) 9205 # see comment about AmigaOS4 .so support 9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9207 archive_expsym_cmds='' 9208 ;; 9209 m68k) 9210 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)' 9211 hardcode_libdir_flag_spec='-L$libdir' 9212 hardcode_minus_L=yes 9213 ;; 9214 esac 9215 ;; 9216 9217 beos*) 9218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9219 allow_undefined_flag=unsupported 9220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9221 # support --undefined. This deserves some investigation. FIXME 9222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9223 else 9224 ld_shlibs=no 9225 fi 9226 ;; 9227 9228 cygwin* | mingw* | pw32* | cegcc*) 9229 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9230 # as there is no search path for DLLs. 9231 hardcode_libdir_flag_spec='-L$libdir' 9232 export_dynamic_flag_spec='$wl--export-all-symbols' 9233 allow_undefined_flag=unsupported 9234 always_export_symbols=no 9235 enable_shared_with_static_runtimes=yes 9236 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' 9237 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9238 9239 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9241 # If the export-symbols file already is a .def file, use it as 9242 # is; otherwise, prepend EXPORTS... 9243 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9244 cp $export_symbols $output_objdir/$soname.def; 9245 else 9246 echo EXPORTS > $output_objdir/$soname.def; 9247 cat $export_symbols >> $output_objdir/$soname.def; 9248 fi~ 9249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9250 else 9251 ld_shlibs=no 9252 fi 9253 ;; 9254 9255 haiku*) 9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9257 link_all_deplibs=yes 9258 ;; 9259 9260 os2*) 9261 hardcode_libdir_flag_spec='-L$libdir' 9262 hardcode_minus_L=yes 9263 allow_undefined_flag=unsupported 9264 shrext_cmds=.dll 9265 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9266 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9267 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9268 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9269 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9271 emximp -o $lib $output_objdir/$libname.def' 9272 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9275 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9276 prefix_cmds="$SED"~ 9277 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9278 prefix_cmds="$prefix_cmds -e 1d"; 9279 fi~ 9280 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9281 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9282 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9283 emximp -o $lib $output_objdir/$libname.def' 9284 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9285 enable_shared_with_static_runtimes=yes 9286 ;; 9287 9288 interix[3-9]*) 9289 hardcode_direct=no 9290 hardcode_shlibpath_var=no 9291 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9292 export_dynamic_flag_spec='$wl-E' 9293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9294 # Instead, shared libraries are loaded at an image base (0x10000000 by 9295 # default) and relocated if they conflict, which is a slow very memory 9296 # consuming and fragmenting process. To avoid this, we pick a random, 9297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9298 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9300 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' 9301 ;; 9302 9303 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9304 tmp_diet=no 9305 if test linux-dietlibc = "$host_os"; then 9306 case $cc_basename in 9307 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9308 esac 9309 fi 9310 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9311 && test no = "$tmp_diet" 9312 then 9313 tmp_addflag=' $pic_flag' 9314 tmp_sharedflag='-shared' 9315 case $cc_basename,$host_cpu in 9316 pgcc*) # Portland Group C compiler 9317 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' 9318 tmp_addflag=' $pic_flag' 9319 ;; 9320 pgf77* | pgf90* | pgf95* | pgfortran*) 9321 # Portland Group f77 and f90 compilers 9322 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' 9323 tmp_addflag=' $pic_flag -Mnomain' ;; 9324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9325 tmp_addflag=' -i_dynamic' ;; 9326 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9327 tmp_addflag=' -i_dynamic -nofor_main' ;; 9328 ifc* | ifort*) # Intel Fortran compiler 9329 tmp_addflag=' -nofor_main' ;; 9330 lf95*) # Lahey Fortran 8.1 9331 whole_archive_flag_spec= 9332 tmp_sharedflag='--shared' ;; 9333 nagfor*) # NAGFOR 5.3 9334 tmp_sharedflag='-Wl,-shared' ;; 9335 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9336 tmp_sharedflag='-qmkshrobj' 9337 tmp_addflag= ;; 9338 nvcc*) # Cuda Compiler Driver 2.2 9339 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' 9340 compiler_needs_object=yes 9341 ;; 9342 esac 9343 case `$CC -V 2>&1 | sed 5q` in 9344 *Sun\ C*) # Sun C 5.9 9345 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' 9346 compiler_needs_object=yes 9347 tmp_sharedflag='-G' ;; 9348 *Sun\ F*) # Sun Fortran 8.3 9349 tmp_sharedflag='-G' ;; 9350 esac 9351 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9352 9353 if test yes = "$supports_anon_versioning"; then 9354 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9356 echo "local: *; };" >> $output_objdir/$libname.ver~ 9357 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9358 fi 9359 9360 case $cc_basename in 9361 tcc*) 9362 export_dynamic_flag_spec='-rdynamic' 9363 ;; 9364 xlf* | bgf* | bgxlf* | mpixlf*) 9365 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9366 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9367 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9368 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9369 if test yes = "$supports_anon_versioning"; then 9370 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9372 echo "local: *; };" >> $output_objdir/$libname.ver~ 9373 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9374 fi 9375 ;; 9376 esac 9377 else 9378 ld_shlibs=no 9379 fi 9380 ;; 9381 9382 netbsd*) 9383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9384 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9385 wlarc= 9386 else 9387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9388 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9389 fi 9390 ;; 9391 9392 solaris*) 9393 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9394 ld_shlibs=no 9395 cat <<_LT_EOF 1>&2 9396 9397*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9398*** create shared libraries on Solaris systems. Therefore, libtool 9399*** is disabling shared libraries support. We urge you to upgrade GNU 9400*** binutils to release 2.9.1 or newer. Another option is to modify 9401*** your PATH or compiler configuration so that the native linker is 9402*** used, and then restart. 9403 9404_LT_EOF 9405 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9407 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9408 else 9409 ld_shlibs=no 9410 fi 9411 ;; 9412 9413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9414 case `$LD -v 2>&1` in 9415 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9416 ld_shlibs=no 9417 cat <<_LT_EOF 1>&2 9418 9419*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9420*** reliably create shared libraries on SCO systems. Therefore, libtool 9421*** is disabling shared libraries support. We urge you to upgrade GNU 9422*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9423*** your PATH or compiler configuration so that the native linker is 9424*** used, and then restart. 9425 9426_LT_EOF 9427 ;; 9428 *) 9429 # For security reasons, it is highly recommended that you always 9430 # use absolute paths for naming shared libraries, and exclude the 9431 # DT_RUNPATH tag from executables and libraries. But doing so 9432 # requires that you compile everything twice, which is a pain. 9433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9437 else 9438 ld_shlibs=no 9439 fi 9440 ;; 9441 esac 9442 ;; 9443 9444 sunos4*) 9445 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9446 wlarc= 9447 hardcode_direct=yes 9448 hardcode_shlibpath_var=no 9449 ;; 9450 9451 *) 9452 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9453 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9454 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9455 else 9456 ld_shlibs=no 9457 fi 9458 ;; 9459 esac 9460 9461 if test no = "$ld_shlibs"; then 9462 runpath_var= 9463 hardcode_libdir_flag_spec= 9464 export_dynamic_flag_spec= 9465 whole_archive_flag_spec= 9466 fi 9467 else 9468 # PORTME fill in a description of your system's linker (not GNU ld) 9469 case $host_os in 9470 aix3*) 9471 allow_undefined_flag=unsupported 9472 always_export_symbols=yes 9473 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' 9474 # Note: this linker hardcodes the directories in LIBPATH if there 9475 # are no directories specified by -L. 9476 hardcode_minus_L=yes 9477 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9478 # Neither direct hardcoding nor static linking is supported with a 9479 # broken collect2. 9480 hardcode_direct=unsupported 9481 fi 9482 ;; 9483 9484 aix[4-9]*) 9485 if test ia64 = "$host_cpu"; then 9486 # On IA64, the linker does run time linking by default, so we don't 9487 # have to do anything special. 9488 aix_use_runtimelinking=no 9489 exp_sym_flag='-Bexport' 9490 no_entry_flag= 9491 else 9492 # If we're using GNU nm, then we don't want the "-C" option. 9493 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9494 # Without the "-l" option, or with the "-B" option, AIX nm treats 9495 # weak defined symbols like other global defined symbols, whereas 9496 # GNU nm marks them as "W". 9497 # While the 'weak' keyword is ignored in the Export File, we need 9498 # it in the Import File for the 'aix-soname' feature, so we have 9499 # to replace the "-B" option with "-P" for AIX nm. 9500 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9501 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' 9502 else 9503 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' 9504 fi 9505 aix_use_runtimelinking=no 9506 9507 # Test if we are trying to use run time linking or normal 9508 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9509 # have runtime linking enabled, and use it for executables. 9510 # For shared libraries, we enable/disable runtime linking 9511 # depending on the kind of the shared library created - 9512 # when "with_aix_soname,aix_use_runtimelinking" is: 9513 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9514 # "aix,yes" lib.so shared, rtl:yes, for executables 9515 # lib.a static archive 9516 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9517 # lib.a(lib.so.V) shared, rtl:no, for executables 9518 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9519 # lib.a(lib.so.V) shared, rtl:no 9520 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9521 # lib.a static archive 9522 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9523 for ld_flag in $LDFLAGS; do 9524 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9525 aix_use_runtimelinking=yes 9526 break 9527 fi 9528 done 9529 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9530 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9531 # so we don't have lib.a shared libs to link our executables. 9532 # We have to force runtime linking in this case. 9533 aix_use_runtimelinking=yes 9534 LDFLAGS="$LDFLAGS -Wl,-brtl" 9535 fi 9536 ;; 9537 esac 9538 9539 exp_sym_flag='-bexport' 9540 no_entry_flag='-bnoentry' 9541 fi 9542 9543 # When large executables or shared objects are built, AIX ld can 9544 # have problems creating the table of contents. If linking a library 9545 # or program results in "error TOC overflow" add -mminimal-toc to 9546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9548 9549 archive_cmds='' 9550 hardcode_direct=yes 9551 hardcode_direct_absolute=yes 9552 hardcode_libdir_separator=':' 9553 link_all_deplibs=yes 9554 file_list_spec='$wl-f,' 9555 case $with_aix_soname,$aix_use_runtimelinking in 9556 aix,*) ;; # traditional, no import file 9557 svr4,* | *,yes) # use import file 9558 # The Import File defines what to hardcode. 9559 hardcode_direct=no 9560 hardcode_direct_absolute=no 9561 ;; 9562 esac 9563 9564 if test yes = "$GCC"; then 9565 case $host_os in aix4.[012]|aix4.[012].*) 9566 # We only want to do this on AIX 4.2 and lower, the check 9567 # below for broken collect2 doesn't work under 4.3+ 9568 collect2name=`$CC -print-prog-name=collect2` 9569 if test -f "$collect2name" && 9570 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9571 then 9572 # We have reworked collect2 9573 : 9574 else 9575 # We have old collect2 9576 hardcode_direct=unsupported 9577 # It fails to find uninstalled libraries when the uninstalled 9578 # path is not listed in the libpath. Setting hardcode_minus_L 9579 # to unsupported forces relinking 9580 hardcode_minus_L=yes 9581 hardcode_libdir_flag_spec='-L$libdir' 9582 hardcode_libdir_separator= 9583 fi 9584 ;; 9585 esac 9586 shared_flag='-shared' 9587 if test yes = "$aix_use_runtimelinking"; then 9588 shared_flag="$shared_flag "'$wl-G' 9589 fi 9590 # Need to ensure runtime linking is disabled for the traditional 9591 # shared library, or the linker may eventually find shared libraries 9592 # /with/ Import File - we do not want to mix them. 9593 shared_flag_aix='-shared' 9594 shared_flag_svr4='-shared $wl-G' 9595 else 9596 # not using gcc 9597 if test ia64 = "$host_cpu"; then 9598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9599 # chokes on -Wl,-G. The following line is correct: 9600 shared_flag='-G' 9601 else 9602 if test yes = "$aix_use_runtimelinking"; then 9603 shared_flag='$wl-G' 9604 else 9605 shared_flag='$wl-bM:SRE' 9606 fi 9607 shared_flag_aix='$wl-bM:SRE' 9608 shared_flag_svr4='$wl-G' 9609 fi 9610 fi 9611 9612 export_dynamic_flag_spec='$wl-bexpall' 9613 # It seems that -bexpall does not export symbols beginning with 9614 # underscore (_), so it is better to generate a list of symbols to export. 9615 always_export_symbols=yes 9616 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9617 # Warning - without using the other runtime loading flags (-brtl), 9618 # -berok will link without error, but may produce a broken library. 9619 allow_undefined_flag='-berok' 9620 # Determine the default libpath from the value encoded in an 9621 # empty executable. 9622 if test set = "${lt_cv_aix_libpath+set}"; then 9623 aix_libpath=$lt_cv_aix_libpath 9624else 9625 if ${lt_cv_aix_libpath_+:} false; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630 9631int 9632main () 9633{ 9634 9635 ; 9636 return 0; 9637} 9638_ACEOF 9639if ac_fn_c_try_link "$LINENO"; then : 9640 9641 lt_aix_libpath_sed=' 9642 /Import File Strings/,/^$/ { 9643 /^0/ { 9644 s/^0 *\([^ ]*\) *$/\1/ 9645 p 9646 } 9647 }' 9648 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9649 # Check for a 64-bit object if we didn't find anything. 9650 if test -z "$lt_cv_aix_libpath_"; then 9651 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9652 fi 9653fi 9654rm -f core conftest.err conftest.$ac_objext \ 9655 conftest$ac_exeext conftest.$ac_ext 9656 if test -z "$lt_cv_aix_libpath_"; then 9657 lt_cv_aix_libpath_=/usr/lib:/lib 9658 fi 9659 9660fi 9661 9662 aix_libpath=$lt_cv_aix_libpath_ 9663fi 9664 9665 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9666 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 9667 else 9668 if test ia64 = "$host_cpu"; then 9669 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9670 allow_undefined_flag="-z nodefs" 9671 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" 9672 else 9673 # Determine the default libpath from the value encoded in an 9674 # empty executable. 9675 if test set = "${lt_cv_aix_libpath+set}"; then 9676 aix_libpath=$lt_cv_aix_libpath 9677else 9678 if ${lt_cv_aix_libpath_+:} false; then : 9679 $as_echo_n "(cached) " >&6 9680else 9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9682/* end confdefs.h. */ 9683 9684int 9685main () 9686{ 9687 9688 ; 9689 return 0; 9690} 9691_ACEOF 9692if ac_fn_c_try_link "$LINENO"; then : 9693 9694 lt_aix_libpath_sed=' 9695 /Import File Strings/,/^$/ { 9696 /^0/ { 9697 s/^0 *\([^ ]*\) *$/\1/ 9698 p 9699 } 9700 }' 9701 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9702 # Check for a 64-bit object if we didn't find anything. 9703 if test -z "$lt_cv_aix_libpath_"; then 9704 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9705 fi 9706fi 9707rm -f core conftest.err conftest.$ac_objext \ 9708 conftest$ac_exeext conftest.$ac_ext 9709 if test -z "$lt_cv_aix_libpath_"; then 9710 lt_cv_aix_libpath_=/usr/lib:/lib 9711 fi 9712 9713fi 9714 9715 aix_libpath=$lt_cv_aix_libpath_ 9716fi 9717 9718 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9719 # Warning - without using the other run time loading flags, 9720 # -berok will link without error, but may produce a broken library. 9721 no_undefined_flag=' $wl-bernotok' 9722 allow_undefined_flag=' $wl-berok' 9723 if test yes = "$with_gnu_ld"; then 9724 # We only use this code for GNU lds that support --whole-archive. 9725 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9726 else 9727 # Exported symbols can be pulled into shared objects from archives 9728 whole_archive_flag_spec='$convenience' 9729 fi 9730 archive_cmds_need_lc=yes 9731 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9732 # -brtl affects multiple linker settings, -berok does not and is overridden later 9733 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9734 if test svr4 != "$with_aix_soname"; then 9735 # This is similar to how AIX traditionally builds its shared libraries. 9736 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' 9737 fi 9738 if test aix != "$with_aix_soname"; then 9739 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' 9740 else 9741 # used by -dlpreopen to get the symbols 9742 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9743 fi 9744 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9745 fi 9746 fi 9747 ;; 9748 9749 amigaos*) 9750 case $host_cpu in 9751 powerpc) 9752 # see comment about AmigaOS4 .so support 9753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9754 archive_expsym_cmds='' 9755 ;; 9756 m68k) 9757 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)' 9758 hardcode_libdir_flag_spec='-L$libdir' 9759 hardcode_minus_L=yes 9760 ;; 9761 esac 9762 ;; 9763 9764 bsdi[45]*) 9765 export_dynamic_flag_spec=-rdynamic 9766 ;; 9767 9768 cygwin* | mingw* | pw32* | cegcc*) 9769 # When not using gcc, we currently assume that we are using 9770 # Microsoft Visual C++. 9771 # hardcode_libdir_flag_spec is actually meaningless, as there is 9772 # no search path for DLLs. 9773 case $cc_basename in 9774 cl*) 9775 # Native MSVC 9776 hardcode_libdir_flag_spec=' ' 9777 allow_undefined_flag=unsupported 9778 always_export_symbols=yes 9779 file_list_spec='@' 9780 # Tell ltmain to make .lib files, not .a files. 9781 libext=lib 9782 # Tell ltmain to make .dll files, not .so files. 9783 shrext_cmds=.dll 9784 # FIXME: Setting linknames here is a bad hack. 9785 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9786 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9787 cp "$export_symbols" "$output_objdir/$soname.def"; 9788 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9789 else 9790 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9791 fi~ 9792 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9793 linknames=' 9794 # The linker will not automatically build a static lib if we build a DLL. 9795 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9796 enable_shared_with_static_runtimes=yes 9797 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9798 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9799 # Don't use ranlib 9800 old_postinstall_cmds='chmod 644 $oldlib' 9801 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9802 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9803 case $lt_outputfile in 9804 *.exe|*.EXE) ;; 9805 *) 9806 lt_outputfile=$lt_outputfile.exe 9807 lt_tool_outputfile=$lt_tool_outputfile.exe 9808 ;; 9809 esac~ 9810 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9811 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9812 $RM "$lt_outputfile.manifest"; 9813 fi' 9814 ;; 9815 *) 9816 # Assume MSVC wrapper 9817 hardcode_libdir_flag_spec=' ' 9818 allow_undefined_flag=unsupported 9819 # Tell ltmain to make .lib files, not .a files. 9820 libext=lib 9821 # Tell ltmain to make .dll files, not .so files. 9822 shrext_cmds=.dll 9823 # FIXME: Setting linknames here is a bad hack. 9824 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9825 # The linker will automatically build a .lib file if we build a DLL. 9826 old_archive_from_new_cmds='true' 9827 # FIXME: Should let the user specify the lib program. 9828 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9829 enable_shared_with_static_runtimes=yes 9830 ;; 9831 esac 9832 ;; 9833 9834 darwin* | rhapsody*) 9835 9836 9837 archive_cmds_need_lc=no 9838 hardcode_direct=no 9839 hardcode_automatic=yes 9840 hardcode_shlibpath_var=unsupported 9841 if test yes = "$lt_cv_ld_force_load"; then 9842 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\"`' 9843 9844 else 9845 whole_archive_flag_spec='' 9846 fi 9847 link_all_deplibs=yes 9848 allow_undefined_flag=$_lt_dar_allow_undefined 9849 case $cc_basename in 9850 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9851 *) _lt_dar_can_shared=$GCC ;; 9852 esac 9853 if test yes = "$_lt_dar_can_shared"; then 9854 output_verbose_link_cmd=func_echo_all 9855 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9856 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9857 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" 9858 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" 9859 9860 else 9861 ld_shlibs=no 9862 fi 9863 9864 ;; 9865 9866 dgux*) 9867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9868 hardcode_libdir_flag_spec='-L$libdir' 9869 hardcode_shlibpath_var=no 9870 ;; 9871 9872 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9873 # support. Future versions do this automatically, but an explicit c++rt0.o 9874 # does not break anything, and helps significantly (at the cost of a little 9875 # extra space). 9876 freebsd2.2*) 9877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9878 hardcode_libdir_flag_spec='-R$libdir' 9879 hardcode_direct=yes 9880 hardcode_shlibpath_var=no 9881 ;; 9882 9883 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9884 freebsd2.*) 9885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9886 hardcode_direct=yes 9887 hardcode_minus_L=yes 9888 hardcode_shlibpath_var=no 9889 ;; 9890 9891 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9892 freebsd* | dragonfly*) 9893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9894 hardcode_libdir_flag_spec='-R$libdir' 9895 hardcode_direct=yes 9896 hardcode_shlibpath_var=no 9897 ;; 9898 9899 hpux9*) 9900 if test yes = "$GCC"; then 9901 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' 9902 else 9903 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' 9904 fi 9905 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9906 hardcode_libdir_separator=: 9907 hardcode_direct=yes 9908 9909 # hardcode_minus_L: Not really in the search PATH, 9910 # but as the default location of the library. 9911 hardcode_minus_L=yes 9912 export_dynamic_flag_spec='$wl-E' 9913 ;; 9914 9915 hpux10*) 9916 if test yes,no = "$GCC,$with_gnu_ld"; then 9917 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9918 else 9919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9920 fi 9921 if test no = "$with_gnu_ld"; then 9922 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9923 hardcode_libdir_separator=: 9924 hardcode_direct=yes 9925 hardcode_direct_absolute=yes 9926 export_dynamic_flag_spec='$wl-E' 9927 # hardcode_minus_L: Not really in the search PATH, 9928 # but as the default location of the library. 9929 hardcode_minus_L=yes 9930 fi 9931 ;; 9932 9933 hpux11*) 9934 if test yes,no = "$GCC,$with_gnu_ld"; then 9935 case $host_cpu in 9936 hppa*64*) 9937 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9938 ;; 9939 ia64*) 9940 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9941 ;; 9942 *) 9943 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9944 ;; 9945 esac 9946 else 9947 case $host_cpu in 9948 hppa*64*) 9949 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9950 ;; 9951 ia64*) 9952 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9953 ;; 9954 *) 9955 9956 # Older versions of the 11.00 compiler do not understand -b yet 9957 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9959$as_echo_n "checking if $CC understands -b... " >&6; } 9960if ${lt_cv_prog_compiler__b+:} false; then : 9961 $as_echo_n "(cached) " >&6 9962else 9963 lt_cv_prog_compiler__b=no 9964 save_LDFLAGS=$LDFLAGS 9965 LDFLAGS="$LDFLAGS -b" 9966 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9967 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9968 # The linker can only warn and ignore the option if not recognized 9969 # So say no if there are warnings 9970 if test -s conftest.err; then 9971 # Append any errors to the config.log. 9972 cat conftest.err 1>&5 9973 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9975 if diff conftest.exp conftest.er2 >/dev/null; then 9976 lt_cv_prog_compiler__b=yes 9977 fi 9978 else 9979 lt_cv_prog_compiler__b=yes 9980 fi 9981 fi 9982 $RM -r conftest* 9983 LDFLAGS=$save_LDFLAGS 9984 9985fi 9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9987$as_echo "$lt_cv_prog_compiler__b" >&6; } 9988 9989if test yes = "$lt_cv_prog_compiler__b"; then 9990 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9991else 9992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9993fi 9994 9995 ;; 9996 esac 9997 fi 9998 if test no = "$with_gnu_ld"; then 9999 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10000 hardcode_libdir_separator=: 10001 10002 case $host_cpu in 10003 hppa*64*|ia64*) 10004 hardcode_direct=no 10005 hardcode_shlibpath_var=no 10006 ;; 10007 *) 10008 hardcode_direct=yes 10009 hardcode_direct_absolute=yes 10010 export_dynamic_flag_spec='$wl-E' 10011 10012 # hardcode_minus_L: Not really in the search PATH, 10013 # but as the default location of the library. 10014 hardcode_minus_L=yes 10015 ;; 10016 esac 10017 fi 10018 ;; 10019 10020 irix5* | irix6* | nonstopux*) 10021 if test yes = "$GCC"; then 10022 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' 10023 # Try to use the -exported_symbol ld option, if it does not 10024 # work, assume that -exports_file does not work either and 10025 # implicitly export all symbols. 10026 # This should be the same for all languages, so no per-tag cache variable. 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10028$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10029if ${lt_cv_irix_exported_symbol+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031else 10032 save_LDFLAGS=$LDFLAGS 10033 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036int foo (void) { return 0; } 10037_ACEOF 10038if ac_fn_c_try_link "$LINENO"; then : 10039 lt_cv_irix_exported_symbol=yes 10040else 10041 lt_cv_irix_exported_symbol=no 10042fi 10043rm -f core conftest.err conftest.$ac_objext \ 10044 conftest$ac_exeext conftest.$ac_ext 10045 LDFLAGS=$save_LDFLAGS 10046fi 10047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10048$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10049 if test yes = "$lt_cv_irix_exported_symbol"; then 10050 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' 10051 fi 10052 else 10053 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' 10054 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' 10055 fi 10056 archive_cmds_need_lc='no' 10057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10058 hardcode_libdir_separator=: 10059 inherit_rpath=yes 10060 link_all_deplibs=yes 10061 ;; 10062 10063 linux*) 10064 case $cc_basename in 10065 tcc*) 10066 # Fabrice Bellard et al's Tiny C Compiler 10067 ld_shlibs=yes 10068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10069 ;; 10070 esac 10071 ;; 10072 10073 netbsd*) 10074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10076 else 10077 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10078 fi 10079 hardcode_libdir_flag_spec='-R$libdir' 10080 hardcode_direct=yes 10081 hardcode_shlibpath_var=no 10082 ;; 10083 10084 newsos6) 10085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10086 hardcode_direct=yes 10087 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10088 hardcode_libdir_separator=: 10089 hardcode_shlibpath_var=no 10090 ;; 10091 10092 *nto* | *qnx*) 10093 ;; 10094 10095 openbsd* | bitrig*) 10096 if test -f /usr/libexec/ld.so; then 10097 hardcode_direct=yes 10098 hardcode_shlibpath_var=no 10099 hardcode_direct_absolute=yes 10100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10102 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10103 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10104 export_dynamic_flag_spec='$wl-E' 10105 else 10106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10107 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10108 fi 10109 else 10110 ld_shlibs=no 10111 fi 10112 ;; 10113 10114 os2*) 10115 hardcode_libdir_flag_spec='-L$libdir' 10116 hardcode_minus_L=yes 10117 allow_undefined_flag=unsupported 10118 shrext_cmds=.dll 10119 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10120 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10121 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10122 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10123 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10124 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10125 emximp -o $lib $output_objdir/$libname.def' 10126 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10127 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10128 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10129 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10130 prefix_cmds="$SED"~ 10131 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10132 prefix_cmds="$prefix_cmds -e 1d"; 10133 fi~ 10134 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10135 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10136 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10137 emximp -o $lib $output_objdir/$libname.def' 10138 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10139 enable_shared_with_static_runtimes=yes 10140 ;; 10141 10142 osf3*) 10143 if test yes = "$GCC"; then 10144 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10145 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' 10146 else 10147 allow_undefined_flag=' -expect_unresolved \*' 10148 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' 10149 fi 10150 archive_cmds_need_lc='no' 10151 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10152 hardcode_libdir_separator=: 10153 ;; 10154 10155 osf4* | osf5*) # as osf3* with the addition of -msym flag 10156 if test yes = "$GCC"; then 10157 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10158 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' 10159 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10160 else 10161 allow_undefined_flag=' -expect_unresolved \*' 10162 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' 10163 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~ 10164 $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' 10165 10166 # Both c and cxx compiler support -rpath directly 10167 hardcode_libdir_flag_spec='-rpath $libdir' 10168 fi 10169 archive_cmds_need_lc='no' 10170 hardcode_libdir_separator=: 10171 ;; 10172 10173 solaris*) 10174 no_undefined_flag=' -z defs' 10175 if test yes = "$GCC"; then 10176 wlarc='$wl' 10177 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10179 $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' 10180 else 10181 case `$CC -V 2>&1` in 10182 *"Compilers 5.0"*) 10183 wlarc='' 10184 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10186 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10187 ;; 10188 *) 10189 wlarc='$wl' 10190 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10191 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10192 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10193 ;; 10194 esac 10195 fi 10196 hardcode_libdir_flag_spec='-R$libdir' 10197 hardcode_shlibpath_var=no 10198 case $host_os in 10199 solaris2.[0-5] | solaris2.[0-5].*) ;; 10200 *) 10201 # The compiler driver will combine and reorder linker options, 10202 # but understands '-z linker_flag'. GCC discards it without '$wl', 10203 # but is careful enough not to reorder. 10204 # Supported since Solaris 2.6 (maybe 2.5.1?) 10205 if test yes = "$GCC"; then 10206 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10207 else 10208 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10209 fi 10210 ;; 10211 esac 10212 link_all_deplibs=yes 10213 ;; 10214 10215 sunos4*) 10216 if test sequent = "$host_vendor"; then 10217 # Use $CC to link under sequent, because it throws in some extra .o 10218 # files that make .init and .fini sections work. 10219 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10220 else 10221 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10222 fi 10223 hardcode_libdir_flag_spec='-L$libdir' 10224 hardcode_direct=yes 10225 hardcode_minus_L=yes 10226 hardcode_shlibpath_var=no 10227 ;; 10228 10229 sysv4) 10230 case $host_vendor in 10231 sni) 10232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10233 hardcode_direct=yes # is this really true??? 10234 ;; 10235 siemens) 10236 ## LD is ld it makes a PLAMLIB 10237 ## CC just makes a GrossModule. 10238 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10239 reload_cmds='$CC -r -o $output$reload_objs' 10240 hardcode_direct=no 10241 ;; 10242 motorola) 10243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10244 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10245 ;; 10246 esac 10247 runpath_var='LD_RUN_PATH' 10248 hardcode_shlibpath_var=no 10249 ;; 10250 10251 sysv4.3*) 10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10253 hardcode_shlibpath_var=no 10254 export_dynamic_flag_spec='-Bexport' 10255 ;; 10256 10257 sysv4*MP*) 10258 if test -d /usr/nec; then 10259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10260 hardcode_shlibpath_var=no 10261 runpath_var=LD_RUN_PATH 10262 hardcode_runpath_var=yes 10263 ld_shlibs=yes 10264 fi 10265 ;; 10266 10267 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10268 no_undefined_flag='$wl-z,text' 10269 archive_cmds_need_lc=no 10270 hardcode_shlibpath_var=no 10271 runpath_var='LD_RUN_PATH' 10272 10273 if test yes = "$GCC"; then 10274 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10275 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10276 else 10277 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10278 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10279 fi 10280 ;; 10281 10282 sysv5* | sco3.2v5* | sco5v6*) 10283 # Note: We CANNOT use -z defs as we might desire, because we do not 10284 # link with -lc, and that would cause any symbols used from libc to 10285 # always be unresolved, which means just about no library would 10286 # ever link correctly. If we're not using GNU ld we use -z text 10287 # though, which does catch some bad symbols but isn't as heavy-handed 10288 # as -z defs. 10289 no_undefined_flag='$wl-z,text' 10290 allow_undefined_flag='$wl-z,nodefs' 10291 archive_cmds_need_lc=no 10292 hardcode_shlibpath_var=no 10293 hardcode_libdir_flag_spec='$wl-R,$libdir' 10294 hardcode_libdir_separator=':' 10295 link_all_deplibs=yes 10296 export_dynamic_flag_spec='$wl-Bexport' 10297 runpath_var='LD_RUN_PATH' 10298 10299 if test yes = "$GCC"; then 10300 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10301 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10302 else 10303 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10304 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10305 fi 10306 ;; 10307 10308 uts4*) 10309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10310 hardcode_libdir_flag_spec='-L$libdir' 10311 hardcode_shlibpath_var=no 10312 ;; 10313 10314 *) 10315 ld_shlibs=no 10316 ;; 10317 esac 10318 10319 if test sni = "$host_vendor"; then 10320 case $host in 10321 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10322 export_dynamic_flag_spec='$wl-Blargedynsym' 10323 ;; 10324 esac 10325 fi 10326 fi 10327 10328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10329$as_echo "$ld_shlibs" >&6; } 10330test no = "$ld_shlibs" && can_build_shared=no 10331 10332with_gnu_ld=$with_gnu_ld 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348# 10349# Do we need to explicitly link libc? 10350# 10351case "x$archive_cmds_need_lc" in 10352x|xyes) 10353 # Assume -lc should be added 10354 archive_cmds_need_lc=yes 10355 10356 if test yes,yes = "$GCC,$enable_shared"; then 10357 case $archive_cmds in 10358 *'~'*) 10359 # FIXME: we may have to deal with multi-command sequences. 10360 ;; 10361 '$CC '*) 10362 # Test whether the compiler implicitly links with -lc since on some 10363 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10364 # to ld, don't add -lc before -lgcc. 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10366$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10367if ${lt_cv_archive_cmds_need_lc+:} false; then : 10368 $as_echo_n "(cached) " >&6 10369else 10370 $RM conftest* 10371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10372 10373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10374 (eval $ac_compile) 2>&5 10375 ac_status=$? 10376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10377 test $ac_status = 0; } 2>conftest.err; then 10378 soname=conftest 10379 lib=conftest 10380 libobjs=conftest.$ac_objext 10381 deplibs= 10382 wl=$lt_prog_compiler_wl 10383 pic_flag=$lt_prog_compiler_pic 10384 compiler_flags=-v 10385 linker_flags=-v 10386 verstring= 10387 output_objdir=. 10388 libname=conftest 10389 lt_save_allow_undefined_flag=$allow_undefined_flag 10390 allow_undefined_flag= 10391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10392 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10393 ac_status=$? 10394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10395 test $ac_status = 0; } 10396 then 10397 lt_cv_archive_cmds_need_lc=no 10398 else 10399 lt_cv_archive_cmds_need_lc=yes 10400 fi 10401 allow_undefined_flag=$lt_save_allow_undefined_flag 10402 else 10403 cat conftest.err 1>&5 10404 fi 10405 $RM conftest* 10406 10407fi 10408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10409$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10410 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10411 ;; 10412 esac 10413 fi 10414 ;; 10415esac 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10569$as_echo_n "checking dynamic linker characteristics... " >&6; } 10570 10571if test yes = "$GCC"; then 10572 case $host_os in 10573 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10574 *) lt_awk_arg='/^libraries:/' ;; 10575 esac 10576 case $host_os in 10577 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10578 *) lt_sed_strip_eq='s|=/|/|g' ;; 10579 esac 10580 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10581 case $lt_search_path_spec in 10582 *\;*) 10583 # if the path contains ";" then we assume it to be the separator 10584 # otherwise default to the standard path separator (i.e. ":") - it is 10585 # assumed that no part of a normal pathname contains ";" but that should 10586 # okay in the real world where ";" in dirpaths is itself problematic. 10587 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10588 ;; 10589 *) 10590 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10591 ;; 10592 esac 10593 # Ok, now we have the path, separated by spaces, we can step through it 10594 # and add multilib dir if necessary... 10595 lt_tmp_lt_search_path_spec= 10596 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10597 # ...but if some path component already ends with the multilib dir we assume 10598 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10599 case "$lt_multi_os_dir; $lt_search_path_spec " in 10600 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10601 lt_multi_os_dir= 10602 ;; 10603 esac 10604 for lt_sys_path in $lt_search_path_spec; do 10605 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10607 elif test -n "$lt_multi_os_dir"; then 10608 test -d "$lt_sys_path" && \ 10609 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10610 fi 10611 done 10612 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10613BEGIN {RS = " "; FS = "/|\n";} { 10614 lt_foo = ""; 10615 lt_count = 0; 10616 for (lt_i = NF; lt_i > 0; lt_i--) { 10617 if ($lt_i != "" && $lt_i != ".") { 10618 if ($lt_i == "..") { 10619 lt_count++; 10620 } else { 10621 if (lt_count == 0) { 10622 lt_foo = "/" $lt_i lt_foo; 10623 } else { 10624 lt_count--; 10625 } 10626 } 10627 } 10628 } 10629 if (lt_foo != "") { lt_freq[lt_foo]++; } 10630 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10631}'` 10632 # AWK program above erroneously prepends '/' to C:/dos/paths 10633 # for these hosts. 10634 case $host_os in 10635 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10636 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10637 esac 10638 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10639else 10640 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10641fi 10642library_names_spec= 10643libname_spec='lib$name' 10644soname_spec= 10645shrext_cmds=.so 10646postinstall_cmds= 10647postuninstall_cmds= 10648finish_cmds= 10649finish_eval= 10650shlibpath_var= 10651shlibpath_overrides_runpath=unknown 10652version_type=none 10653dynamic_linker="$host_os ld.so" 10654sys_lib_dlsearch_path_spec="/lib /usr/lib" 10655need_lib_prefix=unknown 10656hardcode_into_libs=no 10657 10658# when you set need_version to no, make sure it does not cause -set_version 10659# flags to be left without arguments 10660need_version=unknown 10661 10662 10663 10664case $host_os in 10665aix3*) 10666 version_type=linux # correct to gnu/linux during the next big refactor 10667 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10668 shlibpath_var=LIBPATH 10669 10670 # AIX 3 has no versioning support, so we append a major version to the name. 10671 soname_spec='$libname$release$shared_ext$major' 10672 ;; 10673 10674aix[4-9]*) 10675 version_type=linux # correct to gnu/linux during the next big refactor 10676 need_lib_prefix=no 10677 need_version=no 10678 hardcode_into_libs=yes 10679 if test ia64 = "$host_cpu"; then 10680 # AIX 5 supports IA64 10681 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10682 shlibpath_var=LD_LIBRARY_PATH 10683 else 10684 # With GCC up to 2.95.x, collect2 would create an import file 10685 # for dependence libraries. The import file would start with 10686 # the line '#! .'. This would cause the generated library to 10687 # depend on '.', always an invalid library. This was fixed in 10688 # development snapshots of GCC prior to 3.0. 10689 case $host_os in 10690 aix4 | aix4.[01] | aix4.[01].*) 10691 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10692 echo ' yes ' 10693 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10694 : 10695 else 10696 can_build_shared=no 10697 fi 10698 ;; 10699 esac 10700 # Using Import Files as archive members, it is possible to support 10701 # filename-based versioning of shared library archives on AIX. While 10702 # this would work for both with and without runtime linking, it will 10703 # prevent static linking of such archives. So we do filename-based 10704 # shared library versioning with .so extension only, which is used 10705 # when both runtime linking and shared linking is enabled. 10706 # Unfortunately, runtime linking may impact performance, so we do 10707 # not want this to be the default eventually. Also, we use the 10708 # versioned .so libs for executables only if there is the -brtl 10709 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10710 # To allow for filename-based versioning support, we need to create 10711 # libNAME.so.V as an archive file, containing: 10712 # *) an Import File, referring to the versioned filename of the 10713 # archive as well as the shared archive member, telling the 10714 # bitwidth (32 or 64) of that shared object, and providing the 10715 # list of exported symbols of that shared object, eventually 10716 # decorated with the 'weak' keyword 10717 # *) the shared object with the F_LOADONLY flag set, to really avoid 10718 # it being seen by the linker. 10719 # At run time we better use the real file rather than another symlink, 10720 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10721 10722 case $with_aix_soname,$aix_use_runtimelinking in 10723 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10724 # soname into executable. Probably we can add versioning support to 10725 # collect2, so additional links can be useful in future. 10726 aix,yes) # traditional libtool 10727 dynamic_linker='AIX unversionable lib.so' 10728 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10729 # instead of lib<name>.a to let people know that these are not 10730 # typical AIX shared libraries. 10731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10732 ;; 10733 aix,no) # traditional AIX only 10734 dynamic_linker='AIX lib.a(lib.so.V)' 10735 # We preserve .a as extension for shared libraries through AIX4.2 10736 # and later when we are not doing run time linking. 10737 library_names_spec='$libname$release.a $libname.a' 10738 soname_spec='$libname$release$shared_ext$major' 10739 ;; 10740 svr4,*) # full svr4 only 10741 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10742 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10743 # We do not specify a path in Import Files, so LIBPATH fires. 10744 shlibpath_overrides_runpath=yes 10745 ;; 10746 *,yes) # both, prefer svr4 10747 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10748 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10749 # unpreferred sharedlib libNAME.a needs extra handling 10750 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"' 10751 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"' 10752 # We do not specify a path in Import Files, so LIBPATH fires. 10753 shlibpath_overrides_runpath=yes 10754 ;; 10755 *,no) # both, prefer aix 10756 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10757 library_names_spec='$libname$release.a $libname.a' 10758 soname_spec='$libname$release$shared_ext$major' 10759 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10760 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)' 10761 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"' 10762 ;; 10763 esac 10764 shlibpath_var=LIBPATH 10765 fi 10766 ;; 10767 10768amigaos*) 10769 case $host_cpu in 10770 powerpc) 10771 # Since July 2007 AmigaOS4 officially supports .so libraries. 10772 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10774 ;; 10775 m68k) 10776 library_names_spec='$libname.ixlibrary $libname.a' 10777 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10778 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' 10779 ;; 10780 esac 10781 ;; 10782 10783beos*) 10784 library_names_spec='$libname$shared_ext' 10785 dynamic_linker="$host_os ld.so" 10786 shlibpath_var=LIBRARY_PATH 10787 ;; 10788 10789bsdi[45]*) 10790 version_type=linux # correct to gnu/linux during the next big refactor 10791 need_version=no 10792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10793 soname_spec='$libname$release$shared_ext$major' 10794 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10795 shlibpath_var=LD_LIBRARY_PATH 10796 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10797 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10798 # the default ld.so.conf also contains /usr/contrib/lib and 10799 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10800 # libtool to hard-code these into programs 10801 ;; 10802 10803cygwin* | mingw* | pw32* | cegcc*) 10804 version_type=windows 10805 shrext_cmds=.dll 10806 need_version=no 10807 need_lib_prefix=no 10808 10809 case $GCC,$cc_basename in 10810 yes,*) 10811 # gcc 10812 library_names_spec='$libname.dll.a' 10813 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10814 postinstall_cmds='base_file=`basename \$file`~ 10815 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10816 dldir=$destdir/`dirname \$dlpath`~ 10817 test -d \$dldir || mkdir -p \$dldir~ 10818 $install_prog $dir/$dlname \$dldir/$dlname~ 10819 chmod a+x \$dldir/$dlname~ 10820 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10821 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10822 fi' 10823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10824 dlpath=$dir/\$dldll~ 10825 $RM \$dlpath' 10826 shlibpath_overrides_runpath=yes 10827 10828 case $host_os in 10829 cygwin*) 10830 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10831 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10832 10833 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10834 ;; 10835 mingw* | cegcc*) 10836 # MinGW DLLs use traditional 'lib' prefix 10837 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10838 ;; 10839 pw32*) 10840 # pw32 DLLs use 'pw' prefix rather than 'lib' 10841 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10842 ;; 10843 esac 10844 dynamic_linker='Win32 ld.exe' 10845 ;; 10846 10847 *,cl*) 10848 # Native MSVC 10849 libname_spec='$name' 10850 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10851 library_names_spec='$libname.dll.lib' 10852 10853 case $build_os in 10854 mingw*) 10855 sys_lib_search_path_spec= 10856 lt_save_ifs=$IFS 10857 IFS=';' 10858 for lt_path in $LIB 10859 do 10860 IFS=$lt_save_ifs 10861 # Let DOS variable expansion print the short 8.3 style file name. 10862 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10863 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10864 done 10865 IFS=$lt_save_ifs 10866 # Convert to MSYS style. 10867 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10868 ;; 10869 cygwin*) 10870 # Convert to unix form, then to dos form, then back to unix form 10871 # but this time dos style (no spaces!) so that the unix form looks 10872 # like /cygdrive/c/PROGRA~1:/cygdr... 10873 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10874 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10875 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10876 ;; 10877 *) 10878 sys_lib_search_path_spec=$LIB 10879 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10880 # It is most probably a Windows format PATH. 10881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10882 else 10883 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10884 fi 10885 # FIXME: find the short name or the path components, as spaces are 10886 # common. (e.g. "Program Files" -> "PROGRA~1") 10887 ;; 10888 esac 10889 10890 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10891 postinstall_cmds='base_file=`basename \$file`~ 10892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10893 dldir=$destdir/`dirname \$dlpath`~ 10894 test -d \$dldir || mkdir -p \$dldir~ 10895 $install_prog $dir/$dlname \$dldir/$dlname' 10896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10897 dlpath=$dir/\$dldll~ 10898 $RM \$dlpath' 10899 shlibpath_overrides_runpath=yes 10900 dynamic_linker='Win32 link.exe' 10901 ;; 10902 10903 *) 10904 # Assume MSVC wrapper 10905 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10906 dynamic_linker='Win32 ld.exe' 10907 ;; 10908 esac 10909 # FIXME: first we should search . and the directory the executable is in 10910 shlibpath_var=PATH 10911 ;; 10912 10913darwin* | rhapsody*) 10914 dynamic_linker="$host_os dyld" 10915 version_type=darwin 10916 need_lib_prefix=no 10917 need_version=no 10918 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10919 soname_spec='$libname$release$major$shared_ext' 10920 shlibpath_overrides_runpath=yes 10921 shlibpath_var=DYLD_LIBRARY_PATH 10922 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10923 10924 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10925 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10926 ;; 10927 10928dgux*) 10929 version_type=linux # correct to gnu/linux during the next big refactor 10930 need_lib_prefix=no 10931 need_version=no 10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10933 soname_spec='$libname$release$shared_ext$major' 10934 shlibpath_var=LD_LIBRARY_PATH 10935 ;; 10936 10937freebsd* | dragonfly*) 10938 # DragonFly does not have aout. When/if they implement a new 10939 # versioning mechanism, adjust this. 10940 if test -x /usr/bin/objformat; then 10941 objformat=`/usr/bin/objformat` 10942 else 10943 case $host_os in 10944 freebsd[23].*) objformat=aout ;; 10945 *) objformat=elf ;; 10946 esac 10947 fi 10948 version_type=freebsd-$objformat 10949 case $version_type in 10950 freebsd-elf*) 10951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10952 soname_spec='$libname$release$shared_ext$major' 10953 need_version=no 10954 need_lib_prefix=no 10955 ;; 10956 freebsd-*) 10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10958 need_version=yes 10959 ;; 10960 esac 10961 shlibpath_var=LD_LIBRARY_PATH 10962 case $host_os in 10963 freebsd2.*) 10964 shlibpath_overrides_runpath=yes 10965 ;; 10966 freebsd3.[01]* | freebsdelf3.[01]*) 10967 shlibpath_overrides_runpath=yes 10968 hardcode_into_libs=yes 10969 ;; 10970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10972 shlibpath_overrides_runpath=no 10973 hardcode_into_libs=yes 10974 ;; 10975 *) # from 4.6 on, and DragonFly 10976 shlibpath_overrides_runpath=yes 10977 hardcode_into_libs=yes 10978 ;; 10979 esac 10980 ;; 10981 10982haiku*) 10983 version_type=linux # correct to gnu/linux during the next big refactor 10984 need_lib_prefix=no 10985 need_version=no 10986 dynamic_linker="$host_os runtime_loader" 10987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10988 soname_spec='$libname$release$shared_ext$major' 10989 shlibpath_var=LIBRARY_PATH 10990 shlibpath_overrides_runpath=no 10991 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10992 hardcode_into_libs=yes 10993 ;; 10994 10995hpux9* | hpux10* | hpux11*) 10996 # Give a soname corresponding to the major version so that dld.sl refuses to 10997 # link against other versions. 10998 version_type=sunos 10999 need_lib_prefix=no 11000 need_version=no 11001 case $host_cpu in 11002 ia64*) 11003 shrext_cmds='.so' 11004 hardcode_into_libs=yes 11005 dynamic_linker="$host_os dld.so" 11006 shlibpath_var=LD_LIBRARY_PATH 11007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11009 soname_spec='$libname$release$shared_ext$major' 11010 if test 32 = "$HPUX_IA64_MODE"; then 11011 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11012 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11013 else 11014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11015 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11016 fi 11017 ;; 11018 hppa*64*) 11019 shrext_cmds='.sl' 11020 hardcode_into_libs=yes 11021 dynamic_linker="$host_os dld.sl" 11022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11025 soname_spec='$libname$release$shared_ext$major' 11026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11028 ;; 11029 *) 11030 shrext_cmds='.sl' 11031 dynamic_linker="$host_os dld.sl" 11032 shlibpath_var=SHLIB_PATH 11033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11035 soname_spec='$libname$release$shared_ext$major' 11036 ;; 11037 esac 11038 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11039 postinstall_cmds='chmod 555 $lib' 11040 # or fails outright, so override atomically: 11041 install_override_mode=555 11042 ;; 11043 11044interix[3-9]*) 11045 version_type=linux # correct to gnu/linux during the next big refactor 11046 need_lib_prefix=no 11047 need_version=no 11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11049 soname_spec='$libname$release$shared_ext$major' 11050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11051 shlibpath_var=LD_LIBRARY_PATH 11052 shlibpath_overrides_runpath=no 11053 hardcode_into_libs=yes 11054 ;; 11055 11056irix5* | irix6* | nonstopux*) 11057 case $host_os in 11058 nonstopux*) version_type=nonstopux ;; 11059 *) 11060 if test yes = "$lt_cv_prog_gnu_ld"; then 11061 version_type=linux # correct to gnu/linux during the next big refactor 11062 else 11063 version_type=irix 11064 fi ;; 11065 esac 11066 need_lib_prefix=no 11067 need_version=no 11068 soname_spec='$libname$release$shared_ext$major' 11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11070 case $host_os in 11071 irix5* | nonstopux*) 11072 libsuff= shlibsuff= 11073 ;; 11074 *) 11075 case $LD in # libtool.m4 will add one of these switches to LD 11076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11077 libsuff= shlibsuff= libmagic=32-bit;; 11078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11079 libsuff=32 shlibsuff=N32 libmagic=N32;; 11080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11081 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11082 *) libsuff= shlibsuff= libmagic=never-match;; 11083 esac 11084 ;; 11085 esac 11086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11087 shlibpath_overrides_runpath=no 11088 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11089 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11090 hardcode_into_libs=yes 11091 ;; 11092 11093# No shared lib support for Linux oldld, aout, or coff. 11094linux*oldld* | linux*aout* | linux*coff*) 11095 dynamic_linker=no 11096 ;; 11097 11098linux*android*) 11099 version_type=none # Android doesn't support versioned libraries. 11100 need_lib_prefix=no 11101 need_version=no 11102 library_names_spec='$libname$release$shared_ext' 11103 soname_spec='$libname$release$shared_ext' 11104 finish_cmds= 11105 shlibpath_var=LD_LIBRARY_PATH 11106 shlibpath_overrides_runpath=yes 11107 11108 # This implies no fast_install, which is unacceptable. 11109 # Some rework will be needed to allow for fast_install 11110 # before this can be enabled. 11111 hardcode_into_libs=yes 11112 11113 dynamic_linker='Android linker' 11114 # Don't embed -rpath directories since the linker doesn't support them. 11115 hardcode_libdir_flag_spec='-L$libdir' 11116 ;; 11117 11118# This must be glibc/ELF. 11119linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11120 version_type=linux # correct to gnu/linux during the next big refactor 11121 need_lib_prefix=no 11122 need_version=no 11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11124 soname_spec='$libname$release$shared_ext$major' 11125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11126 shlibpath_var=LD_LIBRARY_PATH 11127 shlibpath_overrides_runpath=no 11128 11129 # Some binutils ld are patched to set DT_RUNPATH 11130 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 lt_cv_shlibpath_overrides_runpath=no 11134 save_LDFLAGS=$LDFLAGS 11135 save_libdir=$libdir 11136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11139/* end confdefs.h. */ 11140 11141int 11142main () 11143{ 11144 11145 ; 11146 return 0; 11147} 11148_ACEOF 11149if ac_fn_c_try_link "$LINENO"; then : 11150 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11151 lt_cv_shlibpath_overrides_runpath=yes 11152fi 11153fi 11154rm -f core conftest.err conftest.$ac_objext \ 11155 conftest$ac_exeext conftest.$ac_ext 11156 LDFLAGS=$save_LDFLAGS 11157 libdir=$save_libdir 11158 11159fi 11160 11161 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11162 11163 # This implies no fast_install, which is unacceptable. 11164 # Some rework will be needed to allow for fast_install 11165 # before this can be enabled. 11166 hardcode_into_libs=yes 11167 11168 # Ideally, we could use ldconfig to report *all* directores which are 11169 # searched for libraries, however this is still not possible. Aside from not 11170 # being certain /sbin/ldconfig is available, command 11171 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11172 # even though it is searched at run-time. Try to do the best guess by 11173 # appending ld.so.conf contents (and includes) to the search path. 11174 if test -f /etc/ld.so.conf; then 11175 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' ' '` 11176 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11177 fi 11178 11179 # We used to test for /lib/ld.so.1 and disable shared libraries on 11180 # powerpc, because MkLinux only supported shared libraries with the 11181 # GNU dynamic linker. Since this was broken with cross compilers, 11182 # most powerpc-linux boxes support dynamic linking these days and 11183 # people can always --disable-shared, the test was removed, and we 11184 # assume the GNU/Linux dynamic linker is in use. 11185 dynamic_linker='GNU/Linux ld.so' 11186 ;; 11187 11188netbsd*) 11189 version_type=sunos 11190 need_lib_prefix=no 11191 need_version=no 11192 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11195 dynamic_linker='NetBSD (a.out) ld.so' 11196 else 11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11198 soname_spec='$libname$release$shared_ext$major' 11199 dynamic_linker='NetBSD ld.elf_so' 11200 fi 11201 shlibpath_var=LD_LIBRARY_PATH 11202 shlibpath_overrides_runpath=yes 11203 hardcode_into_libs=yes 11204 ;; 11205 11206newsos6) 11207 version_type=linux # correct to gnu/linux during the next big refactor 11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11209 shlibpath_var=LD_LIBRARY_PATH 11210 shlibpath_overrides_runpath=yes 11211 ;; 11212 11213*nto* | *qnx*) 11214 version_type=qnx 11215 need_lib_prefix=no 11216 need_version=no 11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11218 soname_spec='$libname$release$shared_ext$major' 11219 shlibpath_var=LD_LIBRARY_PATH 11220 shlibpath_overrides_runpath=no 11221 hardcode_into_libs=yes 11222 dynamic_linker='ldqnx.so' 11223 ;; 11224 11225openbsd* | bitrig*) 11226 version_type=sunos 11227 sys_lib_dlsearch_path_spec=/usr/lib 11228 need_lib_prefix=no 11229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11230 need_version=no 11231 else 11232 need_version=yes 11233 fi 11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11236 shlibpath_var=LD_LIBRARY_PATH 11237 shlibpath_overrides_runpath=yes 11238 ;; 11239 11240os2*) 11241 libname_spec='$name' 11242 version_type=windows 11243 shrext_cmds=.dll 11244 need_version=no 11245 need_lib_prefix=no 11246 # OS/2 can only load a DLL with a base name of 8 characters or less. 11247 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11248 v=$($ECHO $release$versuffix | tr -d .-); 11249 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11250 $ECHO $n$v`$shared_ext' 11251 library_names_spec='${libname}_dll.$libext' 11252 dynamic_linker='OS/2 ld.exe' 11253 shlibpath_var=BEGINLIBPATH 11254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11256 postinstall_cmds='base_file=`basename \$file`~ 11257 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11258 dldir=$destdir/`dirname \$dlpath`~ 11259 test -d \$dldir || mkdir -p \$dldir~ 11260 $install_prog $dir/$dlname \$dldir/$dlname~ 11261 chmod a+x \$dldir/$dlname~ 11262 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11263 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11264 fi' 11265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11266 dlpath=$dir/\$dldll~ 11267 $RM \$dlpath' 11268 ;; 11269 11270osf3* | osf4* | osf5*) 11271 version_type=osf 11272 need_lib_prefix=no 11273 need_version=no 11274 soname_spec='$libname$release$shared_ext$major' 11275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11276 shlibpath_var=LD_LIBRARY_PATH 11277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11279 ;; 11280 11281rdos*) 11282 dynamic_linker=no 11283 ;; 11284 11285solaris*) 11286 version_type=linux # correct to gnu/linux during the next big refactor 11287 need_lib_prefix=no 11288 need_version=no 11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11290 soname_spec='$libname$release$shared_ext$major' 11291 shlibpath_var=LD_LIBRARY_PATH 11292 shlibpath_overrides_runpath=yes 11293 hardcode_into_libs=yes 11294 # ldd complains unless libraries are executable 11295 postinstall_cmds='chmod +x $lib' 11296 ;; 11297 11298sunos4*) 11299 version_type=sunos 11300 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11302 shlibpath_var=LD_LIBRARY_PATH 11303 shlibpath_overrides_runpath=yes 11304 if test yes = "$with_gnu_ld"; then 11305 need_lib_prefix=no 11306 fi 11307 need_version=yes 11308 ;; 11309 11310sysv4 | sysv4.3*) 11311 version_type=linux # correct to gnu/linux during the next big refactor 11312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11313 soname_spec='$libname$release$shared_ext$major' 11314 shlibpath_var=LD_LIBRARY_PATH 11315 case $host_vendor in 11316 sni) 11317 shlibpath_overrides_runpath=no 11318 need_lib_prefix=no 11319 runpath_var=LD_RUN_PATH 11320 ;; 11321 siemens) 11322 need_lib_prefix=no 11323 ;; 11324 motorola) 11325 need_lib_prefix=no 11326 need_version=no 11327 shlibpath_overrides_runpath=no 11328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11329 ;; 11330 esac 11331 ;; 11332 11333sysv4*MP*) 11334 if test -d /usr/nec; then 11335 version_type=linux # correct to gnu/linux during the next big refactor 11336 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11337 soname_spec='$libname$shared_ext.$major' 11338 shlibpath_var=LD_LIBRARY_PATH 11339 fi 11340 ;; 11341 11342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11343 version_type=sco 11344 need_lib_prefix=no 11345 need_version=no 11346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11347 soname_spec='$libname$release$shared_ext$major' 11348 shlibpath_var=LD_LIBRARY_PATH 11349 shlibpath_overrides_runpath=yes 11350 hardcode_into_libs=yes 11351 if test yes = "$with_gnu_ld"; then 11352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11353 else 11354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11355 case $host_os in 11356 sco3.2v5*) 11357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11358 ;; 11359 esac 11360 fi 11361 sys_lib_dlsearch_path_spec='/usr/lib' 11362 ;; 11363 11364tpf*) 11365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11366 version_type=linux # correct to gnu/linux during the next big refactor 11367 need_lib_prefix=no 11368 need_version=no 11369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11370 shlibpath_var=LD_LIBRARY_PATH 11371 shlibpath_overrides_runpath=no 11372 hardcode_into_libs=yes 11373 ;; 11374 11375uts4*) 11376 version_type=linux # correct to gnu/linux during the next big refactor 11377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11378 soname_spec='$libname$release$shared_ext$major' 11379 shlibpath_var=LD_LIBRARY_PATH 11380 ;; 11381 11382*) 11383 dynamic_linker=no 11384 ;; 11385esac 11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11387$as_echo "$dynamic_linker" >&6; } 11388test no = "$dynamic_linker" && can_build_shared=no 11389 11390variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11391if test yes = "$GCC"; then 11392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11393fi 11394 11395if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11396 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11397fi 11398 11399if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11400 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11401fi 11402 11403# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11404configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11405 11406# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11407func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11408 11409# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11410configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11509$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11510hardcode_action= 11511if test -n "$hardcode_libdir_flag_spec" || 11512 test -n "$runpath_var" || 11513 test yes = "$hardcode_automatic"; then 11514 11515 # We can hardcode non-existent directories. 11516 if test no != "$hardcode_direct" && 11517 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11518 # have to relink, otherwise we might link with an installed library 11519 # when we should be linking with a yet-to-be-installed one 11520 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11521 test no != "$hardcode_minus_L"; then 11522 # Linking always hardcodes the temporary library directory. 11523 hardcode_action=relink 11524 else 11525 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11526 hardcode_action=immediate 11527 fi 11528else 11529 # We cannot hardcode anything, or else we can only hardcode existing 11530 # directories. 11531 hardcode_action=unsupported 11532fi 11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11534$as_echo "$hardcode_action" >&6; } 11535 11536if test relink = "$hardcode_action" || 11537 test yes = "$inherit_rpath"; then 11538 # Fast installation is not supported 11539 enable_fast_install=no 11540elif test yes = "$shlibpath_overrides_runpath" || 11541 test no = "$enable_shared"; then 11542 # Fast installation is not necessary 11543 enable_fast_install=needless 11544fi 11545 11546 11547 11548 11549 11550 11551 if test yes != "$enable_dlopen"; then 11552 enable_dlopen=unknown 11553 enable_dlopen_self=unknown 11554 enable_dlopen_self_static=unknown 11555else 11556 lt_cv_dlopen=no 11557 lt_cv_dlopen_libs= 11558 11559 case $host_os in 11560 beos*) 11561 lt_cv_dlopen=load_add_on 11562 lt_cv_dlopen_libs= 11563 lt_cv_dlopen_self=yes 11564 ;; 11565 11566 mingw* | pw32* | cegcc*) 11567 lt_cv_dlopen=LoadLibrary 11568 lt_cv_dlopen_libs= 11569 ;; 11570 11571 cygwin*) 11572 lt_cv_dlopen=dlopen 11573 lt_cv_dlopen_libs= 11574 ;; 11575 11576 darwin*) 11577 # if libdl is installed we need to link against it 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11579$as_echo_n "checking for dlopen in -ldl... " >&6; } 11580if ${ac_cv_lib_dl_dlopen+:} false; then : 11581 $as_echo_n "(cached) " >&6 11582else 11583 ac_check_lib_save_LIBS=$LIBS 11584LIBS="-ldl $LIBS" 11585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11586/* end confdefs.h. */ 11587 11588/* Override any GCC internal prototype to avoid an error. 11589 Use char because int might match the return type of a GCC 11590 builtin and then its argument prototype would still apply. */ 11591#ifdef __cplusplus 11592extern "C" 11593#endif 11594char dlopen (); 11595int 11596main () 11597{ 11598return dlopen (); 11599 ; 11600 return 0; 11601} 11602_ACEOF 11603if ac_fn_c_try_link "$LINENO"; then : 11604 ac_cv_lib_dl_dlopen=yes 11605else 11606 ac_cv_lib_dl_dlopen=no 11607fi 11608rm -f core conftest.err conftest.$ac_objext \ 11609 conftest$ac_exeext conftest.$ac_ext 11610LIBS=$ac_check_lib_save_LIBS 11611fi 11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11613$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11614if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11615 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11616else 11617 11618 lt_cv_dlopen=dyld 11619 lt_cv_dlopen_libs= 11620 lt_cv_dlopen_self=yes 11621 11622fi 11623 11624 ;; 11625 11626 tpf*) 11627 # Don't try to run any link tests for TPF. We know it's impossible 11628 # because TPF is a cross-compiler, and we know how we open DSOs. 11629 lt_cv_dlopen=dlopen 11630 lt_cv_dlopen_libs= 11631 lt_cv_dlopen_self=no 11632 ;; 11633 11634 *) 11635 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11636if test "x$ac_cv_func_shl_load" = xyes; then : 11637 lt_cv_dlopen=shl_load 11638else 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11640$as_echo_n "checking for shl_load in -ldld... " >&6; } 11641if ${ac_cv_lib_dld_shl_load+:} false; then : 11642 $as_echo_n "(cached) " >&6 11643else 11644 ac_check_lib_save_LIBS=$LIBS 11645LIBS="-ldld $LIBS" 11646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11647/* end confdefs.h. */ 11648 11649/* Override any GCC internal prototype to avoid an error. 11650 Use char because int might match the return type of a GCC 11651 builtin and then its argument prototype would still apply. */ 11652#ifdef __cplusplus 11653extern "C" 11654#endif 11655char shl_load (); 11656int 11657main () 11658{ 11659return shl_load (); 11660 ; 11661 return 0; 11662} 11663_ACEOF 11664if ac_fn_c_try_link "$LINENO"; then : 11665 ac_cv_lib_dld_shl_load=yes 11666else 11667 ac_cv_lib_dld_shl_load=no 11668fi 11669rm -f core conftest.err conftest.$ac_objext \ 11670 conftest$ac_exeext conftest.$ac_ext 11671LIBS=$ac_check_lib_save_LIBS 11672fi 11673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11674$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11675if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11676 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11677else 11678 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11679if test "x$ac_cv_func_dlopen" = xyes; then : 11680 lt_cv_dlopen=dlopen 11681else 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11683$as_echo_n "checking for dlopen in -ldl... " >&6; } 11684if ${ac_cv_lib_dl_dlopen+:} false; then : 11685 $as_echo_n "(cached) " >&6 11686else 11687 ac_check_lib_save_LIBS=$LIBS 11688LIBS="-ldl $LIBS" 11689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11690/* end confdefs.h. */ 11691 11692/* Override any GCC internal prototype to avoid an error. 11693 Use char because int might match the return type of a GCC 11694 builtin and then its argument prototype would still apply. */ 11695#ifdef __cplusplus 11696extern "C" 11697#endif 11698char dlopen (); 11699int 11700main () 11701{ 11702return dlopen (); 11703 ; 11704 return 0; 11705} 11706_ACEOF 11707if ac_fn_c_try_link "$LINENO"; then : 11708 ac_cv_lib_dl_dlopen=yes 11709else 11710 ac_cv_lib_dl_dlopen=no 11711fi 11712rm -f core conftest.err conftest.$ac_objext \ 11713 conftest$ac_exeext conftest.$ac_ext 11714LIBS=$ac_check_lib_save_LIBS 11715fi 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11717$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11718if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11719 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11720else 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11722$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11723if ${ac_cv_lib_svld_dlopen+:} false; then : 11724 $as_echo_n "(cached) " >&6 11725else 11726 ac_check_lib_save_LIBS=$LIBS 11727LIBS="-lsvld $LIBS" 11728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11729/* end confdefs.h. */ 11730 11731/* Override any GCC internal prototype to avoid an error. 11732 Use char because int might match the return type of a GCC 11733 builtin and then its argument prototype would still apply. */ 11734#ifdef __cplusplus 11735extern "C" 11736#endif 11737char dlopen (); 11738int 11739main () 11740{ 11741return dlopen (); 11742 ; 11743 return 0; 11744} 11745_ACEOF 11746if ac_fn_c_try_link "$LINENO"; then : 11747 ac_cv_lib_svld_dlopen=yes 11748else 11749 ac_cv_lib_svld_dlopen=no 11750fi 11751rm -f core conftest.err conftest.$ac_objext \ 11752 conftest$ac_exeext conftest.$ac_ext 11753LIBS=$ac_check_lib_save_LIBS 11754fi 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11756$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11757if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11758 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11759else 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11761$as_echo_n "checking for dld_link in -ldld... " >&6; } 11762if ${ac_cv_lib_dld_dld_link+:} false; then : 11763 $as_echo_n "(cached) " >&6 11764else 11765 ac_check_lib_save_LIBS=$LIBS 11766LIBS="-ldld $LIBS" 11767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11768/* end confdefs.h. */ 11769 11770/* Override any GCC internal prototype to avoid an error. 11771 Use char because int might match the return type of a GCC 11772 builtin and then its argument prototype would still apply. */ 11773#ifdef __cplusplus 11774extern "C" 11775#endif 11776char dld_link (); 11777int 11778main () 11779{ 11780return dld_link (); 11781 ; 11782 return 0; 11783} 11784_ACEOF 11785if ac_fn_c_try_link "$LINENO"; then : 11786 ac_cv_lib_dld_dld_link=yes 11787else 11788 ac_cv_lib_dld_dld_link=no 11789fi 11790rm -f core conftest.err conftest.$ac_objext \ 11791 conftest$ac_exeext conftest.$ac_ext 11792LIBS=$ac_check_lib_save_LIBS 11793fi 11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11795$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11796if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11797 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11798fi 11799 11800 11801fi 11802 11803 11804fi 11805 11806 11807fi 11808 11809 11810fi 11811 11812 11813fi 11814 11815 ;; 11816 esac 11817 11818 if test no = "$lt_cv_dlopen"; then 11819 enable_dlopen=no 11820 else 11821 enable_dlopen=yes 11822 fi 11823 11824 case $lt_cv_dlopen in 11825 dlopen) 11826 save_CPPFLAGS=$CPPFLAGS 11827 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11828 11829 save_LDFLAGS=$LDFLAGS 11830 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11831 11832 save_LIBS=$LIBS 11833 LIBS="$lt_cv_dlopen_libs $LIBS" 11834 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11836$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11837if ${lt_cv_dlopen_self+:} false; then : 11838 $as_echo_n "(cached) " >&6 11839else 11840 if test yes = "$cross_compiling"; then : 11841 lt_cv_dlopen_self=cross 11842else 11843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11844 lt_status=$lt_dlunknown 11845 cat > conftest.$ac_ext <<_LT_EOF 11846#line $LINENO "configure" 11847#include "confdefs.h" 11848 11849#if HAVE_DLFCN_H 11850#include <dlfcn.h> 11851#endif 11852 11853#include <stdio.h> 11854 11855#ifdef RTLD_GLOBAL 11856# define LT_DLGLOBAL RTLD_GLOBAL 11857#else 11858# ifdef DL_GLOBAL 11859# define LT_DLGLOBAL DL_GLOBAL 11860# else 11861# define LT_DLGLOBAL 0 11862# endif 11863#endif 11864 11865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11866 find out it does not work in some platform. */ 11867#ifndef LT_DLLAZY_OR_NOW 11868# ifdef RTLD_LAZY 11869# define LT_DLLAZY_OR_NOW RTLD_LAZY 11870# else 11871# ifdef DL_LAZY 11872# define LT_DLLAZY_OR_NOW DL_LAZY 11873# else 11874# ifdef RTLD_NOW 11875# define LT_DLLAZY_OR_NOW RTLD_NOW 11876# else 11877# ifdef DL_NOW 11878# define LT_DLLAZY_OR_NOW DL_NOW 11879# else 11880# define LT_DLLAZY_OR_NOW 0 11881# endif 11882# endif 11883# endif 11884# endif 11885#endif 11886 11887/* When -fvisibility=hidden is used, assume the code has been annotated 11888 correspondingly for the symbols needed. */ 11889#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11890int fnord () __attribute__((visibility("default"))); 11891#endif 11892 11893int fnord () { return 42; } 11894int main () 11895{ 11896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11897 int status = $lt_dlunknown; 11898 11899 if (self) 11900 { 11901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11902 else 11903 { 11904 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11905 else puts (dlerror ()); 11906 } 11907 /* dlclose (self); */ 11908 } 11909 else 11910 puts (dlerror ()); 11911 11912 return status; 11913} 11914_LT_EOF 11915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11916 (eval $ac_link) 2>&5 11917 ac_status=$? 11918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11919 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11920 (./conftest; exit; ) >&5 2>/dev/null 11921 lt_status=$? 11922 case x$lt_status in 11923 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11924 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11925 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11926 esac 11927 else : 11928 # compilation failed 11929 lt_cv_dlopen_self=no 11930 fi 11931fi 11932rm -fr conftest* 11933 11934 11935fi 11936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11937$as_echo "$lt_cv_dlopen_self" >&6; } 11938 11939 if test yes = "$lt_cv_dlopen_self"; then 11940 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11942$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11943if ${lt_cv_dlopen_self_static+:} false; then : 11944 $as_echo_n "(cached) " >&6 11945else 11946 if test yes = "$cross_compiling"; then : 11947 lt_cv_dlopen_self_static=cross 11948else 11949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11950 lt_status=$lt_dlunknown 11951 cat > conftest.$ac_ext <<_LT_EOF 11952#line $LINENO "configure" 11953#include "confdefs.h" 11954 11955#if HAVE_DLFCN_H 11956#include <dlfcn.h> 11957#endif 11958 11959#include <stdio.h> 11960 11961#ifdef RTLD_GLOBAL 11962# define LT_DLGLOBAL RTLD_GLOBAL 11963#else 11964# ifdef DL_GLOBAL 11965# define LT_DLGLOBAL DL_GLOBAL 11966# else 11967# define LT_DLGLOBAL 0 11968# endif 11969#endif 11970 11971/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11972 find out it does not work in some platform. */ 11973#ifndef LT_DLLAZY_OR_NOW 11974# ifdef RTLD_LAZY 11975# define LT_DLLAZY_OR_NOW RTLD_LAZY 11976# else 11977# ifdef DL_LAZY 11978# define LT_DLLAZY_OR_NOW DL_LAZY 11979# else 11980# ifdef RTLD_NOW 11981# define LT_DLLAZY_OR_NOW RTLD_NOW 11982# else 11983# ifdef DL_NOW 11984# define LT_DLLAZY_OR_NOW DL_NOW 11985# else 11986# define LT_DLLAZY_OR_NOW 0 11987# endif 11988# endif 11989# endif 11990# endif 11991#endif 11992 11993/* When -fvisibility=hidden is used, assume the code has been annotated 11994 correspondingly for the symbols needed. */ 11995#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11996int fnord () __attribute__((visibility("default"))); 11997#endif 11998 11999int fnord () { return 42; } 12000int main () 12001{ 12002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12003 int status = $lt_dlunknown; 12004 12005 if (self) 12006 { 12007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12008 else 12009 { 12010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12011 else puts (dlerror ()); 12012 } 12013 /* dlclose (self); */ 12014 } 12015 else 12016 puts (dlerror ()); 12017 12018 return status; 12019} 12020_LT_EOF 12021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12022 (eval $ac_link) 2>&5 12023 ac_status=$? 12024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12025 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12026 (./conftest; exit; ) >&5 2>/dev/null 12027 lt_status=$? 12028 case x$lt_status in 12029 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12030 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12031 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12032 esac 12033 else : 12034 # compilation failed 12035 lt_cv_dlopen_self_static=no 12036 fi 12037fi 12038rm -fr conftest* 12039 12040 12041fi 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12043$as_echo "$lt_cv_dlopen_self_static" >&6; } 12044 fi 12045 12046 CPPFLAGS=$save_CPPFLAGS 12047 LDFLAGS=$save_LDFLAGS 12048 LIBS=$save_LIBS 12049 ;; 12050 esac 12051 12052 case $lt_cv_dlopen_self in 12053 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12054 *) enable_dlopen_self=unknown ;; 12055 esac 12056 12057 case $lt_cv_dlopen_self_static in 12058 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12059 *) enable_dlopen_self_static=unknown ;; 12060 esac 12061fi 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079striplib= 12080old_striplib= 12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12082$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12083if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12084 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12085 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12087$as_echo "yes" >&6; } 12088else 12089# FIXME - insert some real tests, host_os isn't really good enough 12090 case $host_os in 12091 darwin*) 12092 if test -n "$STRIP"; then 12093 striplib="$STRIP -x" 12094 old_striplib="$STRIP -S" 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12096$as_echo "yes" >&6; } 12097 else 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12099$as_echo "no" >&6; } 12100 fi 12101 ;; 12102 *) 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12104$as_echo "no" >&6; } 12105 ;; 12106 esac 12107fi 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 # Report what library types will actually be built 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12122$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12124$as_echo "$can_build_shared" >&6; } 12125 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12127$as_echo_n "checking whether to build shared libraries... " >&6; } 12128 test no = "$can_build_shared" && enable_shared=no 12129 12130 # On AIX, shared libraries and static libraries use the same namespace, and 12131 # are all built from PIC. 12132 case $host_os in 12133 aix3*) 12134 test yes = "$enable_shared" && enable_static=no 12135 if test -n "$RANLIB"; then 12136 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12137 postinstall_cmds='$RANLIB $lib' 12138 fi 12139 ;; 12140 12141 aix[4-9]*) 12142 if test ia64 != "$host_cpu"; then 12143 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12144 yes,aix,yes) ;; # shared object as lib.so file only 12145 yes,svr4,*) ;; # shared object as lib.so archive member only 12146 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12147 esac 12148 fi 12149 ;; 12150 esac 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12152$as_echo "$enable_shared" >&6; } 12153 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12155$as_echo_n "checking whether to build static libraries... " >&6; } 12156 # Make sure either enable_shared or enable_static is yes. 12157 test yes = "$enable_shared" || enable_static=yes 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12159$as_echo "$enable_static" >&6; } 12160 12161 12162 12163 12164fi 12165ac_ext=c 12166ac_cpp='$CPP $CPPFLAGS' 12167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12169ac_compiler_gnu=$ac_cv_c_compiler_gnu 12170 12171CC=$lt_save_CC 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 ac_config_commands="$ac_config_commands libtool" 12188 12189 12190 12191 12192# Only expand once: 12193 12194 12195# Extract the first word of "ar", so it can be a program name with args. 12196set dummy ar; ac_word=$2 12197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12198$as_echo_n "checking for $ac_word... " >&6; } 12199if ${ac_cv_path_AR+:} false; then : 12200 $as_echo_n "(cached) " >&6 12201else 12202 case $AR in 12203 [\\/]* | ?:[\\/]*) 12204 ac_cv_path_AR="$AR" # Let the user override the test with a path. 12205 ;; 12206 *) 12207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12208for as_dir in $PATH 12209do 12210 IFS=$as_save_IFS 12211 test -z "$as_dir" && as_dir=. 12212 for ac_exec_ext in '' $ac_executable_extensions; do 12213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12214 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 12215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12216 break 2 12217 fi 12218done 12219 done 12220IFS=$as_save_IFS 12221 12222 ;; 12223esac 12224fi 12225AR=$ac_cv_path_AR 12226if test -n "$AR"; then 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12228$as_echo "$AR" >&6; } 12229else 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12231$as_echo "no" >&6; } 12232fi 12233 12234 12235# Extract the first word of "cat", so it can be a program name with args. 12236set dummy cat; ac_word=$2 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12238$as_echo_n "checking for $ac_word... " >&6; } 12239if ${ac_cv_path_CAT+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 case $CAT in 12243 [\\/]* | ?:[\\/]*) 12244 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 12245 ;; 12246 *) 12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12248for as_dir in $PATH 12249do 12250 IFS=$as_save_IFS 12251 test -z "$as_dir" && as_dir=. 12252 for ac_exec_ext in '' $ac_executable_extensions; do 12253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12254 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 12255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12256 break 2 12257 fi 12258done 12259 done 12260IFS=$as_save_IFS 12261 12262 ;; 12263esac 12264fi 12265CAT=$ac_cv_path_CAT 12266if test -n "$CAT"; then 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 12268$as_echo "$CAT" >&6; } 12269else 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12271$as_echo "no" >&6; } 12272fi 12273 12274 12275# Extract the first word of "sed", so it can be a program name with args. 12276set dummy sed; ac_word=$2 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12278$as_echo_n "checking for $ac_word... " >&6; } 12279if ${ac_cv_path_SED+:} false; then : 12280 $as_echo_n "(cached) " >&6 12281else 12282 case $SED in 12283 [\\/]* | ?:[\\/]*) 12284 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12285 ;; 12286 *) 12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12288for as_dir in $PATH 12289do 12290 IFS=$as_save_IFS 12291 test -z "$as_dir" && as_dir=. 12292 for ac_exec_ext in '' $ac_executable_extensions; do 12293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12294 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12296 break 2 12297 fi 12298done 12299 done 12300IFS=$as_save_IFS 12301 12302 ;; 12303esac 12304fi 12305SED=$ac_cv_path_SED 12306if test -n "$SED"; then 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12308$as_echo "$SED" >&6; } 12309else 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12311$as_echo "no" >&6; } 12312fi 12313 12314 12315# Extract the first word of "bash", so it can be a program name with args. 12316set dummy bash; ac_word=$2 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12318$as_echo_n "checking for $ac_word... " >&6; } 12319if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 12320 $as_echo_n "(cached) " >&6 12321else 12322 case $TEST_MINUS_S_SH in 12323 [\\/]* | ?:[\\/]*) 12324 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 12325 ;; 12326 *) 12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12328for as_dir in $PATH 12329do 12330 IFS=$as_save_IFS 12331 test -z "$as_dir" && as_dir=. 12332 for ac_exec_ext in '' $ac_executable_extensions; do 12333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12334 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12336 break 2 12337 fi 12338done 12339 done 12340IFS=$as_save_IFS 12341 12342 ;; 12343esac 12344fi 12345TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 12346if test -n "$TEST_MINUS_S_SH"; then 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 12348$as_echo "$TEST_MINUS_S_SH" >&6; } 12349else 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12351$as_echo "no" >&6; } 12352fi 12353 12354 12355# Extract the first word of "ksh", so it can be a program name with args. 12356set dummy ksh; ac_word=$2 12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12358$as_echo_n "checking for $ac_word... " >&6; } 12359if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 12360 $as_echo_n "(cached) " >&6 12361else 12362 case $TEST_MINUS_S_SH in 12363 [\\/]* | ?:[\\/]*) 12364 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 12365 ;; 12366 *) 12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12368for as_dir in $PATH 12369do 12370 IFS=$as_save_IFS 12371 test -z "$as_dir" && as_dir=. 12372 for ac_exec_ext in '' $ac_executable_extensions; do 12373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12374 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12376 break 2 12377 fi 12378done 12379 done 12380IFS=$as_save_IFS 12381 12382 ;; 12383esac 12384fi 12385TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 12386if test -n "$TEST_MINUS_S_SH"; then 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 12388$as_echo "$TEST_MINUS_S_SH" >&6; } 12389else 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12391$as_echo "no" >&6; } 12392fi 12393 12394 12395# Extract the first word of "sh", so it can be a program name with args. 12396set dummy sh; ac_word=$2 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12398$as_echo_n "checking for $ac_word... " >&6; } 12399if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 12400 $as_echo_n "(cached) " >&6 12401else 12402 case $TEST_MINUS_S_SH in 12403 [\\/]* | ?:[\\/]*) 12404 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 12405 ;; 12406 *) 12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12408for as_dir in $PATH 12409do 12410 IFS=$as_save_IFS 12411 test -z "$as_dir" && as_dir=. 12412 for ac_exec_ext in '' $ac_executable_extensions; do 12413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12414 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 12415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12416 break 2 12417 fi 12418done 12419 done 12420IFS=$as_save_IFS 12421 12422 ;; 12423esac 12424fi 12425TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 12426if test -n "$TEST_MINUS_S_SH"; then 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 12428$as_echo "$TEST_MINUS_S_SH" >&6; } 12429else 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12431$as_echo "no" >&6; } 12432fi 12433 12434 12435# Extract the first word of "sh", so it can be a program name with args. 12436set dummy sh; ac_word=$2 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12438$as_echo_n "checking for $ac_word... " >&6; } 12439if ${ac_cv_path_SH+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 case $SH in 12443 [\\/]* | ?:[\\/]*) 12444 ac_cv_path_SH="$SH" # Let the user override the test with a path. 12445 ;; 12446 *) 12447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12448for as_dir in $PATH 12449do 12450 IFS=$as_save_IFS 12451 test -z "$as_dir" && as_dir=. 12452 for ac_exec_ext in '' $ac_executable_extensions; do 12453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12454 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 12455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12456 break 2 12457 fi 12458done 12459 done 12460IFS=$as_save_IFS 12461 12462 ;; 12463esac 12464fi 12465SH=$ac_cv_path_SH 12466if test -n "$SH"; then 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 12468$as_echo "$SH" >&6; } 12469else 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12471$as_echo "no" >&6; } 12472fi 12473 12474 12475# Extract the first word of "groff", so it can be a program name with args. 12476set dummy groff; ac_word=$2 12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12478$as_echo_n "checking for $ac_word... " >&6; } 12479if ${ac_cv_path_GROFF+:} false; then : 12480 $as_echo_n "(cached) " >&6 12481else 12482 case $GROFF in 12483 [\\/]* | ?:[\\/]*) 12484 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 12485 ;; 12486 *) 12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12488for as_dir in $PATH 12489do 12490 IFS=$as_save_IFS 12491 test -z "$as_dir" && as_dir=. 12492 for ac_exec_ext in '' $ac_executable_extensions; do 12493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12494 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 12495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12496 break 2 12497 fi 12498done 12499 done 12500IFS=$as_save_IFS 12501 12502 ;; 12503esac 12504fi 12505GROFF=$ac_cv_path_GROFF 12506if test -n "$GROFF"; then 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 12508$as_echo "$GROFF" >&6; } 12509else 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12511$as_echo "no" >&6; } 12512fi 12513 12514 12515# Extract the first word of "nroff", so it can be a program name with args. 12516set dummy nroff; ac_word=$2 12517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12518$as_echo_n "checking for $ac_word... " >&6; } 12519if ${ac_cv_path_NROFF+:} false; then : 12520 $as_echo_n "(cached) " >&6 12521else 12522 case $NROFF in 12523 [\\/]* | ?:[\\/]*) 12524 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 12525 ;; 12526 *) 12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12528for as_dir in $PATH 12529do 12530 IFS=$as_save_IFS 12531 test -z "$as_dir" && as_dir=. 12532 for ac_exec_ext in '' $ac_executable_extensions; do 12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12534 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12536 break 2 12537 fi 12538done 12539 done 12540IFS=$as_save_IFS 12541 12542 ;; 12543esac 12544fi 12545NROFF=$ac_cv_path_NROFF 12546if test -n "$NROFF"; then 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 12548$as_echo "$NROFF" >&6; } 12549else 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12551$as_echo "no" >&6; } 12552fi 12553 12554 12555# Extract the first word of "mandoc", so it can be a program name with args. 12556set dummy mandoc; ac_word=$2 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12558$as_echo_n "checking for $ac_word... " >&6; } 12559if ${ac_cv_path_MANDOC+:} false; then : 12560 $as_echo_n "(cached) " >&6 12561else 12562 case $MANDOC in 12563 [\\/]* | ?:[\\/]*) 12564 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. 12565 ;; 12566 *) 12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12568for as_dir in $PATH 12569do 12570 IFS=$as_save_IFS 12571 test -z "$as_dir" && as_dir=. 12572 for ac_exec_ext in '' $ac_executable_extensions; do 12573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12574 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" 12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12576 break 2 12577 fi 12578done 12579 done 12580IFS=$as_save_IFS 12581 12582 ;; 12583esac 12584fi 12585MANDOC=$ac_cv_path_MANDOC 12586if test -n "$MANDOC"; then 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 12588$as_echo "$MANDOC" >&6; } 12589else 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12591$as_echo "no" >&6; } 12592fi 12593 12594 12595 12596am__api_version='1.16' 12597 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 12599$as_echo_n "checking whether build environment is sane... " >&6; } 12600# Reject unsafe characters in $srcdir or the absolute working directory 12601# name. Accept space and tab only in the latter. 12602am_lf=' 12603' 12604case `pwd` in 12605 *[\\\"\#\$\&\'\`$am_lf]*) 12606 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 12607esac 12608case $srcdir in 12609 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 12610 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 12611esac 12612 12613# Do 'set' in a subshell so we don't clobber the current shell's 12614# arguments. Must try -L first in case configure is actually a 12615# symlink; some systems play weird games with the mod time of symlinks 12616# (eg FreeBSD returns the mod time of the symlink's containing 12617# directory). 12618if ( 12619 am_has_slept=no 12620 for am_try in 1 2; do 12621 echo "timestamp, slept: $am_has_slept" > conftest.file 12622 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 12623 if test "$*" = "X"; then 12624 # -L didn't work. 12625 set X `ls -t "$srcdir/configure" conftest.file` 12626 fi 12627 if test "$*" != "X $srcdir/configure conftest.file" \ 12628 && test "$*" != "X conftest.file $srcdir/configure"; then 12629 12630 # If neither matched, then we have a broken ls. This can happen 12631 # if, for instance, CONFIG_SHELL is bash and it inherits a 12632 # broken ls alias from the environment. This has actually 12633 # happened. Such a system could not be considered "sane". 12634 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 12635 alias in your environment" "$LINENO" 5 12636 fi 12637 if test "$2" = conftest.file || test $am_try -eq 2; then 12638 break 12639 fi 12640 # Just in case. 12641 sleep 1 12642 am_has_slept=yes 12643 done 12644 test "$2" = conftest.file 12645 ) 12646then 12647 # Ok. 12648 : 12649else 12650 as_fn_error $? "newly created file is older than distributed files! 12651Check your system clock" "$LINENO" 5 12652fi 12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12654$as_echo "yes" >&6; } 12655# If we didn't sleep, we still need to ensure time stamps of config.status and 12656# generated files are strictly newer. 12657am_sleep_pid= 12658if grep 'slept: no' conftest.file >/dev/null 2>&1; then 12659 ( sleep 1 ) & 12660 am_sleep_pid=$! 12661fi 12662 12663rm -f conftest.file 12664 12665test "$program_prefix" != NONE && 12666 program_transform_name="s&^&$program_prefix&;$program_transform_name" 12667# Use a double $ so make ignores it. 12668test "$program_suffix" != NONE && 12669 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 12670# Double any \ or $. 12671# By default was `s,x,x', remove it if useless. 12672ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 12673program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 12674 12675if test x"${MISSING+set}" != xset; then 12676 case $am_aux_dir in 12677 *\ * | *\ *) 12678 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 12679 *) 12680 MISSING="\${SHELL} $am_aux_dir/missing" ;; 12681 esac 12682fi 12683# Use eval to expand $SHELL 12684if eval "$MISSING --is-lightweight"; then 12685 am_missing_run="$MISSING " 12686else 12687 am_missing_run= 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 12689$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 12690fi 12691 12692if test x"${install_sh+set}" != xset; then 12693 case $am_aux_dir in 12694 *\ * | *\ *) 12695 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 12696 *) 12697 install_sh="\${SHELL} $am_aux_dir/install-sh" 12698 esac 12699fi 12700 12701# Installed binaries are usually stripped using 'strip' when the user 12702# run "make install-strip". However 'strip' might not be the right 12703# tool to use in cross-compilation environments, therefore Automake 12704# will honor the 'STRIP' environment variable to overrule this program. 12705if test "$cross_compiling" != no; then 12706 if test -n "$ac_tool_prefix"; then 12707 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12708set dummy ${ac_tool_prefix}strip; ac_word=$2 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12710$as_echo_n "checking for $ac_word... " >&6; } 12711if ${ac_cv_prog_STRIP+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713else 12714 if test -n "$STRIP"; then 12715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12716else 12717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12718for as_dir in $PATH 12719do 12720 IFS=$as_save_IFS 12721 test -z "$as_dir" && as_dir=. 12722 for ac_exec_ext in '' $ac_executable_extensions; do 12723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12724 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12726 break 2 12727 fi 12728done 12729 done 12730IFS=$as_save_IFS 12731 12732fi 12733fi 12734STRIP=$ac_cv_prog_STRIP 12735if test -n "$STRIP"; then 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12737$as_echo "$STRIP" >&6; } 12738else 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12740$as_echo "no" >&6; } 12741fi 12742 12743 12744fi 12745if test -z "$ac_cv_prog_STRIP"; then 12746 ac_ct_STRIP=$STRIP 12747 # Extract the first word of "strip", so it can be a program name with args. 12748set dummy strip; ac_word=$2 12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12750$as_echo_n "checking for $ac_word... " >&6; } 12751if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12752 $as_echo_n "(cached) " >&6 12753else 12754 if test -n "$ac_ct_STRIP"; then 12755 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12756else 12757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12758for as_dir in $PATH 12759do 12760 IFS=$as_save_IFS 12761 test -z "$as_dir" && as_dir=. 12762 for ac_exec_ext in '' $ac_executable_extensions; do 12763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12764 ac_cv_prog_ac_ct_STRIP="strip" 12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12766 break 2 12767 fi 12768done 12769 done 12770IFS=$as_save_IFS 12771 12772fi 12773fi 12774ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12775if test -n "$ac_ct_STRIP"; then 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12777$as_echo "$ac_ct_STRIP" >&6; } 12778else 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12780$as_echo "no" >&6; } 12781fi 12782 12783 if test "x$ac_ct_STRIP" = x; then 12784 STRIP=":" 12785 else 12786 case $cross_compiling:$ac_tool_warned in 12787yes:) 12788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12790ac_tool_warned=yes ;; 12791esac 12792 STRIP=$ac_ct_STRIP 12793 fi 12794else 12795 STRIP="$ac_cv_prog_STRIP" 12796fi 12797 12798fi 12799INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 12800 12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 12802$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 12803if test -z "$MKDIR_P"; then 12804 if ${ac_cv_path_mkdir+:} false; then : 12805 $as_echo_n "(cached) " >&6 12806else 12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12808for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 12809do 12810 IFS=$as_save_IFS 12811 test -z "$as_dir" && as_dir=. 12812 for ac_prog in mkdir gmkdir; do 12813 for ac_exec_ext in '' $ac_executable_extensions; do 12814 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 12815 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 12816 'mkdir (GNU coreutils) '* | \ 12817 'mkdir (coreutils) '* | \ 12818 'mkdir (fileutils) '4.1*) 12819 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 12820 break 3;; 12821 esac 12822 done 12823 done 12824 done 12825IFS=$as_save_IFS 12826 12827fi 12828 12829 test -d ./--version && rmdir ./--version 12830 if test "${ac_cv_path_mkdir+set}" = set; then 12831 MKDIR_P="$ac_cv_path_mkdir -p" 12832 else 12833 # As a last resort, use the slow shell script. Don't cache a 12834 # value for MKDIR_P within a source directory, because that will 12835 # break other packages using the cache if that directory is 12836 # removed, or if the value is a relative name. 12837 MKDIR_P="$ac_install_sh -d" 12838 fi 12839fi 12840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 12841$as_echo "$MKDIR_P" >&6; } 12842 12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12844$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12845set x ${MAKE-make} 12846ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12847if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12848 $as_echo_n "(cached) " >&6 12849else 12850 cat >conftest.make <<\_ACEOF 12851SHELL = /bin/sh 12852all: 12853 @echo '@@@%%%=$(MAKE)=@@@%%%' 12854_ACEOF 12855# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12856case `${MAKE-make} -f conftest.make 2>/dev/null` in 12857 *@@@%%%=?*=@@@%%%*) 12858 eval ac_cv_prog_make_${ac_make}_set=yes;; 12859 *) 12860 eval ac_cv_prog_make_${ac_make}_set=no;; 12861esac 12862rm -f conftest.make 12863fi 12864if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12866$as_echo "yes" >&6; } 12867 SET_MAKE= 12868else 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12870$as_echo "no" >&6; } 12871 SET_MAKE="MAKE=${MAKE-make}" 12872fi 12873 12874rm -rf .tst 2>/dev/null 12875mkdir .tst 2>/dev/null 12876if test -d .tst; then 12877 am__leading_dot=. 12878else 12879 am__leading_dot=_ 12880fi 12881rmdir .tst 2>/dev/null 12882 12883# Check whether --enable-silent-rules was given. 12884if test "${enable_silent_rules+set}" = set; then : 12885 enableval=$enable_silent_rules; 12886fi 12887 12888case $enable_silent_rules in # ((( 12889 yes) AM_DEFAULT_VERBOSITY=0;; 12890 no) AM_DEFAULT_VERBOSITY=1;; 12891 *) AM_DEFAULT_VERBOSITY=1;; 12892esac 12893am_make=${MAKE-make} 12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12895$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 12896if ${am_cv_make_support_nested_variables+:} false; then : 12897 $as_echo_n "(cached) " >&6 12898else 12899 if $as_echo 'TRUE=$(BAR$(V)) 12900BAR0=false 12901BAR1=true 12902V=1 12903am__doit: 12904 @$(TRUE) 12905.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12906 am_cv_make_support_nested_variables=yes 12907else 12908 am_cv_make_support_nested_variables=no 12909fi 12910fi 12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12912$as_echo "$am_cv_make_support_nested_variables" >&6; } 12913if test $am_cv_make_support_nested_variables = yes; then 12914 AM_V='$(V)' 12915 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12916else 12917 AM_V=$AM_DEFAULT_VERBOSITY 12918 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12919fi 12920AM_BACKSLASH='\' 12921 12922if test "`cd $srcdir && pwd`" != "`pwd`"; then 12923 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 12924 # is not polluted with repeated "-I." 12925 am__isrc=' -I$(srcdir)' 12926 # test to see if srcdir already configured 12927 if test -f $srcdir/config.status; then 12928 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 12929 fi 12930fi 12931 12932# test whether we have cygpath 12933if test -z "$CYGPATH_W"; then 12934 if (cygpath --version) >/dev/null 2>/dev/null; then 12935 CYGPATH_W='cygpath -w' 12936 else 12937 CYGPATH_W=echo 12938 fi 12939fi 12940 12941 12942# Define the identity of the package. 12943 PACKAGE='opensmtpd-extras' 12944 VERSION='5.7.2' 12945 12946 12947cat >>confdefs.h <<_ACEOF 12948#define PACKAGE "$PACKAGE" 12949_ACEOF 12950 12951 12952cat >>confdefs.h <<_ACEOF 12953#define VERSION "$VERSION" 12954_ACEOF 12955 12956# Some tools Automake needs. 12957 12958ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 12959 12960 12961AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 12962 12963 12964AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 12965 12966 12967AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 12968 12969 12970MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 12971 12972# For better backward compatibility. To be removed once Automake 1.9.x 12973# dies out for good. For more background, see: 12974# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 12975# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 12976mkdir_p='$(MKDIR_P)' 12977 12978# We need awk for the "check" target (and possibly the TAP driver). The 12979# system "awk" is bad on some platforms. 12980# Always define AMTAR for backward compatibility. Yes, it's still used 12981# in the wild :-( We should find a proper way to deprecate it ... 12982AMTAR='$${TAR-tar}' 12983 12984 12985# We'll loop over all known methods to create a tar archive until one works. 12986_am_tools='gnutar pax cpio none' 12987 12988am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 12989 12990 12991 12992 12993 12994 12995# POSIX will say in a future version that running "rm -f" with no argument 12996# is OK; and we want to be able to make that assumption in our Makefile 12997# recipes. So use an aggressive probe to check that the usage we want is 12998# actually supported "in the wild" to an acceptable degree. 12999# See automake bug#10828. 13000# To make any issue more visible, cause the running configure to be aborted 13001# by default if the 'rm' program in use doesn't match our expectations; the 13002# user can still override this though. 13003if rm -f && rm -fr && rm -rf; then : OK; else 13004 cat >&2 <<'END' 13005Oops! 13006 13007Your 'rm' program seems unable to run without file operands specified 13008on the command line, even when the '-f' option is present. This is contrary 13009to the behaviour of most rm programs out there, and not conforming with 13010the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 13011 13012Please tell bug-automake@gnu.org about your system, including the value 13013of your $PATH and any error possibly output before this message. This 13014can help us improve future automake versions. 13015 13016END 13017 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 13018 echo 'Configuration will proceed anyway, since you have set the' >&2 13019 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 13020 echo >&2 13021 else 13022 cat >&2 <<'END' 13023Aborting the configuration process, to ensure you take notice of the issue. 13024 13025You can download and install GNU coreutils to get an 'rm' implementation 13026that behaves properly: <https://www.gnu.org/software/coreutils/>. 13027 13028If you want to complete the configuration process using your problematic 13029'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 13030to "yes", and re-run configure. 13031 13032END 13033 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 13034 fi 13035fi 13036 13037 13038 13039 13040#here we should test for variables set by libtool detection 13041if test "x$with_pic" != "xno" ; then 13042 CFLAGS="$CFLAGS ${pic_flag}" 13043fi 13044 13045 13046#from here everything comes from portable openssh configure.ac script 13047 13048#l50 13049if test "x$MANDOC" != "x" ; then 13050 MANFMT="$MANDOC" 13051elif test "x$NROFF" != "x" ; then 13052 MANFMT="$NROFF -mandoc" 13053elif test "x$GROFF" != "x" ; then 13054 MANFMT="$GROFF -mandoc -Tascii" 13055else 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 13057$as_echo "$as_me: WARNING: no manpage formatted found" >&2;} 13058 MANFMT="false" 13059fi 13060 13061#l61 13062 13063#l78 13064if test -z "$AR" ; then 13065 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 13066fi 13067#l80 13068 13069#l101 13070if test -z "$LD" ; then 13071 LD=$CC 13072fi 13073 13074 13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13076$as_echo_n "checking for inline... " >&6; } 13077if ${ac_cv_c_inline+:} false; then : 13078 $as_echo_n "(cached) " >&6 13079else 13080 ac_cv_c_inline=no 13081for ac_kw in inline __inline__ __inline; do 13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13083/* end confdefs.h. */ 13084#ifndef __cplusplus 13085typedef int foo_t; 13086static $ac_kw foo_t static_foo () {return 0; } 13087$ac_kw foo_t foo () {return 0; } 13088#endif 13089 13090_ACEOF 13091if ac_fn_c_try_compile "$LINENO"; then : 13092 ac_cv_c_inline=$ac_kw 13093fi 13094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13095 test "$ac_cv_c_inline" != no && break 13096done 13097 13098fi 13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13100$as_echo "$ac_cv_c_inline" >&6; } 13101 13102case $ac_cv_c_inline in 13103 inline | yes) ;; 13104 *) 13105 case $ac_cv_c_inline in 13106 no) ac_val=;; 13107 *) ac_val=$ac_cv_c_inline;; 13108 esac 13109 cat >>confdefs.h <<_ACEOF 13110#ifndef __cplusplus 13111#define inline $ac_val 13112#endif 13113_ACEOF 13114 ;; 13115esac 13116 13117 13118ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> 13119" 13120if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : 13121 have_llong_max=1 13122fi 13123 13124#l108 13125 13126#l150 (without _FORTIFY_SOURCE=2) 13127if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 13128 { 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 13130$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } 13131 saved_CFLAGS="$CFLAGS" 13132 CFLAGS="$CFLAGS $WERROR -Qunused-arguments" 13133 _define_flag="" 13134 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" 13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13136/* end confdefs.h. */ 13137 13138#include <stdlib.h> 13139#include <stdio.h> 13140int main(int argc, char **argv) { 13141 /* Some math to catch -ftrapv problems in the toolchain */ 13142 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13143 float l = i * 2.1; 13144 double m = l / 0.5; 13145 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13146 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13147 exit(0); 13148} 13149 13150_ACEOF 13151if ac_fn_c_try_compile "$LINENO"; then : 13152 13153if `grep -i "unrecognized option" conftest.err >/dev/null` 13154then 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13156$as_echo "no" >&6; } 13157 CFLAGS="$saved_CFLAGS" 13158else 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13160$as_echo "yes" >&6; } 13161 CFLAGS="$saved_CFLAGS $_define_flag" 13162fi 13163else 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13165$as_echo "no" >&6; } 13166 CFLAGS="$saved_CFLAGS" 13167 13168fi 13169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13170} 13171 { 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 13173$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } 13174 saved_CFLAGS="$CFLAGS" 13175 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" 13176 _define_flag="" 13177 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" 13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13179/* end confdefs.h. */ 13180 13181#include <stdlib.h> 13182#include <stdio.h> 13183int main(int argc, char **argv) { 13184 /* Some math to catch -ftrapv problems in the toolchain */ 13185 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13186 float l = i * 2.1; 13187 double m = l / 0.5; 13188 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13189 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13190 exit(0); 13191} 13192 13193_ACEOF 13194if ac_fn_c_try_compile "$LINENO"; then : 13195 13196if `grep -i "unrecognized option" conftest.err >/dev/null` 13197then 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13199$as_echo "no" >&6; } 13200 CFLAGS="$saved_CFLAGS" 13201else 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13203$as_echo "yes" >&6; } 13204 CFLAGS="$saved_CFLAGS $_define_flag" 13205fi 13206else 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13208$as_echo "no" >&6; } 13209 CFLAGS="$saved_CFLAGS" 13210 13211fi 13212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13213} 13214 { 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 13216$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } 13217 saved_CFLAGS="$CFLAGS" 13218 CFLAGS="$CFLAGS $WERROR -Wall" 13219 _define_flag="" 13220 test "x$_define_flag" = "x" && _define_flag="-Wall" 13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13222/* end confdefs.h. */ 13223 13224#include <stdlib.h> 13225#include <stdio.h> 13226int main(int argc, char **argv) { 13227 /* Some math to catch -ftrapv problems in the toolchain */ 13228 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13229 float l = i * 2.1; 13230 double m = l / 0.5; 13231 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13232 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13233 exit(0); 13234} 13235 13236_ACEOF 13237if ac_fn_c_try_compile "$LINENO"; then : 13238 13239if `grep -i "unrecognized option" conftest.err >/dev/null` 13240then 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13242$as_echo "no" >&6; } 13243 CFLAGS="$saved_CFLAGS" 13244else 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13246$as_echo "yes" >&6; } 13247 CFLAGS="$saved_CFLAGS $_define_flag" 13248fi 13249else 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13251$as_echo "no" >&6; } 13252 CFLAGS="$saved_CFLAGS" 13253 13254fi 13255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13256} 13257 { 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 13259$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } 13260 saved_CFLAGS="$CFLAGS" 13261 CFLAGS="$CFLAGS $WERROR -Wpointer-arith" 13262 _define_flag="" 13263 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" 13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13265/* end confdefs.h. */ 13266 13267#include <stdlib.h> 13268#include <stdio.h> 13269int main(int argc, char **argv) { 13270 /* Some math to catch -ftrapv problems in the toolchain */ 13271 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13272 float l = i * 2.1; 13273 double m = l / 0.5; 13274 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13275 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13276 exit(0); 13277} 13278 13279_ACEOF 13280if ac_fn_c_try_compile "$LINENO"; then : 13281 13282if `grep -i "unrecognized option" conftest.err >/dev/null` 13283then 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13285$as_echo "no" >&6; } 13286 CFLAGS="$saved_CFLAGS" 13287else 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13289$as_echo "yes" >&6; } 13290 CFLAGS="$saved_CFLAGS $_define_flag" 13291fi 13292else 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13294$as_echo "no" >&6; } 13295 CFLAGS="$saved_CFLAGS" 13296 13297fi 13298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13299} 13300 { 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 13302$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } 13303 saved_CFLAGS="$CFLAGS" 13304 CFLAGS="$CFLAGS $WERROR -Wuninitialized" 13305 _define_flag="" 13306 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" 13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13308/* end confdefs.h. */ 13309 13310#include <stdlib.h> 13311#include <stdio.h> 13312int main(int argc, char **argv) { 13313 /* Some math to catch -ftrapv problems in the toolchain */ 13314 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13315 float l = i * 2.1; 13316 double m = l / 0.5; 13317 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13318 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13319 exit(0); 13320} 13321 13322_ACEOF 13323if ac_fn_c_try_compile "$LINENO"; then : 13324 13325if `grep -i "unrecognized option" conftest.err >/dev/null` 13326then 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13328$as_echo "no" >&6; } 13329 CFLAGS="$saved_CFLAGS" 13330else 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13332$as_echo "yes" >&6; } 13333 CFLAGS="$saved_CFLAGS $_define_flag" 13334fi 13335else 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13337$as_echo "no" >&6; } 13338 CFLAGS="$saved_CFLAGS" 13339 13340fi 13341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13342} 13343 { 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 13345$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } 13346 saved_CFLAGS="$CFLAGS" 13347 CFLAGS="$CFLAGS $WERROR -Wsign-compare" 13348 _define_flag="" 13349 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" 13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13351/* end confdefs.h. */ 13352 13353#include <stdlib.h> 13354#include <stdio.h> 13355int main(int argc, char **argv) { 13356 /* Some math to catch -ftrapv problems in the toolchain */ 13357 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13358 float l = i * 2.1; 13359 double m = l / 0.5; 13360 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13361 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13362 exit(0); 13363} 13364 13365_ACEOF 13366if ac_fn_c_try_compile "$LINENO"; then : 13367 13368if `grep -i "unrecognized option" conftest.err >/dev/null` 13369then 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13371$as_echo "no" >&6; } 13372 CFLAGS="$saved_CFLAGS" 13373else 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13375$as_echo "yes" >&6; } 13376 CFLAGS="$saved_CFLAGS $_define_flag" 13377fi 13378else 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13380$as_echo "no" >&6; } 13381 CFLAGS="$saved_CFLAGS" 13382 13383fi 13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13385} 13386 { 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 13388$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } 13389 saved_CFLAGS="$CFLAGS" 13390 CFLAGS="$CFLAGS $WERROR -Wformat-security" 13391 _define_flag="" 13392 test "x$_define_flag" = "x" && _define_flag="-Wformat-security" 13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13394/* end confdefs.h. */ 13395 13396#include <stdlib.h> 13397#include <stdio.h> 13398int main(int argc, char **argv) { 13399 /* Some math to catch -ftrapv problems in the toolchain */ 13400 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13401 float l = i * 2.1; 13402 double m = l / 0.5; 13403 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13404 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13405 exit(0); 13406} 13407 13408_ACEOF 13409if ac_fn_c_try_compile "$LINENO"; then : 13410 13411if `grep -i "unrecognized option" conftest.err >/dev/null` 13412then 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13414$as_echo "no" >&6; } 13415 CFLAGS="$saved_CFLAGS" 13416else 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13418$as_echo "yes" >&6; } 13419 CFLAGS="$saved_CFLAGS $_define_flag" 13420fi 13421else 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13423$as_echo "no" >&6; } 13424 CFLAGS="$saved_CFLAGS" 13425 13426fi 13427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13428} 13429 { 13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 13431$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } 13432 saved_CFLAGS="$CFLAGS" 13433 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" 13434 _define_flag="" 13435 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" 13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13437/* end confdefs.h. */ 13438 13439#include <stdlib.h> 13440#include <stdio.h> 13441int main(int argc, char **argv) { 13442 /* Some math to catch -ftrapv problems in the toolchain */ 13443 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13444 float l = i * 2.1; 13445 double m = l / 0.5; 13446 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13447 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13448 exit(0); 13449} 13450 13451_ACEOF 13452if ac_fn_c_try_compile "$LINENO"; then : 13453 13454if `grep -i "unrecognized option" conftest.err >/dev/null` 13455then 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13457$as_echo "no" >&6; } 13458 CFLAGS="$saved_CFLAGS" 13459else 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13461$as_echo "yes" >&6; } 13462 CFLAGS="$saved_CFLAGS $_define_flag" 13463fi 13464else 13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13466$as_echo "no" >&6; } 13467 CFLAGS="$saved_CFLAGS" 13468 13469fi 13470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13471} 13472 { 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 13474$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } 13475 saved_CFLAGS="$CFLAGS" 13476 CFLAGS="$CFLAGS $WERROR -Wpointer-sign" 13477 _define_flag="-Wno-pointer-sign" 13478 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" 13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13480/* end confdefs.h. */ 13481 13482#include <stdlib.h> 13483#include <stdio.h> 13484int main(int argc, char **argv) { 13485 /* Some math to catch -ftrapv problems in the toolchain */ 13486 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13487 float l = i * 2.1; 13488 double m = l / 0.5; 13489 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13490 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13491 exit(0); 13492} 13493 13494_ACEOF 13495if ac_fn_c_try_compile "$LINENO"; then : 13496 13497if `grep -i "unrecognized option" conftest.err >/dev/null` 13498then 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13500$as_echo "no" >&6; } 13501 CFLAGS="$saved_CFLAGS" 13502else 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13504$as_echo "yes" >&6; } 13505 CFLAGS="$saved_CFLAGS $_define_flag" 13506fi 13507else 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13509$as_echo "no" >&6; } 13510 CFLAGS="$saved_CFLAGS" 13511 13512fi 13513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13514} 13515 { 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 13517$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } 13518 saved_CFLAGS="$CFLAGS" 13519 CFLAGS="$CFLAGS $WERROR -Wunused-result" 13520 _define_flag="-Wno-unused-result" 13521 test "x$_define_flag" = "x" && _define_flag="-Wunused-result" 13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13523/* end confdefs.h. */ 13524 13525#include <stdlib.h> 13526#include <stdio.h> 13527int main(int argc, char **argv) { 13528 /* Some math to catch -ftrapv problems in the toolchain */ 13529 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13530 float l = i * 2.1; 13531 double m = l / 0.5; 13532 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13533 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13534 exit(0); 13535} 13536 13537_ACEOF 13538if ac_fn_c_try_compile "$LINENO"; then : 13539 13540if `grep -i "unrecognized option" conftest.err >/dev/null` 13541then 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13543$as_echo "no" >&6; } 13544 CFLAGS="$saved_CFLAGS" 13545else 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13547$as_echo "yes" >&6; } 13548 CFLAGS="$saved_CFLAGS $_define_flag" 13549fi 13550else 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13552$as_echo "no" >&6; } 13553 CFLAGS="$saved_CFLAGS" 13554 13555fi 13556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13557} 13558 { 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 13560$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } 13561 saved_CFLAGS="$CFLAGS" 13562 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" 13563 _define_flag="" 13564 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" 13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13566/* end confdefs.h. */ 13567 13568#include <stdlib.h> 13569#include <stdio.h> 13570int main(int argc, char **argv) { 13571 /* Some math to catch -ftrapv problems in the toolchain */ 13572 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 13573 float l = i * 2.1; 13574 double m = l / 0.5; 13575 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 13576 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 13577 exit(0); 13578} 13579 13580_ACEOF 13581if ac_fn_c_try_compile "$LINENO"; then : 13582 13583if `grep -i "unrecognized option" conftest.err >/dev/null` 13584then 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13586$as_echo "no" >&6; } 13587 CFLAGS="$saved_CFLAGS" 13588else 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13590$as_echo "yes" >&6; } 13591 CFLAGS="$saved_CFLAGS $_define_flag" 13592fi 13593else 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13595$as_echo "no" >&6; } 13596 CFLAGS="$saved_CFLAGS" 13597 13598fi 13599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13600} 13601# OSSH_CHECK_CFLAG_COMPILE([-D_FORTIFY_SOURCE=2]) 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 13603$as_echo_n "checking gcc version... " >&6; } 13604 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 13606$as_echo "$GCC_VER" >&6; } 13607 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 13609$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } 13610 saved_CFLAGS="$CFLAGS" 13611 CFLAGS="$CFLAGS -fno-builtin-memset" 13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13613/* end confdefs.h. */ 13614 #include <string.h> 13615int 13616main () 13617{ 13618 char b[10]; memset(b, 0, sizeof(b)); 13619 ; 13620 return 0; 13621} 13622_ACEOF 13623if ac_fn_c_try_link "$LINENO"; then : 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13625$as_echo "yes" >&6; } 13626else 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13628$as_echo "no" >&6; } 13629 CFLAGS="$saved_CFLAGS" 13630 13631fi 13632rm -f core conftest.err conftest.$ac_objext \ 13633 conftest$ac_exeext conftest.$ac_ext 13634 13635 # -fstack-protector-all doesn't always work for some GCC versions 13636 # and/or platforms, so we test if we can. If it's not supported 13637 # on a given platform gcc will emit a warning so we use -Werror. 13638 if test "x$use_stack_protector" = "x1"; then 13639 for t in -fstack-protector-strong -fstack-protector-all \ 13640 -fstack-protector; do 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 13642$as_echo_n "checking if $CC supports $t... " >&6; } 13643 saved_CFLAGS="$CFLAGS" 13644 saved_LDFLAGS="$LDFLAGS" 13645 CFLAGS="$CFLAGS $t -Werror" 13646 LDFLAGS="$LDFLAGS $t -Werror" 13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13648/* end confdefs.h. */ 13649 #include <stdio.h> 13650int 13651main () 13652{ 13653 13654 char x[256]; 13655 snprintf(x, sizeof(x), "XXX"); 13656 13657 ; 13658 return 0; 13659} 13660_ACEOF 13661if ac_fn_c_try_link "$LINENO"; then : 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13663$as_echo "yes" >&6; } 13664 CFLAGS="$saved_CFLAGS $t" 13665 LDFLAGS="$saved_LDFLAGS $t" 13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 13667$as_echo_n "checking if $t works... " >&6; } 13668 if test "$cross_compiling" = yes; then : 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 13670$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} 13671 break 13672 13673else 13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13675/* end confdefs.h. */ 13676 #include <stdio.h> 13677int 13678main () 13679{ 13680 13681 char x[256]; 13682 snprintf(x, sizeof(x), "XXX"); 13683 13684 ; 13685 return 0; 13686} 13687_ACEOF 13688if ac_fn_c_try_run "$LINENO"; then : 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13690$as_echo "yes" >&6; } 13691 break 13692else 13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13694$as_echo "no" >&6; } 13695fi 13696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13697 conftest.$ac_objext conftest.beam conftest.$ac_ext 13698fi 13699 13700 13701else 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13703$as_echo "no" >&6; } 13704 13705fi 13706rm -f core conftest.err conftest.$ac_objext \ 13707 conftest$ac_exeext conftest.$ac_ext 13708 CFLAGS="$saved_CFLAGS" 13709 LDFLAGS="$saved_LDFLAGS" 13710 done 13711 fi 13712 13713 if test -z "$have_llong_max"; then 13714 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes 13715 unset ac_cv_have_decl_LLONG_MAX 13716 saved_CFLAGS="$CFLAGS" 13717 CFLAGS="$CFLAGS -std=gnu99" 13718 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> 13719 13720" 13721if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : 13722 have_llong_max=1 13723else 13724 CFLAGS="$saved_CFLAGS" 13725fi 13726 13727 fi 13728fi 13729 13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 13731$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } 13732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13733/* end confdefs.h. */ 13734 13735#include <stdlib.h> 13736__attribute__((__unused__)) static void foo(void){return;} 13737int 13738main () 13739{ 13740 exit(0); 13741 ; 13742 return 0; 13743} 13744_ACEOF 13745if ac_fn_c_try_compile "$LINENO"; then : 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13747$as_echo "yes" >&6; } 13748else 13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13750$as_echo "no" >&6; } 13751 13752$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h 13753 13754 13755fi 13756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13757 13758 13759# Check whether --with-rpath was given. 13760if test "${with_rpath+set}" = set; then : 13761 withval=$with_rpath; 13762 if test "x$withval" = "xno" ; then 13763 need_dash_r="" 13764 fi 13765 if test "x$withval" = "xyes" ; then 13766 need_dash_r=1 13767 fi 13768 13769 13770fi 13771 13772 13773# Allow user to specify flags 13774 13775# Check whether --with-cflags was given. 13776if test "${with_cflags+set}" = set; then : 13777 withval=$with_cflags; 13778 if test -n "$withval" && test "x$withval" != "xno" && \ 13779 test "x${withval}" != "xyes"; then 13780 CFLAGS="$CFLAGS $withval" 13781 fi 13782 13783 13784fi 13785 13786 13787# Check whether --with-cppflags was given. 13788if test "${with_cppflags+set}" = set; then : 13789 withval=$with_cppflags; 13790 if test -n "$withval" && test "x$withval" != "xno" && \ 13791 test "x${withval}" != "xyes"; then 13792 CPPFLAGS="$CPPFLAGS $withval" 13793 fi 13794 13795 13796fi 13797 13798 13799# Check whether --with-ldflags was given. 13800if test "${with_ldflags+set}" = set; then : 13801 withval=$with_ldflags; 13802 if test -n "$withval" && test "x$withval" != "xno" && \ 13803 test "x${withval}" != "xyes"; then 13804 LDFLAGS="$LDFLAGS $withval" 13805 fi 13806 13807 13808fi 13809 13810 13811# Check whether --with-libs was given. 13812if test "${with_libs+set}" = set; then : 13813 withval=$with_libs; 13814 if test -n "$withval" && test "x$withval" != "xno" && \ 13815 test "x${withval}" != "xyes"; then 13816 LIBS="$LIBS $withval" 13817 fi 13818 13819 13820fi 13821 13822 13823# Check whether --with-Werror was given. 13824if test "${with_Werror+set}" = set; then : 13825 withval=$with_Werror; 13826 if test -n "$withval" && test "x$withval" != "xno"; then 13827 werror_flags="-Werror" 13828 if test "x${withval}" != "xyes"; then 13829 werror_flags="$withval" 13830 fi 13831 fi 13832 13833 13834fi 13835 13836#l325 13837 13838for ac_header in \ 13839 arpa/inet.h \ 13840 ctype.h \ 13841 dirent.h \ 13842 fcntl.h \ 13843 grp.h \ 13844 inttypes.h \ 13845 limits.h \ 13846 mach/mach_time.h \ 13847 ndir.h \ 13848 netdb.h \ 13849 netinet/in.h \ 13850 pam/pam_appl.h \ 13851 paths.h \ 13852 security/pam_appl.h \ 13853 stdint.h \ 13854 stdlib.h \ 13855 string.h \ 13856 strings.h \ 13857 sys/dir.h \ 13858 sys/ndir.h \ 13859 sys/param.h \ 13860 sys/pstat.h \ 13861 sys/socket.h \ 13862 sys/time.h \ 13863 sys/un.h \ 13864 syslog.h \ 13865 time.h \ 13866 ucred.h \ 13867 unistd.h 13868 13869do : 13870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13871ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13872if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13873 cat >>confdefs.h <<_ACEOF 13874#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13875_ACEOF 13876 13877fi 13878 13879done 13880 13881 13882#l432 (customized) 13883# Check for some target-specific stuff 13884 case "$host" in 13885*-*-darwin*) 13886 use_pie=auto 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 13888$as_echo_n "checking if we have working getaddrinfo... " >&6; } 13889 if test "$cross_compiling" = yes; then : 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 13891$as_echo "assume it is working" >&6; } 13892else 13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13894/* end confdefs.h. */ 13895 #include <mach-o/dyld.h> 13896main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) 13897 exit(0); 13898 else 13899 exit(1); 13900} 13901 13902_ACEOF 13903if ac_fn_c_try_run "$LINENO"; then : 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 13905$as_echo "working" >&6; } 13906else 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 13908$as_echo "buggy" >&6; } 13909 13910fi 13911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13912 conftest.$ac_objext conftest.beam conftest.$ac_ext 13913fi 13914 13915 ;; 13916*-*-dragonfly*) 13917 SMTPDLIBS="$SMTPDLIBS -lcrypt" 13918 ;; 13919*-*-linux* | *-gnu* | *-k*bsd*-gnu* ) 13920 use_pie=auto 13921 CFLAGS="$CFLAGS -D_BSD_SOURCE" 13922 ;; 13923*-*-netbsd*) 13924 if test "x$withval" != "xno" ; then 13925 need_dash_r=1 13926 fi 13927 ;; 13928*-*-openbsd*) 13929 use_pie=auto 13930 asr_in_libc=1 13931 ;; 13932esac 13933 if test x$asr_in_libc = x1; then 13934 NO_LIBASR_TRUE= 13935 NO_LIBASR_FALSE='#' 13936else 13937 NO_LIBASR_TRUE='#' 13938 NO_LIBASR_FALSE= 13939fi 13940 13941 13942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 13943$as_echo_n "checking compiler and flags for sanity... " >&6; } 13944if test "$cross_compiling" = yes; then : 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 13946$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} 13947 13948else 13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13950/* end confdefs.h. */ 13951 #include <stdio.h> 13952int 13953main () 13954{ 13955 exit(0); 13956 ; 13957 return 0; 13958} 13959_ACEOF 13960if ac_fn_c_try_run "$LINENO"; then : 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13962$as_echo "yes" >&6; } 13963else 13964 13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13966$as_echo "no" >&6; } 13967 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 13968 13969fi 13970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13971 conftest.$ac_objext conftest.beam conftest.$ac_ext 13972fi 13973 13974 13975# Checks for libraries. 13976ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 13977if test "x$ac_cv_func_setsockopt" = xyes; then : 13978 13979else 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 13981$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 13982if ${ac_cv_lib_socket_setsockopt+:} false; then : 13983 $as_echo_n "(cached) " >&6 13984else 13985 ac_check_lib_save_LIBS=$LIBS 13986LIBS="-lsocket $LIBS" 13987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13988/* end confdefs.h. */ 13989 13990/* Override any GCC internal prototype to avoid an error. 13991 Use char because int might match the return type of a GCC 13992 builtin and then its argument prototype would still apply. */ 13993#ifdef __cplusplus 13994extern "C" 13995#endif 13996char setsockopt (); 13997int 13998main () 13999{ 14000return setsockopt (); 14001 ; 14002 return 0; 14003} 14004_ACEOF 14005if ac_fn_c_try_link "$LINENO"; then : 14006 ac_cv_lib_socket_setsockopt=yes 14007else 14008 ac_cv_lib_socket_setsockopt=no 14009fi 14010rm -f core conftest.err conftest.$ac_objext \ 14011 conftest$ac_exeext conftest.$ac_ext 14012LIBS=$ac_check_lib_save_LIBS 14013fi 14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 14015$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 14016if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 14017 cat >>confdefs.h <<_ACEOF 14018#define HAVE_LIBSOCKET 1 14019_ACEOF 14020 14021 LIBS="-lsocket $LIBS" 14022 14023fi 14024 14025fi 14026 14027 14028#l1525 14029 14030# Check whether --with-pie was given. 14031if test "${with_pie+set}" = set; then : 14032 withval=$with_pie; 14033 if test "x$withval" = "xno"; then 14034 use_pie=no 14035 fi 14036 if test "x$withval" = "xyes"; then 14037 use_pie=yes 14038 fi 14039 14040 14041fi 14042 14043if test "x$use_pie" = "x"; then 14044 use_pie=no 14045fi 14046if test "x$use_pie" = "xauto"; then 14047 # Automatic PIE requires gcc >= 4.x 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 14049$as_echo_n "checking for gcc >= 4.x... " >&6; } 14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14051/* end confdefs.h. */ 14052 14053#if !defined(__GNUC__) || __GNUC__ < 4 14054#error gcc is too old 14055#endif 14056 14057_ACEOF 14058if ac_fn_c_try_compile "$LINENO"; then : 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14060$as_echo "yes" >&6; } 14061else 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14063$as_echo "no" >&6; } 14064 use_pie=no 14065 14066fi 14067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14068fi 14069if test "x$use_pie" != "xno"; then 14070 SAVED_CFLAGS="$CFLAGS" 14071 SAVED_LDFLAGS="$LDFLAGS" 14072 { 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 14074$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } 14075 saved_CFLAGS="$CFLAGS" 14076 CFLAGS="$CFLAGS $WERROR -fPIE" 14077 _define_flag="" 14078 test "x$_define_flag" = "x" && _define_flag="-fPIE" 14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14080/* end confdefs.h. */ 14081 14082#include <stdlib.h> 14083#include <stdio.h> 14084int main(int argc, char **argv) { 14085 /* Some math to catch -ftrapv problems in the toolchain */ 14086 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 14087 float l = i * 2.1; 14088 double m = l / 0.5; 14089 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 14090 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 14091 exit(0); 14092} 14093 14094_ACEOF 14095if ac_fn_c_try_compile "$LINENO"; then : 14096 14097if `grep -i "unrecognized option" conftest.err >/dev/null` 14098then 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14100$as_echo "no" >&6; } 14101 CFLAGS="$saved_CFLAGS" 14102else 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14104$as_echo "yes" >&6; } 14105 CFLAGS="$saved_CFLAGS $_define_flag" 14106fi 14107else 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14109$as_echo "no" >&6; } 14110 CFLAGS="$saved_CFLAGS" 14111 14112fi 14113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14114} 14115 { 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 14117$as_echo_n "checking if $LD supports link flag -pie... " >&6; } 14118 saved_LDFLAGS="$LDFLAGS" 14119 LDFLAGS="$LDFLAGS $WERROR -pie" 14120 _define_flag="" 14121 test "x$_define_flag" = "x" && _define_flag="-pie" 14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14123/* end confdefs.h. */ 14124 14125#include <stdlib.h> 14126#include <stdio.h> 14127int main(int argc, char **argv) { 14128 /* Some math to catch -ftrapv problems in the toolchain */ 14129 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 14130 float l = i * 2.1; 14131 double m = l / 0.5; 14132 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 14133 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 14134 exit(0); 14135} 14136 14137_ACEOF 14138if ac_fn_c_try_link "$LINENO"; then : 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14140$as_echo "yes" >&6; } 14141 LDFLAGS="$saved_LDFLAGS $_define_flag" 14142else 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14144$as_echo "no" >&6; } 14145 LDFLAGS="$saved_LDFLAGS" 14146 14147fi 14148rm -f core conftest.err conftest.$ac_objext \ 14149 conftest$ac_exeext conftest.$ac_ext 14150} 14151 # We use both -fPIE and -pie or neither. 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 14153$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } 14154 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ 14155 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14157$as_echo "yes" >&6; } 14158 else 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14160$as_echo "no" >&6; } 14161 CFLAGS="$SAVED_CFLAGS" 14162 LDFLAGS="$SAVED_LDFLAGS" 14163 fi 14164fi 14165#l1570 14166 14167# Checks for library functions. 14168ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14169if test "x$ac_cv_type_pid_t" = xyes; then : 14170 14171else 14172 14173cat >>confdefs.h <<_ACEOF 14174#define pid_t int 14175_ACEOF 14176 14177fi 14178 14179for ac_header in vfork.h 14180do : 14181 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14182if test "x$ac_cv_header_vfork_h" = xyes; then : 14183 cat >>confdefs.h <<_ACEOF 14184#define HAVE_VFORK_H 1 14185_ACEOF 14186 14187fi 14188 14189done 14190 14191for ac_func in fork vfork 14192do : 14193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14195if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14196 cat >>confdefs.h <<_ACEOF 14197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14198_ACEOF 14199 14200fi 14201done 14202 14203if test "x$ac_cv_func_fork" = xyes; then 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14205$as_echo_n "checking for working fork... " >&6; } 14206if ${ac_cv_func_fork_works+:} false; then : 14207 $as_echo_n "(cached) " >&6 14208else 14209 if test "$cross_compiling" = yes; then : 14210 ac_cv_func_fork_works=cross 14211else 14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14213/* end confdefs.h. */ 14214$ac_includes_default 14215int 14216main () 14217{ 14218 14219 /* By Ruediger Kuhlmann. */ 14220 return fork () < 0; 14221 14222 ; 14223 return 0; 14224} 14225_ACEOF 14226if ac_fn_c_try_run "$LINENO"; then : 14227 ac_cv_func_fork_works=yes 14228else 14229 ac_cv_func_fork_works=no 14230fi 14231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14232 conftest.$ac_objext conftest.beam conftest.$ac_ext 14233fi 14234 14235fi 14236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14237$as_echo "$ac_cv_func_fork_works" >&6; } 14238 14239else 14240 ac_cv_func_fork_works=$ac_cv_func_fork 14241fi 14242if test "x$ac_cv_func_fork_works" = xcross; then 14243 case $host in 14244 *-*-amigaos* | *-*-msdosdjgpp*) 14245 # Override, as these systems have only a dummy fork() stub 14246 ac_cv_func_fork_works=no 14247 ;; 14248 *) 14249 ac_cv_func_fork_works=yes 14250 ;; 14251 esac 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14253$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14254fi 14255ac_cv_func_vfork_works=$ac_cv_func_vfork 14256if test "x$ac_cv_func_vfork" = xyes; then 14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14258$as_echo_n "checking for working vfork... " >&6; } 14259if ${ac_cv_func_vfork_works+:} false; then : 14260 $as_echo_n "(cached) " >&6 14261else 14262 if test "$cross_compiling" = yes; then : 14263 ac_cv_func_vfork_works=cross 14264else 14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14266/* end confdefs.h. */ 14267/* Thanks to Paul Eggert for this test. */ 14268$ac_includes_default 14269#include <sys/wait.h> 14270#ifdef HAVE_VFORK_H 14271# include <vfork.h> 14272#endif 14273/* On some sparc systems, changes by the child to local and incoming 14274 argument registers are propagated back to the parent. The compiler 14275 is told about this with #include <vfork.h>, but some compilers 14276 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14277 static variable whose address is put into a register that is 14278 clobbered by the vfork. */ 14279static void 14280#ifdef __cplusplus 14281sparc_address_test (int arg) 14282# else 14283sparc_address_test (arg) int arg; 14284#endif 14285{ 14286 static pid_t child; 14287 if (!child) { 14288 child = vfork (); 14289 if (child < 0) { 14290 perror ("vfork"); 14291 _exit(2); 14292 } 14293 if (!child) { 14294 arg = getpid(); 14295 write(-1, "", 0); 14296 _exit (arg); 14297 } 14298 } 14299} 14300 14301int 14302main () 14303{ 14304 pid_t parent = getpid (); 14305 pid_t child; 14306 14307 sparc_address_test (0); 14308 14309 child = vfork (); 14310 14311 if (child == 0) { 14312 /* Here is another test for sparc vfork register problems. This 14313 test uses lots of local variables, at least as many local 14314 variables as main has allocated so far including compiler 14315 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14316 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14317 reuse the register of parent for one of the local variables, 14318 since it will think that parent can't possibly be used any more 14319 in this routine. Assigning to the local variable will thus 14320 munge parent in the parent process. */ 14321 pid_t 14322 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14323 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14324 /* Convince the compiler that p..p7 are live; otherwise, it might 14325 use the same hardware register for all 8 local variables. */ 14326 if (p != p1 || p != p2 || p != p3 || p != p4 14327 || p != p5 || p != p6 || p != p7) 14328 _exit(1); 14329 14330 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14331 from child file descriptors. If the child closes a descriptor 14332 before it execs or exits, this munges the parent's descriptor 14333 as well. Test for this by closing stdout in the child. */ 14334 _exit(close(fileno(stdout)) != 0); 14335 } else { 14336 int status; 14337 struct stat st; 14338 14339 while (wait(&status) != child) 14340 ; 14341 return ( 14342 /* Was there some problem with vforking? */ 14343 child < 0 14344 14345 /* Did the child fail? (This shouldn't happen.) */ 14346 || status 14347 14348 /* Did the vfork/compiler bug occur? */ 14349 || parent != getpid() 14350 14351 /* Did the file descriptor bug occur? */ 14352 || fstat(fileno(stdout), &st) != 0 14353 ); 14354 } 14355} 14356_ACEOF 14357if ac_fn_c_try_run "$LINENO"; then : 14358 ac_cv_func_vfork_works=yes 14359else 14360 ac_cv_func_vfork_works=no 14361fi 14362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14363 conftest.$ac_objext conftest.beam conftest.$ac_ext 14364fi 14365 14366fi 14367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14368$as_echo "$ac_cv_func_vfork_works" >&6; } 14369 14370fi; 14371if test "x$ac_cv_func_fork_works" = xcross; then 14372 ac_cv_func_vfork_works=$ac_cv_func_vfork 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14374$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14375fi 14376 14377if test "x$ac_cv_func_vfork_works" = xyes; then 14378 14379$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14380 14381else 14382 14383$as_echo "#define vfork fork" >>confdefs.h 14384 14385fi 14386if test "x$ac_cv_func_fork_works" = xyes; then 14387 14388$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14389 14390fi 14391 14392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 14393$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 14394if ${ac_cv_sys_largefile_source+:} false; then : 14395 $as_echo_n "(cached) " >&6 14396else 14397 while :; do 14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400#include <sys/types.h> /* for off_t */ 14401 #include <stdio.h> 14402int 14403main () 14404{ 14405int (*fp) (FILE *, off_t, int) = fseeko; 14406 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14407 ; 14408 return 0; 14409} 14410_ACEOF 14411if ac_fn_c_try_link "$LINENO"; then : 14412 ac_cv_sys_largefile_source=no; break 14413fi 14414rm -f core conftest.err conftest.$ac_objext \ 14415 conftest$ac_exeext conftest.$ac_ext 14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14417/* end confdefs.h. */ 14418#define _LARGEFILE_SOURCE 1 14419#include <sys/types.h> /* for off_t */ 14420 #include <stdio.h> 14421int 14422main () 14423{ 14424int (*fp) (FILE *, off_t, int) = fseeko; 14425 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14426 ; 14427 return 0; 14428} 14429_ACEOF 14430if ac_fn_c_try_link "$LINENO"; then : 14431 ac_cv_sys_largefile_source=1; break 14432fi 14433rm -f core conftest.err conftest.$ac_objext \ 14434 conftest$ac_exeext conftest.$ac_ext 14435 ac_cv_sys_largefile_source=unknown 14436 break 14437done 14438fi 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 14440$as_echo "$ac_cv_sys_largefile_source" >&6; } 14441case $ac_cv_sys_largefile_source in #( 14442 no | unknown) ;; 14443 *) 14444cat >>confdefs.h <<_ACEOF 14445#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 14446_ACEOF 14447;; 14448esac 14449rm -rf conftest* 14450 14451# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14452# in glibc 2.1.3, but that breaks too many other things. 14453# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14454if test $ac_cv_sys_largefile_source != unknown; then 14455 14456$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 14457 14458fi 14459 14460for ac_header in stdlib.h 14461do : 14462 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 14463if test "x$ac_cv_header_stdlib_h" = xyes; then : 14464 cat >>confdefs.h <<_ACEOF 14465#define HAVE_STDLIB_H 1 14466_ACEOF 14467 14468fi 14469 14470done 14471 14472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 14473$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 14474if ${ac_cv_func_malloc_0_nonnull+:} false; then : 14475 $as_echo_n "(cached) " >&6 14476else 14477 if test "$cross_compiling" = yes; then : 14478 ac_cv_func_malloc_0_nonnull=no 14479else 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482#if defined STDC_HEADERS || defined HAVE_STDLIB_H 14483# include <stdlib.h> 14484#else 14485char *malloc (); 14486#endif 14487 14488int 14489main () 14490{ 14491return ! malloc (0); 14492 ; 14493 return 0; 14494} 14495_ACEOF 14496if ac_fn_c_try_run "$LINENO"; then : 14497 ac_cv_func_malloc_0_nonnull=yes 14498else 14499 ac_cv_func_malloc_0_nonnull=no 14500fi 14501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14502 conftest.$ac_objext conftest.beam conftest.$ac_ext 14503fi 14504 14505fi 14506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 14507$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 14508if test $ac_cv_func_malloc_0_nonnull = yes; then : 14509 14510$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 14511 14512else 14513 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 14514 14515 case " $LIBOBJS " in 14516 *" malloc.$ac_objext "* ) ;; 14517 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 14518 ;; 14519esac 14520 14521 14522$as_echo "#define malloc rpl_malloc" >>confdefs.h 14523 14524fi 14525 14526 14527for ac_header in stdlib.h 14528do : 14529 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 14530if test "x$ac_cv_header_stdlib_h" = xyes; then : 14531 cat >>confdefs.h <<_ACEOF 14532#define HAVE_STDLIB_H 1 14533_ACEOF 14534 14535fi 14536 14537done 14538 14539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 14540$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 14541if ${ac_cv_func_realloc_0_nonnull+:} false; then : 14542 $as_echo_n "(cached) " >&6 14543else 14544 if test "$cross_compiling" = yes; then : 14545 ac_cv_func_realloc_0_nonnull=no 14546else 14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549#if defined STDC_HEADERS || defined HAVE_STDLIB_H 14550# include <stdlib.h> 14551#else 14552char *realloc (); 14553#endif 14554 14555int 14556main () 14557{ 14558return ! realloc (0, 0); 14559 ; 14560 return 0; 14561} 14562_ACEOF 14563if ac_fn_c_try_run "$LINENO"; then : 14564 ac_cv_func_realloc_0_nonnull=yes 14565else 14566 ac_cv_func_realloc_0_nonnull=no 14567fi 14568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14569 conftest.$ac_objext conftest.beam conftest.$ac_ext 14570fi 14571 14572fi 14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 14574$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 14575if test $ac_cv_func_realloc_0_nonnull = yes; then : 14576 14577$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 14578 14579else 14580 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 14581 14582 case " $LIBOBJS " in 14583 *" realloc.$ac_objext "* ) ;; 14584 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 14585 ;; 14586esac 14587 14588 14589$as_echo "#define realloc rpl_realloc" >>confdefs.h 14590 14591fi 14592 14593 14594 14595for ac_func in \ 14596 arc4random \ 14597 arc4random_uniform \ 14598 asprintf \ 14599 closefrom \ 14600 dirfd \ 14601 freeaddrinfo \ 14602 getaddrinfo \ 14603 getline \ 14604 gethostname \ 14605 getnameinfo \ 14606 getopt \ 14607 memmove \ 14608 memchr \ 14609 memset \ 14610 regcomp \ 14611 socketpair \ 14612 strdup \ 14613 strerror \ 14614 strncasecmp \ 14615 strpbrk \ 14616 strrchr \ 14617 strtol \ 14618 strtoumax \ 14619 strtoull \ 14620 strlcat \ 14621 strlcpy \ 14622 strtonum \ 14623 sysconf \ 14624 time \ 14625 tzset \ 14626 vasprintf \ 14627 vsnprintf 14628 14629do : 14630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14631ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14632if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14633 cat >>confdefs.h <<_ACEOF 14634#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14635_ACEOF 14636 14637fi 14638done 14639 14640 14641#l1723 14642ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " 14643#ifdef HAVE_STRING_H 14644# include <string.h> 14645#endif 14646 14647" 14648if test "x$ac_cv_have_decl_strsep" = xyes; then : 14649 for ac_func in strsep 14650do : 14651 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 14652if test "x$ac_cv_func_strsep" = xyes; then : 14653 cat >>confdefs.h <<_ACEOF 14654#define HAVE_STRSEP 1 14655_ACEOF 14656 14657fi 14658done 14659 14660fi 14661 14662#l1730 14663 14664#l1747 14665ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " 14666#include <sys/types.h> 14667#ifdef HAVE_SYS_STAT_H 14668# include <sys/stat.h> 14669#endif 14670#ifdef HAVE_FCNTL_H 14671# include <fcntl.h> 14672#endif 14673 14674" 14675if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : 14676 ac_have_decl=1 14677else 14678 ac_have_decl=0 14679fi 14680 14681cat >>confdefs.h <<_ACEOF 14682#define HAVE_DECL_O_NONBLOCK $ac_have_decl 14683_ACEOF 14684 14685 14686ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " 14687#include <sys/types.h> 14688#include <sys/uio.h> 14689#include <unistd.h> 14690 14691" 14692if test "x$ac_cv_have_decl_writev" = xyes; then : 14693 ac_have_decl=1 14694else 14695 ac_have_decl=0 14696fi 14697 14698cat >>confdefs.h <<_ACEOF 14699#define HAVE_DECL_WRITEV $ac_have_decl 14700_ACEOF 14701 14702 14703#l1873 14704# Check for broken snprintf 14705if test "x$ac_cv_func_snprintf" = "xyes" ; then 14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 14707$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } 14708 if test "$cross_compiling" = yes; then : 14709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 14710$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} 14711 14712else 14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14714/* end confdefs.h. */ 14715 #include <stdio.h> 14716int 14717main () 14718{ 14719 14720 char b[5]; 14721 snprintf(b,5,"123456789"); 14722 exit(b[4]!='\0'); 14723 14724 ; 14725 return 0; 14726} 14727_ACEOF 14728if ac_fn_c_try_run "$LINENO"; then : 14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14730$as_echo "yes" >&6; } 14731else 14732 14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14734$as_echo "no" >&6; } 14735 14736$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h 14737 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 14739$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} 14740 14741fi 14742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14743 conftest.$ac_objext conftest.beam conftest.$ac_ext 14744fi 14745 14746fi 14747 14748# If we don't have a working asprintf, then we strongly depend on vsnprintf 14749# returning the right thing on overflow: the number of characters it tried to 14750# create (as per SUSv3) 14751if test "x$ac_cv_func_asprintf" != "xyes" && \ 14752 test "x$ac_cv_func_vsnprintf" = "xyes" ; then 14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 14754$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } 14755 if test "$cross_compiling" = yes; then : 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 14757$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} 14758 14759else 14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14761/* end confdefs.h. */ 14762 14763#include <sys/types.h> 14764#include <stdio.h> 14765#include <stdarg.h> 14766 14767int x_snprintf(char *str,size_t count,const char *fmt,...) 14768{ 14769 size_t ret; va_list ap; 14770 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); 14771 return ret; 14772} 14773 14774int 14775main () 14776{ 14777 14778 char x[1]; 14779 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); 14780 14781 ; 14782 return 0; 14783} 14784_ACEOF 14785if ac_fn_c_try_run "$LINENO"; then : 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14787$as_echo "yes" >&6; } 14788else 14789 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14791$as_echo "no" >&6; } 14792 14793$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h 14794 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 14796$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} 14797 14798fi 14799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14800 conftest.$ac_objext conftest.beam conftest.$ac_ext 14801fi 14802 14803fi 14804 14805# On systems where [v]snprintf is broken, but is declared in stdio, 14806# check that the fmt argument is const char * or just char *. 14807# This is only useful for when BROKEN_SNPRINTF 14808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 14809$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } 14810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14811/* end confdefs.h. */ 14812 14813#include <stdio.h> 14814int snprintf(char *a, size_t b, const char *c, ...) { return 0; } 14815 14816int 14817main () 14818{ 14819 14820 snprintf(0, 0, 0); 14821 14822 ; 14823 return 0; 14824} 14825_ACEOF 14826if ac_fn_c_try_compile "$LINENO"; then : 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14828$as_echo "yes" >&6; } 14829 14830$as_echo "#define SNPRINTF_CONST const" >>confdefs.h 14831 14832else 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14834$as_echo "no" >&6; } 14835 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h 14836 14837fi 14838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14839 14840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 14841$as_echo_n "checking for (overly) strict mkstemp... " >&6; } 14842if test "$cross_compiling" = yes; then : 14843 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14845$as_echo "yes" >&6; } 14846 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h 14847 14848 14849 14850else 14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14852/* end confdefs.h. */ 14853 14854#include <stdlib.h> 14855 14856int 14857main () 14858{ 14859 14860 char template[]="conftest.mkstemp-test"; 14861 if (mkstemp(template) == -1) 14862 exit(1); 14863 unlink(template); 14864 exit(0); 14865 14866 ; 14867 return 0; 14868} 14869_ACEOF 14870if ac_fn_c_try_run "$LINENO"; then : 14871 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14873$as_echo "no" >&6; } 14874 14875else 14876 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14878$as_echo "yes" >&6; } 14879 14880$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h 14881 14882 14883fi 14884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14885 conftest.$ac_objext conftest.beam conftest.$ac_ext 14886fi 14887 14888#l1982 14889 14890#l2174 (customized, bu adding -lssl to LIBS) 14891# Search for OpenSSL 14892saved_CPPFLAGS="$CPPFLAGS" 14893saved_LDFLAGS="$LDFLAGS" 14894 14895# Check whether --with-libssl was given. 14896if test "${with_libssl+set}" = set; then : 14897 withval=$with_libssl; 14898 if test "x$withval" != "xno" ; then 14899 case "$withval" in 14900 # Relative paths 14901 ./*|../*) withval="`pwd`/$withval" 14902 esac 14903 if test -d "$withval/lib"; then 14904 if test -n "${need_dash_r}"; then 14905 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 14906 else 14907 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 14908 fi 14909 elif test -d "$withval/lib64"; then 14910 if test -n "${need_dash_r}"; then 14911 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" 14912 else 14913 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" 14914 fi 14915 else 14916 if test -n "${need_dash_r}"; then 14917 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" 14918 else 14919 LDFLAGS="-L${withval} ${LDFLAGS}" 14920 fi 14921 fi 14922 if test -d "$withval/include"; then 14923 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 14924 else 14925 CPPFLAGS="-I${withval} ${CPPFLAGS}" 14926 fi 14927 fi 14928 14929 14930fi 14931 14932## XXX chl -lssl manually added 14933LIBS="-lcrypto -lssl $LIBS" 14934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14935/* end confdefs.h. */ 14936 14937/* Override any GCC internal prototype to avoid an error. 14938 Use char because int might match the return type of a GCC 14939 builtin and then its argument prototype would still apply. */ 14940#ifdef __cplusplus 14941extern "C" 14942#endif 14943char RAND_add (); 14944int 14945main () 14946{ 14947return RAND_add (); 14948 ; 14949 return 0; 14950} 14951_ACEOF 14952if ac_fn_c_try_link "$LINENO"; then : 14953 14954$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 14955 14956else 14957 14958 if test -n "${need_dash_r}"; then 14959 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" 14960 else 14961 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" 14962 fi 14963 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" 14964 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" 14965if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : 14966 14967else 14968 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 14969fi 14970 14971 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973/* end confdefs.h. */ 14974 14975/* Override any GCC internal prototype to avoid an error. 14976 Use char because int might match the return type of a GCC 14977 builtin and then its argument prototype would still apply. */ 14978#ifdef __cplusplus 14979extern "C" 14980#endif 14981char RAND_add (); 14982int 14983main () 14984{ 14985return RAND_add (); 14986 ; 14987 return 0; 14988} 14989_ACEOF 14990if ac_fn_c_try_link "$LINENO"; then : 14991 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 14992 14993else 14994 14995 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 14996 14997 14998fi 14999rm -f core conftest.err conftest.$ac_objext \ 15000 conftest$ac_exeext conftest.$ac_ext 15001 15002 15003fi 15004rm -f core conftest.err conftest.$ac_objext \ 15005 conftest$ac_exeext conftest.$ac_ext 15006 15007# XXX make --without-openssl work 15008 15009cat >>confdefs.h <<_ACEOF 15010#define WITH_OPENSSL 1 15011_ACEOF 15012 15013 15014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 15015$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } 15016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15017/* end confdefs.h. */ 15018 #include <openssl/evp.h> 15019int 15020main () 15021{ 15022 SSLeay_add_all_algorithms(); 15023 ; 15024 return 0; 15025} 15026_ACEOF 15027if ac_fn_c_try_link "$LINENO"; then : 15028 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15030$as_echo "yes" >&6; } 15031 15032else 15033 15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15035$as_echo "no" >&6; } 15036 saved_LIBS="$LIBS" 15037 LIBS="$LIBS -ldl" 15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 15039$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } 15040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15041/* end confdefs.h. */ 15042 #include <openssl/evp.h> 15043int 15044main () 15045{ 15046 SSLeay_add_all_algorithms(); 15047 ; 15048 return 0; 15049} 15050_ACEOF 15051if ac_fn_c_try_link "$LINENO"; then : 15052 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15054$as_echo "yes" >&6; } 15055 15056else 15057 15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15059$as_echo "no" >&6; } 15060 LIBS="$saved_LIBS" 15061 15062 15063fi 15064rm -f core conftest.err conftest.$ac_objext \ 15065 conftest$ac_exeext conftest.$ac_ext 15066 15067 15068fi 15069rm -f core conftest.err conftest.$ac_objext \ 15070 conftest$ac_exeext conftest.$ac_ext 15071 15072 15073SMTPD_USER=_smtpd 15074 15075# Check whether --with-user-smtpd was given. 15076if test "${with_user_smtpd+set}" = set; then : 15077 withval=$with_user_smtpd; 15078 if test -n "$withval" && test "x$withval" != "xno" && \ 15079 test "x${withval}" != "xyes"; then 15080 SMTPD_USER=$withval 15081 fi 15082 15083 15084fi 15085 15086 15087cat >>confdefs.h <<_ACEOF 15088#define SMTPD_USER "$SMTPD_USER" 15089_ACEOF 15090 15091 15092 15093# Checks for typedefs, structures, and compiler characteristics. 15094ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 15095if test "x$ac_cv_type_mode_t" = xyes; then : 15096 15097else 15098 15099cat >>confdefs.h <<_ACEOF 15100#define mode_t int 15101_ACEOF 15102 15103fi 15104 15105ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 15106if test "x$ac_cv_type_off_t" = xyes; then : 15107 15108else 15109 15110cat >>confdefs.h <<_ACEOF 15111#define off_t long int 15112_ACEOF 15113 15114fi 15115 15116ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15117if test "x$ac_cv_type_pid_t" = xyes; then : 15118 15119else 15120 15121cat >>confdefs.h <<_ACEOF 15122#define pid_t int 15123_ACEOF 15124 15125fi 15126 15127ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15128if test "x$ac_cv_type_size_t" = xyes; then : 15129 15130else 15131 15132cat >>confdefs.h <<_ACEOF 15133#define size_t unsigned int 15134_ACEOF 15135 15136fi 15137 15138ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 15139if test "x$ac_cv_type_ssize_t" = xyes; then : 15140 15141else 15142 15143cat >>confdefs.h <<_ACEOF 15144#define ssize_t int 15145_ACEOF 15146 15147fi 15148 15149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 15150$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 15151if ${ac_cv_type_uid_t+:} false; then : 15152 $as_echo_n "(cached) " >&6 15153else 15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15155/* end confdefs.h. */ 15156#include <sys/types.h> 15157 15158_ACEOF 15159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15160 $EGREP "uid_t" >/dev/null 2>&1; then : 15161 ac_cv_type_uid_t=yes 15162else 15163 ac_cv_type_uid_t=no 15164fi 15165rm -f conftest* 15166 15167fi 15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 15169$as_echo "$ac_cv_type_uid_t" >&6; } 15170if test $ac_cv_type_uid_t = no; then 15171 15172$as_echo "#define uid_t int" >>confdefs.h 15173 15174 15175$as_echo "#define gid_t int" >>confdefs.h 15176 15177fi 15178 15179ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 15180case $ac_cv_c_uint8_t in #( 15181 no|yes) ;; #( 15182 *) 15183 15184$as_echo "#define _UINT8_T 1" >>confdefs.h 15185 15186 15187cat >>confdefs.h <<_ACEOF 15188#define uint8_t $ac_cv_c_uint8_t 15189_ACEOF 15190;; 15191 esac 15192 15193ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 15194case $ac_cv_c_uint16_t in #( 15195 no|yes) ;; #( 15196 *) 15197 15198 15199cat >>confdefs.h <<_ACEOF 15200#define uint16_t $ac_cv_c_uint16_t 15201_ACEOF 15202;; 15203 esac 15204 15205ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 15206case $ac_cv_c_uint32_t in #( 15207 no|yes) ;; #( 15208 *) 15209 15210$as_echo "#define _UINT32_T 1" >>confdefs.h 15211 15212 15213cat >>confdefs.h <<_ACEOF 15214#define uint32_t $ac_cv_c_uint32_t 15215_ACEOF 15216;; 15217 esac 15218 15219ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 15220case $ac_cv_c_uint64_t in #( 15221 no|yes) ;; #( 15222 *) 15223 15224$as_echo "#define _UINT64_T 1" >>confdefs.h 15225 15226 15227cat >>confdefs.h <<_ACEOF 15228#define uint64_t $ac_cv_c_uint64_t 15229_ACEOF 15230;; 15231 esac 15232 15233 15234ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 15235if test "x$ac_cv_type_long_long" = xyes; then : 15236 15237cat >>confdefs.h <<_ACEOF 15238#define HAVE_LONG_LONG 1 15239_ACEOF 15240 15241 15242fi 15243ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" 15244if test "x$ac_cv_type_unsigned_long_long" = xyes; then : 15245 15246cat >>confdefs.h <<_ACEOF 15247#define HAVE_UNSIGNED_LONG_LONG 1 15248_ACEOF 15249 15250 15251fi 15252 15253 15254# The cast to long int works around a bug in the HP C Compiler 15255# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15256# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15257# This bug is HP SR number 8606223364. 15258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 15259$as_echo_n "checking size of short int... " >&6; } 15260if ${ac_cv_sizeof_short_int+:} false; then : 15261 $as_echo_n "(cached) " >&6 15262else 15263 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : 15264 15265else 15266 if test "$ac_cv_type_short_int" = yes; then 15267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15269as_fn_error 77 "cannot compute sizeof (short int) 15270See \`config.log' for more details" "$LINENO" 5; } 15271 else 15272 ac_cv_sizeof_short_int=0 15273 fi 15274fi 15275 15276fi 15277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 15278$as_echo "$ac_cv_sizeof_short_int" >&6; } 15279 15280 15281 15282cat >>confdefs.h <<_ACEOF 15283#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int 15284_ACEOF 15285 15286 15287# The cast to long int works around a bug in the HP C Compiler 15288# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15289# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15290# This bug is HP SR number 8606223364. 15291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 15292$as_echo_n "checking size of int... " >&6; } 15293if ${ac_cv_sizeof_int+:} false; then : 15294 $as_echo_n "(cached) " >&6 15295else 15296 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 15297 15298else 15299 if test "$ac_cv_type_int" = yes; then 15300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15302as_fn_error 77 "cannot compute sizeof (int) 15303See \`config.log' for more details" "$LINENO" 5; } 15304 else 15305 ac_cv_sizeof_int=0 15306 fi 15307fi 15308 15309fi 15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 15311$as_echo "$ac_cv_sizeof_int" >&6; } 15312 15313 15314 15315cat >>confdefs.h <<_ACEOF 15316#define SIZEOF_INT $ac_cv_sizeof_int 15317_ACEOF 15318 15319 15320# The cast to long int works around a bug in the HP C Compiler 15321# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15322# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15323# This bug is HP SR number 8606223364. 15324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 15325$as_echo_n "checking size of long int... " >&6; } 15326if ${ac_cv_sizeof_long_int+:} false; then : 15327 $as_echo_n "(cached) " >&6 15328else 15329 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : 15330 15331else 15332 if test "$ac_cv_type_long_int" = yes; then 15333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15335as_fn_error 77 "cannot compute sizeof (long int) 15336See \`config.log' for more details" "$LINENO" 5; } 15337 else 15338 ac_cv_sizeof_long_int=0 15339 fi 15340fi 15341 15342fi 15343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 15344$as_echo "$ac_cv_sizeof_long_int" >&6; } 15345 15346 15347 15348cat >>confdefs.h <<_ACEOF 15349#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 15350_ACEOF 15351 15352 15353# The cast to long int works around a bug in the HP C Compiler 15354# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15355# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15356# This bug is HP SR number 8606223364. 15357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 15358$as_echo_n "checking size of long long int... " >&6; } 15359if ${ac_cv_sizeof_long_long_int+:} false; then : 15360 $as_echo_n "(cached) " >&6 15361else 15362 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : 15363 15364else 15365 if test "$ac_cv_type_long_long_int" = yes; then 15366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15368as_fn_error 77 "cannot compute sizeof (long long int) 15369See \`config.log' for more details" "$LINENO" 5; } 15370 else 15371 ac_cv_sizeof_long_long_int=0 15372 fi 15373fi 15374 15375fi 15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 15377$as_echo "$ac_cv_sizeof_long_long_int" >&6; } 15378 15379 15380 15381cat >>confdefs.h <<_ACEOF 15382#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int 15383_ACEOF 15384 15385 15386 15387# Sanity check long long for some platforms (AIX) 15388if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then 15389 ac_cv_sizeof_long_long_int=0 15390fi 15391 15392# compute LLONG_MIN and LLONG_MAX if we don't know them. 15393if test -z "$have_llong_max"; then 15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 15395$as_echo_n "checking for max value of long long... " >&6; } 15396 if test "$cross_compiling" = yes; then : 15397 15398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 15399$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} 15400 15401 15402else 15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15404/* end confdefs.h. */ 15405 15406#include <stdio.h> 15407/* Why is this so damn hard? */ 15408#ifdef __GNUC__ 15409# undef __GNUC__ 15410#endif 15411#define __USE_ISOC99 15412#include <limits.h> 15413#define DATA "conftest.llminmax" 15414#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) 15415 15416/* 15417 * printf in libc on some platforms (eg old Tru64) does not understand %lld so 15418 * we do this the hard way. 15419 */ 15420static int 15421fprint_ll(FILE *f, long long n) 15422{ 15423 unsigned int i; 15424 int l[sizeof(long long) * 8]; 15425 15426 if (n < 0) 15427 if (fprintf(f, "-") < 0) 15428 return -1; 15429 for (i = 0; n != 0; i++) { 15430 l[i] = my_abs(n % 10); 15431 n /= 10; 15432 } 15433 do { 15434 if (fprintf(f, "%d", l[--i]) < 0) 15435 return -1; 15436 } while (i != 0); 15437 if (fprintf(f, " ") < 0) 15438 return -1; 15439 return 0; 15440} 15441 15442int 15443main () 15444{ 15445 15446 FILE *f; 15447 long long i, llmin, llmax = 0; 15448 15449 if((f = fopen(DATA,"w")) == NULL) 15450 exit(1); 15451 15452#if defined(LLONG_MIN) && defined(LLONG_MAX) 15453 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); 15454 llmin = LLONG_MIN; 15455 llmax = LLONG_MAX; 15456#else 15457 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); 15458 /* This will work on one's complement and two's complement */ 15459 for (i = 1; i > llmax; i <<= 1, i++) 15460 llmax = i; 15461 llmin = llmax + 1LL; /* wrap */ 15462#endif 15463 15464 /* Sanity check */ 15465 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax 15466 || llmax - 1 > llmax || llmin == llmax || llmin == 0 15467 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { 15468 fprintf(f, "unknown unknown\n"); 15469 exit(2); 15470 } 15471 15472 if (fprint_ll(f, llmin) < 0) 15473 exit(3); 15474 if (fprint_ll(f, llmax) < 0) 15475 exit(4); 15476 if (fclose(f) < 0) 15477 exit(5); 15478 exit(0); 15479 15480 ; 15481 return 0; 15482} 15483_ACEOF 15484if ac_fn_c_try_run "$LINENO"; then : 15485 15486 llong_min=`$AWK '{print $1}' conftest.llminmax` 15487 llong_max=`$AWK '{print $2}' conftest.llminmax` 15488 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 15490$as_echo "$llong_max" >&6; } 15491 15492cat >>confdefs.h <<_ACEOF 15493#define LLONG_MAX ${llong_max}LL 15494_ACEOF 15495 15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 15497$as_echo_n "checking for min value of long long... " >&6; } 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 15499$as_echo "$llong_min" >&6; } 15500 15501cat >>confdefs.h <<_ACEOF 15502#define LLONG_MIN ${llong_min}LL 15503_ACEOF 15504 15505 15506else 15507 15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15509$as_echo "not found" >&6; } 15510 15511fi 15512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15513 conftest.$ac_objext conftest.beam conftest.$ac_ext 15514fi 15515 15516fi 15517 15518 15519# More checks for data types 15520 15521 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 15522#include <sys/socket.h> 15523" 15524if test "x$ac_cv_type_socklen_t" = xyes; then : 15525 15526else 15527 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 15529$as_echo_n "checking for socklen_t equivalent... " >&6; } 15530 if ${curl_cv_socklen_t_equiv+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532else 15533 15534 # Systems have either "struct sockaddr *" or 15535 # "void *" as the second argument to getpeername 15536 curl_cv_socklen_t_equiv= 15537 for arg2 in "struct sockaddr" void; do 15538 for t in int size_t unsigned long "unsigned long"; do 15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15540/* end confdefs.h. */ 15541 15542 #include <sys/types.h> 15543 #include <sys/socket.h> 15544 15545 int getpeername (int, $arg2 *, $t *); 15546 15547int 15548main () 15549{ 15550 15551 $t len; 15552 getpeername(0,0,&len); 15553 15554 ; 15555 return 0; 15556} 15557_ACEOF 15558if ac_fn_c_try_compile "$LINENO"; then : 15559 15560 curl_cv_socklen_t_equiv="$t" 15561 break 15562 15563fi 15564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15565 done 15566 done 15567 15568 if test "x$curl_cv_socklen_t_equiv" = x; then 15569 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 15570 fi 15571 15572fi 15573 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 15575$as_echo "$curl_cv_socklen_t_equiv" >&6; } 15576 15577cat >>confdefs.h <<_ACEOF 15578#define socklen_t $curl_cv_socklen_t_equiv 15579_ACEOF 15580 15581fi 15582 15583 15584 15585 15586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 15587$as_echo_n "checking for struct sockaddr_storage... " >&6; } 15588if ${ac_cv_have_struct_sockaddr_storage+:} false; then : 15589 $as_echo_n "(cached) " >&6 15590else 15591 15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593/* end confdefs.h. */ 15594 15595#include <sys/types.h> 15596#include <sys/socket.h> 15597 15598int 15599main () 15600{ 15601 struct sockaddr_storage s; 15602 ; 15603 return 0; 15604} 15605_ACEOF 15606if ac_fn_c_try_compile "$LINENO"; then : 15607 ac_cv_have_struct_sockaddr_storage="yes" 15608else 15609 ac_cv_have_struct_sockaddr_storage="no" 15610 15611fi 15612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15613 15614fi 15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 15616$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } 15617if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then 15618 15619$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 15620 15621fi 15622 15623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 15624$as_echo_n "checking for struct sockaddr_in6... " >&6; } 15625if ${ac_cv_have_struct_sockaddr_in6+:} false; then : 15626 $as_echo_n "(cached) " >&6 15627else 15628 15629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15630/* end confdefs.h. */ 15631 15632#include <sys/types.h> 15633#include <netinet/in.h> 15634 15635int 15636main () 15637{ 15638 struct sockaddr_in6 s; s.sin6_family = 0; 15639 ; 15640 return 0; 15641} 15642_ACEOF 15643if ac_fn_c_try_compile "$LINENO"; then : 15644 ac_cv_have_struct_sockaddr_in6="yes" 15645else 15646 ac_cv_have_struct_sockaddr_in6="no" 15647 15648fi 15649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15650 15651fi 15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 15653$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } 15654if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then 15655 15656$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h 15657 15658fi 15659 15660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 15661$as_echo_n "checking for struct in6_addr... " >&6; } 15662if ${ac_cv_have_struct_in6_addr+:} false; then : 15663 $as_echo_n "(cached) " >&6 15664else 15665 15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15667/* end confdefs.h. */ 15668 15669#include <sys/types.h> 15670#include <netinet/in.h> 15671 15672int 15673main () 15674{ 15675 struct in6_addr s; s.s6_addr[0] = 0; 15676 ; 15677 return 0; 15678} 15679_ACEOF 15680if ac_fn_c_try_compile "$LINENO"; then : 15681 ac_cv_have_struct_in6_addr="yes" 15682else 15683 ac_cv_have_struct_in6_addr="no" 15684 15685fi 15686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15687 15688fi 15689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 15690$as_echo "$ac_cv_have_struct_in6_addr" >&6; } 15691if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then 15692 15693$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h 15694 15695 15696 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " 15697#ifdef HAVE_SYS_TYPES_H 15698#include <sys/types.h> 15699#endif 15700#include <netinet/in.h> 15701 15702" 15703if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : 15704 15705cat >>confdefs.h <<_ACEOF 15706#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 15707_ACEOF 15708 15709 15710fi 15711 15712fi 15713 15714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 15715$as_echo_n "checking for struct addrinfo... " >&6; } 15716if ${ac_cv_have_struct_addrinfo+:} false; then : 15717 $as_echo_n "(cached) " >&6 15718else 15719 15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15721/* end confdefs.h. */ 15722 15723#include <sys/types.h> 15724#include <sys/socket.h> 15725#include <netdb.h> 15726 15727int 15728main () 15729{ 15730 struct addrinfo s; s.ai_flags = AI_PASSIVE; 15731 ; 15732 return 0; 15733} 15734_ACEOF 15735if ac_fn_c_try_compile "$LINENO"; then : 15736 ac_cv_have_struct_addrinfo="yes" 15737else 15738 ac_cv_have_struct_addrinfo="no" 15739 15740fi 15741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15742 15743fi 15744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 15745$as_echo "$ac_cv_have_struct_addrinfo" >&6; } 15746if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then 15747 15748$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 15749 15750fi 15751 15752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 15753$as_echo_n "checking for struct timeval... " >&6; } 15754if ${ac_cv_have_struct_timeval+:} false; then : 15755 $as_echo_n "(cached) " >&6 15756else 15757 15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15759/* end confdefs.h. */ 15760 #include <sys/time.h> 15761int 15762main () 15763{ 15764 struct timeval tv; tv.tv_sec = 1; 15765 ; 15766 return 0; 15767} 15768_ACEOF 15769if ac_fn_c_try_compile "$LINENO"; then : 15770 ac_cv_have_struct_timeval="yes" 15771else 15772 ac_cv_have_struct_timeval="no" 15773 15774fi 15775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15776 15777fi 15778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 15779$as_echo "$ac_cv_have_struct_timeval" >&6; } 15780if test "x$ac_cv_have_struct_timeval" = "xyes" ; then 15781 15782$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h 15783 15784 have_struct_timeval=1 15785fi 15786 15787#l3561 15788ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 15789#include <sys/types.h> 15790#include <pwd.h> 15791 15792" 15793if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : 15794 15795cat >>confdefs.h <<_ACEOF 15796#define HAVE_STRUCT_PASSWD_PW_GECOS 1 15797_ACEOF 15798 15799 15800fi 15801 15802 15803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 15804$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } 15805if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : 15806 $as_echo_n "(cached) " >&6 15807else 15808 15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15810/* end confdefs.h. */ 15811 15812#include <sys/types.h> 15813#include <sys/socket.h> 15814 15815int 15816main () 15817{ 15818 struct sockaddr_storage s; s.ss_family = 1; 15819 ; 15820 return 0; 15821} 15822_ACEOF 15823if ac_fn_c_try_compile "$LINENO"; then : 15824 ac_cv_have_ss_family_in_struct_ss="yes" 15825else 15826 ac_cv_have_ss_family_in_struct_ss="no" 15827fi 15828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15829 15830fi 15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 15832$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } 15833if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then 15834 15835$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h 15836 15837fi 15838 15839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 15840$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } 15841if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : 15842 $as_echo_n "(cached) " >&6 15843else 15844 15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15846/* end confdefs.h. */ 15847 15848#include <sys/types.h> 15849#include <sys/socket.h> 15850 15851int 15852main () 15853{ 15854 struct sockaddr_storage s; s.__ss_family = 1; 15855 ; 15856 return 0; 15857} 15858_ACEOF 15859if ac_fn_c_try_compile "$LINENO"; then : 15860 ac_cv_have___ss_family_in_struct_ss="yes" 15861else 15862 ac_cv_have___ss_family_in_struct_ss="no" 15863 15864fi 15865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15866 15867fi 15868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 15869$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } 15870if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then 15871 15872$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 15873 15874fi 15875 15876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 15877$as_echo_n "checking for msg_control field in struct msghdr... " >&6; } 15878if ${ac_cv_have_control_in_msghdr+:} false; then : 15879 $as_echo_n "(cached) " >&6 15880else 15881 15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15883/* end confdefs.h. */ 15884 15885#include <sys/types.h> 15886#include <sys/socket.h> 15887#include <sys/uio.h> 15888 15889int 15890main () 15891{ 15892 15893#ifdef msg_control 15894#error "msg_control is a macro" 15895exit(1); 15896#endif 15897struct msghdr m; 15898m.msg_control = 0; 15899exit(0); 15900 15901 ; 15902 return 0; 15903} 15904_ACEOF 15905if ac_fn_c_try_compile "$LINENO"; then : 15906 ac_cv_have_control_in_msghdr="yes" 15907else 15908 ac_cv_have_control_in_msghdr="no" 15909 15910fi 15911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15912 15913fi 15914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 15915$as_echo "$ac_cv_have_control_in_msghdr" >&6; } 15916if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then 15917 15918$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h 15919 15920fi 15921 15922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 15923$as_echo_n "checking if libc defines __progname... " >&6; } 15924if ${ac_cv_libc_defines___progname+:} false; then : 15925 $as_echo_n "(cached) " >&6 15926else 15927 15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15929/* end confdefs.h. */ 15930 15931int 15932main () 15933{ 15934 extern char *__progname; printf("%s", __progname); 15935 ; 15936 return 0; 15937} 15938_ACEOF 15939if ac_fn_c_try_link "$LINENO"; then : 15940 ac_cv_libc_defines___progname="yes" 15941else 15942 ac_cv_libc_defines___progname="no" 15943 15944fi 15945rm -f core conftest.err conftest.$ac_objext \ 15946 conftest$ac_exeext conftest.$ac_ext 15947 15948fi 15949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 15950$as_echo "$ac_cv_libc_defines___progname" >&6; } 15951if test "x$ac_cv_libc_defines___progname" = "xyes" ; then 15952 15953$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h 15954 15955fi 15956 15957#l4010 15958# Looking for programs, paths and files 15959 15960PRIVSEP_PATH=/var/empty 15961 15962# Check whether --with-path-empty was given. 15963if test "${with_path_empty+set}" = set; then : 15964 withval=$with_path_empty; 15965 if test -n "$withval" && test "x$withval" != "xno" && \ 15966 test "x${withval}" != "xyes"; then 15967 PRIVSEP_PATH=$withval 15968 fi 15969 15970 15971fi 15972 15973 15974#l4022 15975 15976#l4045 15977STRIP_OPT=-s 15978# Check whether --enable-strip was given. 15979if test "${enable_strip+set}" = set; then : 15980 enableval=$enable_strip; 15981 if test "x$enableval" = "xno" ; then 15982 STRIP_OPT= 15983 fi 15984 15985 15986fi 15987 15988 15989#l4054 15990 15991#l4176 (customized s/ssh.1/smtpd/smtpd.8/) 15992# Options from here on. Some of these are preset by platform above 15993 15994# Check whether --with-mantype was given. 15995if test "${with_mantype+set}" = set; then : 15996 withval=$with_mantype; 15997 case "$withval" in 15998 man|cat|doc) 15999 MANTYPE=$withval 16000 ;; 16001 *) 16002 as_fn_error $? "invalid man type: $withval" "$LINENO" 5 16003 ;; 16004 esac 16005 16006 16007fi 16008 16009if test -z "$MANTYPE"; then 16010 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" 16011 for ac_prog in nroff awf 16012do 16013 # Extract the first word of "$ac_prog", so it can be a program name with args. 16014set dummy $ac_prog; ac_word=$2 16015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16016$as_echo_n "checking for $ac_word... " >&6; } 16017if ${ac_cv_path_NROFF+:} false; then : 16018 $as_echo_n "(cached) " >&6 16019else 16020 case $NROFF in 16021 [\\/]* | ?:[\\/]*) 16022 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 16023 ;; 16024 *) 16025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16026for as_dir in $TestPath 16027do 16028 IFS=$as_save_IFS 16029 test -z "$as_dir" && as_dir=. 16030 for ac_exec_ext in '' $ac_executable_extensions; do 16031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16032 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 16033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16034 break 2 16035 fi 16036done 16037 done 16038IFS=$as_save_IFS 16039 16040 ;; 16041esac 16042fi 16043NROFF=$ac_cv_path_NROFF 16044if test -n "$NROFF"; then 16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 16046$as_echo "$NROFF" >&6; } 16047else 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16049$as_echo "no" >&6; } 16050fi 16051 16052 16053 test -n "$NROFF" && break 16054done 16055test -n "$NROFF" || NROFF="/bin/false" 16056 16057 if ${NROFF} -mdoc ${srcdir}/smtpd/smtpd.8 >/dev/null 2>&1; then 16058 MANTYPE=doc 16059 elif ${NROFF} -man ${srcdir}/smtpd/smtpd.8 >/dev/null 2>&1; then 16060 MANTYPE=man 16061 else 16062 MANTYPE=cat 16063 fi 16064fi 16065 16066if test "$MANTYPE" = "doc"; then 16067 mansubdir=man; 16068else 16069 mansubdir=$MANTYPE; 16070fi 16071 16072#l4207 16073 16074case "$host" in 16075*-*-openbsd*) 16076 pkglibexecdir="$libexecdir/smtpd" 16077 ;; 16078*) 16079 pkglibexecdir="$libexecdir/opensmtpd" 16080 ;; 16081esac 16082 16083 16084 16085# 16086# individual modules 16087# 16088 16089HAVE_FILTER_MONKEY=no 16090 16091# Check whether --with-filter-monkey was given. 16092if test "${with_filter_monkey+set}" = set; then : 16093 withval=$with_filter_monkey; 16094 if test "x$withval" != "xno" ; then 16095 16096$as_echo "#define HAVE_FILTER_MONKEY 1" >>confdefs.h 16097 16098 HAVE_FILTER_MONKEY=yes 16099 fi 16100 16101 16102fi 16103 16104 if test $HAVE_FILTER_MONKEY = yes; then 16105 HAVE_FILTER_MONKEY_TRUE= 16106 HAVE_FILTER_MONKEY_FALSE='#' 16107else 16108 HAVE_FILTER_MONKEY_TRUE='#' 16109 HAVE_FILTER_MONKEY_FALSE= 16110fi 16111 16112 16113HAVE_FILTER_STUB=no 16114 16115# Check whether --with-filter-stub was given. 16116if test "${with_filter_stub+set}" = set; then : 16117 withval=$with_filter_stub; 16118 if test "x$withval" != "xno" ; then 16119 16120$as_echo "#define HAVE_FILTER_STUB 1" >>confdefs.h 16121 16122 HAVE_FILTER_STUB=yes 16123 fi 16124 16125 16126fi 16127 16128 if test $HAVE_FILTER_STUB = yes; then 16129 HAVE_FILTER_STUB_TRUE= 16130 HAVE_FILTER_STUB_FALSE='#' 16131else 16132 HAVE_FILTER_STUB_TRUE='#' 16133 HAVE_FILTER_STUB_FALSE= 16134fi 16135 16136 16137HAVE_FILTER_TRACE=no 16138 16139# Check whether --with-filter-trace was given. 16140if test "${with_filter_trace+set}" = set; then : 16141 withval=$with_filter_trace; 16142 if test "x$withval" != "xno" ; then 16143 16144$as_echo "#define HAVE_FILTER_TRACE 1" >>confdefs.h 16145 16146 HAVE_FILTER_TRACE=yes 16147 fi 16148 16149 16150fi 16151 16152 if test $HAVE_FILTER_TRACE = yes; then 16153 HAVE_FILTER_TRACE_TRUE= 16154 HAVE_FILTER_TRACE_FALSE='#' 16155else 16156 HAVE_FILTER_TRACE_TRUE='#' 16157 HAVE_FILTER_TRACE_FALSE= 16158fi 16159 16160 16161HAVE_FILTER_VOID=no 16162 16163# Check whether --with-filter-void was given. 16164if test "${with_filter_void+set}" = set; then : 16165 withval=$with_filter_void; 16166 if test "x$withval" != "xno" ; then 16167 16168$as_echo "#define HAVE_FILTER_VOID 1" >>confdefs.h 16169 16170 HAVE_FILTER_VOID=yes 16171 fi 16172 16173 16174fi 16175 16176 if test $HAVE_FILTER_VOID = yes; then 16177 HAVE_FILTER_VOID_TRUE= 16178 HAVE_FILTER_VOID_FALSE='#' 16179else 16180 HAVE_FILTER_VOID_TRUE='#' 16181 HAVE_FILTER_VOID_FALSE= 16182fi 16183 16184 16185 16186# 16187# QUEUES 16188# 16189HAVE_QUEUE_NULL=no 16190 16191# Check whether --with-queue-null was given. 16192if test "${with_queue_null+set}" = set; then : 16193 withval=$with_queue_null; 16194 if test "x$withval" != "xno" ; then 16195 16196$as_echo "#define HAVE_QUEUE_NULL 1" >>confdefs.h 16197 16198 HAVE_QUEUE_NULL=yes 16199 fi 16200 16201 16202fi 16203 16204 if test $HAVE_QUEUE_NULL = yes; then 16205 HAVE_QUEUE_NULL_TRUE= 16206 HAVE_QUEUE_NULL_FALSE='#' 16207else 16208 HAVE_QUEUE_NULL_TRUE='#' 16209 HAVE_QUEUE_NULL_FALSE= 16210fi 16211 16212 16213HAVE_QUEUE_PYTHON=no 16214 16215# Check whether --with-queue-python was given. 16216if test "${with_queue_python+set}" = set; then : 16217 withval=$with_queue_python; 16218 if test "x$withval" != "xno" ; then 16219 16220$as_echo "#define HAVE_QUEUE_PYTHON 1" >>confdefs.h 16221 16222 HAVE_QUEUE_PYTHON=yes 16223 need_python=yes 16224 fi 16225 16226 16227fi 16228 16229 if test $HAVE_QUEUE_PYTHON = yes; then 16230 HAVE_QUEUE_PYTHON_TRUE= 16231 HAVE_QUEUE_PYTHON_FALSE='#' 16232else 16233 HAVE_QUEUE_PYTHON_TRUE='#' 16234 HAVE_QUEUE_PYTHON_FALSE= 16235fi 16236 16237 16238HAVE_QUEUE_RAM=no 16239 16240# Check whether --with-queue-ram was given. 16241if test "${with_queue_ram+set}" = set; then : 16242 withval=$with_queue_ram; 16243 if test "x$withval" != "xno" ; then 16244 16245$as_echo "#define HAVE_QUEUE_RAM 1" >>confdefs.h 16246 16247 HAVE_QUEUE_RAM=yes 16248 fi 16249 16250 16251fi 16252 16253 if test $HAVE_QUEUE_RAM = yes; then 16254 HAVE_QUEUE_RAM_TRUE= 16255 HAVE_QUEUE_RAM_FALSE='#' 16256else 16257 HAVE_QUEUE_RAM_TRUE='#' 16258 HAVE_QUEUE_RAM_FALSE= 16259fi 16260 16261 16262HAVE_QUEUE_STUB=no 16263 16264# Check whether --with-queue-stub was given. 16265if test "${with_queue_stub+set}" = set; then : 16266 withval=$with_queue_stub; 16267 if test "x$withval" != "xno" ; then 16268 16269$as_echo "#define HAVE_QUEUE_STUB 1" >>confdefs.h 16270 16271 HAVE_QUEUE_STUB=yes 16272 fi 16273 16274 16275fi 16276 16277 if test $HAVE_QUEUE_STUB = yes; then 16278 HAVE_QUEUE_STUB_TRUE= 16279 HAVE_QUEUE_STUB_FALSE='#' 16280else 16281 HAVE_QUEUE_STUB_TRUE='#' 16282 HAVE_QUEUE_STUB_FALSE= 16283fi 16284 16285 16286 16287 16288# 16289# TABLES 16290# 16291 16292# Whether to enable *experimental* LDAP support 16293HAVE_TABLE_LDAP=no 16294 16295# Check whether --with-table-ldap was given. 16296if test "${with_table_ldap+set}" = set; then : 16297 withval=$with_table_ldap; 16298 if test "x$withval" != "xno" ; then 16299 16300$as_echo "#define HAVE_TABLE_LDAP 1" >>confdefs.h 16301 16302 HAVE_TABLE_LDAP=yes 16303 fi 16304 16305 16306fi 16307 16308 if test $HAVE_TABLE_LDAP = yes; then 16309 HAVE_TABLE_LDAP_TRUE= 16310 HAVE_TABLE_LDAP_FALSE='#' 16311else 16312 HAVE_TABLE_LDAP_TRUE='#' 16313 HAVE_TABLE_LDAP_FALSE= 16314fi 16315 16316 16317# Whether to enable *experimental* MySQL support 16318HAVE_TABLE_MYSQL=no 16319 16320# Check whether --with-table-mysql was given. 16321if test "${with_table_mysql+set}" = set; then : 16322 withval=$with_table_mysql; 16323 if test "x$withval" != "xno" ; then 16324 16325$as_echo "#define HAVE_TABLE_MYSQL 1" >>confdefs.h 16326 16327 HAVE_TABLE_MYSQL=yes 16328 # Extract the first word of "mysql_config", so it can be a program name with args. 16329set dummy mysql_config; ac_word=$2 16330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16331$as_echo_n "checking for $ac_word... " >&6; } 16332if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 16333 $as_echo_n "(cached) " >&6 16334else 16335 case $MYSQL_CONFIG in 16336 [\\/]* | ?:[\\/]*) 16337 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 16338 ;; 16339 *) 16340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16341for as_dir in $PATH 16342do 16343 IFS=$as_save_IFS 16344 test -z "$as_dir" && as_dir=. 16345 for ac_exec_ext in '' $ac_executable_extensions; do 16346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16347 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16349 break 2 16350 fi 16351done 16352 done 16353IFS=$as_save_IFS 16354 16355 ;; 16356esac 16357fi 16358MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 16359if test -n "$MYSQL_CONFIG"; then 16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 16361$as_echo "$MYSQL_CONFIG" >&6; } 16362else 16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16364$as_echo "no" >&6; } 16365fi 16366 16367 16368 if test "x$MYSQL_CONFIG" = "x"; then 16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found, proceeding with default settings" >&5 16370$as_echo "mysql_config not found, proceeding with default settings" >&6; } 16371 else 16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL lib path" >&5 16373$as_echo_n "checking for MySQL lib path... " >&6; } 16374 MYSQL_LIBS=`"$MYSQL_CONFIG" --libs | sed -n 's#.*-L\(\"/[^\"]*\"\).*#\1#p;s#.*-L\(/[^[:space:]]*\).*#\1#p;'` 16375 if test "x$MYSQL_LIBS" = "x"; then 16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, proceeding with default settings" >&5 16377$as_echo "not found, proceeding with default settings" >&6; } 16378 else 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $MYSQL_LIBS" >&5 16380$as_echo "found $MYSQL_LIBS" >&6; } 16381 LDFLAGS="-L${MYSQL_LIBS} ${LDFLAGS}" 16382 fi 16383 fi 16384 fi 16385 16386 16387fi 16388 16389 if test $HAVE_TABLE_MYSQL = yes; then 16390 HAVE_TABLE_MYSQL_TRUE= 16391 HAVE_TABLE_MYSQL_FALSE='#' 16392else 16393 HAVE_TABLE_MYSQL_TRUE='#' 16394 HAVE_TABLE_MYSQL_FALSE= 16395fi 16396 16397 16398# Whether to enable *experimental* PostgreSQL support 16399HAVE_TABLE_POSTGRES=no 16400 16401# Check whether --with-table-postgres was given. 16402if test "${with_table_postgres+set}" = set; then : 16403 withval=$with_table_postgres; 16404 if test "x$withval" != "xno" ; then 16405 16406$as_echo "#define HAVE_TABLE_POSTGRES 1" >>confdefs.h 16407 16408 HAVE_TABLE_POSTGRES=yes 16409 fi 16410 16411 16412fi 16413 16414 if test $HAVE_TABLE_POSTGRES = yes; then 16415 HAVE_TABLE_POSTGRES_TRUE= 16416 HAVE_TABLE_POSTGRES_FALSE='#' 16417else 16418 HAVE_TABLE_POSTGRES_TRUE='#' 16419 HAVE_TABLE_POSTGRES_FALSE= 16420fi 16421 16422 16423 16424# Whether to enable *experimental* Redis support 16425HAVE_TABLE_REDIS=no 16426 16427# Check whether --with-table-redis was given. 16428if test "${with_table_redis+set}" = set; then : 16429 withval=$with_table_redis; 16430 if test "x$withval" != "xno" ; then 16431 16432$as_echo "#define HAVE_TABLE_REDIS 1" >>confdefs.h 16433 16434 HAVE_TABLE_REDIS=yes 16435 need_redis=yes 16436 fi 16437 16438 16439fi 16440 16441 if test $HAVE_TABLE_REDIS = yes; then 16442 HAVE_TABLE_REDIS_TRUE= 16443 HAVE_TABLE_REDIS_FALSE='#' 16444else 16445 HAVE_TABLE_REDIS_TRUE='#' 16446 HAVE_TABLE_REDIS_FALSE= 16447fi 16448 16449 16450# Whether to enable *experimental* Redis support 16451HAVE_TABLE_SOCKETMAP=no 16452 16453# Check whether --with-table-socketmap was given. 16454if test "${with_table_socketmap+set}" = set; then : 16455 withval=$with_table_socketmap; 16456 if test "x$withval" != "xno" ; then 16457 16458$as_echo "#define HAVE_TABLE_SOCKETMAP 1" >>confdefs.h 16459 16460 HAVE_TABLE_SOCKETMAP=yes 16461 fi 16462 16463 16464fi 16465 16466 if test $HAVE_TABLE_SOCKETMAP = yes; then 16467 HAVE_TABLE_SOCKETMAP_TRUE= 16468 HAVE_TABLE_SOCKETMAP_FALSE='#' 16469else 16470 HAVE_TABLE_SOCKETMAP_TRUE='#' 16471 HAVE_TABLE_SOCKETMAP_FALSE= 16472fi 16473 16474 16475# Whether to enable table_passwd 16476HAVE_TABLE_PASSWD=no 16477 16478# Check whether --with-table-passwd was given. 16479if test "${with_table_passwd+set}" = set; then : 16480 withval=$with_table_passwd; 16481 if test "x$withval" != "xno" ; then 16482 16483$as_echo "#define HAVE_TABLE_PASSWD 1" >>confdefs.h 16484 16485 HAVE_TABLE_PASSWD=yes 16486 fi 16487 16488 16489fi 16490 16491 if test $HAVE_TABLE_PASSWD = yes; then 16492 HAVE_TABLE_PASSWD_TRUE= 16493 HAVE_TABLE_PASSWD_FALSE='#' 16494else 16495 HAVE_TABLE_PASSWD_TRUE='#' 16496 HAVE_TABLE_PASSWD_FALSE= 16497fi 16498 16499 16500# Whether to enable table_python 16501HAVE_TABLE_PYTHON=no 16502 16503# Check whether --with-table-python was given. 16504if test "${with_table_python+set}" = set; then : 16505 withval=$with_table_python; 16506 if test "x$withval" != "xno" ; then 16507 16508$as_echo "#define HAVE_TABLE_PYTHON 1" >>confdefs.h 16509 16510 HAVE_TABLE_PYTHON=yes 16511 need_python=yes 16512 fi 16513 16514 16515fi 16516 16517 if test $HAVE_TABLE_PYTHON = yes; then 16518 HAVE_TABLE_PYTHON_TRUE= 16519 HAVE_TABLE_PYTHON_FALSE='#' 16520else 16521 HAVE_TABLE_PYTHON_TRUE='#' 16522 HAVE_TABLE_PYTHON_FALSE= 16523fi 16524 16525 16526HAVE_TABLE_SQLITE=no 16527 16528# Check whether --with-table-sqlite was given. 16529if test "${with_table_sqlite+set}" = set; then : 16530 withval=$with_table_sqlite; 16531 if test "x$withval" != "xno" ; then 16532 16533$as_echo "#define HAVE_TABLE_SQLITE 1" >>confdefs.h 16534 16535 HAVE_TABLE_SQLITE=yes 16536 fi 16537 16538 16539fi 16540 16541 if test $HAVE_TABLE_SQLITE = yes; then 16542 HAVE_TABLE_SQLITE_TRUE= 16543 HAVE_TABLE_SQLITE_FALSE='#' 16544else 16545 HAVE_TABLE_SQLITE_TRUE='#' 16546 HAVE_TABLE_SQLITE_FALSE= 16547fi 16548 16549 16550HAVE_TABLE_STUB=no 16551 16552# Check whether --with-table-stub was given. 16553if test "${with_table_stub+set}" = set; then : 16554 withval=$with_table_stub; 16555 if test "x$withval" != "xno" ; then 16556 16557$as_echo "#define HAVE_TABLE_STUB 1" >>confdefs.h 16558 16559 HAVE_TABLE_STUB=yes 16560 fi 16561 16562 16563fi 16564 16565 if test $HAVE_TABLE_STUB = yes; then 16566 HAVE_TABLE_STUB_TRUE= 16567 HAVE_TABLE_STUB_FALSE='#' 16568else 16569 HAVE_TABLE_STUB_TRUE='#' 16570 HAVE_TABLE_STUB_FALSE= 16571fi 16572 16573 16574 16575# 16576# TOOLS 16577# 16578HAVE_TOOL_STATS=no 16579 16580# Check whether --with-tool-stats was given. 16581if test "${with_tool_stats+set}" = set; then : 16582 withval=$with_tool_stats; 16583 if test "x$withval" != "xno" ; then 16584 16585$as_echo "#define HAVE_TOOL_STATS 1" >>confdefs.h 16586 16587 HAVE_TOOL_STATS=yes 16588 fi 16589 16590 16591fi 16592 16593 if test $HAVE_TOOL_STATS = yes; then 16594 HAVE_TOOL_STATS_TRUE= 16595 HAVE_TOOL_STATS_FALSE='#' 16596else 16597 HAVE_TOOL_STATS_TRUE='#' 16598 HAVE_TOOL_STATS_FALSE= 16599fi 16600 16601 16602 16603# 16604# SCHEDULERS 16605# 16606HAVE_SCHEDULER_RAM=no 16607 16608# Check whether --with-scheduler-ram was given. 16609if test "${with_scheduler_ram+set}" = set; then : 16610 withval=$with_scheduler_ram; 16611 if test "x$withval" != "xno" ; then 16612 16613$as_echo "#define HAVE_SCHEDULER_RAM 1" >>confdefs.h 16614 16615 HAVE_SCHEDULER_RAM=yes 16616 fi 16617 16618 16619fi 16620 16621 if test $HAVE_SCHEDULER_RAM = yes; then 16622 HAVE_SCHEDULER_RAM_TRUE= 16623 HAVE_SCHEDULER_RAM_FALSE='#' 16624else 16625 HAVE_SCHEDULER_RAM_TRUE='#' 16626 HAVE_SCHEDULER_RAM_FALSE= 16627fi 16628 16629 16630HAVE_SCHEDULER_STUB=no 16631 16632# Check whether --with-scheduler-stub was given. 16633if test "${with_scheduler_stub+set}" = set; then : 16634 withval=$with_scheduler_stub; 16635 if test "x$withval" != "xno" ; then 16636 16637$as_echo "#define HAVE_SCHEDULER_STUB 1" >>confdefs.h 16638 16639 HAVE_SCHEDULER_STUB=yes 16640 fi 16641 16642 16643fi 16644 16645 if test $HAVE_SCHEDULER_STUB = yes; then 16646 HAVE_SCHEDULER_STUB_TRUE= 16647 HAVE_SCHEDULER_STUB_FALSE='#' 16648else 16649 HAVE_SCHEDULER_STUB_TRUE='#' 16650 HAVE_SCHEDULER_STUB_FALSE= 16651fi 16652 16653 16654HAVE_SCHEDULER_PYTHON=no 16655 16656# Check whether --with-scheduler-python was given. 16657if test "${with_scheduler_python+set}" = set; then : 16658 withval=$with_scheduler_python; 16659 if test "x$withval" != "xno" ; then 16660 16661$as_echo "#define HAVE_SCHEDULER_PYTHON 1" >>confdefs.h 16662 16663 HAVE_SCHEDULER_PYTHON=yes 16664 need_python=yes 16665 fi 16666 16667 16668fi 16669 16670 if test $HAVE_SCHEDULER_PYTHON = yes; then 16671 HAVE_SCHEDULER_PYTHON_TRUE= 16672 HAVE_SCHEDULER_PYTHON_FALSE='#' 16673else 16674 HAVE_SCHEDULER_PYTHON_TRUE='#' 16675 HAVE_SCHEDULER_PYTHON_FALSE= 16676fi 16677 16678 16679 16680 16681# Check whether --with-python was given. 16682if test "${with_python+set}" = set; then : 16683 withval=$with_python; 16684 if test "x$withval" != "xno" ; then 16685 python_prefix="${withval}" 16686 fi 16687 16688 16689fi 16690 16691 16692# Check whether --with-python-type was given. 16693if test "${with_python_type+set}" = set; then : 16694 withval=$with_python_type; 16695 if test "x$withval" != "xno" ; then 16696 python_type="${withval}" 16697 fi 16698 16699 16700fi 16701 16702 16703 16704# Check whether --with-perl was given. 16705if test "${with_perl+set}" = set; then : 16706 withval=$with_perl; 16707 if test "x$withval" != "xno" ; then 16708 perl_prefix="${withval}" 16709 fi 16710 16711 16712fi 16713 16714 16715 16716# Check whether --with-lua was given. 16717if test "${with_lua+set}" = set; then : 16718 withval=$with_lua; 16719 if test "x$withval" != "xno" ; then 16720 lua_prefix="${withval}" 16721 fi 16722 16723 16724 16725fi 16726 16727 16728# Check whether --with-lua-type was given. 16729if test "${with_lua_type+set}" = set; then : 16730 withval=$with_lua_type; 16731 if test "x$withval" != "xno" ; then 16732 lua_type="${withval}" 16733 fi 16734 16735 16736fi 16737 16738 16739# 16740# check for python 16741# 16742PYTHON_CPPFLAGS= 16743PYTHON_LDFLAGS= 16744if test x"${need_python}" = x"yes"; then 16745 PYTHON_CONFIG= 16746 if test x"${python_type}" = x""; then 16747 python_type="python" 16748 fi 16749 for path in /usr/local/bin /usr/bin; do 16750 if test -f ${path}/${python_type}-config; then 16751 PYTHON_CONFIG=${path}/${python_type}-config 16752 break 16753 fi 16754 done 16755 16756 # if python provided --with-python, override 16757 if test x"${with_python}" != x""; then 16758 PYTHON_CONFIG="${python_prefix}/bin/${python_type}-config" 16759 fi 16760 16761 if ! test -f $PYTHON_CONFIG; then 16762 as_fn_error $? "*** $PYTHON_CONFIG could not be found, please install or use --with-python ***" "$LINENO" 5 16763 fi 16764 16765 PYTHON_CPPFLAGS="`$PYTHON_CONFIG --includes`" 16766 PYTHON_LDFLAGS="-L`$PYTHON_CONFIG --prefix`/lib `$PYTHON_CONFIG --libs`" 16767fi 16768 16769 16770 16771# 16772# check for perl 16773# 16774PERL_CPPFLAGS= 16775PERL_LDFLAGS= 16776if test x"${need_perl}" = x"yes"; then 16777 PERL_CONFIG= 16778 for path in /usr/local/bin /usr/bin; do 16779 if test -f ${path}/perl; then 16780 PERL_CONFIG=${path}/perl 16781 break 16782 fi 16783 done 16784 16785 # if perl provided --with-perl, override 16786 if test x"${with_perl}" != x""; then 16787 PERL_CONFIG="${perl_prefix}/bin/perl" 16788 fi 16789 16790 if ! test -f $PERL_CONFIG; then 16791 as_fn_error $? "*** $PERL_CONFIG could not be found, please install or use --with-perl ***" "$LINENO" 5 16792 fi 16793 16794 PERL_CPPFLAGS="`perl -MExtUtils::Embed -e ccopts`" 16795 PERL_LDFLAGS="`perl -MExtUtils::Embed -e ldopts`" 16796fi 16797 16798 16799 16800# 16801# check for lua 16802# 16803LUA_CPPFLAGS= 16804LUA_LDFLAGS= 16805if test x"${need_lua}" = x"yes"; then 16806 LUA_CONFIG= 16807 for path in /usr/local/bin /usr/bin; do 16808 if test -f ${path}/pkg-config; then 16809 LUA_CONFIG=${path}/pkg-config 16810 break 16811 fi 16812 done 16813 16814 # if lua provided --with-lua, override 16815 if test x"${with_lua}" != x""; then 16816 LUA_CONFIG="${lua_prefix}/bin/pkg-config" 16817 fi 16818 16819 if ! test -f $LUA_CONFIG; then 16820 if test x"${lua_type}" = x""; then 16821 for i in luajit lua lua5.2 lua-5.2 lua5.1 lua-5.1; do 16822 if test -d ${lua_prefix:-/usr/local}/include/${i}*; then 16823 lua_type=$i 16824 break 16825 fi 16826 done 16827 fi 16828 LUA_CPPFLAGS="-I${lua_prefix:-/usr/local}/include/${lua_type}" 16829 LUA_LDFLAGS="-L${lua_prefix:-/usr/local}/lib -l${lua_type} -lm" 16830 else 16831 if test x"${lua_type}" = x""; then 16832 for i in luajit lua lua5.2 lua-5.2 lua5.1 lua-5.1; do 16833 if $LUA_CONFIG --exists $i 2>/dev/null; then 16834 lua_type=$i 16835 break 16836 fi 16837 done 16838 fi 16839 LUA_CPPFLAGS="`$LUA_CONFIG --cflags $lua_type`" 16840 LUA_LDFLAGS="`$LUA_CONFIG --libs $lua_type`" 16841 fi 16842fi 16843 16844 16845 16846# 16847# check for hiredis 16848# 16849REDIS_CPPFLAGS= 16850REDIS_LDFLAGS= 16851if test x"${need_redis}" = x"yes"; then 16852 REDIS_CONFIG= 16853 for path in /usr/local/bin /usr/bin; do 16854 if test -f ${path}/pkg-config; then 16855 REDIS_CONFIG=${path}/pkg-config 16856 break 16857 fi 16858 done 16859 16860 # if redis provided --with-redis, override 16861 if test x"${with_hiredis}" != x""; then 16862 REDIS_CONFIG="${redis_prefix}/bin/pkg-config" 16863 fi 16864 16865 if ! test -f $REDIS_CONFIG; then 16866 as_fn_error $? "*** $REDIS_CONFIG could not be found, please install or use --with-redis ***" "$LINENO" 5 16867 fi 16868 16869 REDIS_CPPFLAGS="`$REDIS_CONFIG --cflags hiredis`" 16870 REDIS_LDFLAGS="`$REDIS_CONFIG --libs hiredis`" 16871fi 16872 16873 16874 16875##chl (based on OpenSSL checks, see above) 16876# Search for libevent 16877saved_CPPFLAGS="$CPPFLAGS" 16878saved_LDFLAGS="$LDFLAGS" 16879 16880# Check whether --with-libevent was given. 16881if test "${with_libevent+set}" = set; then : 16882 withval=$with_libevent; 16883 if test "x$withval" != "xno" ; then 16884 case "$withval" in 16885 # Relative paths 16886 ./*|../*) withval="`pwd`/$withval" 16887 esac 16888 if test -d "$withval/lib"; then 16889 if test -n "${need_dash_r}"; then 16890 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 16891 else 16892 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 16893 fi 16894 elif test -d "$withval/lib64"; then 16895 if test -n "${need_dash_r}"; then 16896 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" 16897 else 16898 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" 16899 fi 16900 else 16901 if test -n "${need_dash_r}"; then 16902 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" 16903 else 16904 LDFLAGS="-L${withval} ${LDFLAGS}" 16905 fi 16906 fi 16907 if test -d "$withval/include"; then 16908 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 16909 else 16910 CPPFLAGS="-I${withval} ${CPPFLAGS}" 16911 fi 16912 need_libevent_autodetect=no 16913 fi 16914 16915 16916fi 16917 16918 16919if test x"${need_libevent_autodetect}" != x"no"; then 16920 for path in /usr/local /usr; do 16921 if test -f "${path}/include/event.h"; then 16922 CPPFLAGS="-I${path}/include ${CPPFLAGS}" 16923 LDFLAGS="-L${path}/lib ${LDFLAGS}" 16924 fi 16925 done 16926fi 16927 16928LIBS="-levent $LIBS" 16929 16930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using libevent functions will link" >&5 16931$as_echo_n "checking if programs using libevent functions will link... " >&6; } 16932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16933/* end confdefs.h. */ 16934 16935 #include <event.h> 16936 16937int 16938main () 16939{ 16940 16941 event_base_new(); 16942 16943 ; 16944 return 0; 16945} 16946_ACEOF 16947if ac_fn_c_try_link "$LINENO"; then : 16948 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16950$as_echo "yes" >&6; } 16951 16952else 16953 16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16955$as_echo "no" >&6; } 16956 16957 16958fi 16959rm -f core conftest.err conftest.$ac_objext \ 16960 conftest$ac_exeext conftest.$ac_ext 16961 16962LIBS="$LIBS ${SMTPDLIBS}" 16963##end of chl 16964 16965 16966ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile extras/Makefile extras/queues/Makefile extras/queues/queue-null/Makefile extras/queues/queue-python/Makefile extras/queues/queue-ram/Makefile extras/queues/queue-stub/Makefile extras/schedulers/Makefile extras/schedulers/scheduler-python/Makefile extras/schedulers/scheduler-ram/Makefile extras/schedulers/scheduler-stub/Makefile extras/tables/Makefile extras/tables/table-passwd/Makefile extras/tables/table-ldap/Makefile extras/tables/table-mysql/Makefile extras/tables/table-postgres/Makefile extras/tables/table-python/Makefile extras/tables/table-redis/Makefile extras/tables/table-socketmap/Makefile extras/tables/table-sqlite/Makefile extras/tables/table-stub/Makefile" 16967 16968 16969#l4761 16970cat >confcache <<\_ACEOF 16971# This file is a shell script that caches the results of configure 16972# tests run on this system so they can be shared between configure 16973# scripts and configure runs, see configure's option --config-cache. 16974# It is not useful on other systems. If it contains results you don't 16975# want to keep, you may remove or edit it. 16976# 16977# config.status only pays attention to the cache file if you give it 16978# the --recheck option to rerun configure. 16979# 16980# `ac_cv_env_foo' variables (set or unset) will be overridden when 16981# loading this file, other *unset* `ac_cv_foo' will be assigned the 16982# following values. 16983 16984_ACEOF 16985 16986# The following way of writing the cache mishandles newlines in values, 16987# but we know of no workaround that is simple, portable, and efficient. 16988# So, we kill variables containing newlines. 16989# Ultrix sh set writes to stderr and can't be redirected directly, 16990# and sets the high bit in the cache file unless we assign to the vars. 16991( 16992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16993 eval ac_val=\$$ac_var 16994 case $ac_val in #( 16995 *${as_nl}*) 16996 case $ac_var in #( 16997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16999 esac 17000 case $ac_var in #( 17001 _ | IFS | as_nl) ;; #( 17002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17003 *) { eval $ac_var=; unset $ac_var;} ;; 17004 esac ;; 17005 esac 17006 done 17007 17008 (set) 2>&1 | 17009 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17010 *${as_nl}ac_space=\ *) 17011 # `set' does not quote correctly, so add quotes: double-quote 17012 # substitution turns \\\\ into \\, and sed turns \\ into \. 17013 sed -n \ 17014 "s/'/'\\\\''/g; 17015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17016 ;; #( 17017 *) 17018 # `set' quotes correctly as required by POSIX, so do not add quotes. 17019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17020 ;; 17021 esac | 17022 sort 17023) | 17024 sed ' 17025 /^ac_cv_env_/b end 17026 t clear 17027 :clear 17028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17029 t end 17030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17031 :end' >>confcache 17032if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17033 if test -w "$cache_file"; then 17034 if test "x$cache_file" != "x/dev/null"; then 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17036$as_echo "$as_me: updating cache $cache_file" >&6;} 17037 if test ! -f "$cache_file" || test -h "$cache_file"; then 17038 cat confcache >"$cache_file" 17039 else 17040 case $cache_file in #( 17041 */* | ?:*) 17042 mv -f confcache "$cache_file"$$ && 17043 mv -f "$cache_file"$$ "$cache_file" ;; #( 17044 *) 17045 mv -f confcache "$cache_file" ;; 17046 esac 17047 fi 17048 fi 17049 else 17050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17051$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17052 fi 17053fi 17054rm -f confcache 17055 17056test "x$prefix" = xNONE && prefix=$ac_default_prefix 17057# Let make expand exec_prefix. 17058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17059 17060DEFS=-DHAVE_CONFIG_H 17061 17062ac_libobjs= 17063ac_ltlibobjs= 17064U= 17065for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17066 # 1. Remove the extension, and $U if already installed. 17067 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17068 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17069 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17070 # will be set to the directory where LIBOBJS objects are built. 17071 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17072 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17073done 17074LIBOBJS=$ac_libobjs 17075 17076LTLIBOBJS=$ac_ltlibobjs 17077 17078 17079 17080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17081$as_echo_n "checking that generated files are newer than configure... " >&6; } 17082 if test -n "$am_sleep_pid"; then 17083 # Hide warnings about reused PIDs. 17084 wait $am_sleep_pid 2>/dev/null 17085 fi 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17087$as_echo "done" >&6; } 17088 if test -n "$EXEEXT"; then 17089 am__EXEEXT_TRUE= 17090 am__EXEEXT_FALSE='#' 17091else 17092 am__EXEEXT_TRUE='#' 17093 am__EXEEXT_FALSE= 17094fi 17095 17096if test -z "${NO_LIBASR_TRUE}" && test -z "${NO_LIBASR_FALSE}"; then 17097 as_fn_error $? "conditional \"NO_LIBASR\" was never defined. 17098Usually this means the macro was only invoked conditionally." "$LINENO" 5 17099fi 17100if test -z "${HAVE_FILTER_MONKEY_TRUE}" && test -z "${HAVE_FILTER_MONKEY_FALSE}"; then 17101 as_fn_error $? "conditional \"HAVE_FILTER_MONKEY\" was never defined. 17102Usually this means the macro was only invoked conditionally." "$LINENO" 5 17103fi 17104if test -z "${HAVE_FILTER_STUB_TRUE}" && test -z "${HAVE_FILTER_STUB_FALSE}"; then 17105 as_fn_error $? "conditional \"HAVE_FILTER_STUB\" was never defined. 17106Usually this means the macro was only invoked conditionally." "$LINENO" 5 17107fi 17108if test -z "${HAVE_FILTER_TRACE_TRUE}" && test -z "${HAVE_FILTER_TRACE_FALSE}"; then 17109 as_fn_error $? "conditional \"HAVE_FILTER_TRACE\" was never defined. 17110Usually this means the macro was only invoked conditionally." "$LINENO" 5 17111fi 17112if test -z "${HAVE_FILTER_VOID_TRUE}" && test -z "${HAVE_FILTER_VOID_FALSE}"; then 17113 as_fn_error $? "conditional \"HAVE_FILTER_VOID\" was never defined. 17114Usually this means the macro was only invoked conditionally." "$LINENO" 5 17115fi 17116if test -z "${HAVE_QUEUE_NULL_TRUE}" && test -z "${HAVE_QUEUE_NULL_FALSE}"; then 17117 as_fn_error $? "conditional \"HAVE_QUEUE_NULL\" was never defined. 17118Usually this means the macro was only invoked conditionally." "$LINENO" 5 17119fi 17120if test -z "${HAVE_QUEUE_PYTHON_TRUE}" && test -z "${HAVE_QUEUE_PYTHON_FALSE}"; then 17121 as_fn_error $? "conditional \"HAVE_QUEUE_PYTHON\" was never defined. 17122Usually this means the macro was only invoked conditionally." "$LINENO" 5 17123fi 17124if test -z "${HAVE_QUEUE_RAM_TRUE}" && test -z "${HAVE_QUEUE_RAM_FALSE}"; then 17125 as_fn_error $? "conditional \"HAVE_QUEUE_RAM\" was never defined. 17126Usually this means the macro was only invoked conditionally." "$LINENO" 5 17127fi 17128if test -z "${HAVE_QUEUE_STUB_TRUE}" && test -z "${HAVE_QUEUE_STUB_FALSE}"; then 17129 as_fn_error $? "conditional \"HAVE_QUEUE_STUB\" was never defined. 17130Usually this means the macro was only invoked conditionally." "$LINENO" 5 17131fi 17132if test -z "${HAVE_TABLE_LDAP_TRUE}" && test -z "${HAVE_TABLE_LDAP_FALSE}"; then 17133 as_fn_error $? "conditional \"HAVE_TABLE_LDAP\" was never defined. 17134Usually this means the macro was only invoked conditionally." "$LINENO" 5 17135fi 17136if test -z "${HAVE_TABLE_MYSQL_TRUE}" && test -z "${HAVE_TABLE_MYSQL_FALSE}"; then 17137 as_fn_error $? "conditional \"HAVE_TABLE_MYSQL\" was never defined. 17138Usually this means the macro was only invoked conditionally." "$LINENO" 5 17139fi 17140if test -z "${HAVE_TABLE_POSTGRES_TRUE}" && test -z "${HAVE_TABLE_POSTGRES_FALSE}"; then 17141 as_fn_error $? "conditional \"HAVE_TABLE_POSTGRES\" was never defined. 17142Usually this means the macro was only invoked conditionally." "$LINENO" 5 17143fi 17144if test -z "${HAVE_TABLE_REDIS_TRUE}" && test -z "${HAVE_TABLE_REDIS_FALSE}"; then 17145 as_fn_error $? "conditional \"HAVE_TABLE_REDIS\" was never defined. 17146Usually this means the macro was only invoked conditionally." "$LINENO" 5 17147fi 17148if test -z "${HAVE_TABLE_SOCKETMAP_TRUE}" && test -z "${HAVE_TABLE_SOCKETMAP_FALSE}"; then 17149 as_fn_error $? "conditional \"HAVE_TABLE_SOCKETMAP\" was never defined. 17150Usually this means the macro was only invoked conditionally." "$LINENO" 5 17151fi 17152if test -z "${HAVE_TABLE_PASSWD_TRUE}" && test -z "${HAVE_TABLE_PASSWD_FALSE}"; then 17153 as_fn_error $? "conditional \"HAVE_TABLE_PASSWD\" was never defined. 17154Usually this means the macro was only invoked conditionally." "$LINENO" 5 17155fi 17156if test -z "${HAVE_TABLE_PYTHON_TRUE}" && test -z "${HAVE_TABLE_PYTHON_FALSE}"; then 17157 as_fn_error $? "conditional \"HAVE_TABLE_PYTHON\" was never defined. 17158Usually this means the macro was only invoked conditionally." "$LINENO" 5 17159fi 17160if test -z "${HAVE_TABLE_SQLITE_TRUE}" && test -z "${HAVE_TABLE_SQLITE_FALSE}"; then 17161 as_fn_error $? "conditional \"HAVE_TABLE_SQLITE\" was never defined. 17162Usually this means the macro was only invoked conditionally." "$LINENO" 5 17163fi 17164if test -z "${HAVE_TABLE_STUB_TRUE}" && test -z "${HAVE_TABLE_STUB_FALSE}"; then 17165 as_fn_error $? "conditional \"HAVE_TABLE_STUB\" was never defined. 17166Usually this means the macro was only invoked conditionally." "$LINENO" 5 17167fi 17168if test -z "${HAVE_TOOL_STATS_TRUE}" && test -z "${HAVE_TOOL_STATS_FALSE}"; then 17169 as_fn_error $? "conditional \"HAVE_TOOL_STATS\" was never defined. 17170Usually this means the macro was only invoked conditionally." "$LINENO" 5 17171fi 17172if test -z "${HAVE_SCHEDULER_RAM_TRUE}" && test -z "${HAVE_SCHEDULER_RAM_FALSE}"; then 17173 as_fn_error $? "conditional \"HAVE_SCHEDULER_RAM\" was never defined. 17174Usually this means the macro was only invoked conditionally." "$LINENO" 5 17175fi 17176if test -z "${HAVE_SCHEDULER_STUB_TRUE}" && test -z "${HAVE_SCHEDULER_STUB_FALSE}"; then 17177 as_fn_error $? "conditional \"HAVE_SCHEDULER_STUB\" was never defined. 17178Usually this means the macro was only invoked conditionally." "$LINENO" 5 17179fi 17180if test -z "${HAVE_SCHEDULER_PYTHON_TRUE}" && test -z "${HAVE_SCHEDULER_PYTHON_FALSE}"; then 17181 as_fn_error $? "conditional \"HAVE_SCHEDULER_PYTHON\" was never defined. 17182Usually this means the macro was only invoked conditionally." "$LINENO" 5 17183fi 17184 17185: "${CONFIG_STATUS=./config.status}" 17186ac_write_fail=0 17187ac_clean_files_save=$ac_clean_files 17188ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17189{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17190$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17191as_write_fail=0 17192cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17193#! $SHELL 17194# Generated by $as_me. 17195# Run this file to recreate the current configuration. 17196# Compiler output produced by configure, useful for debugging 17197# configure, is in config.log if it exists. 17198 17199debug=false 17200ac_cs_recheck=false 17201ac_cs_silent=false 17202 17203SHELL=\${CONFIG_SHELL-$SHELL} 17204export SHELL 17205_ASEOF 17206cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17207## -------------------- ## 17208## M4sh Initialization. ## 17209## -------------------- ## 17210 17211# Be more Bourne compatible 17212DUALCASE=1; export DUALCASE # for MKS sh 17213if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17214 emulate sh 17215 NULLCMD=: 17216 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17217 # is contrary to our usage. Disable this feature. 17218 alias -g '${1+"$@"}'='"$@"' 17219 setopt NO_GLOB_SUBST 17220else 17221 case `(set -o) 2>/dev/null` in #( 17222 *posix*) : 17223 set -o posix ;; #( 17224 *) : 17225 ;; 17226esac 17227fi 17228 17229 17230as_nl=' 17231' 17232export as_nl 17233# Printing a long string crashes Solaris 7 /usr/bin/printf. 17234as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17235as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17236as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17237# Prefer a ksh shell builtin over an external printf program on Solaris, 17238# but without wasting forks for bash or zsh. 17239if test -z "$BASH_VERSION$ZSH_VERSION" \ 17240 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17241 as_echo='print -r --' 17242 as_echo_n='print -rn --' 17243elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17244 as_echo='printf %s\n' 17245 as_echo_n='printf %s' 17246else 17247 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17248 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17249 as_echo_n='/usr/ucb/echo -n' 17250 else 17251 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17252 as_echo_n_body='eval 17253 arg=$1; 17254 case $arg in #( 17255 *"$as_nl"*) 17256 expr "X$arg" : "X\\(.*\\)$as_nl"; 17257 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17258 esac; 17259 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17260 ' 17261 export as_echo_n_body 17262 as_echo_n='sh -c $as_echo_n_body as_echo' 17263 fi 17264 export as_echo_body 17265 as_echo='sh -c $as_echo_body as_echo' 17266fi 17267 17268# The user is always right. 17269if test "${PATH_SEPARATOR+set}" != set; then 17270 PATH_SEPARATOR=: 17271 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17272 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17273 PATH_SEPARATOR=';' 17274 } 17275fi 17276 17277 17278# IFS 17279# We need space, tab and new line, in precisely that order. Quoting is 17280# there to prevent editors from complaining about space-tab. 17281# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17282# splitting by setting IFS to empty value.) 17283IFS=" "" $as_nl" 17284 17285# Find who we are. Look in the path if we contain no directory separator. 17286as_myself= 17287case $0 in #(( 17288 *[\\/]* ) as_myself=$0 ;; 17289 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17290for as_dir in $PATH 17291do 17292 IFS=$as_save_IFS 17293 test -z "$as_dir" && as_dir=. 17294 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17295 done 17296IFS=$as_save_IFS 17297 17298 ;; 17299esac 17300# We did not find ourselves, most probably we were run as `sh COMMAND' 17301# in which case we are not to be found in the path. 17302if test "x$as_myself" = x; then 17303 as_myself=$0 17304fi 17305if test ! -f "$as_myself"; then 17306 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17307 exit 1 17308fi 17309 17310# Unset variables that we do not need and which cause bugs (e.g. in 17311# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17312# suppresses any "Segmentation fault" message there. '((' could 17313# trigger a bug in pdksh 5.2.14. 17314for as_var in BASH_ENV ENV MAIL MAILPATH 17315do eval test x\${$as_var+set} = xset \ 17316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17317done 17318PS1='$ ' 17319PS2='> ' 17320PS4='+ ' 17321 17322# NLS nuisances. 17323LC_ALL=C 17324export LC_ALL 17325LANGUAGE=C 17326export LANGUAGE 17327 17328# CDPATH. 17329(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17330 17331 17332# as_fn_error STATUS ERROR [LINENO LOG_FD] 17333# ---------------------------------------- 17334# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17335# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17336# script with STATUS, using 1 if that was 0. 17337as_fn_error () 17338{ 17339 as_status=$1; test $as_status -eq 0 && as_status=1 17340 if test "$4"; then 17341 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17342 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17343 fi 17344 $as_echo "$as_me: error: $2" >&2 17345 as_fn_exit $as_status 17346} # as_fn_error 17347 17348 17349# as_fn_set_status STATUS 17350# ----------------------- 17351# Set $? to STATUS, without forking. 17352as_fn_set_status () 17353{ 17354 return $1 17355} # as_fn_set_status 17356 17357# as_fn_exit STATUS 17358# ----------------- 17359# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17360as_fn_exit () 17361{ 17362 set +e 17363 as_fn_set_status $1 17364 exit $1 17365} # as_fn_exit 17366 17367# as_fn_unset VAR 17368# --------------- 17369# Portably unset VAR. 17370as_fn_unset () 17371{ 17372 { eval $1=; unset $1;} 17373} 17374as_unset=as_fn_unset 17375# as_fn_append VAR VALUE 17376# ---------------------- 17377# Append the text in VALUE to the end of the definition contained in VAR. Take 17378# advantage of any shell optimizations that allow amortized linear growth over 17379# repeated appends, instead of the typical quadratic growth present in naive 17380# implementations. 17381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17382 eval 'as_fn_append () 17383 { 17384 eval $1+=\$2 17385 }' 17386else 17387 as_fn_append () 17388 { 17389 eval $1=\$$1\$2 17390 } 17391fi # as_fn_append 17392 17393# as_fn_arith ARG... 17394# ------------------ 17395# Perform arithmetic evaluation on the ARGs, and store the result in the 17396# global $as_val. Take advantage of shells that can avoid forks. The arguments 17397# must be portable across $(()) and expr. 17398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17399 eval 'as_fn_arith () 17400 { 17401 as_val=$(( $* )) 17402 }' 17403else 17404 as_fn_arith () 17405 { 17406 as_val=`expr "$@" || test $? -eq 1` 17407 } 17408fi # as_fn_arith 17409 17410 17411if expr a : '\(a\)' >/dev/null 2>&1 && 17412 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17413 as_expr=expr 17414else 17415 as_expr=false 17416fi 17417 17418if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17419 as_basename=basename 17420else 17421 as_basename=false 17422fi 17423 17424if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17425 as_dirname=dirname 17426else 17427 as_dirname=false 17428fi 17429 17430as_me=`$as_basename -- "$0" || 17431$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17432 X"$0" : 'X\(//\)$' \| \ 17433 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17434$as_echo X/"$0" | 17435 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17436 s//\1/ 17437 q 17438 } 17439 /^X\/\(\/\/\)$/{ 17440 s//\1/ 17441 q 17442 } 17443 /^X\/\(\/\).*/{ 17444 s//\1/ 17445 q 17446 } 17447 s/.*/./; q'` 17448 17449# Avoid depending upon Character Ranges. 17450as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17451as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17452as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17453as_cr_digits='0123456789' 17454as_cr_alnum=$as_cr_Letters$as_cr_digits 17455 17456ECHO_C= ECHO_N= ECHO_T= 17457case `echo -n x` in #((((( 17458-n*) 17459 case `echo 'xy\c'` in 17460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17461 xy) ECHO_C='\c';; 17462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17463 ECHO_T=' ';; 17464 esac;; 17465*) 17466 ECHO_N='-n';; 17467esac 17468 17469rm -f conf$$ conf$$.exe conf$$.file 17470if test -d conf$$.dir; then 17471 rm -f conf$$.dir/conf$$.file 17472else 17473 rm -f conf$$.dir 17474 mkdir conf$$.dir 2>/dev/null 17475fi 17476if (echo >conf$$.file) 2>/dev/null; then 17477 if ln -s conf$$.file conf$$ 2>/dev/null; then 17478 as_ln_s='ln -s' 17479 # ... but there are two gotchas: 17480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17482 # In both cases, we have to default to `cp -pR'. 17483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17484 as_ln_s='cp -pR' 17485 elif ln conf$$.file conf$$ 2>/dev/null; then 17486 as_ln_s=ln 17487 else 17488 as_ln_s='cp -pR' 17489 fi 17490else 17491 as_ln_s='cp -pR' 17492fi 17493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17494rmdir conf$$.dir 2>/dev/null 17495 17496 17497# as_fn_mkdir_p 17498# ------------- 17499# Create "$as_dir" as a directory, including parents if necessary. 17500as_fn_mkdir_p () 17501{ 17502 17503 case $as_dir in #( 17504 -*) as_dir=./$as_dir;; 17505 esac 17506 test -d "$as_dir" || eval $as_mkdir_p || { 17507 as_dirs= 17508 while :; do 17509 case $as_dir in #( 17510 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17511 *) as_qdir=$as_dir;; 17512 esac 17513 as_dirs="'$as_qdir' $as_dirs" 17514 as_dir=`$as_dirname -- "$as_dir" || 17515$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17516 X"$as_dir" : 'X\(//\)[^/]' \| \ 17517 X"$as_dir" : 'X\(//\)$' \| \ 17518 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17519$as_echo X"$as_dir" | 17520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17521 s//\1/ 17522 q 17523 } 17524 /^X\(\/\/\)[^/].*/{ 17525 s//\1/ 17526 q 17527 } 17528 /^X\(\/\/\)$/{ 17529 s//\1/ 17530 q 17531 } 17532 /^X\(\/\).*/{ 17533 s//\1/ 17534 q 17535 } 17536 s/.*/./; q'` 17537 test -d "$as_dir" && break 17538 done 17539 test -z "$as_dirs" || eval "mkdir $as_dirs" 17540 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17541 17542 17543} # as_fn_mkdir_p 17544if mkdir -p . 2>/dev/null; then 17545 as_mkdir_p='mkdir -p "$as_dir"' 17546else 17547 test -d ./-p && rmdir ./-p 17548 as_mkdir_p=false 17549fi 17550 17551 17552# as_fn_executable_p FILE 17553# ----------------------- 17554# Test if FILE is an executable regular file. 17555as_fn_executable_p () 17556{ 17557 test -f "$1" && test -x "$1" 17558} # as_fn_executable_p 17559as_test_x='test -x' 17560as_executable_p=as_fn_executable_p 17561 17562# Sed expression to map a string onto a valid CPP name. 17563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17564 17565# Sed expression to map a string onto a valid variable name. 17566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17567 17568 17569exec 6>&1 17570## ----------------------------------- ## 17571## Main body of $CONFIG_STATUS script. ## 17572## ----------------------------------- ## 17573_ASEOF 17574test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17575 17576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17577# Save the log message, to keep $0 and so on meaningful, and to 17578# report actual input values of CONFIG_FILES etc. instead of their 17579# values after options handling. 17580ac_log=" 17581This file was extended by OpenSMTPD-extras $as_me 5.7.2, which was 17582generated by GNU Autoconf 2.69. Invocation command line was 17583 17584 CONFIG_FILES = $CONFIG_FILES 17585 CONFIG_HEADERS = $CONFIG_HEADERS 17586 CONFIG_LINKS = $CONFIG_LINKS 17587 CONFIG_COMMANDS = $CONFIG_COMMANDS 17588 $ $0 $@ 17589 17590on `(hostname || uname -n) 2>/dev/null | sed 1q` 17591" 17592 17593_ACEOF 17594 17595case $ac_config_files in *" 17596"*) set x $ac_config_files; shift; ac_config_files=$*;; 17597esac 17598 17599case $ac_config_headers in *" 17600"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17601esac 17602 17603 17604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17605# Files that config.status was made for. 17606config_files="$ac_config_files" 17607config_headers="$ac_config_headers" 17608config_commands="$ac_config_commands" 17609 17610_ACEOF 17611 17612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17613ac_cs_usage="\ 17614\`$as_me' instantiates files and other configuration actions 17615from templates according to the current configuration. Unless the files 17616and actions are specified as TAGs, all are instantiated by default. 17617 17618Usage: $0 [OPTION]... [TAG]... 17619 17620 -h, --help print this help, then exit 17621 -V, --version print version number and configuration settings, then exit 17622 --config print configuration, then exit 17623 -q, --quiet, --silent 17624 do not print progress messages 17625 -d, --debug don't remove temporary files 17626 --recheck update $as_me by reconfiguring in the same conditions 17627 --file=FILE[:TEMPLATE] 17628 instantiate the configuration file FILE 17629 --header=FILE[:TEMPLATE] 17630 instantiate the configuration header FILE 17631 17632Configuration files: 17633$config_files 17634 17635Configuration headers: 17636$config_headers 17637 17638Configuration commands: 17639$config_commands 17640 17641Report bugs to <bugs@opensmtpd.org>. 17642OpenSMTPD-extras home page: <https://github.com/OpenSMTPD/OpenSMTPD-extras>." 17643 17644_ACEOF 17645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17646ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17647ac_cs_version="\\ 17648OpenSMTPD-extras config.status 5.7.2 17649configured by $0, generated by GNU Autoconf 2.69, 17650 with options \\"\$ac_cs_config\\" 17651 17652Copyright (C) 2012 Free Software Foundation, Inc. 17653This config.status script is free software; the Free Software Foundation 17654gives unlimited permission to copy, distribute and modify it." 17655 17656ac_pwd='$ac_pwd' 17657srcdir='$srcdir' 17658INSTALL='$INSTALL' 17659MKDIR_P='$MKDIR_P' 17660AWK='$AWK' 17661test -n "\$AWK" || AWK=awk 17662_ACEOF 17663 17664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17665# The default lists apply if the user does not specify any file. 17666ac_need_defaults=: 17667while test $# != 0 17668do 17669 case $1 in 17670 --*=?*) 17671 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17672 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17673 ac_shift=: 17674 ;; 17675 --*=) 17676 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17677 ac_optarg= 17678 ac_shift=: 17679 ;; 17680 *) 17681 ac_option=$1 17682 ac_optarg=$2 17683 ac_shift=shift 17684 ;; 17685 esac 17686 17687 case $ac_option in 17688 # Handling of the options. 17689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17690 ac_cs_recheck=: ;; 17691 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17692 $as_echo "$ac_cs_version"; exit ;; 17693 --config | --confi | --conf | --con | --co | --c ) 17694 $as_echo "$ac_cs_config"; exit ;; 17695 --debug | --debu | --deb | --de | --d | -d ) 17696 debug=: ;; 17697 --file | --fil | --fi | --f ) 17698 $ac_shift 17699 case $ac_optarg in 17700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17701 '') as_fn_error $? "missing file argument" ;; 17702 esac 17703 as_fn_append CONFIG_FILES " '$ac_optarg'" 17704 ac_need_defaults=false;; 17705 --header | --heade | --head | --hea ) 17706 $ac_shift 17707 case $ac_optarg in 17708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17709 esac 17710 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17711 ac_need_defaults=false;; 17712 --he | --h) 17713 # Conflict between --help and --header 17714 as_fn_error $? "ambiguous option: \`$1' 17715Try \`$0 --help' for more information.";; 17716 --help | --hel | -h ) 17717 $as_echo "$ac_cs_usage"; exit ;; 17718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17719 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17720 ac_cs_silent=: ;; 17721 17722 # This is an error. 17723 -*) as_fn_error $? "unrecognized option: \`$1' 17724Try \`$0 --help' for more information." ;; 17725 17726 *) as_fn_append ac_config_targets " $1" 17727 ac_need_defaults=false ;; 17728 17729 esac 17730 shift 17731done 17732 17733ac_configure_extra_args= 17734 17735if $ac_cs_silent; then 17736 exec 6>/dev/null 17737 ac_configure_extra_args="$ac_configure_extra_args --silent" 17738fi 17739 17740_ACEOF 17741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17742if \$ac_cs_recheck; then 17743 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17744 shift 17745 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17746 CONFIG_SHELL='$SHELL' 17747 export CONFIG_SHELL 17748 exec "\$@" 17749fi 17750 17751_ACEOF 17752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17753exec 5>>config.log 17754{ 17755 echo 17756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17757## Running $as_me. ## 17758_ASBOX 17759 $as_echo "$ac_log" 17760} >&5 17761 17762_ACEOF 17763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17764# 17765# INIT-COMMANDS 17766# 17767 17768 17769# The HP-UX ksh and POSIX shell print the target directory to stdout 17770# if CDPATH is set. 17771(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17772 17773sed_quote_subst='$sed_quote_subst' 17774double_quote_subst='$double_quote_subst' 17775delay_variable_subst='$delay_variable_subst' 17776macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17777macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17778enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17779enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17780pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17781enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17782shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17783SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17784ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17785PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17786host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17787host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17788host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17789build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17790build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17791build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17792SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17793Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17794GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17795EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17796FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17797LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17798NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17799LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17800max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17801ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17802exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17803lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17804lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17805lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17806lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17807lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17808reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17809reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17810OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17811deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17812file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17813file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17814want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17815DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17816sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17817AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17818AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17819archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17820STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17821RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17822old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17823old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17824old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17825lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17826CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17827CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17828compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17829GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17830lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17831lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17832lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17833lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17834lt_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"`' 17835lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17836nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17837lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17838lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17839objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17840MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17841lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17842lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17843lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17844lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17845lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17846need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17847MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17848DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17849NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17850LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17851OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17852OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17853libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17854shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17855extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17856archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17857enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17858export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17859whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17860compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17861old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17862old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17863archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17864archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17865module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17866module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17867with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17868allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17869no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17870hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17871hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17872hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17873hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17874hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17875hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17876hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17877inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17878link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17879always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17880export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17881exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17882include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17883prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17884postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17885file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17886variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17887need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17888need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17889version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17890runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17891shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17892shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17893libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17894library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17895soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17896install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17897postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17898postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17899finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17900finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17901hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17902sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17903configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17904configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17905hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17906enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17907enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17908enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17909old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17910striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17911 17912LTCC='$LTCC' 17913LTCFLAGS='$LTCFLAGS' 17914compiler='$compiler_DEFAULT' 17915 17916# A function that is used when there is no print builtin or printf. 17917func_fallback_echo () 17918{ 17919 eval 'cat <<_LTECHO_EOF 17920\$1 17921_LTECHO_EOF' 17922} 17923 17924# Quote evaled strings. 17925for var in SHELL \ 17926ECHO \ 17927PATH_SEPARATOR \ 17928SED \ 17929GREP \ 17930EGREP \ 17931FGREP \ 17932LD \ 17933NM \ 17934LN_S \ 17935lt_SP2NL \ 17936lt_NL2SP \ 17937reload_flag \ 17938OBJDUMP \ 17939deplibs_check_method \ 17940file_magic_cmd \ 17941file_magic_glob \ 17942want_nocaseglob \ 17943DLLTOOL \ 17944sharedlib_from_linklib_cmd \ 17945AR \ 17946AR_FLAGS \ 17947archiver_list_spec \ 17948STRIP \ 17949RANLIB \ 17950CC \ 17951CFLAGS \ 17952compiler \ 17953lt_cv_sys_global_symbol_pipe \ 17954lt_cv_sys_global_symbol_to_cdecl \ 17955lt_cv_sys_global_symbol_to_import \ 17956lt_cv_sys_global_symbol_to_c_name_address \ 17957lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17958lt_cv_nm_interface \ 17959nm_file_list_spec \ 17960lt_cv_truncate_bin \ 17961lt_prog_compiler_no_builtin_flag \ 17962lt_prog_compiler_pic \ 17963lt_prog_compiler_wl \ 17964lt_prog_compiler_static \ 17965lt_cv_prog_compiler_c_o \ 17966need_locks \ 17967MANIFEST_TOOL \ 17968DSYMUTIL \ 17969NMEDIT \ 17970LIPO \ 17971OTOOL \ 17972OTOOL64 \ 17973shrext_cmds \ 17974export_dynamic_flag_spec \ 17975whole_archive_flag_spec \ 17976compiler_needs_object \ 17977with_gnu_ld \ 17978allow_undefined_flag \ 17979no_undefined_flag \ 17980hardcode_libdir_flag_spec \ 17981hardcode_libdir_separator \ 17982exclude_expsyms \ 17983include_expsyms \ 17984file_list_spec \ 17985variables_saved_for_relink \ 17986libname_spec \ 17987library_names_spec \ 17988soname_spec \ 17989install_override_mode \ 17990finish_eval \ 17991old_striplib \ 17992striplib; do 17993 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17994 *[\\\\\\\`\\"\\\$]*) 17995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17996 ;; 17997 *) 17998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17999 ;; 18000 esac 18001done 18002 18003# Double-quote double-evaled strings. 18004for var in reload_cmds \ 18005old_postinstall_cmds \ 18006old_postuninstall_cmds \ 18007old_archive_cmds \ 18008extract_expsyms_cmds \ 18009old_archive_from_new_cmds \ 18010old_archive_from_expsyms_cmds \ 18011archive_cmds \ 18012archive_expsym_cmds \ 18013module_cmds \ 18014module_expsym_cmds \ 18015export_symbols_cmds \ 18016prelink_cmds \ 18017postlink_cmds \ 18018postinstall_cmds \ 18019postuninstall_cmds \ 18020finish_cmds \ 18021sys_lib_search_path_spec \ 18022configure_time_dlsearch_path \ 18023configure_time_lt_sys_library_path; do 18024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18025 *[\\\\\\\`\\"\\\$]*) 18026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18027 ;; 18028 *) 18029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18030 ;; 18031 esac 18032done 18033 18034ac_aux_dir='$ac_aux_dir' 18035 18036# See if we are running on zsh, and set the options that allow our 18037# commands through without removal of \ escapes INIT. 18038if test -n "\${ZSH_VERSION+set}"; then 18039 setopt NO_GLOB_SUBST 18040fi 18041 18042 18043 PACKAGE='$PACKAGE' 18044 VERSION='$VERSION' 18045 RM='$RM' 18046 ofile='$ofile' 18047 18048 18049 18050 18051_ACEOF 18052 18053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18054 18055# Handling of arguments. 18056for ac_config_target in $ac_config_targets 18057do 18058 case $ac_config_target in 18059 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18060 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18061 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18062 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; 18063 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;; 18064 "extras/queues/Makefile") CONFIG_FILES="$CONFIG_FILES extras/queues/Makefile" ;; 18065 "extras/queues/queue-null/Makefile") CONFIG_FILES="$CONFIG_FILES extras/queues/queue-null/Makefile" ;; 18066 "extras/queues/queue-python/Makefile") CONFIG_FILES="$CONFIG_FILES extras/queues/queue-python/Makefile" ;; 18067 "extras/queues/queue-ram/Makefile") CONFIG_FILES="$CONFIG_FILES extras/queues/queue-ram/Makefile" ;; 18068 "extras/queues/queue-stub/Makefile") CONFIG_FILES="$CONFIG_FILES extras/queues/queue-stub/Makefile" ;; 18069 "extras/schedulers/Makefile") CONFIG_FILES="$CONFIG_FILES extras/schedulers/Makefile" ;; 18070 "extras/schedulers/scheduler-python/Makefile") CONFIG_FILES="$CONFIG_FILES extras/schedulers/scheduler-python/Makefile" ;; 18071 "extras/schedulers/scheduler-ram/Makefile") CONFIG_FILES="$CONFIG_FILES extras/schedulers/scheduler-ram/Makefile" ;; 18072 "extras/schedulers/scheduler-stub/Makefile") CONFIG_FILES="$CONFIG_FILES extras/schedulers/scheduler-stub/Makefile" ;; 18073 "extras/tables/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/Makefile" ;; 18074 "extras/tables/table-passwd/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-passwd/Makefile" ;; 18075 "extras/tables/table-ldap/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-ldap/Makefile" ;; 18076 "extras/tables/table-mysql/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-mysql/Makefile" ;; 18077 "extras/tables/table-postgres/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-postgres/Makefile" ;; 18078 "extras/tables/table-python/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-python/Makefile" ;; 18079 "extras/tables/table-redis/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-redis/Makefile" ;; 18080 "extras/tables/table-socketmap/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-socketmap/Makefile" ;; 18081 "extras/tables/table-sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-sqlite/Makefile" ;; 18082 "extras/tables/table-stub/Makefile") CONFIG_FILES="$CONFIG_FILES extras/tables/table-stub/Makefile" ;; 18083 18084 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18085 esac 18086done 18087 18088 18089# If the user did not use the arguments to specify the items to instantiate, 18090# then the envvar interface is used. Set only those that are not. 18091# We use the long form for the default assignment because of an extremely 18092# bizarre bug on SunOS 4.1.3. 18093if $ac_need_defaults; then 18094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18097fi 18098 18099# Have a temporary directory for convenience. Make it in the build tree 18100# simply because there is no reason against having it here, and in addition, 18101# creating and moving files from /tmp can sometimes cause problems. 18102# Hook for its removal unless debugging. 18103# Note that there is a small window in which the directory will not be cleaned: 18104# after its creation but before its name has been assigned to `$tmp'. 18105$debug || 18106{ 18107 tmp= ac_tmp= 18108 trap 'exit_status=$? 18109 : "${ac_tmp:=$tmp}" 18110 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18111' 0 18112 trap 'as_fn_exit 1' 1 2 13 15 18113} 18114# Create a (secure) tmp directory for tmp files. 18115 18116{ 18117 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18118 test -d "$tmp" 18119} || 18120{ 18121 tmp=./conf$$-$RANDOM 18122 (umask 077 && mkdir "$tmp") 18123} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18124ac_tmp=$tmp 18125 18126# Set up the scripts for CONFIG_FILES section. 18127# No need to generate them if there are no CONFIG_FILES. 18128# This happens for instance with `./config.status config.h'. 18129if test -n "$CONFIG_FILES"; then 18130 18131 18132ac_cr=`echo X | tr X '\015'` 18133# On cygwin, bash can eat \r inside `` if the user requested igncr. 18134# But we know of no other shell where ac_cr would be empty at this 18135# point, so we can use a bashism as a fallback. 18136if test "x$ac_cr" = x; then 18137 eval ac_cr=\$\'\\r\' 18138fi 18139ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18140if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18141 ac_cs_awk_cr='\\r' 18142else 18143 ac_cs_awk_cr=$ac_cr 18144fi 18145 18146echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18147_ACEOF 18148 18149 18150{ 18151 echo "cat >conf$$subs.awk <<_ACEOF" && 18152 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18153 echo "_ACEOF" 18154} >conf$$subs.sh || 18155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18156ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18157ac_delim='%!_!# ' 18158for ac_last_try in false false false false false :; do 18159 . ./conf$$subs.sh || 18160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18161 18162 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18163 if test $ac_delim_n = $ac_delim_num; then 18164 break 18165 elif $ac_last_try; then 18166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18167 else 18168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18169 fi 18170done 18171rm -f conf$$subs.sh 18172 18173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18174cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18175_ACEOF 18176sed -n ' 18177h 18178s/^/S["/; s/!.*/"]=/ 18179p 18180g 18181s/^[^!]*!// 18182:repl 18183t repl 18184s/'"$ac_delim"'$// 18185t delim 18186:nl 18187h 18188s/\(.\{148\}\)..*/\1/ 18189t more1 18190s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18191p 18192n 18193b repl 18194:more1 18195s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18196p 18197g 18198s/.\{148\}// 18199t nl 18200:delim 18201h 18202s/\(.\{148\}\)..*/\1/ 18203t more2 18204s/["\\]/\\&/g; s/^/"/; s/$/"/ 18205p 18206b 18207:more2 18208s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18209p 18210g 18211s/.\{148\}// 18212t delim 18213' <conf$$subs.awk | sed ' 18214/^[^""]/{ 18215 N 18216 s/\n// 18217} 18218' >>$CONFIG_STATUS || ac_write_fail=1 18219rm -f conf$$subs.awk 18220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18221_ACAWK 18222cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18223 for (key in S) S_is_set[key] = 1 18224 FS = "" 18225 18226} 18227{ 18228 line = $ 0 18229 nfields = split(line, field, "@") 18230 substed = 0 18231 len = length(field[1]) 18232 for (i = 2; i < nfields; i++) { 18233 key = field[i] 18234 keylen = length(key) 18235 if (S_is_set[key]) { 18236 value = S[key] 18237 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18238 len += length(value) + length(field[++i]) 18239 substed = 1 18240 } else 18241 len += 1 + keylen 18242 } 18243 18244 print line 18245} 18246 18247_ACAWK 18248_ACEOF 18249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18250if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18251 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18252else 18253 cat 18254fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18255 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18256_ACEOF 18257 18258# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18259# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18260# trailing colons and then remove the whole line if VPATH becomes empty 18261# (actually we leave an empty line to preserve line numbers). 18262if test "x$srcdir" = x.; then 18263 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18264h 18265s/// 18266s/^/:/ 18267s/[ ]*$/:/ 18268s/:\$(srcdir):/:/g 18269s/:\${srcdir}:/:/g 18270s/:@srcdir@:/:/g 18271s/^:*// 18272s/:*$// 18273x 18274s/\(=[ ]*\).*/\1/ 18275G 18276s/\n// 18277s/^[^=]*=[ ]*$// 18278}' 18279fi 18280 18281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18282fi # test -n "$CONFIG_FILES" 18283 18284# Set up the scripts for CONFIG_HEADERS section. 18285# No need to generate them if there are no CONFIG_HEADERS. 18286# This happens for instance with `./config.status Makefile'. 18287if test -n "$CONFIG_HEADERS"; then 18288cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18289BEGIN { 18290_ACEOF 18291 18292# Transform confdefs.h into an awk script `defines.awk', embedded as 18293# here-document in config.status, that substitutes the proper values into 18294# config.h.in to produce config.h. 18295 18296# Create a delimiter string that does not exist in confdefs.h, to ease 18297# handling of long lines. 18298ac_delim='%!_!# ' 18299for ac_last_try in false false :; do 18300 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18301 if test -z "$ac_tt"; then 18302 break 18303 elif $ac_last_try; then 18304 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18305 else 18306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18307 fi 18308done 18309 18310# For the awk script, D is an array of macro values keyed by name, 18311# likewise P contains macro parameters if any. Preserve backslash 18312# newline sequences. 18313 18314ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18315sed -n ' 18316s/.\{148\}/&'"$ac_delim"'/g 18317t rset 18318:rset 18319s/^[ ]*#[ ]*define[ ][ ]*/ / 18320t def 18321d 18322:def 18323s/\\$// 18324t bsnl 18325s/["\\]/\\&/g 18326s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18327D["\1"]=" \3"/p 18328s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18329d 18330:bsnl 18331s/["\\]/\\&/g 18332s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18333D["\1"]=" \3\\\\\\n"\\/p 18334t cont 18335s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18336t cont 18337d 18338:cont 18339n 18340s/.\{148\}/&'"$ac_delim"'/g 18341t clear 18342:clear 18343s/\\$// 18344t bsnlc 18345s/["\\]/\\&/g; s/^/"/; s/$/"/p 18346d 18347:bsnlc 18348s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18349b cont 18350' <confdefs.h | sed ' 18351s/'"$ac_delim"'/"\\\ 18352"/g' >>$CONFIG_STATUS || ac_write_fail=1 18353 18354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18355 for (key in D) D_is_set[key] = 1 18356 FS = "" 18357} 18358/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18359 line = \$ 0 18360 split(line, arg, " ") 18361 if (arg[1] == "#") { 18362 defundef = arg[2] 18363 mac1 = arg[3] 18364 } else { 18365 defundef = substr(arg[1], 2) 18366 mac1 = arg[2] 18367 } 18368 split(mac1, mac2, "(") #) 18369 macro = mac2[1] 18370 prefix = substr(line, 1, index(line, defundef) - 1) 18371 if (D_is_set[macro]) { 18372 # Preserve the white space surrounding the "#". 18373 print prefix "define", macro P[macro] D[macro] 18374 next 18375 } else { 18376 # Replace #undef with comments. This is necessary, for example, 18377 # in the case of _POSIX_SOURCE, which is predefined and required 18378 # on some systems where configure will not decide to define it. 18379 if (defundef == "undef") { 18380 print "/*", prefix defundef, macro, "*/" 18381 next 18382 } 18383 } 18384} 18385{ print } 18386_ACAWK 18387_ACEOF 18388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18389 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18390fi # test -n "$CONFIG_HEADERS" 18391 18392 18393eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18394shift 18395for ac_tag 18396do 18397 case $ac_tag in 18398 :[FHLC]) ac_mode=$ac_tag; continue;; 18399 esac 18400 case $ac_mode$ac_tag in 18401 :[FHL]*:*);; 18402 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18403 :[FH]-) ac_tag=-:-;; 18404 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18405 esac 18406 ac_save_IFS=$IFS 18407 IFS=: 18408 set x $ac_tag 18409 IFS=$ac_save_IFS 18410 shift 18411 ac_file=$1 18412 shift 18413 18414 case $ac_mode in 18415 :L) ac_source=$1;; 18416 :[FH]) 18417 ac_file_inputs= 18418 for ac_f 18419 do 18420 case $ac_f in 18421 -) ac_f="$ac_tmp/stdin";; 18422 *) # Look for the file first in the build tree, then in the source tree 18423 # (if the path is not absolute). The absolute path cannot be DOS-style, 18424 # because $ac_f cannot contain `:'. 18425 test -f "$ac_f" || 18426 case $ac_f in 18427 [\\/$]*) false;; 18428 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18429 esac || 18430 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18431 esac 18432 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18433 as_fn_append ac_file_inputs " '$ac_f'" 18434 done 18435 18436 # Let's still pretend it is `configure' which instantiates (i.e., don't 18437 # use $as_me), people would be surprised to read: 18438 # /* config.h. Generated by config.status. */ 18439 configure_input='Generated from '` 18440 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18441 `' by configure.' 18442 if test x"$ac_file" != x-; then 18443 configure_input="$ac_file. $configure_input" 18444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18445$as_echo "$as_me: creating $ac_file" >&6;} 18446 fi 18447 # Neutralize special characters interpreted by sed in replacement strings. 18448 case $configure_input in #( 18449 *\&* | *\|* | *\\* ) 18450 ac_sed_conf_input=`$as_echo "$configure_input" | 18451 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18452 *) ac_sed_conf_input=$configure_input;; 18453 esac 18454 18455 case $ac_tag in 18456 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18458 esac 18459 ;; 18460 esac 18461 18462 ac_dir=`$as_dirname -- "$ac_file" || 18463$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18464 X"$ac_file" : 'X\(//\)[^/]' \| \ 18465 X"$ac_file" : 'X\(//\)$' \| \ 18466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18467$as_echo X"$ac_file" | 18468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18469 s//\1/ 18470 q 18471 } 18472 /^X\(\/\/\)[^/].*/{ 18473 s//\1/ 18474 q 18475 } 18476 /^X\(\/\/\)$/{ 18477 s//\1/ 18478 q 18479 } 18480 /^X\(\/\).*/{ 18481 s//\1/ 18482 q 18483 } 18484 s/.*/./; q'` 18485 as_dir="$ac_dir"; as_fn_mkdir_p 18486 ac_builddir=. 18487 18488case "$ac_dir" in 18489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18490*) 18491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18492 # A ".." for each directory in $ac_dir_suffix. 18493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18494 case $ac_top_builddir_sub in 18495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18497 esac ;; 18498esac 18499ac_abs_top_builddir=$ac_pwd 18500ac_abs_builddir=$ac_pwd$ac_dir_suffix 18501# for backward compatibility: 18502ac_top_builddir=$ac_top_build_prefix 18503 18504case $srcdir in 18505 .) # We are building in place. 18506 ac_srcdir=. 18507 ac_top_srcdir=$ac_top_builddir_sub 18508 ac_abs_top_srcdir=$ac_pwd ;; 18509 [\\/]* | ?:[\\/]* ) # Absolute name. 18510 ac_srcdir=$srcdir$ac_dir_suffix; 18511 ac_top_srcdir=$srcdir 18512 ac_abs_top_srcdir=$srcdir ;; 18513 *) # Relative name. 18514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18515 ac_top_srcdir=$ac_top_build_prefix$srcdir 18516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18517esac 18518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18519 18520 18521 case $ac_mode in 18522 :F) 18523 # 18524 # CONFIG_FILE 18525 # 18526 18527 case $INSTALL in 18528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18530 esac 18531 ac_MKDIR_P=$MKDIR_P 18532 case $MKDIR_P in 18533 [\\/$]* | ?:[\\/]* ) ;; 18534 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18535 esac 18536_ACEOF 18537 18538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18539# If the template does not know about datarootdir, expand it. 18540# FIXME: This hack should be removed a few years after 2.60. 18541ac_datarootdir_hack=; ac_datarootdir_seen= 18542ac_sed_dataroot=' 18543/datarootdir/ { 18544 p 18545 q 18546} 18547/@datadir@/p 18548/@docdir@/p 18549/@infodir@/p 18550/@localedir@/p 18551/@mandir@/p' 18552case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18553*datarootdir*) ac_datarootdir_seen=yes;; 18554*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18556$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18557_ACEOF 18558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18559 ac_datarootdir_hack=' 18560 s&@datadir@&$datadir&g 18561 s&@docdir@&$docdir&g 18562 s&@infodir@&$infodir&g 18563 s&@localedir@&$localedir&g 18564 s&@mandir@&$mandir&g 18565 s&\\\${datarootdir}&$datarootdir&g' ;; 18566esac 18567_ACEOF 18568 18569# Neutralize VPATH when `$srcdir' = `.'. 18570# Shell code in configure.ac might set extrasub. 18571# FIXME: do we really want to maintain this feature? 18572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18573ac_sed_extra="$ac_vpsub 18574$extrasub 18575_ACEOF 18576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18577:t 18578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18579s|@configure_input@|$ac_sed_conf_input|;t t 18580s&@top_builddir@&$ac_top_builddir_sub&;t t 18581s&@top_build_prefix@&$ac_top_build_prefix&;t t 18582s&@srcdir@&$ac_srcdir&;t t 18583s&@abs_srcdir@&$ac_abs_srcdir&;t t 18584s&@top_srcdir@&$ac_top_srcdir&;t t 18585s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18586s&@builddir@&$ac_builddir&;t t 18587s&@abs_builddir@&$ac_abs_builddir&;t t 18588s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18589s&@INSTALL@&$ac_INSTALL&;t t 18590s&@MKDIR_P@&$ac_MKDIR_P&;t t 18591$ac_datarootdir_hack 18592" 18593eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18594 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18595 18596test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18597 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18598 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18599 "$ac_tmp/out"`; test -z "$ac_out"; } && 18600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18601which seems to be undefined. Please make sure it is defined" >&5 18602$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18603which seems to be undefined. Please make sure it is defined" >&2;} 18604 18605 rm -f "$ac_tmp/stdin" 18606 case $ac_file in 18607 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18608 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18609 esac \ 18610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18611 ;; 18612 :H) 18613 # 18614 # CONFIG_HEADER 18615 # 18616 if test x"$ac_file" != x-; then 18617 { 18618 $as_echo "/* $configure_input */" \ 18619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18620 } >"$ac_tmp/config.h" \ 18621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18622 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18624$as_echo "$as_me: $ac_file is unchanged" >&6;} 18625 else 18626 rm -f "$ac_file" 18627 mv "$ac_tmp/config.h" "$ac_file" \ 18628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18629 fi 18630 else 18631 $as_echo "/* $configure_input */" \ 18632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18633 || as_fn_error $? "could not create -" "$LINENO" 5 18634 fi 18635# Compute "$ac_file"'s index in $config_headers. 18636_am_arg="$ac_file" 18637_am_stamp_count=1 18638for _am_header in $config_headers :; do 18639 case $_am_header in 18640 $_am_arg | $_am_arg:* ) 18641 break ;; 18642 * ) 18643 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18644 esac 18645done 18646echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18647$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18648 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18649 X"$_am_arg" : 'X\(//\)$' \| \ 18650 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18651$as_echo X"$_am_arg" | 18652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18653 s//\1/ 18654 q 18655 } 18656 /^X\(\/\/\)[^/].*/{ 18657 s//\1/ 18658 q 18659 } 18660 /^X\(\/\/\)$/{ 18661 s//\1/ 18662 q 18663 } 18664 /^X\(\/\).*/{ 18665 s//\1/ 18666 q 18667 } 18668 s/.*/./; q'`/stamp-h$_am_stamp_count 18669 ;; 18670 18671 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18672$as_echo "$as_me: executing $ac_file commands" >&6;} 18673 ;; 18674 esac 18675 18676 18677 case $ac_file$ac_mode in 18678 "libtool":C) 18679 18680 # See if we are running on zsh, and set the options that allow our 18681 # commands through without removal of \ escapes. 18682 if test -n "${ZSH_VERSION+set}"; then 18683 setopt NO_GLOB_SUBST 18684 fi 18685 18686 cfgfile=${ofile}T 18687 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18688 $RM "$cfgfile" 18689 18690 cat <<_LT_EOF >> "$cfgfile" 18691#! $SHELL 18692# Generated automatically by $as_me ($PACKAGE) $VERSION 18693# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18694# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18695 18696# Provide generalized library-building support services. 18697# Written by Gordon Matzigkeit, 1996 18698 18699# Copyright (C) 2014 Free Software Foundation, Inc. 18700# This is free software; see the source for copying conditions. There is NO 18701# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18702 18703# GNU Libtool is free software; you can redistribute it and/or modify 18704# it under the terms of the GNU General Public License as published by 18705# the Free Software Foundation; either version 2 of of the License, or 18706# (at your option) any later version. 18707# 18708# As a special exception to the GNU General Public License, if you 18709# distribute this file as part of a program or library that is built 18710# using GNU Libtool, you may include this file under the same 18711# distribution terms that you use for the rest of that program. 18712# 18713# GNU Libtool is distributed in the hope that it will be useful, but 18714# WITHOUT ANY WARRANTY; without even the implied warranty of 18715# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18716# GNU General Public License for more details. 18717# 18718# You should have received a copy of the GNU General Public License 18719# along with this program. If not, see <http://www.gnu.org/licenses/>. 18720 18721 18722# The names of the tagged configurations supported by this script. 18723available_tags='' 18724 18725# Configured defaults for sys_lib_dlsearch_path munging. 18726: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18727 18728# ### BEGIN LIBTOOL CONFIG 18729 18730# Which release of libtool.m4 was used? 18731macro_version=$macro_version 18732macro_revision=$macro_revision 18733 18734# Whether or not to build shared libraries. 18735build_libtool_libs=$enable_shared 18736 18737# Whether or not to build static libraries. 18738build_old_libs=$enable_static 18739 18740# What type of objects to build. 18741pic_mode=$pic_mode 18742 18743# Whether or not to optimize for fast installation. 18744fast_install=$enable_fast_install 18745 18746# Shared archive member basename,for filename based shared library versioning on AIX. 18747shared_archive_member_spec=$shared_archive_member_spec 18748 18749# Shell to use when invoking shell scripts. 18750SHELL=$lt_SHELL 18751 18752# An echo program that protects backslashes. 18753ECHO=$lt_ECHO 18754 18755# The PATH separator for the build system. 18756PATH_SEPARATOR=$lt_PATH_SEPARATOR 18757 18758# The host system. 18759host_alias=$host_alias 18760host=$host 18761host_os=$host_os 18762 18763# The build system. 18764build_alias=$build_alias 18765build=$build 18766build_os=$build_os 18767 18768# A sed program that does not truncate output. 18769SED=$lt_SED 18770 18771# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18772Xsed="\$SED -e 1s/^X//" 18773 18774# A grep program that handles long lines. 18775GREP=$lt_GREP 18776 18777# An ERE matcher. 18778EGREP=$lt_EGREP 18779 18780# A literal string matcher. 18781FGREP=$lt_FGREP 18782 18783# A BSD- or MS-compatible name lister. 18784NM=$lt_NM 18785 18786# Whether we need soft or hard links. 18787LN_S=$lt_LN_S 18788 18789# What is the maximum length of a command? 18790max_cmd_len=$max_cmd_len 18791 18792# Object file suffix (normally "o"). 18793objext=$ac_objext 18794 18795# Executable file suffix (normally ""). 18796exeext=$exeext 18797 18798# whether the shell understands "unset". 18799lt_unset=$lt_unset 18800 18801# turn spaces into newlines. 18802SP2NL=$lt_lt_SP2NL 18803 18804# turn newlines into spaces. 18805NL2SP=$lt_lt_NL2SP 18806 18807# convert \$build file names to \$host format. 18808to_host_file_cmd=$lt_cv_to_host_file_cmd 18809 18810# convert \$build files to toolchain format. 18811to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18812 18813# An object symbol dumper. 18814OBJDUMP=$lt_OBJDUMP 18815 18816# Method to check whether dependent libraries are shared objects. 18817deplibs_check_method=$lt_deplibs_check_method 18818 18819# Command to use when deplibs_check_method = "file_magic". 18820file_magic_cmd=$lt_file_magic_cmd 18821 18822# How to find potential files when deplibs_check_method = "file_magic". 18823file_magic_glob=$lt_file_magic_glob 18824 18825# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18826want_nocaseglob=$lt_want_nocaseglob 18827 18828# DLL creation program. 18829DLLTOOL=$lt_DLLTOOL 18830 18831# Command to associate shared and link libraries. 18832sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18833 18834# The archiver. 18835AR=$lt_AR 18836 18837# Flags to create an archive. 18838AR_FLAGS=$lt_AR_FLAGS 18839 18840# How to feed a file listing to the archiver. 18841archiver_list_spec=$lt_archiver_list_spec 18842 18843# A symbol stripping program. 18844STRIP=$lt_STRIP 18845 18846# Commands used to install an old-style archive. 18847RANLIB=$lt_RANLIB 18848old_postinstall_cmds=$lt_old_postinstall_cmds 18849old_postuninstall_cmds=$lt_old_postuninstall_cmds 18850 18851# Whether to use a lock for old archive extraction. 18852lock_old_archive_extraction=$lock_old_archive_extraction 18853 18854# A C compiler. 18855LTCC=$lt_CC 18856 18857# LTCC compiler flags. 18858LTCFLAGS=$lt_CFLAGS 18859 18860# Take the output of nm and produce a listing of raw symbols and C names. 18861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18862 18863# Transform the output of nm in a proper C declaration. 18864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18865 18866# Transform the output of nm into a list of symbols to manually relocate. 18867global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18868 18869# Transform the output of nm in a C name address pair. 18870global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18871 18872# Transform the output of nm in a C name address pair when lib prefix is needed. 18873global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18874 18875# The name lister interface. 18876nm_interface=$lt_lt_cv_nm_interface 18877 18878# Specify filename containing input files for \$NM. 18879nm_file_list_spec=$lt_nm_file_list_spec 18880 18881# The root where to search for dependent libraries,and where our libraries should be installed. 18882lt_sysroot=$lt_sysroot 18883 18884# Command to truncate a binary pipe. 18885lt_truncate_bin=$lt_lt_cv_truncate_bin 18886 18887# The name of the directory that contains temporary libtool files. 18888objdir=$objdir 18889 18890# Used to examine libraries when file_magic_cmd begins with "file". 18891MAGIC_CMD=$MAGIC_CMD 18892 18893# Must we lock files when doing compilation? 18894need_locks=$lt_need_locks 18895 18896# Manifest tool. 18897MANIFEST_TOOL=$lt_MANIFEST_TOOL 18898 18899# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18900DSYMUTIL=$lt_DSYMUTIL 18901 18902# Tool to change global to local symbols on Mac OS X. 18903NMEDIT=$lt_NMEDIT 18904 18905# Tool to manipulate fat objects and archives on Mac OS X. 18906LIPO=$lt_LIPO 18907 18908# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18909OTOOL=$lt_OTOOL 18910 18911# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18912OTOOL64=$lt_OTOOL64 18913 18914# Old archive suffix (normally "a"). 18915libext=$libext 18916 18917# Shared library suffix (normally ".so"). 18918shrext_cmds=$lt_shrext_cmds 18919 18920# The commands to extract the exported symbol list from a shared archive. 18921extract_expsyms_cmds=$lt_extract_expsyms_cmds 18922 18923# Variables whose values should be saved in libtool wrapper scripts and 18924# restored at link time. 18925variables_saved_for_relink=$lt_variables_saved_for_relink 18926 18927# Do we need the "lib" prefix for modules? 18928need_lib_prefix=$need_lib_prefix 18929 18930# Do we need a version for libraries? 18931need_version=$need_version 18932 18933# Library versioning type. 18934version_type=$version_type 18935 18936# Shared library runtime path variable. 18937runpath_var=$runpath_var 18938 18939# Shared library path variable. 18940shlibpath_var=$shlibpath_var 18941 18942# Is shlibpath searched before the hard-coded library search path? 18943shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18944 18945# Format of library name prefix. 18946libname_spec=$lt_libname_spec 18947 18948# List of archive names. First name is the real one, the rest are links. 18949# The last name is the one that the linker finds with -lNAME 18950library_names_spec=$lt_library_names_spec 18951 18952# The coded name of the library, if different from the real name. 18953soname_spec=$lt_soname_spec 18954 18955# Permission mode override for installation of shared libraries. 18956install_override_mode=$lt_install_override_mode 18957 18958# Command to use after installation of a shared archive. 18959postinstall_cmds=$lt_postinstall_cmds 18960 18961# Command to use after uninstallation of a shared archive. 18962postuninstall_cmds=$lt_postuninstall_cmds 18963 18964# Commands used to finish a libtool library installation in a directory. 18965finish_cmds=$lt_finish_cmds 18966 18967# As "finish_cmds", except a single script fragment to be evaled but 18968# not shown. 18969finish_eval=$lt_finish_eval 18970 18971# Whether we should hardcode library paths into libraries. 18972hardcode_into_libs=$hardcode_into_libs 18973 18974# Compile-time system search path for libraries. 18975sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18976 18977# Detected run-time system search path for libraries. 18978sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18979 18980# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18981configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18982 18983# Whether dlopen is supported. 18984dlopen_support=$enable_dlopen 18985 18986# Whether dlopen of programs is supported. 18987dlopen_self=$enable_dlopen_self 18988 18989# Whether dlopen of statically linked programs is supported. 18990dlopen_self_static=$enable_dlopen_self_static 18991 18992# Commands to strip libraries. 18993old_striplib=$lt_old_striplib 18994striplib=$lt_striplib 18995 18996 18997# The linker used to build libraries. 18998LD=$lt_LD 18999 19000# How to create reloadable object files. 19001reload_flag=$lt_reload_flag 19002reload_cmds=$lt_reload_cmds 19003 19004# Commands used to build an old-style archive. 19005old_archive_cmds=$lt_old_archive_cmds 19006 19007# A language specific compiler. 19008CC=$lt_compiler 19009 19010# Is the compiler the GNU compiler? 19011with_gcc=$GCC 19012 19013# Compiler flag to turn off builtin functions. 19014no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19015 19016# Additional compiler flags for building library objects. 19017pic_flag=$lt_lt_prog_compiler_pic 19018 19019# How to pass a linker flag through the compiler. 19020wl=$lt_lt_prog_compiler_wl 19021 19022# Compiler flag to prevent dynamic linking. 19023link_static_flag=$lt_lt_prog_compiler_static 19024 19025# Does compiler simultaneously support -c and -o options? 19026compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19027 19028# Whether or not to add -lc for building shared libraries. 19029build_libtool_need_lc=$archive_cmds_need_lc 19030 19031# Whether or not to disallow shared libs when runtime libs are static. 19032allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19033 19034# Compiler flag to allow reflexive dlopens. 19035export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19036 19037# Compiler flag to generate shared objects directly from archives. 19038whole_archive_flag_spec=$lt_whole_archive_flag_spec 19039 19040# Whether the compiler copes with passing no objects directly. 19041compiler_needs_object=$lt_compiler_needs_object 19042 19043# Create an old-style archive from a shared archive. 19044old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19045 19046# Create a temporary old-style archive to link instead of a shared archive. 19047old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19048 19049# Commands used to build a shared archive. 19050archive_cmds=$lt_archive_cmds 19051archive_expsym_cmds=$lt_archive_expsym_cmds 19052 19053# Commands used to build a loadable module if different from building 19054# a shared archive. 19055module_cmds=$lt_module_cmds 19056module_expsym_cmds=$lt_module_expsym_cmds 19057 19058# Whether we are building with GNU ld or not. 19059with_gnu_ld=$lt_with_gnu_ld 19060 19061# Flag that allows shared libraries with undefined symbols to be built. 19062allow_undefined_flag=$lt_allow_undefined_flag 19063 19064# Flag that enforces no undefined symbols. 19065no_undefined_flag=$lt_no_undefined_flag 19066 19067# Flag to hardcode \$libdir into a binary during linking. 19068# This must work even if \$libdir does not exist 19069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19070 19071# Whether we need a single "-rpath" flag with a separated argument. 19072hardcode_libdir_separator=$lt_hardcode_libdir_separator 19073 19074# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19075# DIR into the resulting binary. 19076hardcode_direct=$hardcode_direct 19077 19078# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19079# DIR into the resulting binary and the resulting library dependency is 19080# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19081# library is relocated. 19082hardcode_direct_absolute=$hardcode_direct_absolute 19083 19084# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19085# into the resulting binary. 19086hardcode_minus_L=$hardcode_minus_L 19087 19088# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19089# into the resulting binary. 19090hardcode_shlibpath_var=$hardcode_shlibpath_var 19091 19092# Set to "yes" if building a shared library automatically hardcodes DIR 19093# into the library and all subsequent libraries and executables linked 19094# against it. 19095hardcode_automatic=$hardcode_automatic 19096 19097# Set to yes if linker adds runtime paths of dependent libraries 19098# to runtime path list. 19099inherit_rpath=$inherit_rpath 19100 19101# Whether libtool must link a program against all its dependency libraries. 19102link_all_deplibs=$link_all_deplibs 19103 19104# Set to "yes" if exported symbols are required. 19105always_export_symbols=$always_export_symbols 19106 19107# The commands to list exported symbols. 19108export_symbols_cmds=$lt_export_symbols_cmds 19109 19110# Symbols that should not be listed in the preloaded symbols. 19111exclude_expsyms=$lt_exclude_expsyms 19112 19113# Symbols that must always be exported. 19114include_expsyms=$lt_include_expsyms 19115 19116# Commands necessary for linking programs (against libraries) with templates. 19117prelink_cmds=$lt_prelink_cmds 19118 19119# Commands necessary for finishing linking programs. 19120postlink_cmds=$lt_postlink_cmds 19121 19122# Specify filename containing input files. 19123file_list_spec=$lt_file_list_spec 19124 19125# How to hardcode a shared library path into an executable. 19126hardcode_action=$hardcode_action 19127 19128# ### END LIBTOOL CONFIG 19129 19130_LT_EOF 19131 19132 cat <<'_LT_EOF' >> "$cfgfile" 19133 19134# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19135 19136# func_munge_path_list VARIABLE PATH 19137# ----------------------------------- 19138# VARIABLE is name of variable containing _space_ separated list of 19139# directories to be munged by the contents of PATH, which is string 19140# having a format: 19141# "DIR[:DIR]:" 19142# string "DIR[ DIR]" will be prepended to VARIABLE 19143# ":DIR[:DIR]" 19144# string "DIR[ DIR]" will be appended to VARIABLE 19145# "DIRP[:DIRP]::[DIRA:]DIRA" 19146# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19147# "DIRA[ DIRA]" will be appended to VARIABLE 19148# "DIR[:DIR]" 19149# VARIABLE will be replaced by "DIR[ DIR]" 19150func_munge_path_list () 19151{ 19152 case x$2 in 19153 x) 19154 ;; 19155 *:) 19156 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19157 ;; 19158 x:*) 19159 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19160 ;; 19161 *::*) 19162 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19163 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19164 ;; 19165 *) 19166 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19167 ;; 19168 esac 19169} 19170 19171 19172# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19173func_cc_basename () 19174{ 19175 for cc_temp in $*""; do 19176 case $cc_temp in 19177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19179 \-*) ;; 19180 *) break;; 19181 esac 19182 done 19183 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19184} 19185 19186 19187# ### END FUNCTIONS SHARED WITH CONFIGURE 19188 19189_LT_EOF 19190 19191 case $host_os in 19192 aix3*) 19193 cat <<\_LT_EOF >> "$cfgfile" 19194# AIX sometimes has problems with the GCC collect2 program. For some 19195# reason, if we set the COLLECT_NAMES environment variable, the problems 19196# vanish in a puff of smoke. 19197if test set != "${COLLECT_NAMES+set}"; then 19198 COLLECT_NAMES= 19199 export COLLECT_NAMES 19200fi 19201_LT_EOF 19202 ;; 19203 esac 19204 19205 19206ltmain=$ac_aux_dir/ltmain.sh 19207 19208 19209 # We use sed instead of cat because bash on DJGPP gets confused if 19210 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19211 # text mode, it properly converts lines to CR/LF. This bash problem 19212 # is reportedly fixed, but why not run on old versions too? 19213 sed '$q' "$ltmain" >> "$cfgfile" \ 19214 || (rm -f "$cfgfile"; exit 1) 19215 19216 mv -f "$cfgfile" "$ofile" || 19217 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19218 chmod +x "$ofile" 19219 19220 ;; 19221 19222 esac 19223done # for ac_tag 19224 19225 19226as_fn_exit 0 19227_ACEOF 19228ac_clean_files=$ac_clean_files_save 19229 19230test $ac_write_fail = 0 || 19231 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19232 19233 19234# configure is writing to config.log, and then calls config.status. 19235# config.status does its own redirection, appending to config.log. 19236# Unfortunately, on DOS this fails, as config.log is still kept open 19237# by configure, so config.status won't be able to write to it; its 19238# output is simply discarded. So we exec the FD to /dev/null, 19239# effectively closing config.log, so it can be properly (re)opened and 19240# appended to by config.status. When coming back to configure, we 19241# need to make the FD available again. 19242if test "$no_create" != yes; then 19243 ac_cs_success=: 19244 ac_config_status_args= 19245 test "$silent" = yes && 19246 ac_config_status_args="$ac_config_status_args --quiet" 19247 exec 5>/dev/null 19248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19249 exec 5>>config.log 19250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19251 # would make configure fail if this is the last instruction. 19252 $ac_cs_success || as_fn_exit 1 19253fi 19254if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19256$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19257fi 19258 19259 19260 19261# Print summary of options 19262 19263# Someone please show me a better way :) 19264A=`eval echo ${prefix}` ; A=`eval echo ${A}` 19265B=`eval echo ${bindir}` ; B=`eval echo ${B}` 19266C=`eval echo ${sbindir}` ; C=`eval echo ${C}` 19267D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` 19268E=`eval echo ${mandir}/${mansubdir}X` ; E=`eval echo ${E}` 19269F=`eval echo ${PRIVSEP_PATH}` ; F=`eval echo ${F}` 19270 19271echo "" 19272echo "OpenSMTPD-extras have been configured with the following options:" 19273echo " User binaries: $B" 19274echo " System binaries: $C" 19275echo " Configuration files: $D" 19276echo " Manual pages: $E" 19277echo " Privilege separation chroot path: $F" 19278echo " Package libexecdir: ${pkglibexecdir}" 19279echo " Manpage format: $MANTYPE" 19280echo "" 19281 19282echo " Host: ${host}" 19283echo " Compiler: ${CC}" 19284echo " Compiler flags: ${CFLAGS}" 19285echo "Preprocessor flags: ${CPPFLAGS}" 19286echo " Linker flags: ${LDFLAGS}" 19287echo " Libraries: ${LIBS}" 19288echo "" 19289 19290if test x"${need_python}" = x"yes"; then 19291echo "Built with Python support:" 19292echo " CPPFLAGS: ${PYTHON_CPPFLAGS}" 19293echo " LDFLAGS: ${PYTHON_LDFLAGS}" 19294echo "" 19295fi 19296 19297if test x"${need_perl}" = x"yes"; then 19298echo "Built with Perl support:" 19299echo " CPPFLAGS: ${PERL_CPPFLAGS}" 19300echo " LDFLAGS: ${PERL_LDFLAGS}" 19301echo "" 19302fi 19303 19304if test x"${need_lua}" = x"yes"; then 19305echo "Built with Lua support:" 19306echo " CPPFLAGS: ${LUA_CPPFLAGS}" 19307echo " LDFLAGS: ${LUA_LDFLAGS}" 19308echo "" 19309fi 19310 19311if test x"${need_redis}" = x"yes"; then 19312echo "Built with redis support:" 19313echo " CPPFLAGS: ${REDIS_CPPFLAGS}" 19314echo " LDFLAGS: ${REDIS_LDFLAGS}" 19315echo "" 19316fi 19317