1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for lighttpd 1.4.32. 4# 5# Report bugs to <[email protected]>. 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 [email protected] and 278$0: [email protected] about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='lighttpd' 592PACKAGE_TARNAME='lighttpd' 593PACKAGE_VERSION='1.4.32' 594PACKAGE_STRING='lighttpd 1.4.32' 595PACKAGE_BUGREPORT='[email protected]' 596PACKAGE_URL='' 597 598ac_unique_file="src/server.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBDPDK_LIBS 639LIBDPDK_CFLAGS 640LIBPSIO_LIBS 641LIBPSIO_CFLAGS 642LIBMTCP_LIBS 643LIBMTCP_CFLAGS 644CHECK_WITH_FASTCGI_FALSE 645CHECK_WITH_FASTCGI_TRUE 646CROSS_COMPILING_FALSE 647CROSS_COMPILING_TRUE 648SENDFILE_LIB 649CRYPT_LIB 650LUA_LIBS 651LUA_CFLAGS 652MEMCACHE_LIB 653GDBM_LIB 654UUID_LIBS 655SQLITE_LIBS 656SQLITE_CFLAGS 657XML_LIBS 658XML_CFLAGS 659FAM_LIBS 660FAM_CFLAGS 661BZ_LIB 662Z_LIB 663PCRE_LIB 664PCRECONFIG 665SSL_LIB 666DL_LIB 667ATTR_LIB 668LBER_LIB 669LDAP_LIB 670MYSQL_INCLUDE 671MYSQL_LIBS 672MYSQL_CONFIG 673LIBEV_LIBS 674LIBEV_CFLAGS 675PKG_CONFIG_LIBDIR 676PKG_CONFIG_PATH 677PKG_CONFIG 678LIBOBJS 679LT_SYS_LIBRARY_PATH 680OTOOL64 681OTOOL 682LIPO 683NMEDIT 684DSYMUTIL 685MANIFEST_TOOL 686RANLIB 687DLLTOOL 688OBJDUMP 689NM 690ac_ct_DUMPBIN 691DUMPBIN 692LIBTOOL 693NO_RDYNAMIC_FALSE 694NO_RDYNAMIC_TRUE 695ac_ct_AR 696AR 697LN_S 698CPP 699LD 700FGREP 701EGREP 702GREP 703SED 704am__fastdepCC_FALSE 705am__fastdepCC_TRUE 706CCDEPMODE 707am__nodep 708AMDEPBACKSLASH 709AMDEP_FALSE 710AMDEP_TRUE 711am__quote 712am__include 713DEPDIR 714OBJEXT 715EXEEXT 716ac_ct_CC 717CPPFLAGS 718LDFLAGS 719CFLAGS 720CC 721AM_BACKSLASH 722AM_DEFAULT_VERBOSITY 723AM_DEFAULT_V 724AM_V 725am__untar 726am__tar 727AMTAR 728am__leading_dot 729SET_MAKE 730AWK 731mkdir_p 732MKDIR_P 733INSTALL_STRIP_PROGRAM 734STRIP 735install_sh 736MAKEINFO 737AUTOHEADER 738AUTOMAKE 739AUTOCONF 740ACLOCAL 741VERSION 742PACKAGE 743CYGPATH_W 744am__isrc 745INSTALL_DATA 746INSTALL_SCRIPT 747INSTALL_PROGRAM 748target_os 749target_vendor 750target_cpu 751target 752host_os 753host_vendor 754host_cpu 755host 756build_os 757build_vendor 758build_cpu 759build 760target_alias 761host_alias 762build_alias 763LIBS 764ECHO_T 765ECHO_N 766ECHO_C 767DEFS 768mandir 769localedir 770libdir 771psdir 772pdfdir 773dvidir 774htmldir 775infodir 776docdir 777oldincludedir 778includedir 779localstatedir 780sharedstatedir 781sysconfdir 782datadir 783datarootdir 784libexecdir 785sbindir 786bindir 787program_transform_name 788prefix 789exec_prefix 790PACKAGE_URL 791PACKAGE_BUGREPORT 792PACKAGE_STRING 793PACKAGE_VERSION 794PACKAGE_TARNAME 795PACKAGE_NAME 796PATH_SEPARATOR 797SHELL' 798ac_subst_files='' 799ac_user_opts=' 800enable_option_checking 801enable_silent_rules 802enable_dependency_tracking 803with_gnu_ld 804enable_static 805enable_shared 806with_pic 807enable_fast_install 808with_aix_soname 809with_sysroot 810enable_libtool_lock 811with_libev 812with_mysql 813with_ldap 814with_attr 815with_valgrind 816with_openssl 817with_openssl_includes 818with_openssl_libs 819with_kerberos5 820with_pcre 821with_zlib 822with_bzip2 823with_fam 824with_webdav_props 825with_webdav_locks 826with_gdbm 827with_memcache 828with_lua 829enable_lfs 830enable_ipv6 831enable_mmap 832enable_extra_warnings 833enable_multithreading 834with_libmtcp 835with_libpsio 836with_libdpdk 837enable_netmap 838' 839 ac_precious_vars='build_alias 840host_alias 841target_alias 842CC 843CFLAGS 844LDFLAGS 845LIBS 846CPPFLAGS 847CPP 848LT_SYS_LIBRARY_PATH 849PKG_CONFIG 850PKG_CONFIG_PATH 851PKG_CONFIG_LIBDIR 852LIBEV_CFLAGS 853LIBEV_LIBS 854FAM_CFLAGS 855FAM_LIBS 856XML_CFLAGS 857XML_LIBS 858SQLITE_CFLAGS 859SQLITE_LIBS 860LUA_CFLAGS 861LUA_LIBS' 862 863 864# Initialize some variables set by options. 865ac_init_help= 866ac_init_version=false 867ac_unrecognized_opts= 868ac_unrecognized_sep= 869# The variables have the same names as the options, with 870# dashes changed to underlines. 871cache_file=/dev/null 872exec_prefix=NONE 873no_create= 874no_recursion= 875prefix=NONE 876program_prefix=NONE 877program_suffix=NONE 878program_transform_name=s,x,x, 879silent= 880site= 881srcdir= 882verbose= 883x_includes=NONE 884x_libraries=NONE 885 886# Installation directory options. 887# These are left unexpanded so users can "make install exec_prefix=/foo" 888# and all the variables that are supposed to be based on exec_prefix 889# by default will actually change. 890# Use braces instead of parens because sh, perl, etc. also accept them. 891# (The list follows the same order as the GNU Coding Standards.) 892bindir='${exec_prefix}/bin' 893sbindir='${exec_prefix}/sbin' 894libexecdir='${exec_prefix}/libexec' 895datarootdir='${prefix}/share' 896datadir='${datarootdir}' 897sysconfdir='${prefix}/etc' 898sharedstatedir='${prefix}/com' 899localstatedir='${prefix}/var' 900includedir='${prefix}/include' 901oldincludedir='/usr/include' 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 903infodir='${datarootdir}/info' 904htmldir='${docdir}' 905dvidir='${docdir}' 906pdfdir='${docdir}' 907psdir='${docdir}' 908libdir='${exec_prefix}/lib' 909localedir='${datarootdir}/locale' 910mandir='${datarootdir}/man' 911 912ac_prev= 913ac_dashdash= 914for ac_option 915do 916 # If the previous option needs an argument, assign it. 917 if test -n "$ac_prev"; then 918 eval $ac_prev=\$ac_option 919 ac_prev= 920 continue 921 fi 922 923 case $ac_option in 924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 925 *=) ac_optarg= ;; 926 *) ac_optarg=yes ;; 927 esac 928 929 # Accept the important Cygnus configure options, so we can diagnose typos. 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: $ac_useropt" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345$as_echo X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures lighttpd 1.4.32 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/lighttpd] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467 --target=TARGET configure for building compilers for TARGET [HOST] 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 case $ac_init_help in 1473 short | recursive ) echo "Configuration of lighttpd 1.4.32:";; 1474 esac 1475 cat <<\_ACEOF 1476 1477Optional Features: 1478 --disable-option-checking ignore unrecognized --enable/--with options 1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1481 --enable-silent-rules less verbose build output (undo: "make V=1") 1482 --disable-silent-rules verbose build output (undo: "make V=0") 1483 --enable-dependency-tracking 1484 do not reject slow dependency extractors 1485 --disable-dependency-tracking 1486 speeds up one-time build 1487 --enable-static[=PKGS] build static libraries [default=no] 1488 --enable-shared[=PKGS] build shared libraries [default=yes] 1489 --enable-fast-install[=PKGS] 1490 optimize for fast installation [default=yes] 1491 --disable-libtool-lock avoid locking (might break parallel builds) 1492 --enable-lfs Turn on Large File System (default) 1493 --disable-ipv6 disable IPv6 support 1494 --enable-mmap use mmap if available (DANGEROUS, allows local users 1495 to trigger SIGBUS crashes) 1496 --enable-extra-warnings enable extra warnings (gcc specific) 1497 --enable-multithreading enable posix multi-threading support 1498 --enable-netmap Turn on Netmap support 1499 1500Optional Packages: 1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1505 both] 1506 --with-aix-soname=aix|svr4|both 1507 shared library versioning (aka "SONAME") variant to 1508 provide on AIX, [default=aix]. 1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1510 compiler's sysroot if not specified). 1511 --with-libev[=PATH] Include libev support for fdevent handlers in 1512 PATH/include and PATH/lib 1513 --with-mysql[=PATH] Include MySQL support. PATH is the path to 1514 'mysql_config' 1515 --with-ldap enable LDAP support 1516 --with-attr enable extended attribute support 1517 --with-valgrind enable internal support for valgrind 1518 --with-openssl[=DIR] Include openssl support (default no) 1519 --with-openssl-includes=DIR 1520 OpenSSL includes 1521 --with-openssl-libs=DIR OpenSSL libraries 1522 --with-kerberos5 use Kerberos5 support with OpenSSL 1523 --with-pcre Enable pcre support (default yes) 1524 --with-zlib Enable zlib support for mod_compress 1525 --with-bzip2 Enable bzip2 support for mod_compress 1526 --with-fam fam/gamin for reducing number of stat() calls 1527 --with-webdav-props properties in mod_webdav 1528 --with-webdav-locks locks in mod_webdav 1529 --with-gdbm gdbm storage for mod_trigger_b4_dl 1530 --with-memcache memcached storage for mod_trigger_b4_dl 1531 --with-lua lua engine for mod_cml 1532 --with-libmtcp[=PATH] Include libmtcp support in PATH/include and PATH/lib 1533 --with-libpsio[=PATH] Include libpsio support in PATH/include and PATH/lib 1534 --with-libdpdk[=PATH] Include libdpdk support in PATH/include and PATH/lib 1535 1536Some influential environment variables: 1537 CC C compiler command 1538 CFLAGS C compiler flags 1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1540 nonstandard directory <lib dir> 1541 LIBS libraries to pass to the linker, e.g. -l<library> 1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1543 you have headers in a nonstandard directory <include dir> 1544 CPP C preprocessor 1545 LT_SYS_LIBRARY_PATH 1546 User-defined run-time library search path. 1547 PKG_CONFIG path to pkg-config utility 1548 PKG_CONFIG_PATH 1549 directories to add to pkg-config's search path 1550 PKG_CONFIG_LIBDIR 1551 path overriding pkg-config's built-in search path 1552 LIBEV_CFLAGS 1553 C compiler flags for LIBEV, overriding pkg-config 1554 LIBEV_LIBS linker flags for LIBEV, overriding pkg-config 1555 FAM_CFLAGS C compiler flags for FAM, overriding pkg-config 1556 FAM_LIBS linker flags for FAM, overriding pkg-config 1557 XML_CFLAGS C compiler flags for XML, overriding pkg-config 1558 XML_LIBS linker flags for XML, overriding pkg-config 1559 SQLITE_CFLAGS 1560 C compiler flags for SQLITE, overriding pkg-config 1561 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config 1562 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config 1563 LUA_LIBS linker flags for LUA, overriding pkg-config 1564 1565Use these variables to override the choices made by `configure' or to help 1566it to find libraries and programs with nonstandard names/locations. 1567 1568Report bugs to <contact@lighttpd.net>. 1569_ACEOF 1570ac_status=$? 1571fi 1572 1573if test "$ac_init_help" = "recursive"; then 1574 # If there are subdirs, report their specific --help. 1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1576 test -d "$ac_dir" || 1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1578 continue 1579 ac_builddir=. 1580 1581case "$ac_dir" in 1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1583*) 1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1585 # A ".." for each directory in $ac_dir_suffix. 1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1587 case $ac_top_builddir_sub in 1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1590 esac ;; 1591esac 1592ac_abs_top_builddir=$ac_pwd 1593ac_abs_builddir=$ac_pwd$ac_dir_suffix 1594# for backward compatibility: 1595ac_top_builddir=$ac_top_build_prefix 1596 1597case $srcdir in 1598 .) # We are building in place. 1599 ac_srcdir=. 1600 ac_top_srcdir=$ac_top_builddir_sub 1601 ac_abs_top_srcdir=$ac_pwd ;; 1602 [\\/]* | ?:[\\/]* ) # Absolute name. 1603 ac_srcdir=$srcdir$ac_dir_suffix; 1604 ac_top_srcdir=$srcdir 1605 ac_abs_top_srcdir=$srcdir ;; 1606 *) # Relative name. 1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1608 ac_top_srcdir=$ac_top_build_prefix$srcdir 1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1610esac 1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1612 1613 cd "$ac_dir" || { ac_status=$?; continue; } 1614 # Check for guested configure. 1615 if test -f "$ac_srcdir/configure.gnu"; then 1616 echo && 1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1618 elif test -f "$ac_srcdir/configure"; then 1619 echo && 1620 $SHELL "$ac_srcdir/configure" --help=recursive 1621 else 1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1623 fi || ac_status=$? 1624 cd "$ac_pwd" || { ac_status=$?; break; } 1625 done 1626fi 1627 1628test -n "$ac_init_help" && exit $ac_status 1629if $ac_init_version; then 1630 cat <<\_ACEOF 1631lighttpd configure 1.4.32 1632generated by GNU Autoconf 2.69 1633 1634Copyright (C) 2012 Free Software Foundation, Inc. 1635This configure script is free software; the Free Software Foundation 1636gives unlimited permission to copy, distribute and modify it. 1637_ACEOF 1638 exit 1639fi 1640 1641## ------------------------ ## 1642## Autoconf initialization. ## 1643## ------------------------ ## 1644 1645# ac_fn_c_try_compile LINENO 1646# -------------------------- 1647# Try to compile conftest.$ac_ext, and return whether this succeeded. 1648ac_fn_c_try_compile () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 rm -f conftest.$ac_objext 1652 if { { ac_try="$ac_compile" 1653case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656esac 1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658$as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_compile") 2>conftest.err 1660 ac_status=$? 1661 if test -s conftest.err; then 1662 grep -v '^ *+' conftest.err >conftest.er1 1663 cat conftest.er1 >&5 1664 mv -f conftest.er1 conftest.err 1665 fi 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } && { 1668 test -z "$ac_c_werror_flag" || 1669 test ! -s conftest.err 1670 } && test -s conftest.$ac_objext; then : 1671 ac_retval=0 1672else 1673 $as_echo "$as_me: failed program was:" >&5 1674sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=1 1677fi 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 as_fn_set_status $ac_retval 1680 1681} # ac_fn_c_try_compile 1682 1683# ac_fn_c_try_cpp LINENO 1684# ---------------------- 1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1686ac_fn_c_try_cpp () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 if { { ac_try="$ac_cpp conftest.$ac_ext" 1690case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695$as_echo "$ac_try_echo"; } >&5 1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } > conftest.i && { 1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 1714fi 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_cpp 1719 1720# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1721# ------------------------------------------------------- 1722# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1723# the include files in INCLUDES and setting the cache variable VAR 1724# accordingly. 1725ac_fn_c_check_header_mongrel () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 if eval \${$3+:} false; then : 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733fi 1734eval ac_res=\$$3 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1736$as_echo "$ac_res" >&6; } 1737else 1738 # Is the header compilable? 1739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1740$as_echo_n "checking $2 usability... " >&6; } 1741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1742/* end confdefs.h. */ 1743$4 1744#include <$2> 1745_ACEOF 1746if ac_fn_c_try_compile "$LINENO"; then : 1747 ac_header_compiler=yes 1748else 1749 ac_header_compiler=no 1750fi 1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1753$as_echo "$ac_header_compiler" >&6; } 1754 1755# Is the header present? 1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1757$as_echo_n "checking $2 presence... " >&6; } 1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760#include <$2> 1761_ACEOF 1762if ac_fn_c_try_cpp "$LINENO"; then : 1763 ac_header_preproc=yes 1764else 1765 ac_header_preproc=no 1766fi 1767rm -f conftest.err conftest.i conftest.$ac_ext 1768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1769$as_echo "$ac_header_preproc" >&6; } 1770 1771# So? What about this header? 1772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1773 yes:no: ) 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1775$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1778 ;; 1779 no:yes:* ) 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1781$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1783$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1785$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1787$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1790( $as_echo "## ----------------------------------- ## 1791## Report this to [email protected] ## 1792## ----------------------------------- ##" 1793 ) | sed "s/^/$as_me: WARNING: /" >&2 1794 ;; 1795esac 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1797$as_echo_n "checking for $2... " >&6; } 1798if eval \${$3+:} false; then : 1799 $as_echo_n "(cached) " >&6 1800else 1801 eval "$3=\$ac_header_compiler" 1802fi 1803eval ac_res=\$$3 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1805$as_echo "$ac_res" >&6; } 1806fi 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 1809} # ac_fn_c_check_header_mongrel 1810 1811# ac_fn_c_try_run LINENO 1812# ---------------------- 1813# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1814# that executables *can* be run. 1815ac_fn_c_try_run () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 if { { ac_try="$ac_link" 1819case "(($ac_try" in 1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1821 *) ac_try_echo=$ac_try;; 1822esac 1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1824$as_echo "$ac_try_echo"; } >&5 1825 (eval "$ac_link") 2>&5 1826 ac_status=$? 1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1829 { { case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_try") 2>&5 1836 ac_status=$? 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; }; }; then : 1839 ac_retval=0 1840else 1841 $as_echo "$as_me: program exited with status $ac_status" >&5 1842 $as_echo "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=$ac_status 1846fi 1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 as_fn_set_status $ac_retval 1850 1851} # ac_fn_c_try_run 1852 1853# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1854# ------------------------------------------------------- 1855# Tests whether HEADER exists and can be compiled using the include files in 1856# INCLUDES, setting the cache variable VAR accordingly. 1857ac_fn_c_check_header_compile () 1858{ 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1861$as_echo_n "checking for $2... " >&6; } 1862if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864else 1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866/* end confdefs.h. */ 1867$4 1868#include <$2> 1869_ACEOF 1870if ac_fn_c_try_compile "$LINENO"; then : 1871 eval "$3=yes" 1872else 1873 eval "$3=no" 1874fi 1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882} # ac_fn_c_check_header_compile 1883 1884# ac_fn_c_try_link LINENO 1885# ----------------------- 1886# Try to link conftest.$ac_ext, and return whether this succeeded. 1887ac_fn_c_try_link () 1888{ 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1890 rm -f conftest.$ac_objext conftest$ac_exeext 1891 if { { ac_try="$ac_link" 1892case "(($ac_try" in 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *) ac_try_echo=$ac_try;; 1895esac 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1897$as_echo "$ac_try_echo"; } >&5 1898 (eval "$ac_link") 2>conftest.err 1899 ac_status=$? 1900 if test -s conftest.err; then 1901 grep -v '^ *+' conftest.err >conftest.er1 1902 cat conftest.er1 >&5 1903 mv -f conftest.er1 conftest.err 1904 fi 1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; } && { 1907 test -z "$ac_c_werror_flag" || 1908 test ! -s conftest.err 1909 } && test -s conftest$ac_exeext && { 1910 test "$cross_compiling" = yes || 1911 test -x conftest$ac_exeext 1912 }; then : 1913 ac_retval=0 1914else 1915 $as_echo "$as_me: failed program was:" >&5 1916sed 's/^/| /' conftest.$ac_ext >&5 1917 1918 ac_retval=1 1919fi 1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1922 # interfere with the next link command; also delete a directory that is 1923 # left behind by Apple's compiler. We do this before executing the actions. 1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 as_fn_set_status $ac_retval 1927 1928} # ac_fn_c_try_link 1929 1930# ac_fn_c_check_func LINENO FUNC VAR 1931# ---------------------------------- 1932# Tests whether FUNC exists, setting the cache variable VAR accordingly 1933ac_fn_c_check_func () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937$as_echo_n "checking for $2... " >&6; } 1938if eval \${$3+:} false; then : 1939 $as_echo_n "(cached) " >&6 1940else 1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942/* end confdefs.h. */ 1943/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1945#define $2 innocuous_$2 1946 1947/* System header to define __stub macros and hopefully few prototypes, 1948 which can conflict with char $2 (); below. 1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1950 <limits.h> exists even on freestanding compilers. */ 1951 1952#ifdef __STDC__ 1953# include <limits.h> 1954#else 1955# include <assert.h> 1956#endif 1957 1958#undef $2 1959 1960/* Override any GCC internal prototype to avoid an error. 1961 Use char because int might match the return type of a GCC 1962 builtin and then its argument prototype would still apply. */ 1963#ifdef __cplusplus 1964extern "C" 1965#endif 1966char $2 (); 1967/* The GNU C library defines this for functions which it implements 1968 to always fail with ENOSYS. Some functions are actually named 1969 something starting with __ and the normal name is an alias. */ 1970#if defined __stub_$2 || defined __stub___$2 1971choke me 1972#endif 1973 1974int 1975main () 1976{ 1977return $2 (); 1978 ; 1979 return 0; 1980} 1981_ACEOF 1982if ac_fn_c_try_link "$LINENO"; then : 1983 eval "$3=yes" 1984else 1985 eval "$3=no" 1986fi 1987rm -f core conftest.err conftest.$ac_objext \ 1988 conftest$ac_exeext conftest.$ac_ext 1989fi 1990eval ac_res=\$$3 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1992$as_echo "$ac_res" >&6; } 1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1994 1995} # ac_fn_c_check_func 1996 1997# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1998# ------------------------------------------- 1999# Tests whether TYPE exists after having included INCLUDES, setting cache 2000# variable VAR accordingly. 2001ac_fn_c_check_type () 2002{ 2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2005$as_echo_n "checking for $2... " >&6; } 2006if eval \${$3+:} false; then : 2007 $as_echo_n "(cached) " >&6 2008else 2009 eval "$3=no" 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013int 2014main () 2015{ 2016if (sizeof ($2)) 2017 return 0; 2018 ; 2019 return 0; 2020} 2021_ACEOF 2022if ac_fn_c_try_compile "$LINENO"; then : 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main () 2028{ 2029if (sizeof (($2))) 2030 return 0; 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO"; then : 2036 2037else 2038 eval "$3=yes" 2039fi 2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2041fi 2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2043fi 2044eval ac_res=\$$3 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2046$as_echo "$ac_res" >&6; } 2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2048 2049} # ac_fn_c_check_type 2050 2051# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2052# ---------------------------------------------------- 2053# Tries to find if the field MEMBER exists in type AGGR, after including 2054# INCLUDES, setting cache variable VAR accordingly. 2055ac_fn_c_check_member () 2056{ 2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2059$as_echo_n "checking for $2.$3... " >&6; } 2060if eval \${$4+:} false; then : 2061 $as_echo_n "(cached) " >&6 2062else 2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064/* end confdefs.h. */ 2065$5 2066int 2067main () 2068{ 2069static $2 ac_aggr; 2070if (ac_aggr.$3) 2071return 0; 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO"; then : 2077 eval "$4=yes" 2078else 2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2080/* end confdefs.h. */ 2081$5 2082int 2083main () 2084{ 2085static $2 ac_aggr; 2086if (sizeof ac_aggr.$3) 2087return 0; 2088 ; 2089 return 0; 2090} 2091_ACEOF 2092if ac_fn_c_try_compile "$LINENO"; then : 2093 eval "$4=yes" 2094else 2095 eval "$4=no" 2096fi 2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2098fi 2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2100fi 2101eval ac_res=\$$4 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2103$as_echo "$ac_res" >&6; } 2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2105 2106} # ac_fn_c_check_member 2107 2108# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2109# -------------------------------------------- 2110# Tries to find the compile-time value of EXPR in a program that includes 2111# INCLUDES, setting VAR accordingly. Returns whether the value could be 2112# computed 2113ac_fn_c_compute_int () 2114{ 2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2116 if test "$cross_compiling" = yes; then 2117 # Depending upon the size, compute the lo and hi bounds. 2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119/* end confdefs.h. */ 2120$4 2121int 2122main () 2123{ 2124static int test_array [1 - 2 * !(($2) >= 0)]; 2125test_array [0] = 0; 2126return test_array [0]; 2127 2128 ; 2129 return 0; 2130} 2131_ACEOF 2132if ac_fn_c_try_compile "$LINENO"; then : 2133 ac_lo=0 ac_mid=0 2134 while :; do 2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2136/* end confdefs.h. */ 2137$4 2138int 2139main () 2140{ 2141static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2142test_array [0] = 0; 2143return test_array [0]; 2144 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_c_try_compile "$LINENO"; then : 2150 ac_hi=$ac_mid; break 2151else 2152 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2153 if test $ac_lo -le $ac_mid; then 2154 ac_lo= ac_hi= 2155 break 2156 fi 2157 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2158fi 2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2160 done 2161else 2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2163/* end confdefs.h. */ 2164$4 2165int 2166main () 2167{ 2168static int test_array [1 - 2 * !(($2) < 0)]; 2169test_array [0] = 0; 2170return test_array [0]; 2171 2172 ; 2173 return 0; 2174} 2175_ACEOF 2176if ac_fn_c_try_compile "$LINENO"; then : 2177 ac_hi=-1 ac_mid=-1 2178 while :; do 2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2180/* end confdefs.h. */ 2181$4 2182int 2183main () 2184{ 2185static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2186test_array [0] = 0; 2187return test_array [0]; 2188 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193if ac_fn_c_try_compile "$LINENO"; then : 2194 ac_lo=$ac_mid; break 2195else 2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2197 if test $ac_mid -le $ac_hi; then 2198 ac_lo= ac_hi= 2199 break 2200 fi 2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2202fi 2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204 done 2205else 2206 ac_lo= ac_hi= 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209fi 2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211# Binary search between lo and hi bounds. 2212while test "x$ac_lo" != "x$ac_hi"; do 2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2215/* end confdefs.h. */ 2216$4 2217int 2218main () 2219{ 2220static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2221test_array [0] = 0; 2222return test_array [0]; 2223 2224 ; 2225 return 0; 2226} 2227_ACEOF 2228if ac_fn_c_try_compile "$LINENO"; then : 2229 ac_hi=$ac_mid 2230else 2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2232fi 2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2234done 2235case $ac_lo in #(( 2236?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2237'') ac_retval=1 ;; 2238esac 2239 else 2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2241/* end confdefs.h. */ 2242$4 2243static long int longval () { return $2; } 2244static unsigned long int ulongval () { return $2; } 2245#include <stdio.h> 2246#include <stdlib.h> 2247int 2248main () 2249{ 2250 2251 FILE *f = fopen ("conftest.val", "w"); 2252 if (! f) 2253 return 1; 2254 if (($2) < 0) 2255 { 2256 long int i = longval (); 2257 if (i != ($2)) 2258 return 1; 2259 fprintf (f, "%ld", i); 2260 } 2261 else 2262 { 2263 unsigned long int i = ulongval (); 2264 if (i != ($2)) 2265 return 1; 2266 fprintf (f, "%lu", i); 2267 } 2268 /* Do not output a trailing newline, as this causes \r\n confusion 2269 on some platforms. */ 2270 return ferror (f) || fclose (f) != 0; 2271 2272 ; 2273 return 0; 2274} 2275_ACEOF 2276if ac_fn_c_try_run "$LINENO"; then : 2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2278else 2279 ac_retval=1 2280fi 2281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2282 conftest.$ac_objext conftest.beam conftest.$ac_ext 2283rm -f conftest.val 2284 2285 fi 2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2287 as_fn_set_status $ac_retval 2288 2289} # ac_fn_c_compute_int 2290cat >config.log <<_ACEOF 2291This file contains any messages produced by compilers while 2292running configure, to aid debugging if configure makes a mistake. 2293 2294It was created by lighttpd $as_me 1.4.32, which was 2295generated by GNU Autoconf 2.69. Invocation command line was 2296 2297 $ $0 $@ 2298 2299_ACEOF 2300exec 5>>config.log 2301{ 2302cat <<_ASUNAME 2303## --------- ## 2304## Platform. ## 2305## --------- ## 2306 2307hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2308uname -m = `(uname -m) 2>/dev/null || echo unknown` 2309uname -r = `(uname -r) 2>/dev/null || echo unknown` 2310uname -s = `(uname -s) 2>/dev/null || echo unknown` 2311uname -v = `(uname -v) 2>/dev/null || echo unknown` 2312 2313/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2314/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2315 2316/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2317/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2318/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2319/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2320/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2321/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2322/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2323 2324_ASUNAME 2325 2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2327for as_dir in $PATH 2328do 2329 IFS=$as_save_IFS 2330 test -z "$as_dir" && as_dir=. 2331 $as_echo "PATH: $as_dir" 2332 done 2333IFS=$as_save_IFS 2334 2335} >&5 2336 2337cat >&5 <<_ACEOF 2338 2339 2340## ----------- ## 2341## Core tests. ## 2342## ----------- ## 2343 2344_ACEOF 2345 2346 2347# Keep a trace of the command line. 2348# Strip out --no-create and --no-recursion so they do not pile up. 2349# Strip out --silent because we don't want to record it for future runs. 2350# Also quote any args containing shell meta-characters. 2351# Make two passes to allow for proper duplicate-argument suppression. 2352ac_configure_args= 2353ac_configure_args0= 2354ac_configure_args1= 2355ac_must_keep_next=false 2356for ac_pass in 1 2 2357do 2358 for ac_arg 2359 do 2360 case $ac_arg in 2361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2363 | -silent | --silent | --silen | --sile | --sil) 2364 continue ;; 2365 *\'*) 2366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2367 esac 2368 case $ac_pass in 2369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2370 2) 2371 as_fn_append ac_configure_args1 " '$ac_arg'" 2372 if test $ac_must_keep_next = true; then 2373 ac_must_keep_next=false # Got value, back to normal. 2374 else 2375 case $ac_arg in 2376 *=* | --config-cache | -C | -disable-* | --disable-* \ 2377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2379 | -with-* | --with-* | -without-* | --without-* | --x) 2380 case "$ac_configure_args0 " in 2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2382 esac 2383 ;; 2384 -* ) ac_must_keep_next=true ;; 2385 esac 2386 fi 2387 as_fn_append ac_configure_args " '$ac_arg'" 2388 ;; 2389 esac 2390 done 2391done 2392{ ac_configure_args0=; unset ac_configure_args0;} 2393{ ac_configure_args1=; unset ac_configure_args1;} 2394 2395# When interrupted or exit'd, cleanup temporary files, and complete 2396# config.log. We remove comments because anyway the quotes in there 2397# would cause problems or look ugly. 2398# WARNING: Use '\'' to represent an apostrophe within the trap. 2399# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2400trap 'exit_status=$? 2401 # Save into config.log some information that might help in debugging. 2402 { 2403 echo 2404 2405 $as_echo "## ---------------- ## 2406## Cache variables. ## 2407## ---------------- ##" 2408 echo 2409 # The following way of writing the cache mishandles newlines in values, 2410( 2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2412 eval ac_val=\$$ac_var 2413 case $ac_val in #( 2414 *${as_nl}*) 2415 case $ac_var in #( 2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2417$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2418 esac 2419 case $ac_var in #( 2420 _ | IFS | as_nl) ;; #( 2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2422 *) { eval $ac_var=; unset $ac_var;} ;; 2423 esac ;; 2424 esac 2425 done 2426 (set) 2>&1 | 2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2428 *${as_nl}ac_space=\ *) 2429 sed -n \ 2430 "s/'\''/'\''\\\\'\'''\''/g; 2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2432 ;; #( 2433 *) 2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2435 ;; 2436 esac | 2437 sort 2438) 2439 echo 2440 2441 $as_echo "## ----------------- ## 2442## Output variables. ## 2443## ----------------- ##" 2444 echo 2445 for ac_var in $ac_subst_vars 2446 do 2447 eval ac_val=\$$ac_var 2448 case $ac_val in 2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2450 esac 2451 $as_echo "$ac_var='\''$ac_val'\''" 2452 done | sort 2453 echo 2454 2455 if test -n "$ac_subst_files"; then 2456 $as_echo "## ------------------- ## 2457## File substitutions. ## 2458## ------------------- ##" 2459 echo 2460 for ac_var in $ac_subst_files 2461 do 2462 eval ac_val=\$$ac_var 2463 case $ac_val in 2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2465 esac 2466 $as_echo "$ac_var='\''$ac_val'\''" 2467 done | sort 2468 echo 2469 fi 2470 2471 if test -s confdefs.h; then 2472 $as_echo "## ----------- ## 2473## confdefs.h. ## 2474## ----------- ##" 2475 echo 2476 cat confdefs.h 2477 echo 2478 fi 2479 test "$ac_signal" != 0 && 2480 $as_echo "$as_me: caught signal $ac_signal" 2481 $as_echo "$as_me: exit $exit_status" 2482 } >&5 2483 rm -f core *.core core.conftest.* && 2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2485 exit $exit_status 2486' 0 2487for ac_signal in 1 2 13 15; do 2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2489done 2490ac_signal=0 2491 2492# confdefs.h avoids OS command line length limits that DEFS can exceed. 2493rm -f -r conftest* confdefs.h 2494 2495$as_echo "/* confdefs.h */" > confdefs.h 2496 2497# Predefined preprocessor variables. 2498 2499cat >>confdefs.h <<_ACEOF 2500#define PACKAGE_NAME "$PACKAGE_NAME" 2501_ACEOF 2502 2503cat >>confdefs.h <<_ACEOF 2504#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2505_ACEOF 2506 2507cat >>confdefs.h <<_ACEOF 2508#define PACKAGE_VERSION "$PACKAGE_VERSION" 2509_ACEOF 2510 2511cat >>confdefs.h <<_ACEOF 2512#define PACKAGE_STRING "$PACKAGE_STRING" 2513_ACEOF 2514 2515cat >>confdefs.h <<_ACEOF 2516#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2517_ACEOF 2518 2519cat >>confdefs.h <<_ACEOF 2520#define PACKAGE_URL "$PACKAGE_URL" 2521_ACEOF 2522 2523 2524# Let the site file select an alternate cache file if it wants to. 2525# Prefer an explicitly selected file to automatically selected ones. 2526ac_site_file1=NONE 2527ac_site_file2=NONE 2528if test -n "$CONFIG_SITE"; then 2529 # We do not want a PATH search for config.site. 2530 case $CONFIG_SITE in #(( 2531 -*) ac_site_file1=./$CONFIG_SITE;; 2532 */*) ac_site_file1=$CONFIG_SITE;; 2533 *) ac_site_file1=./$CONFIG_SITE;; 2534 esac 2535elif test "x$prefix" != xNONE; then 2536 ac_site_file1=$prefix/share/config.site 2537 ac_site_file2=$prefix/etc/config.site 2538else 2539 ac_site_file1=$ac_default_prefix/share/config.site 2540 ac_site_file2=$ac_default_prefix/etc/config.site 2541fi 2542for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2543do 2544 test "x$ac_site_file" = xNONE && continue 2545 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2547$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2548 sed 's/^/| /' "$ac_site_file" >&5 2549 . "$ac_site_file" \ 2550 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2552as_fn_error $? "failed to load site script $ac_site_file 2553See \`config.log' for more details" "$LINENO" 5; } 2554 fi 2555done 2556 2557if test -r "$cache_file"; then 2558 # Some versions of bash will fail to source /dev/null (special files 2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2560 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2562$as_echo "$as_me: loading cache $cache_file" >&6;} 2563 case $cache_file in 2564 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2565 *) . "./$cache_file";; 2566 esac 2567 fi 2568else 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2570$as_echo "$as_me: creating cache $cache_file" >&6;} 2571 >$cache_file 2572fi 2573 2574# Check that the precious variables saved in the cache have kept the same 2575# value. 2576ac_cache_corrupted=false 2577for ac_var in $ac_precious_vars; do 2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2579 eval ac_new_set=\$ac_env_${ac_var}_set 2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2581 eval ac_new_val=\$ac_env_${ac_var}_value 2582 case $ac_old_set,$ac_new_set in 2583 set,) 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2585$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2586 ac_cache_corrupted=: ;; 2587 ,set) 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2589$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2590 ac_cache_corrupted=: ;; 2591 ,);; 2592 *) 2593 if test "x$ac_old_val" != "x$ac_new_val"; then 2594 # differences in whitespace do not lead to failure. 2595 ac_old_val_w=`echo x $ac_old_val` 2596 ac_new_val_w=`echo x $ac_new_val` 2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2599$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2600 ac_cache_corrupted=: 2601 else 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2603$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2604 eval $ac_var=\$ac_old_val 2605 fi 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2607$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2609$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2610 fi;; 2611 esac 2612 # Pass precious variables to config.status. 2613 if test "$ac_new_set" = set; then 2614 case $ac_new_val in 2615 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2616 *) ac_arg=$ac_var=$ac_new_val ;; 2617 esac 2618 case " $ac_configure_args " in 2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2621 esac 2622 fi 2623done 2624if $ac_cache_corrupted; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2628$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2629 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2630fi 2631## -------------------- ## 2632## Main body of script. ## 2633## -------------------- ## 2634 2635ac_ext=c 2636ac_cpp='$CPP $CPPFLAGS' 2637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2639ac_compiler_gnu=$ac_cv_c_compiler_gnu 2640 2641 2642 2643ac_config_headers="$ac_config_headers config.h" 2644 2645 2646 2647ac_aux_dir= 2648for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2649 if test -f "$ac_dir/install-sh"; then 2650 ac_aux_dir=$ac_dir 2651 ac_install_sh="$ac_aux_dir/install-sh -c" 2652 break 2653 elif test -f "$ac_dir/install.sh"; then 2654 ac_aux_dir=$ac_dir 2655 ac_install_sh="$ac_aux_dir/install.sh -c" 2656 break 2657 elif test -f "$ac_dir/shtool"; then 2658 ac_aux_dir=$ac_dir 2659 ac_install_sh="$ac_aux_dir/shtool install -c" 2660 break 2661 fi 2662done 2663if test -z "$ac_aux_dir"; then 2664 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2665fi 2666 2667# These three variables are undocumented and unsupported, 2668# and are intended to be withdrawn in a future Autoconf release. 2669# They can cause serious problems if a builder's source tree is in a directory 2670# whose full name contains unusual characters. 2671ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2672ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2673ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2674 2675 2676# Make sure we can run config.sub. 2677$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2678 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2679 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2681$as_echo_n "checking build system type... " >&6; } 2682if ${ac_cv_build+:} false; then : 2683 $as_echo_n "(cached) " >&6 2684else 2685 ac_build_alias=$build_alias 2686test "x$ac_build_alias" = x && 2687 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2688test "x$ac_build_alias" = x && 2689 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2690ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2691 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2692 2693fi 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2695$as_echo "$ac_cv_build" >&6; } 2696case $ac_cv_build in 2697*-*-*) ;; 2698*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2699esac 2700build=$ac_cv_build 2701ac_save_IFS=$IFS; IFS='-' 2702set x $ac_cv_build 2703shift 2704build_cpu=$1 2705build_vendor=$2 2706shift; shift 2707# Remember, the first character of IFS is used to create $*, 2708# except with old shells: 2709build_os=$* 2710IFS=$ac_save_IFS 2711case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2712 2713 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2715$as_echo_n "checking host system type... " >&6; } 2716if ${ac_cv_host+:} false; then : 2717 $as_echo_n "(cached) " >&6 2718else 2719 if test "x$host_alias" = x; then 2720 ac_cv_host=$ac_cv_build 2721else 2722 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2723 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2724fi 2725 2726fi 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2728$as_echo "$ac_cv_host" >&6; } 2729case $ac_cv_host in 2730*-*-*) ;; 2731*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2732esac 2733host=$ac_cv_host 2734ac_save_IFS=$IFS; IFS='-' 2735set x $ac_cv_host 2736shift 2737host_cpu=$1 2738host_vendor=$2 2739shift; shift 2740# Remember, the first character of IFS is used to create $*, 2741# except with old shells: 2742host_os=$* 2743IFS=$ac_save_IFS 2744case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2745 2746 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2748$as_echo_n "checking target system type... " >&6; } 2749if ${ac_cv_target+:} false; then : 2750 $as_echo_n "(cached) " >&6 2751else 2752 if test "x$target_alias" = x; then 2753 ac_cv_target=$ac_cv_host 2754else 2755 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2757fi 2758 2759fi 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2761$as_echo "$ac_cv_target" >&6; } 2762case $ac_cv_target in 2763*-*-*) ;; 2764*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2765esac 2766target=$ac_cv_target 2767ac_save_IFS=$IFS; IFS='-' 2768set x $ac_cv_target 2769shift 2770target_cpu=$1 2771target_vendor=$2 2772shift; shift 2773# Remember, the first character of IFS is used to create $*, 2774# except with old shells: 2775target_os=$* 2776IFS=$ac_save_IFS 2777case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2778 2779 2780# The aliases save the names the user supplied, while $host etc. 2781# will get canonicalized. 2782test -n "$target_alias" && 2783 test "$program_prefix$program_suffix$program_transform_name" = \ 2784 NONENONEs,x,x, && 2785 program_prefix=${target_alias}- 2786 2787am__api_version='1.15' 2788 2789# Find a good install program. We prefer a C program (faster), 2790# so one script is as good as another. But avoid the broken or 2791# incompatible versions: 2792# SysV /etc/install, /usr/sbin/install 2793# SunOS /usr/etc/install 2794# IRIX /sbin/install 2795# AIX /bin/install 2796# AmigaOS /C/install, which installs bootblocks on floppy discs 2797# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2798# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2799# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2800# OS/2's system install, which has a completely different semantic 2801# ./install, which can be erroneously created by make from ./install.sh. 2802# Reject install programs that cannot install multiple files. 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2804$as_echo_n "checking for a BSD-compatible install... " >&6; } 2805if test -z "$INSTALL"; then 2806if ${ac_cv_path_install+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 # Account for people who put trailing slashes in PATH elements. 2815case $as_dir/ in #(( 2816 ./ | .// | /[cC]/* | \ 2817 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2818 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2819 /usr/ucb/* ) ;; 2820 *) 2821 # OSF1 and SCO ODT 3.0 have their own names for install. 2822 # Don't use installbsd from OSF since it installs stuff as root 2823 # by default. 2824 for ac_prog in ginstall scoinst install; do 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2827 if test $ac_prog = install && 2828 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2829 # AIX install. It has an incompatible calling convention. 2830 : 2831 elif test $ac_prog = install && 2832 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2833 # program-specific install script used by HP pwplus--don't use. 2834 : 2835 else 2836 rm -rf conftest.one conftest.two conftest.dir 2837 echo one > conftest.one 2838 echo two > conftest.two 2839 mkdir conftest.dir 2840 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2841 test -s conftest.one && test -s conftest.two && 2842 test -s conftest.dir/conftest.one && 2843 test -s conftest.dir/conftest.two 2844 then 2845 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2846 break 3 2847 fi 2848 fi 2849 fi 2850 done 2851 done 2852 ;; 2853esac 2854 2855 done 2856IFS=$as_save_IFS 2857 2858rm -rf conftest.one conftest.two conftest.dir 2859 2860fi 2861 if test "${ac_cv_path_install+set}" = set; then 2862 INSTALL=$ac_cv_path_install 2863 else 2864 # As a last resort, use the slow shell script. Don't cache a 2865 # value for INSTALL within a source directory, because that will 2866 # break other packages using the cache if that directory is 2867 # removed, or if the value is a relative name. 2868 INSTALL=$ac_install_sh 2869 fi 2870fi 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2872$as_echo "$INSTALL" >&6; } 2873 2874# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2875# It thinks the first close brace ends the variable substitution. 2876test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2877 2878test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2879 2880test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2881 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2883$as_echo_n "checking whether build environment is sane... " >&6; } 2884# Reject unsafe characters in $srcdir or the absolute working directory 2885# name. Accept space and tab only in the latter. 2886am_lf=' 2887' 2888case `pwd` in 2889 *[\\\"\#\$\&\'\`$am_lf]*) 2890 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2891esac 2892case $srcdir in 2893 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2894 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2895esac 2896 2897# Do 'set' in a subshell so we don't clobber the current shell's 2898# arguments. Must try -L first in case configure is actually a 2899# symlink; some systems play weird games with the mod time of symlinks 2900# (eg FreeBSD returns the mod time of the symlink's containing 2901# directory). 2902if ( 2903 am_has_slept=no 2904 for am_try in 1 2; do 2905 echo "timestamp, slept: $am_has_slept" > conftest.file 2906 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2907 if test "$*" = "X"; then 2908 # -L didn't work. 2909 set X `ls -t "$srcdir/configure" conftest.file` 2910 fi 2911 if test "$*" != "X $srcdir/configure conftest.file" \ 2912 && test "$*" != "X conftest.file $srcdir/configure"; then 2913 2914 # If neither matched, then we have a broken ls. This can happen 2915 # if, for instance, CONFIG_SHELL is bash and it inherits a 2916 # broken ls alias from the environment. This has actually 2917 # happened. Such a system could not be considered "sane". 2918 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2919 alias in your environment" "$LINENO" 5 2920 fi 2921 if test "$2" = conftest.file || test $am_try -eq 2; then 2922 break 2923 fi 2924 # Just in case. 2925 sleep 1 2926 am_has_slept=yes 2927 done 2928 test "$2" = conftest.file 2929 ) 2930then 2931 # Ok. 2932 : 2933else 2934 as_fn_error $? "newly created file is older than distributed files! 2935Check your system clock" "$LINENO" 5 2936fi 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2938$as_echo "yes" >&6; } 2939# If we didn't sleep, we still need to ensure time stamps of config.status and 2940# generated files are strictly newer. 2941am_sleep_pid= 2942if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2943 ( sleep 1 ) & 2944 am_sleep_pid=$! 2945fi 2946 2947rm -f conftest.file 2948 2949test "$program_prefix" != NONE && 2950 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2951# Use a double $ so make ignores it. 2952test "$program_suffix" != NONE && 2953 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2954# Double any \ or $. 2955# By default was `s,x,x', remove it if useless. 2956ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2957program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2958 2959# Expand $ac_aux_dir to an absolute path. 2960am_aux_dir=`cd "$ac_aux_dir" && pwd` 2961 2962if test x"${MISSING+set}" != xset; then 2963 case $am_aux_dir in 2964 *\ * | *\ *) 2965 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2966 *) 2967 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2968 esac 2969fi 2970# Use eval to expand $SHELL 2971if eval "$MISSING --is-lightweight"; then 2972 am_missing_run="$MISSING " 2973else 2974 am_missing_run= 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2976$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2977fi 2978 2979if test x"${install_sh+set}" != xset; then 2980 case $am_aux_dir in 2981 *\ * | *\ *) 2982 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2983 *) 2984 install_sh="\${SHELL} $am_aux_dir/install-sh" 2985 esac 2986fi 2987 2988# Installed binaries are usually stripped using 'strip' when the user 2989# run "make install-strip". However 'strip' might not be the right 2990# tool to use in cross-compilation environments, therefore Automake 2991# will honor the 'STRIP' environment variable to overrule this program. 2992if test "$cross_compiling" != no; then 2993 if test -n "$ac_tool_prefix"; then 2994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2995set dummy ${ac_tool_prefix}strip; ac_word=$2 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if ${ac_cv_prog_STRIP+:} false; then : 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$STRIP"; then 3002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 test -z "$as_dir" && as_dir=. 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3011 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016 done 3017IFS=$as_save_IFS 3018 3019fi 3020fi 3021STRIP=$ac_cv_prog_STRIP 3022if test -n "$STRIP"; then 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3024$as_echo "$STRIP" >&6; } 3025else 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027$as_echo "no" >&6; } 3028fi 3029 3030 3031fi 3032if test -z "$ac_cv_prog_STRIP"; then 3033 ac_ct_STRIP=$STRIP 3034 # Extract the first word of "strip", so it can be a program name with args. 3035set dummy strip; ac_word=$2 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3037$as_echo_n "checking for $ac_word... " >&6; } 3038if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3039 $as_echo_n "(cached) " >&6 3040else 3041 if test -n "$ac_ct_STRIP"; then 3042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3043else 3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045for as_dir in $PATH 3046do 3047 IFS=$as_save_IFS 3048 test -z "$as_dir" && as_dir=. 3049 for ac_exec_ext in '' $ac_executable_extensions; do 3050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3051 ac_cv_prog_ac_ct_STRIP="strip" 3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3053 break 2 3054 fi 3055done 3056 done 3057IFS=$as_save_IFS 3058 3059fi 3060fi 3061ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3062if test -n "$ac_ct_STRIP"; then 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3064$as_echo "$ac_ct_STRIP" >&6; } 3065else 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067$as_echo "no" >&6; } 3068fi 3069 3070 if test "x$ac_ct_STRIP" = x; then 3071 STRIP=":" 3072 else 3073 case $cross_compiling:$ac_tool_warned in 3074yes:) 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3077ac_tool_warned=yes ;; 3078esac 3079 STRIP=$ac_ct_STRIP 3080 fi 3081else 3082 STRIP="$ac_cv_prog_STRIP" 3083fi 3084 3085fi 3086INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3087 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3089$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3090if test -z "$MKDIR_P"; then 3091 if ${ac_cv_path_mkdir+:} false; then : 3092 $as_echo_n "(cached) " >&6 3093else 3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3095for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3096do 3097 IFS=$as_save_IFS 3098 test -z "$as_dir" && as_dir=. 3099 for ac_prog in mkdir gmkdir; do 3100 for ac_exec_ext in '' $ac_executable_extensions; do 3101 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3102 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3103 'mkdir (GNU coreutils) '* | \ 3104 'mkdir (coreutils) '* | \ 3105 'mkdir (fileutils) '4.1*) 3106 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3107 break 3;; 3108 esac 3109 done 3110 done 3111 done 3112IFS=$as_save_IFS 3113 3114fi 3115 3116 test -d ./--version && rmdir ./--version 3117 if test "${ac_cv_path_mkdir+set}" = set; then 3118 MKDIR_P="$ac_cv_path_mkdir -p" 3119 else 3120 # As a last resort, use the slow shell script. Don't cache a 3121 # value for MKDIR_P within a source directory, because that will 3122 # break other packages using the cache if that directory is 3123 # removed, or if the value is a relative name. 3124 MKDIR_P="$ac_install_sh -d" 3125 fi 3126fi 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3128$as_echo "$MKDIR_P" >&6; } 3129 3130for ac_prog in gawk mawk nawk awk 3131do 3132 # Extract the first word of "$ac_prog", so it can be a program name with args. 3133set dummy $ac_prog; ac_word=$2 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if ${ac_cv_prog_AWK+:} false; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$AWK"; then 3140 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3149 ac_cv_prog_AWK="$ac_prog" 3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154 done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159AWK=$ac_cv_prog_AWK 3160if test -n "$AWK"; then 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3162$as_echo "$AWK" >&6; } 3163else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 3169 test -n "$AWK" && break 3170done 3171 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3173$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3174set x ${MAKE-make} 3175ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3176if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 cat >conftest.make <<\_ACEOF 3180SHELL = /bin/sh 3181all: 3182 @echo '@@@%%%=$(MAKE)=@@@%%%' 3183_ACEOF 3184# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3185case `${MAKE-make} -f conftest.make 2>/dev/null` in 3186 *@@@%%%=?*=@@@%%%*) 3187 eval ac_cv_prog_make_${ac_make}_set=yes;; 3188 *) 3189 eval ac_cv_prog_make_${ac_make}_set=no;; 3190esac 3191rm -f conftest.make 3192fi 3193if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3195$as_echo "yes" >&6; } 3196 SET_MAKE= 3197else 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3199$as_echo "no" >&6; } 3200 SET_MAKE="MAKE=${MAKE-make}" 3201fi 3202 3203rm -rf .tst 2>/dev/null 3204mkdir .tst 2>/dev/null 3205if test -d .tst; then 3206 am__leading_dot=. 3207else 3208 am__leading_dot=_ 3209fi 3210rmdir .tst 2>/dev/null 3211 3212# Check whether --enable-silent-rules was given. 3213if test "${enable_silent_rules+set}" = set; then : 3214 enableval=$enable_silent_rules; 3215fi 3216 3217case $enable_silent_rules in # ((( 3218 yes) AM_DEFAULT_VERBOSITY=0;; 3219 no) AM_DEFAULT_VERBOSITY=1;; 3220 *) AM_DEFAULT_VERBOSITY=1;; 3221esac 3222am_make=${MAKE-make} 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3224$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3225if ${am_cv_make_support_nested_variables+:} false; then : 3226 $as_echo_n "(cached) " >&6 3227else 3228 if $as_echo 'TRUE=$(BAR$(V)) 3229BAR0=false 3230BAR1=true 3231V=1 3232am__doit: 3233 @$(TRUE) 3234.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3235 am_cv_make_support_nested_variables=yes 3236else 3237 am_cv_make_support_nested_variables=no 3238fi 3239fi 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3241$as_echo "$am_cv_make_support_nested_variables" >&6; } 3242if test $am_cv_make_support_nested_variables = yes; then 3243 AM_V='$(V)' 3244 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3245else 3246 AM_V=$AM_DEFAULT_VERBOSITY 3247 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3248fi 3249AM_BACKSLASH='\' 3250 3251if test "`cd $srcdir && pwd`" != "`pwd`"; then 3252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3253 # is not polluted with repeated "-I." 3254 am__isrc=' -I$(srcdir)' 3255 # test to see if srcdir already configured 3256 if test -f $srcdir/config.status; then 3257 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3258 fi 3259fi 3260 3261# test whether we have cygpath 3262if test -z "$CYGPATH_W"; then 3263 if (cygpath --version) >/dev/null 2>/dev/null; then 3264 CYGPATH_W='cygpath -w' 3265 else 3266 CYGPATH_W=echo 3267 fi 3268fi 3269 3270 3271# Define the identity of the package. 3272 PACKAGE='lighttpd' 3273 VERSION='1.4.32' 3274 3275 3276cat >>confdefs.h <<_ACEOF 3277#define PACKAGE "$PACKAGE" 3278_ACEOF 3279 3280 3281cat >>confdefs.h <<_ACEOF 3282#define VERSION "$VERSION" 3283_ACEOF 3284 3285# Some tools Automake needs. 3286 3287ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3288 3289 3290AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3291 3292 3293AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3294 3295 3296AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3297 3298 3299MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3300 3301# For better backward compatibility. To be removed once Automake 1.9.x 3302# dies out for good. For more background, see: 3303# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3304# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3305mkdir_p='$(MKDIR_P)' 3306 3307# We need awk for the "check" target (and possibly the TAP driver). The 3308# system "awk" is bad on some platforms. 3309# Always define AMTAR for backward compatibility. Yes, it's still used 3310# in the wild :-( We should find a proper way to deprecate it ... 3311AMTAR='$${TAR-tar}' 3312 3313 3314# We'll loop over all known methods to create a tar archive until one works. 3315_am_tools='gnutar plaintar pax cpio none' 3316 3317# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3318 # There is notably a 21 bits limit for the UID and the GID. In fact, 3319 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3320 # and bug#13588). 3321 am_max_uid=2097151 # 2^21 - 1 3322 am_max_gid=$am_max_uid 3323 # The $UID and $GID variables are not portable, so we need to resort 3324 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3325 # below are definitely unexpected, so allow the users to see them 3326 # (that is, avoid stderr redirection). 3327 am_uid=`id -u || echo unknown` 3328 am_gid=`id -g || echo unknown` 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3330$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3331 if test $am_uid -le $am_max_uid; then 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3333$as_echo "yes" >&6; } 3334 else 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3336$as_echo "no" >&6; } 3337 _am_tools=none 3338 fi 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3340$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3341 if test $am_gid -le $am_max_gid; then 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3343$as_echo "yes" >&6; } 3344 else 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3346$as_echo "no" >&6; } 3347 _am_tools=none 3348 fi 3349 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3351$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3352 3353 # Go ahead even if we have the value already cached. We do so because we 3354 # need to set the values for the 'am__tar' and 'am__untar' variables. 3355 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3356 3357 for _am_tool in $_am_tools; do 3358 case $_am_tool in 3359 gnutar) 3360 for _am_tar in tar gnutar gtar; do 3361 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3362 ($_am_tar --version) >&5 2>&5 3363 ac_status=$? 3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365 (exit $ac_status); } && break 3366 done 3367 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3368 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3369 am__untar="$_am_tar -xf -" 3370 ;; 3371 plaintar) 3372 # Must skip GNU tar: if it does not support --format= it doesn't create 3373 # ustar tarball either. 3374 (tar --version) >/dev/null 2>&1 && continue 3375 am__tar='tar chf - "$$tardir"' 3376 am__tar_='tar chf - "$tardir"' 3377 am__untar='tar xf -' 3378 ;; 3379 pax) 3380 am__tar='pax -L -x ustar -w "$$tardir"' 3381 am__tar_='pax -L -x ustar -w "$tardir"' 3382 am__untar='pax -r' 3383 ;; 3384 cpio) 3385 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3386 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3387 am__untar='cpio -i -H ustar -d' 3388 ;; 3389 none) 3390 am__tar=false 3391 am__tar_=false 3392 am__untar=false 3393 ;; 3394 esac 3395 3396 # If the value was cached, stop now. We just wanted to have am__tar 3397 # and am__untar set. 3398 test -n "${am_cv_prog_tar_ustar}" && break 3399 3400 # tar/untar a dummy directory, and stop if the command works. 3401 rm -rf conftest.dir 3402 mkdir conftest.dir 3403 echo GrepMe > conftest.dir/file 3404 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3405 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3406 ac_status=$? 3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3408 (exit $ac_status); } 3409 rm -rf conftest.dir 3410 if test -s conftest.tar; then 3411 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3412 ($am__untar <conftest.tar) >&5 2>&5 3413 ac_status=$? 3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3415 (exit $ac_status); } 3416 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3417 (cat conftest.dir/file) >&5 2>&5 3418 ac_status=$? 3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3420 (exit $ac_status); } 3421 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3422 fi 3423 done 3424 rm -rf conftest.dir 3425 3426 if ${am_cv_prog_tar_ustar+:} false; then : 3427 $as_echo_n "(cached) " >&6 3428else 3429 am_cv_prog_tar_ustar=$_am_tool 3430fi 3431 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3433$as_echo "$am_cv_prog_tar_ustar" >&6; } 3434 3435 3436 3437 3438 3439 3440# POSIX will say in a future version that running "rm -f" with no argument 3441# is OK; and we want to be able to make that assumption in our Makefile 3442# recipes. So use an aggressive probe to check that the usage we want is 3443# actually supported "in the wild" to an acceptable degree. 3444# See automake bug#10828. 3445# To make any issue more visible, cause the running configure to be aborted 3446# by default if the 'rm' program in use doesn't match our expectations; the 3447# user can still override this though. 3448if rm -f && rm -fr && rm -rf; then : OK; else 3449 cat >&2 <<'END' 3450Oops! 3451 3452Your 'rm' program seems unable to run without file operands specified 3453on the command line, even when the '-f' option is present. This is contrary 3454to the behaviour of most rm programs out there, and not conforming with 3455the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3456 3457Please tell bug-automake@gnu.org about your system, including the value 3458of your $PATH and any error possibly output before this message. This 3459can help us improve future automake versions. 3460 3461END 3462 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3463 echo 'Configuration will proceed anyway, since you have set the' >&2 3464 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3465 echo >&2 3466 else 3467 cat >&2 <<'END' 3468Aborting the configuration process, to ensure you take notice of the issue. 3469 3470You can download and install GNU coreutils to get an 'rm' implementation 3471that behaves properly: <http://www.gnu.org/software/coreutils/>. 3472 3473If you want to complete the configuration process using your problematic 3474'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3475to "yes", and re-run configure. 3476 3477END 3478 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3479 fi 3480fi 3481 3482 3483# Check whether --enable-silent-rules was given. 3484if test "${enable_silent_rules+set}" = set; then : 3485 enableval=$enable_silent_rules; 3486fi 3487 3488case $enable_silent_rules in # ((( 3489 yes) AM_DEFAULT_VERBOSITY=0;; 3490 no) AM_DEFAULT_VERBOSITY=1;; 3491 *) AM_DEFAULT_VERBOSITY=1;; 3492esac 3493am_make=${MAKE-make} 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3495$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3496if ${am_cv_make_support_nested_variables+:} false; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 if $as_echo 'TRUE=$(BAR$(V)) 3500BAR0=false 3501BAR1=true 3502V=1 3503am__doit: 3504 @$(TRUE) 3505.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3506 am_cv_make_support_nested_variables=yes 3507else 3508 am_cv_make_support_nested_variables=no 3509fi 3510fi 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3512$as_echo "$am_cv_make_support_nested_variables" >&6; } 3513if test $am_cv_make_support_nested_variables = yes; then 3514 AM_V='$(V)' 3515 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3516else 3517 AM_V=$AM_DEFAULT_VERBOSITY 3518 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3519fi 3520AM_BACKSLASH='\' 3521 3522 3523ac_ext=c 3524ac_cpp='$CPP $CPPFLAGS' 3525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3527ac_compiler_gnu=$ac_cv_c_compiler_gnu 3528if test -n "$ac_tool_prefix"; then 3529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3530set dummy ${ac_tool_prefix}gcc; ac_word=$2 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3532$as_echo_n "checking for $ac_word... " >&6; } 3533if ${ac_cv_prog_CC+:} false; then : 3534 $as_echo_n "(cached) " >&6 3535else 3536 if test -n "$CC"; then 3537 ac_cv_prog_CC="$CC" # Let the user override the test. 3538else 3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3540for as_dir in $PATH 3541do 3542 IFS=$as_save_IFS 3543 test -z "$as_dir" && as_dir=. 3544 for ac_exec_ext in '' $ac_executable_extensions; do 3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3546 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3548 break 2 3549 fi 3550done 3551 done 3552IFS=$as_save_IFS 3553 3554fi 3555fi 3556CC=$ac_cv_prog_CC 3557if test -n "$CC"; then 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3559$as_echo "$CC" >&6; } 3560else 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3562$as_echo "no" >&6; } 3563fi 3564 3565 3566fi 3567if test -z "$ac_cv_prog_CC"; then 3568 ac_ct_CC=$CC 3569 # Extract the first word of "gcc", so it can be a program name with args. 3570set dummy gcc; ac_word=$2 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3572$as_echo_n "checking for $ac_word... " >&6; } 3573if ${ac_cv_prog_ac_ct_CC+:} false; then : 3574 $as_echo_n "(cached) " >&6 3575else 3576 if test -n "$ac_ct_CC"; then 3577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3578else 3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3580for as_dir in $PATH 3581do 3582 IFS=$as_save_IFS 3583 test -z "$as_dir" && as_dir=. 3584 for ac_exec_ext in '' $ac_executable_extensions; do 3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3586 ac_cv_prog_ac_ct_CC="gcc" 3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3588 break 2 3589 fi 3590done 3591 done 3592IFS=$as_save_IFS 3593 3594fi 3595fi 3596ac_ct_CC=$ac_cv_prog_ac_ct_CC 3597if test -n "$ac_ct_CC"; then 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3599$as_echo "$ac_ct_CC" >&6; } 3600else 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3602$as_echo "no" >&6; } 3603fi 3604 3605 if test "x$ac_ct_CC" = x; then 3606 CC="" 3607 else 3608 case $cross_compiling:$ac_tool_warned in 3609yes:) 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3612ac_tool_warned=yes ;; 3613esac 3614 CC=$ac_ct_CC 3615 fi 3616else 3617 CC="$ac_cv_prog_CC" 3618fi 3619 3620if test -z "$CC"; then 3621 if test -n "$ac_tool_prefix"; then 3622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3623set dummy ${ac_tool_prefix}cc; ac_word=$2 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3625$as_echo_n "checking for $ac_word... " >&6; } 3626if ${ac_cv_prog_CC+:} false; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 if test -n "$CC"; then 3630 ac_cv_prog_CC="$CC" # Let the user override the test. 3631else 3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3633for as_dir in $PATH 3634do 3635 IFS=$as_save_IFS 3636 test -z "$as_dir" && as_dir=. 3637 for ac_exec_ext in '' $ac_executable_extensions; do 3638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3639 ac_cv_prog_CC="${ac_tool_prefix}cc" 3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3641 break 2 3642 fi 3643done 3644 done 3645IFS=$as_save_IFS 3646 3647fi 3648fi 3649CC=$ac_cv_prog_CC 3650if test -n "$CC"; then 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3652$as_echo "$CC" >&6; } 3653else 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3655$as_echo "no" >&6; } 3656fi 3657 3658 3659 fi 3660fi 3661if test -z "$CC"; then 3662 # Extract the first word of "cc", so it can be a program name with args. 3663set dummy cc; ac_word=$2 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3665$as_echo_n "checking for $ac_word... " >&6; } 3666if ${ac_cv_prog_CC+:} false; then : 3667 $as_echo_n "(cached) " >&6 3668else 3669 if test -n "$CC"; then 3670 ac_cv_prog_CC="$CC" # Let the user override the test. 3671else 3672 ac_prog_rejected=no 3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3674for as_dir in $PATH 3675do 3676 IFS=$as_save_IFS 3677 test -z "$as_dir" && as_dir=. 3678 for ac_exec_ext in '' $ac_executable_extensions; do 3679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3680 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3681 ac_prog_rejected=yes 3682 continue 3683 fi 3684 ac_cv_prog_CC="cc" 3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3686 break 2 3687 fi 3688done 3689 done 3690IFS=$as_save_IFS 3691 3692if test $ac_prog_rejected = yes; then 3693 # We found a bogon in the path, so make sure we never use it. 3694 set dummy $ac_cv_prog_CC 3695 shift 3696 if test $# != 0; then 3697 # We chose a different compiler from the bogus one. 3698 # However, it has the same basename, so the bogon will be chosen 3699 # first if we set CC to just the basename; use the full file name. 3700 shift 3701 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3702 fi 3703fi 3704fi 3705fi 3706CC=$ac_cv_prog_CC 3707if test -n "$CC"; then 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3709$as_echo "$CC" >&6; } 3710else 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3712$as_echo "no" >&6; } 3713fi 3714 3715 3716fi 3717if test -z "$CC"; then 3718 if test -n "$ac_tool_prefix"; then 3719 for ac_prog in cl.exe 3720 do 3721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3722set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3724$as_echo_n "checking for $ac_word... " >&6; } 3725if ${ac_cv_prog_CC+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 if test -n "$CC"; then 3729 ac_cv_prog_CC="$CC" # Let the user override the test. 3730else 3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732for as_dir in $PATH 3733do 3734 IFS=$as_save_IFS 3735 test -z "$as_dir" && as_dir=. 3736 for ac_exec_ext in '' $ac_executable_extensions; do 3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3738 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3740 break 2 3741 fi 3742done 3743 done 3744IFS=$as_save_IFS 3745 3746fi 3747fi 3748CC=$ac_cv_prog_CC 3749if test -n "$CC"; then 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3751$as_echo "$CC" >&6; } 3752else 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3754$as_echo "no" >&6; } 3755fi 3756 3757 3758 test -n "$CC" && break 3759 done 3760fi 3761if test -z "$CC"; then 3762 ac_ct_CC=$CC 3763 for ac_prog in cl.exe 3764do 3765 # Extract the first word of "$ac_prog", so it can be a program name with args. 3766set dummy $ac_prog; ac_word=$2 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768$as_echo_n "checking for $ac_word... " >&6; } 3769if ${ac_cv_prog_ac_ct_CC+:} false; then : 3770 $as_echo_n "(cached) " >&6 3771else 3772 if test -n "$ac_ct_CC"; then 3773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3774else 3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3776for as_dir in $PATH 3777do 3778 IFS=$as_save_IFS 3779 test -z "$as_dir" && as_dir=. 3780 for ac_exec_ext in '' $ac_executable_extensions; do 3781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3782 ac_cv_prog_ac_ct_CC="$ac_prog" 3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3784 break 2 3785 fi 3786done 3787 done 3788IFS=$as_save_IFS 3789 3790fi 3791fi 3792ac_ct_CC=$ac_cv_prog_ac_ct_CC 3793if test -n "$ac_ct_CC"; then 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3795$as_echo "$ac_ct_CC" >&6; } 3796else 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3798$as_echo "no" >&6; } 3799fi 3800 3801 3802 test -n "$ac_ct_CC" && break 3803done 3804 3805 if test "x$ac_ct_CC" = x; then 3806 CC="" 3807 else 3808 case $cross_compiling:$ac_tool_warned in 3809yes:) 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3812ac_tool_warned=yes ;; 3813esac 3814 CC=$ac_ct_CC 3815 fi 3816fi 3817 3818fi 3819 3820 3821test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3823as_fn_error $? "no acceptable C compiler found in \$PATH 3824See \`config.log' for more details" "$LINENO" 5; } 3825 3826# Provide some information about the compiler. 3827$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3828set X $ac_compile 3829ac_compiler=$2 3830for ac_option in --version -v -V -qversion; do 3831 { { ac_try="$ac_compiler $ac_option >&5" 3832case "(($ac_try" in 3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3834 *) ac_try_echo=$ac_try;; 3835esac 3836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3837$as_echo "$ac_try_echo"; } >&5 3838 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3839 ac_status=$? 3840 if test -s conftest.err; then 3841 sed '10a\ 3842... rest of stderr output deleted ... 3843 10q' conftest.err >conftest.er1 3844 cat conftest.er1 >&5 3845 fi 3846 rm -f conftest.er1 conftest.err 3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3848 test $ac_status = 0; } 3849done 3850 3851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3852/* end confdefs.h. */ 3853 3854int 3855main () 3856{ 3857 3858 ; 3859 return 0; 3860} 3861_ACEOF 3862ac_clean_files_save=$ac_clean_files 3863ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3864# Try to create an executable without -o first, disregard a.out. 3865# It will help us diagnose broken compilers, and finding out an intuition 3866# of exeext. 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3868$as_echo_n "checking whether the C compiler works... " >&6; } 3869ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3870 3871# The possible output files: 3872ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3873 3874ac_rmfiles= 3875for ac_file in $ac_files 3876do 3877 case $ac_file in 3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3879 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3880 esac 3881done 3882rm -f $ac_rmfiles 3883 3884if { { ac_try="$ac_link_default" 3885case "(($ac_try" in 3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3887 *) ac_try_echo=$ac_try;; 3888esac 3889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3890$as_echo "$ac_try_echo"; } >&5 3891 (eval "$ac_link_default") 2>&5 3892 ac_status=$? 3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3894 test $ac_status = 0; }; then : 3895 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3896# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3897# in a Makefile. We should not override ac_cv_exeext if it was cached, 3898# so that the user can short-circuit this test for compilers unknown to 3899# Autoconf. 3900for ac_file in $ac_files '' 3901do 3902 test -f "$ac_file" || continue 3903 case $ac_file in 3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3905 ;; 3906 [ab].out ) 3907 # We found the default executable, but exeext='' is most 3908 # certainly right. 3909 break;; 3910 *.* ) 3911 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3912 then :; else 3913 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3914 fi 3915 # We set ac_cv_exeext here because the later test for it is not 3916 # safe: cross compilers may not add the suffix if given an `-o' 3917 # argument, so we may need to know it at that point already. 3918 # Even if this section looks crufty: it has the advantage of 3919 # actually working. 3920 break;; 3921 * ) 3922 break;; 3923 esac 3924done 3925test "$ac_cv_exeext" = no && ac_cv_exeext= 3926 3927else 3928 ac_file='' 3929fi 3930if test -z "$ac_file"; then : 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3932$as_echo "no" >&6; } 3933$as_echo "$as_me: failed program was:" >&5 3934sed 's/^/| /' conftest.$ac_ext >&5 3935 3936{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3938as_fn_error 77 "C compiler cannot create executables 3939See \`config.log' for more details" "$LINENO" 5; } 3940else 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3942$as_echo "yes" >&6; } 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3945$as_echo_n "checking for C compiler default output file name... " >&6; } 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3947$as_echo "$ac_file" >&6; } 3948ac_exeext=$ac_cv_exeext 3949 3950rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3951ac_clean_files=$ac_clean_files_save 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3953$as_echo_n "checking for suffix of executables... " >&6; } 3954if { { ac_try="$ac_link" 3955case "(($ac_try" in 3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3957 *) ac_try_echo=$ac_try;; 3958esac 3959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3960$as_echo "$ac_try_echo"; } >&5 3961 (eval "$ac_link") 2>&5 3962 ac_status=$? 3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3964 test $ac_status = 0; }; then : 3965 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3966# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3967# work properly (i.e., refer to `conftest.exe'), while it won't with 3968# `rm'. 3969for ac_file in conftest.exe conftest conftest.*; do 3970 test -f "$ac_file" || continue 3971 case $ac_file in 3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3974 break;; 3975 * ) break;; 3976 esac 3977done 3978else 3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3981as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3982See \`config.log' for more details" "$LINENO" 5; } 3983fi 3984rm -f conftest conftest$ac_cv_exeext 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3986$as_echo "$ac_cv_exeext" >&6; } 3987 3988rm -f conftest.$ac_ext 3989EXEEXT=$ac_cv_exeext 3990ac_exeext=$EXEEXT 3991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992/* end confdefs.h. */ 3993#include <stdio.h> 3994int 3995main () 3996{ 3997FILE *f = fopen ("conftest.out", "w"); 3998 return ferror (f) || fclose (f) != 0; 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004ac_clean_files="$ac_clean_files conftest.out" 4005# Check that the compiler produces executables we can run. If not, either 4006# the compiler is broken, or we cross compile. 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4008$as_echo_n "checking whether we are cross compiling... " >&6; } 4009if test "$cross_compiling" != yes; then 4010 { { ac_try="$ac_link" 4011case "(($ac_try" in 4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4013 *) ac_try_echo=$ac_try;; 4014esac 4015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4016$as_echo "$ac_try_echo"; } >&5 4017 (eval "$ac_link") 2>&5 4018 ac_status=$? 4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4020 test $ac_status = 0; } 4021 if { ac_try='./conftest$ac_cv_exeext' 4022 { { case "(($ac_try" in 4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4024 *) ac_try_echo=$ac_try;; 4025esac 4026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4027$as_echo "$ac_try_echo"; } >&5 4028 (eval "$ac_try") 2>&5 4029 ac_status=$? 4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4031 test $ac_status = 0; }; }; then 4032 cross_compiling=no 4033 else 4034 if test "$cross_compiling" = maybe; then 4035 cross_compiling=yes 4036 else 4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4039as_fn_error $? "cannot run C compiled programs. 4040If you meant to cross compile, use \`--host'. 4041See \`config.log' for more details" "$LINENO" 5; } 4042 fi 4043 fi 4044fi 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4046$as_echo "$cross_compiling" >&6; } 4047 4048rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4049ac_clean_files=$ac_clean_files_save 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4051$as_echo_n "checking for suffix of object files... " >&6; } 4052if ${ac_cv_objext+:} false; then : 4053 $as_echo_n "(cached) " >&6 4054else 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057 4058int 4059main () 4060{ 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066rm -f conftest.o conftest.obj 4067if { { ac_try="$ac_compile" 4068case "(($ac_try" in 4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4070 *) ac_try_echo=$ac_try;; 4071esac 4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4073$as_echo "$ac_try_echo"; } >&5 4074 (eval "$ac_compile") 2>&5 4075 ac_status=$? 4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4077 test $ac_status = 0; }; then : 4078 for ac_file in conftest.o conftest.obj conftest.*; do 4079 test -f "$ac_file" || continue; 4080 case $ac_file in 4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4083 break;; 4084 esac 4085done 4086else 4087 $as_echo "$as_me: failed program was:" >&5 4088sed 's/^/| /' conftest.$ac_ext >&5 4089 4090{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4092as_fn_error $? "cannot compute suffix of object files: cannot compile 4093See \`config.log' for more details" "$LINENO" 5; } 4094fi 4095rm -f conftest.$ac_cv_objext conftest.$ac_ext 4096fi 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4098$as_echo "$ac_cv_objext" >&6; } 4099OBJEXT=$ac_cv_objext 4100ac_objext=$OBJEXT 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4102$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4103if ${ac_cv_c_compiler_gnu+:} false; then : 4104 $as_echo_n "(cached) " >&6 4105else 4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4107/* end confdefs.h. */ 4108 4109int 4110main () 4111{ 4112#ifndef __GNUC__ 4113 choke me 4114#endif 4115 4116 ; 4117 return 0; 4118} 4119_ACEOF 4120if ac_fn_c_try_compile "$LINENO"; then : 4121 ac_compiler_gnu=yes 4122else 4123 ac_compiler_gnu=no 4124fi 4125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4126ac_cv_c_compiler_gnu=$ac_compiler_gnu 4127 4128fi 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4130$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4131if test $ac_compiler_gnu = yes; then 4132 GCC=yes 4133else 4134 GCC= 4135fi 4136ac_test_CFLAGS=${CFLAGS+set} 4137ac_save_CFLAGS=$CFLAGS 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4139$as_echo_n "checking whether $CC accepts -g... " >&6; } 4140if ${ac_cv_prog_cc_g+:} false; then : 4141 $as_echo_n "(cached) " >&6 4142else 4143 ac_save_c_werror_flag=$ac_c_werror_flag 4144 ac_c_werror_flag=yes 4145 ac_cv_prog_cc_g=no 4146 CFLAGS="-g" 4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4148/* end confdefs.h. */ 4149 4150int 4151main () 4152{ 4153 4154 ; 4155 return 0; 4156} 4157_ACEOF 4158if ac_fn_c_try_compile "$LINENO"; then : 4159 ac_cv_prog_cc_g=yes 4160else 4161 CFLAGS="" 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164 4165int 4166main () 4167{ 4168 4169 ; 4170 return 0; 4171} 4172_ACEOF 4173if ac_fn_c_try_compile "$LINENO"; then : 4174 4175else 4176 ac_c_werror_flag=$ac_save_c_werror_flag 4177 CFLAGS="-g" 4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179/* end confdefs.h. */ 4180 4181int 4182main () 4183{ 4184 4185 ; 4186 return 0; 4187} 4188_ACEOF 4189if ac_fn_c_try_compile "$LINENO"; then : 4190 ac_cv_prog_cc_g=yes 4191fi 4192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4193fi 4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4195fi 4196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4197 ac_c_werror_flag=$ac_save_c_werror_flag 4198fi 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4200$as_echo "$ac_cv_prog_cc_g" >&6; } 4201if test "$ac_test_CFLAGS" = set; then 4202 CFLAGS=$ac_save_CFLAGS 4203elif test $ac_cv_prog_cc_g = yes; then 4204 if test "$GCC" = yes; then 4205 CFLAGS="-g -O2" 4206 else 4207 CFLAGS="-g" 4208 fi 4209else 4210 if test "$GCC" = yes; then 4211 CFLAGS="-O2" 4212 else 4213 CFLAGS= 4214 fi 4215fi 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4217$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4218if ${ac_cv_prog_cc_c89+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 ac_cv_prog_cc_c89=no 4222ac_save_CC=$CC 4223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224/* end confdefs.h. */ 4225#include <stdarg.h> 4226#include <stdio.h> 4227struct stat; 4228/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4229struct buf { int x; }; 4230FILE * (*rcsopen) (struct buf *, struct stat *, int); 4231static char *e (p, i) 4232 char **p; 4233 int i; 4234{ 4235 return p[i]; 4236} 4237static char *f (char * (*g) (char **, int), char **p, ...) 4238{ 4239 char *s; 4240 va_list v; 4241 va_start (v,p); 4242 s = g (p, va_arg (v,int)); 4243 va_end (v); 4244 return s; 4245} 4246 4247/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4248 function prototypes and stuff, but not '\xHH' hex character constants. 4249 These don't provoke an error unfortunately, instead are silently treated 4250 as 'x'. The following induces an error, until -std is added to get 4251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4252 array size at least. It's necessary to write '\x00'==0 to get something 4253 that's true only with -std. */ 4254int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4255 4256/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4257 inside strings and character constants. */ 4258#define FOO(x) 'x' 4259int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4260 4261int test (int i, double x); 4262struct s1 {int (*f) (int a);}; 4263struct s2 {int (*f) (double a);}; 4264int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4265int argc; 4266char **argv; 4267int 4268main () 4269{ 4270return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4271 ; 4272 return 0; 4273} 4274_ACEOF 4275for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4277do 4278 CC="$ac_save_CC $ac_arg" 4279 if ac_fn_c_try_compile "$LINENO"; then : 4280 ac_cv_prog_cc_c89=$ac_arg 4281fi 4282rm -f core conftest.err conftest.$ac_objext 4283 test "x$ac_cv_prog_cc_c89" != "xno" && break 4284done 4285rm -f conftest.$ac_ext 4286CC=$ac_save_CC 4287 4288fi 4289# AC_CACHE_VAL 4290case "x$ac_cv_prog_cc_c89" in 4291 x) 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4293$as_echo "none needed" >&6; } ;; 4294 xno) 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4296$as_echo "unsupported" >&6; } ;; 4297 *) 4298 CC="$CC $ac_cv_prog_cc_c89" 4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4300$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4301esac 4302if test "x$ac_cv_prog_cc_c89" != xno; then : 4303 4304fi 4305 4306ac_ext=c 4307ac_cpp='$CPP $CPPFLAGS' 4308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4310ac_compiler_gnu=$ac_cv_c_compiler_gnu 4311 4312ac_ext=c 4313ac_cpp='$CPP $CPPFLAGS' 4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4316ac_compiler_gnu=$ac_cv_c_compiler_gnu 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4318$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4319if ${am_cv_prog_cc_c_o+:} false; then : 4320 $as_echo_n "(cached) " >&6 4321else 4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323/* end confdefs.h. */ 4324 4325int 4326main () 4327{ 4328 4329 ; 4330 return 0; 4331} 4332_ACEOF 4333 # Make sure it works both with $CC and with simple cc. 4334 # Following AC_PROG_CC_C_O, we do the test twice because some 4335 # compilers refuse to overwrite an existing .o file with -o, 4336 # though they will create one. 4337 am_cv_prog_cc_c_o=yes 4338 for am_i in 1 2; do 4339 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4340 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4341 ac_status=$? 4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4343 (exit $ac_status); } \ 4344 && test -f conftest2.$ac_objext; then 4345 : OK 4346 else 4347 am_cv_prog_cc_c_o=no 4348 break 4349 fi 4350 done 4351 rm -f core conftest* 4352 unset am_i 4353fi 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4355$as_echo "$am_cv_prog_cc_c_o" >&6; } 4356if test "$am_cv_prog_cc_c_o" != yes; then 4357 # Losing compiler, so override with the script. 4358 # FIXME: It is wrong to rewrite CC. 4359 # But if we don't then we get into trouble of one sort or another. 4360 # A longer-term fix would be to have automake use am__CC in this case, 4361 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4362 CC="$am_aux_dir/compile $CC" 4363fi 4364ac_ext=c 4365ac_cpp='$CPP $CPPFLAGS' 4366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4368ac_compiler_gnu=$ac_cv_c_compiler_gnu 4369 4370DEPDIR="${am__leading_dot}deps" 4371 4372ac_config_commands="$ac_config_commands depfiles" 4373 4374 4375am_make=${MAKE-make} 4376cat > confinc << 'END' 4377am__doit: 4378 @echo this is the am__doit target 4379.PHONY: am__doit 4380END 4381# If we don't find an include directive, just comment out the code. 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4383$as_echo_n "checking for style of include used by $am_make... " >&6; } 4384am__include="#" 4385am__quote= 4386_am_result=none 4387# First try GNU make style include. 4388echo "include confinc" > confmf 4389# Ignore all kinds of additional output from 'make'. 4390case `$am_make -s -f confmf 2> /dev/null` in #( 4391*the\ am__doit\ target*) 4392 am__include=include 4393 am__quote= 4394 _am_result=GNU 4395 ;; 4396esac 4397# Now try BSD make style include. 4398if test "$am__include" = "#"; then 4399 echo '.include "confinc"' > confmf 4400 case `$am_make -s -f confmf 2> /dev/null` in #( 4401 *the\ am__doit\ target*) 4402 am__include=.include 4403 am__quote="\"" 4404 _am_result=BSD 4405 ;; 4406 esac 4407fi 4408 4409 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4411$as_echo "$_am_result" >&6; } 4412rm -f confinc confmf 4413 4414# Check whether --enable-dependency-tracking was given. 4415if test "${enable_dependency_tracking+set}" = set; then : 4416 enableval=$enable_dependency_tracking; 4417fi 4418 4419if test "x$enable_dependency_tracking" != xno; then 4420 am_depcomp="$ac_aux_dir/depcomp" 4421 AMDEPBACKSLASH='\' 4422 am__nodep='_no' 4423fi 4424 if test "x$enable_dependency_tracking" != xno; then 4425 AMDEP_TRUE= 4426 AMDEP_FALSE='#' 4427else 4428 AMDEP_TRUE='#' 4429 AMDEP_FALSE= 4430fi 4431 4432 4433 4434depcc="$CC" am_compiler_list= 4435 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4437$as_echo_n "checking dependency style of $depcc... " >&6; } 4438if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4439 $as_echo_n "(cached) " >&6 4440else 4441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4442 # We make a subdir and do the tests there. Otherwise we can end up 4443 # making bogus files that we don't know about and never remove. For 4444 # instance it was reported that on HP-UX the gcc test will end up 4445 # making a dummy file named 'D' -- because '-MD' means "put the output 4446 # in D". 4447 rm -rf conftest.dir 4448 mkdir conftest.dir 4449 # Copy depcomp to subdir because otherwise we won't find it if we're 4450 # using a relative directory. 4451 cp "$am_depcomp" conftest.dir 4452 cd conftest.dir 4453 # We will build objects and dependencies in a subdirectory because 4454 # it helps to detect inapplicable dependency modes. For instance 4455 # both Tru64's cc and ICC support -MD to output dependencies as a 4456 # side effect of compilation, but ICC will put the dependencies in 4457 # the current directory while Tru64 will put them in the object 4458 # directory. 4459 mkdir sub 4460 4461 am_cv_CC_dependencies_compiler_type=none 4462 if test "$am_compiler_list" = ""; then 4463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4464 fi 4465 am__universal=false 4466 case " $depcc " in #( 4467 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4468 esac 4469 4470 for depmode in $am_compiler_list; do 4471 # Setup a source with many dependencies, because some compilers 4472 # like to wrap large dependency lists on column 80 (with \), and 4473 # we should not choose a depcomp mode which is confused by this. 4474 # 4475 # We need to recreate these files for each test, as the compiler may 4476 # overwrite some of them when testing with obscure command lines. 4477 # This happens at least with the AIX C compiler. 4478 : > sub/conftest.c 4479 for i in 1 2 3 4 5 6; do 4480 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4481 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4482 # Solaris 10 /bin/sh. 4483 echo '/* dummy */' > sub/conftst$i.h 4484 done 4485 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4486 4487 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4488 # mode. It turns out that the SunPro C++ compiler does not properly 4489 # handle '-M -o', and we need to detect this. Also, some Intel 4490 # versions had trouble with output in subdirs. 4491 am__obj=sub/conftest.${OBJEXT-o} 4492 am__minus_obj="-o $am__obj" 4493 case $depmode in 4494 gcc) 4495 # This depmode causes a compiler race in universal mode. 4496 test "$am__universal" = false || continue 4497 ;; 4498 nosideeffect) 4499 # After this tag, mechanisms are not by side-effect, so they'll 4500 # only be used when explicitly requested. 4501 if test "x$enable_dependency_tracking" = xyes; then 4502 continue 4503 else 4504 break 4505 fi 4506 ;; 4507 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4508 # This compiler won't grok '-c -o', but also, the minuso test has 4509 # not run yet. These depmodes are late enough in the game, and 4510 # so weak that their functioning should not be impacted. 4511 am__obj=conftest.${OBJEXT-o} 4512 am__minus_obj= 4513 ;; 4514 none) break ;; 4515 esac 4516 if depmode=$depmode \ 4517 source=sub/conftest.c object=$am__obj \ 4518 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4519 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4520 >/dev/null 2>conftest.err && 4521 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4522 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4523 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4524 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4525 # icc doesn't choke on unknown options, it will just issue warnings 4526 # or remarks (even with -Werror). So we grep stderr for any message 4527 # that says an option was ignored or not supported. 4528 # When given -MP, icc 7.0 and 7.1 complain thusly: 4529 # icc: Command line warning: ignoring option '-M'; no argument required 4530 # The diagnosis changed in icc 8.0: 4531 # icc: Command line remark: option '-MP' not supported 4532 if (grep 'ignoring option' conftest.err || 4533 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4534 am_cv_CC_dependencies_compiler_type=$depmode 4535 break 4536 fi 4537 fi 4538 done 4539 4540 cd .. 4541 rm -rf conftest.dir 4542else 4543 am_cv_CC_dependencies_compiler_type=none 4544fi 4545 4546fi 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4548$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4549CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4550 4551 if 4552 test "x$enable_dependency_tracking" != xno \ 4553 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4554 am__fastdepCC_TRUE= 4555 am__fastdepCC_FALSE='#' 4556else 4557 am__fastdepCC_TRUE='#' 4558 am__fastdepCC_FALSE= 4559fi 4560 4561 4562 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4564$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4565if ${ac_cv_path_SED+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4569 for ac_i in 1 2 3 4 5 6 7; do 4570 ac_script="$ac_script$as_nl$ac_script" 4571 done 4572 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4573 { ac_script=; unset ac_script;} 4574 if test -z "$SED"; then 4575 ac_path_SED_found=false 4576 # Loop through the user's path and test for each of PROGNAME-LIST 4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4578for as_dir in $PATH 4579do 4580 IFS=$as_save_IFS 4581 test -z "$as_dir" && as_dir=. 4582 for ac_prog in sed gsed; do 4583 for ac_exec_ext in '' $ac_executable_extensions; do 4584 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4585 as_fn_executable_p "$ac_path_SED" || continue 4586# Check for GNU ac_path_SED and select it if it is found. 4587 # Check for GNU $ac_path_SED 4588case `"$ac_path_SED" --version 2>&1` in 4589*GNU*) 4590 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4591*) 4592 ac_count=0 4593 $as_echo_n 0123456789 >"conftest.in" 4594 while : 4595 do 4596 cat "conftest.in" "conftest.in" >"conftest.tmp" 4597 mv "conftest.tmp" "conftest.in" 4598 cp "conftest.in" "conftest.nl" 4599 $as_echo '' >> "conftest.nl" 4600 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4602 as_fn_arith $ac_count + 1 && ac_count=$as_val 4603 if test $ac_count -gt ${ac_path_SED_max-0}; then 4604 # Best one so far, save it but keep looking for a better one 4605 ac_cv_path_SED="$ac_path_SED" 4606 ac_path_SED_max=$ac_count 4607 fi 4608 # 10*(2^10) chars as input seems more than enough 4609 test $ac_count -gt 10 && break 4610 done 4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4612esac 4613 4614 $ac_path_SED_found && break 3 4615 done 4616 done 4617 done 4618IFS=$as_save_IFS 4619 if test -z "$ac_cv_path_SED"; then 4620 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4621 fi 4622else 4623 ac_cv_path_SED=$SED 4624fi 4625 4626fi 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4628$as_echo "$ac_cv_path_SED" >&6; } 4629 SED="$ac_cv_path_SED" 4630 rm -f conftest.sed 4631 4632test -z "$SED" && SED=sed 4633Xsed="$SED -e 1s/^X//" 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4646$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4647if ${ac_cv_path_GREP+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 if test -z "$GREP"; then 4651 ac_path_GREP_found=false 4652 # Loop through the user's path and test for each of PROGNAME-LIST 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_prog in grep ggrep; do 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4661 as_fn_executable_p "$ac_path_GREP" || continue 4662# Check for GNU ac_path_GREP and select it if it is found. 4663 # Check for GNU $ac_path_GREP 4664case `"$ac_path_GREP" --version 2>&1` in 4665*GNU*) 4666 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4667*) 4668 ac_count=0 4669 $as_echo_n 0123456789 >"conftest.in" 4670 while : 4671 do 4672 cat "conftest.in" "conftest.in" >"conftest.tmp" 4673 mv "conftest.tmp" "conftest.in" 4674 cp "conftest.in" "conftest.nl" 4675 $as_echo 'GREP' >> "conftest.nl" 4676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4678 as_fn_arith $ac_count + 1 && ac_count=$as_val 4679 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4680 # Best one so far, save it but keep looking for a better one 4681 ac_cv_path_GREP="$ac_path_GREP" 4682 ac_path_GREP_max=$ac_count 4683 fi 4684 # 10*(2^10) chars as input seems more than enough 4685 test $ac_count -gt 10 && break 4686 done 4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4688esac 4689 4690 $ac_path_GREP_found && break 3 4691 done 4692 done 4693 done 4694IFS=$as_save_IFS 4695 if test -z "$ac_cv_path_GREP"; then 4696 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4697 fi 4698else 4699 ac_cv_path_GREP=$GREP 4700fi 4701 4702fi 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4704$as_echo "$ac_cv_path_GREP" >&6; } 4705 GREP="$ac_cv_path_GREP" 4706 4707 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4709$as_echo_n "checking for egrep... " >&6; } 4710if ${ac_cv_path_EGREP+:} false; then : 4711 $as_echo_n "(cached) " >&6 4712else 4713 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4714 then ac_cv_path_EGREP="$GREP -E" 4715 else 4716 if test -z "$EGREP"; then 4717 ac_path_EGREP_found=false 4718 # Loop through the user's path and test for each of PROGNAME-LIST 4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4720for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4721do 4722 IFS=$as_save_IFS 4723 test -z "$as_dir" && as_dir=. 4724 for ac_prog in egrep; do 4725 for ac_exec_ext in '' $ac_executable_extensions; do 4726 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4727 as_fn_executable_p "$ac_path_EGREP" || continue 4728# Check for GNU ac_path_EGREP and select it if it is found. 4729 # Check for GNU $ac_path_EGREP 4730case `"$ac_path_EGREP" --version 2>&1` in 4731*GNU*) 4732 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4733*) 4734 ac_count=0 4735 $as_echo_n 0123456789 >"conftest.in" 4736 while : 4737 do 4738 cat "conftest.in" "conftest.in" >"conftest.tmp" 4739 mv "conftest.tmp" "conftest.in" 4740 cp "conftest.in" "conftest.nl" 4741 $as_echo 'EGREP' >> "conftest.nl" 4742 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4744 as_fn_arith $ac_count + 1 && ac_count=$as_val 4745 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4746 # Best one so far, save it but keep looking for a better one 4747 ac_cv_path_EGREP="$ac_path_EGREP" 4748 ac_path_EGREP_max=$ac_count 4749 fi 4750 # 10*(2^10) chars as input seems more than enough 4751 test $ac_count -gt 10 && break 4752 done 4753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4754esac 4755 4756 $ac_path_EGREP_found && break 3 4757 done 4758 done 4759 done 4760IFS=$as_save_IFS 4761 if test -z "$ac_cv_path_EGREP"; then 4762 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4763 fi 4764else 4765 ac_cv_path_EGREP=$EGREP 4766fi 4767 4768 fi 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4771$as_echo "$ac_cv_path_EGREP" >&6; } 4772 EGREP="$ac_cv_path_EGREP" 4773 4774 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4776$as_echo_n "checking for fgrep... " >&6; } 4777if ${ac_cv_path_FGREP+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4781 then ac_cv_path_FGREP="$GREP -F" 4782 else 4783 if test -z "$FGREP"; then 4784 ac_path_FGREP_found=false 4785 # Loop through the user's path and test for each of PROGNAME-LIST 4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4787for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4788do 4789 IFS=$as_save_IFS 4790 test -z "$as_dir" && as_dir=. 4791 for ac_prog in fgrep; do 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4794 as_fn_executable_p "$ac_path_FGREP" || continue 4795# Check for GNU ac_path_FGREP and select it if it is found. 4796 # Check for GNU $ac_path_FGREP 4797case `"$ac_path_FGREP" --version 2>&1` in 4798*GNU*) 4799 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4800*) 4801 ac_count=0 4802 $as_echo_n 0123456789 >"conftest.in" 4803 while : 4804 do 4805 cat "conftest.in" "conftest.in" >"conftest.tmp" 4806 mv "conftest.tmp" "conftest.in" 4807 cp "conftest.in" "conftest.nl" 4808 $as_echo 'FGREP' >> "conftest.nl" 4809 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4811 as_fn_arith $ac_count + 1 && ac_count=$as_val 4812 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4813 # Best one so far, save it but keep looking for a better one 4814 ac_cv_path_FGREP="$ac_path_FGREP" 4815 ac_path_FGREP_max=$ac_count 4816 fi 4817 # 10*(2^10) chars as input seems more than enough 4818 test $ac_count -gt 10 && break 4819 done 4820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4821esac 4822 4823 $ac_path_FGREP_found && break 3 4824 done 4825 done 4826 done 4827IFS=$as_save_IFS 4828 if test -z "$ac_cv_path_FGREP"; then 4829 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4830 fi 4831else 4832 ac_cv_path_FGREP=$FGREP 4833fi 4834 4835 fi 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4838$as_echo "$ac_cv_path_FGREP" >&6; } 4839 FGREP="$ac_cv_path_FGREP" 4840 4841 4842test -z "$GREP" && GREP=grep 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4861ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4862ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4863 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4865$as_echo_n "checking how to print strings... " >&6; } 4866# Test print first, because it will be a builtin if present. 4867if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4868 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4869 ECHO='print -r --' 4870elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4871 ECHO='printf %s\n' 4872else 4873 # Use this function as a fallback that always works. 4874 func_fallback_echo () 4875 { 4876 eval 'cat <<_LTECHO_EOF 4877$1 4878_LTECHO_EOF' 4879 } 4880 ECHO='func_fallback_echo' 4881fi 4882 4883# func_echo_all arg... 4884# Invoke $ECHO with all args, space-separated. 4885func_echo_all () 4886{ 4887 $ECHO "" 4888} 4889 4890case $ECHO in 4891 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4892$as_echo "printf" >&6; } ;; 4893 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4894$as_echo "print -r" >&6; } ;; 4895 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4896$as_echo "cat" >&6; } ;; 4897esac 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914# Check whether --with-gnu-ld was given. 4915if test "${with_gnu_ld+set}" = set; then : 4916 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4917else 4918 with_gnu_ld=no 4919fi 4920 4921ac_prog=ld 4922if test yes = "$GCC"; then 4923 # Check if gcc -print-prog-name=ld gives a path. 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4925$as_echo_n "checking for ld used by $CC... " >&6; } 4926 case $host in 4927 *-*-mingw*) 4928 # gcc leaves a trailing carriage return, which upsets mingw 4929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4930 *) 4931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4932 esac 4933 case $ac_prog in 4934 # Accept absolute paths. 4935 [\\/]* | ?:[\\/]*) 4936 re_direlt='/[^/][^/]*/\.\./' 4937 # Canonicalize the pathname of ld 4938 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4939 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4940 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4941 done 4942 test -z "$LD" && LD=$ac_prog 4943 ;; 4944 "") 4945 # If it fails, then pretend we aren't using GCC. 4946 ac_prog=ld 4947 ;; 4948 *) 4949 # If it is relative, then search for the first ld in PATH. 4950 with_gnu_ld=unknown 4951 ;; 4952 esac 4953elif test yes = "$with_gnu_ld"; then 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4955$as_echo_n "checking for GNU ld... " >&6; } 4956else 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4958$as_echo_n "checking for non-GNU ld... " >&6; } 4959fi 4960if ${lt_cv_path_LD+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 if test -z "$LD"; then 4964 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4965 for ac_dir in $PATH; do 4966 IFS=$lt_save_ifs 4967 test -z "$ac_dir" && ac_dir=. 4968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4969 lt_cv_path_LD=$ac_dir/$ac_prog 4970 # Check to see if the program is GNU ld. I'd rather use --version, 4971 # but apparently some variants of GNU ld only accept -v. 4972 # Break only if it was the GNU/non-GNU ld that we prefer. 4973 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4974 *GNU* | *'with BFD'*) 4975 test no != "$with_gnu_ld" && break 4976 ;; 4977 *) 4978 test yes != "$with_gnu_ld" && break 4979 ;; 4980 esac 4981 fi 4982 done 4983 IFS=$lt_save_ifs 4984else 4985 lt_cv_path_LD=$LD # Let the user override the test with a path. 4986fi 4987fi 4988 4989LD=$lt_cv_path_LD 4990if test -n "$LD"; then 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4992$as_echo "$LD" >&6; } 4993else 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4995$as_echo "no" >&6; } 4996fi 4997test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4999$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5000if ${lt_cv_prog_gnu_ld+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5004case `$LD -v 2>&1 </dev/null` in 5005*GNU* | *'with BFD'*) 5006 lt_cv_prog_gnu_ld=yes 5007 ;; 5008*) 5009 lt_cv_prog_gnu_ld=no 5010 ;; 5011esac 5012fi 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5014$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5015with_gnu_ld=$lt_cv_prog_gnu_ld 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026for ac_prog in gawk mawk nawk awk 5027do 5028 # Extract the first word of "$ac_prog", so it can be a program name with args. 5029set dummy $ac_prog; ac_word=$2 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5031$as_echo_n "checking for $ac_word... " >&6; } 5032if ${ac_cv_prog_AWK+:} false; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 if test -n "$AWK"; then 5036 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5037else 5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5039for as_dir in $PATH 5040do 5041 IFS=$as_save_IFS 5042 test -z "$as_dir" && as_dir=. 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5045 ac_cv_prog_AWK="$ac_prog" 5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5047 break 2 5048 fi 5049done 5050 done 5051IFS=$as_save_IFS 5052 5053fi 5054fi 5055AWK=$ac_cv_prog_AWK 5056if test -n "$AWK"; then 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5058$as_echo "$AWK" >&6; } 5059else 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5061$as_echo "no" >&6; } 5062fi 5063 5064 5065 test -n "$AWK" && break 5066done 5067 5068ac_ext=c 5069ac_cpp='$CPP $CPPFLAGS' 5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5072ac_compiler_gnu=$ac_cv_c_compiler_gnu 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5074$as_echo_n "checking how to run the C preprocessor... " >&6; } 5075# On Suns, sometimes $CPP names a directory. 5076if test -n "$CPP" && test -d "$CPP"; then 5077 CPP= 5078fi 5079if test -z "$CPP"; then 5080 if ${ac_cv_prog_CPP+:} false; then : 5081 $as_echo_n "(cached) " >&6 5082else 5083 # Double quotes because CPP needs to be expanded 5084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5085 do 5086 ac_preproc_ok=false 5087for ac_c_preproc_warn_flag in '' yes 5088do 5089 # Use a header file that comes with gcc, so configuring glibc 5090 # with a fresh cross-compiler works. 5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5092 # <limits.h> exists even on freestanding compilers. 5093 # On the NeXT, cc -E runs the code through the compiler's parser, 5094 # not just through cpp. "Syntax error" is here to catch this case. 5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5096/* end confdefs.h. */ 5097#ifdef __STDC__ 5098# include <limits.h> 5099#else 5100# include <assert.h> 5101#endif 5102 Syntax error 5103_ACEOF 5104if ac_fn_c_try_cpp "$LINENO"; then : 5105 5106else 5107 # Broken: fails on valid input. 5108continue 5109fi 5110rm -f conftest.err conftest.i conftest.$ac_ext 5111 5112 # OK, works on sane cases. Now check whether nonexistent headers 5113 # can be detected and how. 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116#include <ac_nonexistent.h> 5117_ACEOF 5118if ac_fn_c_try_cpp "$LINENO"; then : 5119 # Broken: success on invalid input. 5120continue 5121else 5122 # Passes both tests. 5123ac_preproc_ok=: 5124break 5125fi 5126rm -f conftest.err conftest.i conftest.$ac_ext 5127 5128done 5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5130rm -f conftest.i conftest.err conftest.$ac_ext 5131if $ac_preproc_ok; then : 5132 break 5133fi 5134 5135 done 5136 ac_cv_prog_CPP=$CPP 5137 5138fi 5139 CPP=$ac_cv_prog_CPP 5140else 5141 ac_cv_prog_CPP=$CPP 5142fi 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5144$as_echo "$CPP" >&6; } 5145ac_preproc_ok=false 5146for ac_c_preproc_warn_flag in '' yes 5147do 5148 # Use a header file that comes with gcc, so configuring glibc 5149 # with a fresh cross-compiler works. 5150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5151 # <limits.h> exists even on freestanding compilers. 5152 # On the NeXT, cc -E runs the code through the compiler's parser, 5153 # not just through cpp. "Syntax error" is here to catch this case. 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5155/* end confdefs.h. */ 5156#ifdef __STDC__ 5157# include <limits.h> 5158#else 5159# include <assert.h> 5160#endif 5161 Syntax error 5162_ACEOF 5163if ac_fn_c_try_cpp "$LINENO"; then : 5164 5165else 5166 # Broken: fails on valid input. 5167continue 5168fi 5169rm -f conftest.err conftest.i conftest.$ac_ext 5170 5171 # OK, works on sane cases. Now check whether nonexistent headers 5172 # can be detected and how. 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175#include <ac_nonexistent.h> 5176_ACEOF 5177if ac_fn_c_try_cpp "$LINENO"; then : 5178 # Broken: success on invalid input. 5179continue 5180else 5181 # Passes both tests. 5182ac_preproc_ok=: 5183break 5184fi 5185rm -f conftest.err conftest.i conftest.$ac_ext 5186 5187done 5188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5189rm -f conftest.i conftest.err conftest.$ac_ext 5190if $ac_preproc_ok; then : 5191 5192else 5193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5195as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5196See \`config.log' for more details" "$LINENO" 5; } 5197fi 5198 5199ac_ext=c 5200ac_cpp='$CPP $CPPFLAGS' 5201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5203ac_compiler_gnu=$ac_cv_c_compiler_gnu 5204 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5206$as_echo_n "checking whether ln -s works... " >&6; } 5207LN_S=$as_ln_s 5208if test "$LN_S" = "ln -s"; then 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5210$as_echo "yes" >&6; } 5211else 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5213$as_echo "no, using $LN_S" >&6; } 5214fi 5215 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5217$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5218set x ${MAKE-make} 5219ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5220if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5221 $as_echo_n "(cached) " >&6 5222else 5223 cat >conftest.make <<\_ACEOF 5224SHELL = /bin/sh 5225all: 5226 @echo '@@@%%%=$(MAKE)=@@@%%%' 5227_ACEOF 5228# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5229case `${MAKE-make} -f conftest.make 2>/dev/null` in 5230 *@@@%%%=?*=@@@%%%*) 5231 eval ac_cv_prog_make_${ac_make}_set=yes;; 5232 *) 5233 eval ac_cv_prog_make_${ac_make}_set=no;; 5234esac 5235rm -f conftest.make 5236fi 5237if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5239$as_echo "yes" >&6; } 5240 SET_MAKE= 5241else 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5243$as_echo "no" >&6; } 5244 SET_MAKE="MAKE=${MAKE-make}" 5245fi 5246 5247 5248 5249 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5251$as_echo_n "checking for ANSI C header files... " >&6; } 5252if ${ac_cv_header_stdc+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256/* end confdefs.h. */ 5257#include <stdlib.h> 5258#include <stdarg.h> 5259#include <string.h> 5260#include <float.h> 5261 5262int 5263main () 5264{ 5265 5266 ; 5267 return 0; 5268} 5269_ACEOF 5270if ac_fn_c_try_compile "$LINENO"; then : 5271 ac_cv_header_stdc=yes 5272else 5273 ac_cv_header_stdc=no 5274fi 5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5276 5277if test $ac_cv_header_stdc = yes; then 5278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5280/* end confdefs.h. */ 5281#include <string.h> 5282 5283_ACEOF 5284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5285 $EGREP "memchr" >/dev/null 2>&1; then : 5286 5287else 5288 ac_cv_header_stdc=no 5289fi 5290rm -f conftest* 5291 5292fi 5293 5294if test $ac_cv_header_stdc = yes; then 5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5297/* end confdefs.h. */ 5298#include <stdlib.h> 5299 5300_ACEOF 5301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5302 $EGREP "free" >/dev/null 2>&1; then : 5303 5304else 5305 ac_cv_header_stdc=no 5306fi 5307rm -f conftest* 5308 5309fi 5310 5311if test $ac_cv_header_stdc = yes; then 5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5313 if test "$cross_compiling" = yes; then : 5314 : 5315else 5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5317/* end confdefs.h. */ 5318#include <ctype.h> 5319#include <stdlib.h> 5320#if ((' ' & 0x0FF) == 0x020) 5321# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5322# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5323#else 5324# define ISLOWER(c) \ 5325 (('a' <= (c) && (c) <= 'i') \ 5326 || ('j' <= (c) && (c) <= 'r') \ 5327 || ('s' <= (c) && (c) <= 'z')) 5328# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5329#endif 5330 5331#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5332int 5333main () 5334{ 5335 int i; 5336 for (i = 0; i < 256; i++) 5337 if (XOR (islower (i), ISLOWER (i)) 5338 || toupper (i) != TOUPPER (i)) 5339 return 2; 5340 return 0; 5341} 5342_ACEOF 5343if ac_fn_c_try_run "$LINENO"; then : 5344 5345else 5346 ac_cv_header_stdc=no 5347fi 5348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5349 conftest.$ac_objext conftest.beam conftest.$ac_ext 5350fi 5351 5352fi 5353fi 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5355$as_echo "$ac_cv_header_stdc" >&6; } 5356if test $ac_cv_header_stdc = yes; then 5357 5358$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5359 5360fi 5361 5362# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5363for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5364 inttypes.h stdint.h unistd.h 5365do : 5366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5367ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5368" 5369if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5370 cat >>confdefs.h <<_ACEOF 5371#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5372_ACEOF 5373 5374fi 5375 5376done 5377 5378 5379 5380 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5381if test "x$ac_cv_header_minix_config_h" = xyes; then : 5382 MINIX=yes 5383else 5384 MINIX= 5385fi 5386 5387 5388 if test "$MINIX" = yes; then 5389 5390$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5391 5392 5393$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5394 5395 5396$as_echo "#define _MINIX 1" >>confdefs.h 5397 5398 fi 5399 5400 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5402$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5403if ${ac_cv_safe_to_define___extensions__+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405else 5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5407/* end confdefs.h. */ 5408 5409# define __EXTENSIONS__ 1 5410 $ac_includes_default 5411int 5412main () 5413{ 5414 5415 ; 5416 return 0; 5417} 5418_ACEOF 5419if ac_fn_c_try_compile "$LINENO"; then : 5420 ac_cv_safe_to_define___extensions__=yes 5421else 5422 ac_cv_safe_to_define___extensions__=no 5423fi 5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5425fi 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5427$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5428 test $ac_cv_safe_to_define___extensions__ = yes && 5429 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5430 5431 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5432 5433 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5434 5435 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5436 5437 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5438 5439 5440if test -n "$ac_tool_prefix"; then 5441 for ac_prog in ar lib "link -lib" 5442 do 5443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5444set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5446$as_echo_n "checking for $ac_word... " >&6; } 5447if ${ac_cv_prog_AR+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 if test -n "$AR"; then 5451 ac_cv_prog_AR="$AR" # Let the user override the test. 5452else 5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5454for as_dir in $PATH 5455do 5456 IFS=$as_save_IFS 5457 test -z "$as_dir" && as_dir=. 5458 for ac_exec_ext in '' $ac_executable_extensions; do 5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5460 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5462 break 2 5463 fi 5464done 5465 done 5466IFS=$as_save_IFS 5467 5468fi 5469fi 5470AR=$ac_cv_prog_AR 5471if test -n "$AR"; then 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5473$as_echo "$AR" >&6; } 5474else 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5476$as_echo "no" >&6; } 5477fi 5478 5479 5480 test -n "$AR" && break 5481 done 5482fi 5483if test -z "$AR"; then 5484 ac_ct_AR=$AR 5485 for ac_prog in ar lib "link -lib" 5486do 5487 # Extract the first word of "$ac_prog", so it can be a program name with args. 5488set dummy $ac_prog; ac_word=$2 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5490$as_echo_n "checking for $ac_word... " >&6; } 5491if ${ac_cv_prog_ac_ct_AR+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 if test -n "$ac_ct_AR"; then 5495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5496else 5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498for as_dir in $PATH 5499do 5500 IFS=$as_save_IFS 5501 test -z "$as_dir" && as_dir=. 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5504 ac_cv_prog_ac_ct_AR="$ac_prog" 5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5506 break 2 5507 fi 5508done 5509 done 5510IFS=$as_save_IFS 5511 5512fi 5513fi 5514ac_ct_AR=$ac_cv_prog_ac_ct_AR 5515if test -n "$ac_ct_AR"; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5517$as_echo "$ac_ct_AR" >&6; } 5518else 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5520$as_echo "no" >&6; } 5521fi 5522 5523 5524 test -n "$ac_ct_AR" && break 5525done 5526 5527 if test "x$ac_ct_AR" = x; then 5528 AR="false" 5529 else 5530 case $cross_compiling:$ac_tool_warned in 5531yes:) 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5534ac_tool_warned=yes ;; 5535esac 5536 AR=$ac_ct_AR 5537 fi 5538fi 5539 5540: ${AR=ar} 5541 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5543$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5544if ${am_cv_ar_interface+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 ac_ext=c 5548ac_cpp='$CPP $CPPFLAGS' 5549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5551ac_compiler_gnu=$ac_cv_c_compiler_gnu 5552 5553 am_cv_ar_interface=ar 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555/* end confdefs.h. */ 5556int some_variable = 0; 5557_ACEOF 5558if ac_fn_c_try_compile "$LINENO"; then : 5559 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5561 (eval $am_ar_try) 2>&5 5562 ac_status=$? 5563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5564 test $ac_status = 0; } 5565 if test "$ac_status" -eq 0; then 5566 am_cv_ar_interface=ar 5567 else 5568 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5570 (eval $am_ar_try) 2>&5 5571 ac_status=$? 5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5573 test $ac_status = 0; } 5574 if test "$ac_status" -eq 0; then 5575 am_cv_ar_interface=lib 5576 else 5577 am_cv_ar_interface=unknown 5578 fi 5579 fi 5580 rm -f conftest.lib libconftest.a 5581 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584 ac_ext=c 5585ac_cpp='$CPP $CPPFLAGS' 5586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5588ac_compiler_gnu=$ac_cv_c_compiler_gnu 5589 5590fi 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5592$as_echo "$am_cv_ar_interface" >&6; } 5593 5594case $am_cv_ar_interface in 5595ar) 5596 ;; 5597lib) 5598 # Microsoft lib, so override with the ar-lib wrapper script. 5599 # FIXME: It is wrong to rewrite AR. 5600 # But if we don't then we get into trouble of one sort or another. 5601 # A longer-term fix would be to have automake use am__AR in this case, 5602 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5603 # similar. 5604 AR="$am_aux_dir/ar-lib $AR" 5605 ;; 5606unknown) 5607 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5608 ;; 5609esac 5610 5611 5612 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 5614$as_echo_n "checking for library containing strerror... " >&6; } 5615if ${ac_cv_search_strerror+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 ac_func_search_save_LIBS=$LIBS 5619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5620/* end confdefs.h. */ 5621 5622/* Override any GCC internal prototype to avoid an error. 5623 Use char because int might match the return type of a GCC 5624 builtin and then its argument prototype would still apply. */ 5625#ifdef __cplusplus 5626extern "C" 5627#endif 5628char strerror (); 5629int 5630main () 5631{ 5632return strerror (); 5633 ; 5634 return 0; 5635} 5636_ACEOF 5637for ac_lib in '' cposix; do 5638 if test -z "$ac_lib"; then 5639 ac_res="none required" 5640 else 5641 ac_res=-l$ac_lib 5642 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5643 fi 5644 if ac_fn_c_try_link "$LINENO"; then : 5645 ac_cv_search_strerror=$ac_res 5646fi 5647rm -f core conftest.err conftest.$ac_objext \ 5648 conftest$ac_exeext 5649 if ${ac_cv_search_strerror+:} false; then : 5650 break 5651fi 5652done 5653if ${ac_cv_search_strerror+:} false; then : 5654 5655else 5656 ac_cv_search_strerror=no 5657fi 5658rm conftest.$ac_ext 5659LIBS=$ac_func_search_save_LIBS 5660fi 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5662$as_echo "$ac_cv_search_strerror" >&6; } 5663ac_res=$ac_cv_search_strerror 5664if test "$ac_res" != no; then : 5665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5666 5667fi 5668 5669 5670 5671case $host_os in 5672 *darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;; 5673 * ) NO_RDYNAMIC=no;; 5674esac 5675 if test x$NO_RDYNAMIC = xyes; then 5676 NO_RDYNAMIC_TRUE= 5677 NO_RDYNAMIC_FALSE='#' 5678else 5679 NO_RDYNAMIC_TRUE='#' 5680 NO_RDYNAMIC_FALSE= 5681fi 5682 5683 5684 5685 5686# Check whether --enable-static was given. 5687if test "${enable_static+set}" = set; then : 5688 enableval=$enable_static; p=${PACKAGE-default} 5689 case $enableval in 5690 yes) enable_static=yes ;; 5691 no) enable_static=no ;; 5692 *) 5693 enable_static=no 5694 # Look at the argument we got. We use all the common list separators. 5695 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 5696 for pkg in $enableval; do 5697 IFS=$lt_save_ifs 5698 if test "X$pkg" = "X$p"; then 5699 enable_static=yes 5700 fi 5701 done 5702 IFS=$lt_save_ifs 5703 ;; 5704 esac 5705else 5706 enable_static=no 5707fi 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717# Check whether --enable-shared was given. 5718if test "${enable_shared+set}" = set; then : 5719 enableval=$enable_shared; p=${PACKAGE-default} 5720 case $enableval in 5721 yes) enable_shared=yes ;; 5722 no) enable_shared=no ;; 5723 *) 5724 enable_shared=no 5725 # Look at the argument we got. We use all the common list separators. 5726 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 5727 for pkg in $enableval; do 5728 IFS=$lt_save_ifs 5729 if test "X$pkg" = "X$p"; then 5730 enable_shared=yes 5731 fi 5732 done 5733 IFS=$lt_save_ifs 5734 ;; 5735 esac 5736else 5737 enable_shared=yes 5738fi 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749enable_dlopen=yes 5750 5751 5752 5753case `pwd` in 5754 *\ * | *\ *) 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5756$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5757esac 5758 5759 5760 5761macro_version='2.4.6' 5762macro_revision='2.4.6' 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776ltmain=$ac_aux_dir/ltmain.sh 5777 5778# Backslashify metacharacters that are still active within 5779# double-quoted strings. 5780sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5781 5782# Same as above, but do not quote variable references. 5783double_quote_subst='s/\(["`\\]\)/\\\1/g' 5784 5785# Sed substitution to delay expansion of an escaped shell variable in a 5786# double_quote_subst'ed string. 5787delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5788 5789# Sed substitution to delay expansion of an escaped single quote. 5790delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5791 5792# Sed substitution to avoid accidental globbing in evaled expressions 5793no_glob_subst='s/\*/\\\*/g' 5794 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5796$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5797if ${lt_cv_path_NM+:} false; then : 5798 $as_echo_n "(cached) " >&6 5799else 5800 if test -n "$NM"; then 5801 # Let the user override the test. 5802 lt_cv_path_NM=$NM 5803else 5804 lt_nm_to_check=${ac_tool_prefix}nm 5805 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5806 lt_nm_to_check="$lt_nm_to_check nm" 5807 fi 5808 for lt_tmp_nm in $lt_nm_to_check; do 5809 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5810 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5811 IFS=$lt_save_ifs 5812 test -z "$ac_dir" && ac_dir=. 5813 tmp_nm=$ac_dir/$lt_tmp_nm 5814 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5815 # Check to see if the nm accepts a BSD-compat flag. 5816 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5817 # nm: unknown option "B" ignored 5818 # Tru64's nm complains that /dev/null is an invalid object file 5819 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5820 case $build_os in 5821 mingw*) lt_bad_file=conftest.nm/nofile ;; 5822 *) lt_bad_file=/dev/null ;; 5823 esac 5824 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5825 *$lt_bad_file* | *'Invalid file or object type'*) 5826 lt_cv_path_NM="$tmp_nm -B" 5827 break 2 5828 ;; 5829 *) 5830 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5831 */dev/null*) 5832 lt_cv_path_NM="$tmp_nm -p" 5833 break 2 5834 ;; 5835 *) 5836 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5837 continue # so that we can try to find one that supports BSD flags 5838 ;; 5839 esac 5840 ;; 5841 esac 5842 fi 5843 done 5844 IFS=$lt_save_ifs 5845 done 5846 : ${lt_cv_path_NM=no} 5847fi 5848fi 5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5850$as_echo "$lt_cv_path_NM" >&6; } 5851if test no != "$lt_cv_path_NM"; then 5852 NM=$lt_cv_path_NM 5853else 5854 # Didn't find any BSD compatible name lister, look for dumpbin. 5855 if test -n "$DUMPBIN"; then : 5856 # Let the user override the test. 5857 else 5858 if test -n "$ac_tool_prefix"; then 5859 for ac_prog in dumpbin "link -dump" 5860 do 5861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5862set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5864$as_echo_n "checking for $ac_word... " >&6; } 5865if ${ac_cv_prog_DUMPBIN+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867else 5868 if test -n "$DUMPBIN"; then 5869 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5870else 5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5872for as_dir in $PATH 5873do 5874 IFS=$as_save_IFS 5875 test -z "$as_dir" && as_dir=. 5876 for ac_exec_ext in '' $ac_executable_extensions; do 5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5878 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5880 break 2 5881 fi 5882done 5883 done 5884IFS=$as_save_IFS 5885 5886fi 5887fi 5888DUMPBIN=$ac_cv_prog_DUMPBIN 5889if test -n "$DUMPBIN"; then 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5891$as_echo "$DUMPBIN" >&6; } 5892else 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5894$as_echo "no" >&6; } 5895fi 5896 5897 5898 test -n "$DUMPBIN" && break 5899 done 5900fi 5901if test -z "$DUMPBIN"; then 5902 ac_ct_DUMPBIN=$DUMPBIN 5903 for ac_prog in dumpbin "link -dump" 5904do 5905 # Extract the first word of "$ac_prog", so it can be a program name with args. 5906set dummy $ac_prog; ac_word=$2 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908$as_echo_n "checking for $ac_word... " >&6; } 5909if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 if test -n "$ac_ct_DUMPBIN"; then 5913 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5914else 5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916for as_dir in $PATH 5917do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5922 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926done 5927 done 5928IFS=$as_save_IFS 5929 5930fi 5931fi 5932ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5933if test -n "$ac_ct_DUMPBIN"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5935$as_echo "$ac_ct_DUMPBIN" >&6; } 5936else 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938$as_echo "no" >&6; } 5939fi 5940 5941 5942 test -n "$ac_ct_DUMPBIN" && break 5943done 5944 5945 if test "x$ac_ct_DUMPBIN" = x; then 5946 DUMPBIN=":" 5947 else 5948 case $cross_compiling:$ac_tool_warned in 5949yes:) 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5952ac_tool_warned=yes ;; 5953esac 5954 DUMPBIN=$ac_ct_DUMPBIN 5955 fi 5956fi 5957 5958 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5959 *COFF*) 5960 DUMPBIN="$DUMPBIN -symbols -headers" 5961 ;; 5962 *) 5963 DUMPBIN=: 5964 ;; 5965 esac 5966 fi 5967 5968 if test : != "$DUMPBIN"; then 5969 NM=$DUMPBIN 5970 fi 5971fi 5972test -z "$NM" && NM=nm 5973 5974 5975 5976 5977 5978 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5980$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5981if ${lt_cv_nm_interface+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 lt_cv_nm_interface="BSD nm" 5985 echo "int some_variable = 0;" > conftest.$ac_ext 5986 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5987 (eval "$ac_compile" 2>conftest.err) 5988 cat conftest.err >&5 5989 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5990 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5991 cat conftest.err >&5 5992 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5993 cat conftest.out >&5 5994 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5995 lt_cv_nm_interface="MS dumpbin" 5996 fi 5997 rm -f conftest* 5998fi 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6000$as_echo "$lt_cv_nm_interface" >&6; } 6001 6002# find the maximum length of command line arguments 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6004$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6005if ${lt_cv_sys_max_cmd_len+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 i=0 6009 teststring=ABCD 6010 6011 case $build_os in 6012 msdosdjgpp*) 6013 # On DJGPP, this test can blow up pretty badly due to problems in libc 6014 # (any single argument exceeding 2000 bytes causes a buffer overrun 6015 # during glob expansion). Even if it were fixed, the result of this 6016 # check would be larger than it should be. 6017 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6018 ;; 6019 6020 gnu*) 6021 # Under GNU Hurd, this test is not required because there is 6022 # no limit to the length of command line arguments. 6023 # Libtool will interpret -1 as no limit whatsoever 6024 lt_cv_sys_max_cmd_len=-1; 6025 ;; 6026 6027 cygwin* | mingw* | cegcc*) 6028 # On Win9x/ME, this test blows up -- it succeeds, but takes 6029 # about 5 minutes as the teststring grows exponentially. 6030 # Worse, since 9x/ME are not pre-emptively multitasking, 6031 # you end up with a "frozen" computer, even though with patience 6032 # the test eventually succeeds (with a max line length of 256k). 6033 # Instead, let's just punt: use the minimum linelength reported by 6034 # all of the supported platforms: 8192 (on NT/2K/XP). 6035 lt_cv_sys_max_cmd_len=8192; 6036 ;; 6037 6038 mint*) 6039 # On MiNT this can take a long time and run out of memory. 6040 lt_cv_sys_max_cmd_len=8192; 6041 ;; 6042 6043 amigaos*) 6044 # On AmigaOS with pdksh, this test takes hours, literally. 6045 # So we just punt and use a minimum line length of 8192. 6046 lt_cv_sys_max_cmd_len=8192; 6047 ;; 6048 6049 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6050 # This has been around since 386BSD, at least. Likely further. 6051 if test -x /sbin/sysctl; then 6052 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6053 elif test -x /usr/sbin/sysctl; then 6054 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6055 else 6056 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6057 fi 6058 # And add a safety zone 6059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6061 ;; 6062 6063 interix*) 6064 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6065 lt_cv_sys_max_cmd_len=196608 6066 ;; 6067 6068 os2*) 6069 # The test takes a long time on OS/2. 6070 lt_cv_sys_max_cmd_len=8192 6071 ;; 6072 6073 osf*) 6074 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6075 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6076 # nice to cause kernel panics so lets avoid the loop below. 6077 # First set a reasonable default. 6078 lt_cv_sys_max_cmd_len=16384 6079 # 6080 if test -x /sbin/sysconfig; then 6081 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6082 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6083 esac 6084 fi 6085 ;; 6086 sco3.2v5*) 6087 lt_cv_sys_max_cmd_len=102400 6088 ;; 6089 sysv5* | sco5v6* | sysv4.2uw2*) 6090 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6091 if test -n "$kargmax"; then 6092 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6093 else 6094 lt_cv_sys_max_cmd_len=32768 6095 fi 6096 ;; 6097 *) 6098 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6099 if test -n "$lt_cv_sys_max_cmd_len" && \ 6100 test undefined != "$lt_cv_sys_max_cmd_len"; then 6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6103 else 6104 # Make teststring a little bigger before we do anything with it. 6105 # a 1K string should be a reasonable start. 6106 for i in 1 2 3 4 5 6 7 8; do 6107 teststring=$teststring$teststring 6108 done 6109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6110 # If test is not a shell built-in, we'll probably end up computing a 6111 # maximum length that is only half of the actual maximum length, but 6112 # we can't tell. 6113 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6114 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6115 test 17 != "$i" # 1/2 MB should be enough 6116 do 6117 i=`expr $i + 1` 6118 teststring=$teststring$teststring 6119 done 6120 # Only check the string length outside the loop. 6121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6122 teststring= 6123 # Add a significant safety factor because C++ compilers can tack on 6124 # massive amounts of additional arguments before passing them to the 6125 # linker. It appears as though 1/2 is a usable value. 6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6127 fi 6128 ;; 6129 esac 6130 6131fi 6132 6133if test -n "$lt_cv_sys_max_cmd_len"; then 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6135$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6136else 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6138$as_echo "none" >&6; } 6139fi 6140max_cmd_len=$lt_cv_sys_max_cmd_len 6141 6142 6143 6144 6145 6146 6147: ${CP="cp -f"} 6148: ${MV="mv -f"} 6149: ${RM="rm -f"} 6150 6151if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6152 lt_unset=unset 6153else 6154 lt_unset=false 6155fi 6156 6157 6158 6159 6160 6161# test EBCDIC or ASCII 6162case `echo X|tr X '\101'` in 6163 A) # ASCII based system 6164 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6165 lt_SP2NL='tr \040 \012' 6166 lt_NL2SP='tr \015\012 \040\040' 6167 ;; 6168 *) # EBCDIC based system 6169 lt_SP2NL='tr \100 \n' 6170 lt_NL2SP='tr \r\n \100\100' 6171 ;; 6172esac 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6183$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6184if ${lt_cv_to_host_file_cmd+:} false; then : 6185 $as_echo_n "(cached) " >&6 6186else 6187 case $host in 6188 *-*-mingw* ) 6189 case $build in 6190 *-*-mingw* ) # actually msys 6191 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6192 ;; 6193 *-*-cygwin* ) 6194 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6195 ;; 6196 * ) # otherwise, assume *nix 6197 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6198 ;; 6199 esac 6200 ;; 6201 *-*-cygwin* ) 6202 case $build in 6203 *-*-mingw* ) # actually msys 6204 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6205 ;; 6206 *-*-cygwin* ) 6207 lt_cv_to_host_file_cmd=func_convert_file_noop 6208 ;; 6209 * ) # otherwise, assume *nix 6210 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6211 ;; 6212 esac 6213 ;; 6214 * ) # unhandled hosts (and "normal" native builds) 6215 lt_cv_to_host_file_cmd=func_convert_file_noop 6216 ;; 6217esac 6218 6219fi 6220 6221to_host_file_cmd=$lt_cv_to_host_file_cmd 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6223$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6224 6225 6226 6227 6228 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6230$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6231if ${lt_cv_to_tool_file_cmd+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 #assume ordinary cross tools, or native build. 6235lt_cv_to_tool_file_cmd=func_convert_file_noop 6236case $host in 6237 *-*-mingw* ) 6238 case $build in 6239 *-*-mingw* ) # actually msys 6240 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6241 ;; 6242 esac 6243 ;; 6244esac 6245 6246fi 6247 6248to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6250$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6251 6252 6253 6254 6255 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6257$as_echo_n "checking for $LD option to reload object files... " >&6; } 6258if ${lt_cv_ld_reload_flag+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 lt_cv_ld_reload_flag='-r' 6262fi 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6264$as_echo "$lt_cv_ld_reload_flag" >&6; } 6265reload_flag=$lt_cv_ld_reload_flag 6266case $reload_flag in 6267"" | " "*) ;; 6268*) reload_flag=" $reload_flag" ;; 6269esac 6270reload_cmds='$LD$reload_flag -o $output$reload_objs' 6271case $host_os in 6272 cygwin* | mingw* | pw32* | cegcc*) 6273 if test yes != "$GCC"; then 6274 reload_cmds=false 6275 fi 6276 ;; 6277 darwin*) 6278 if test yes = "$GCC"; then 6279 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6280 else 6281 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6282 fi 6283 ;; 6284esac 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294if test -n "$ac_tool_prefix"; then 6295 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6296set dummy ${ac_tool_prefix}objdump; ac_word=$2 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6298$as_echo_n "checking for $ac_word... " >&6; } 6299if ${ac_cv_prog_OBJDUMP+:} false; then : 6300 $as_echo_n "(cached) " >&6 6301else 6302 if test -n "$OBJDUMP"; then 6303 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6304else 6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6306for as_dir in $PATH 6307do 6308 IFS=$as_save_IFS 6309 test -z "$as_dir" && as_dir=. 6310 for ac_exec_ext in '' $ac_executable_extensions; do 6311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6312 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6314 break 2 6315 fi 6316done 6317 done 6318IFS=$as_save_IFS 6319 6320fi 6321fi 6322OBJDUMP=$ac_cv_prog_OBJDUMP 6323if test -n "$OBJDUMP"; then 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6325$as_echo "$OBJDUMP" >&6; } 6326else 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6328$as_echo "no" >&6; } 6329fi 6330 6331 6332fi 6333if test -z "$ac_cv_prog_OBJDUMP"; then 6334 ac_ct_OBJDUMP=$OBJDUMP 6335 # Extract the first word of "objdump", so it can be a program name with args. 6336set dummy objdump; ac_word=$2 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6338$as_echo_n "checking for $ac_word... " >&6; } 6339if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 if test -n "$ac_ct_OBJDUMP"; then 6343 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6344else 6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6346for as_dir in $PATH 6347do 6348 IFS=$as_save_IFS 6349 test -z "$as_dir" && as_dir=. 6350 for ac_exec_ext in '' $ac_executable_extensions; do 6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6352 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6354 break 2 6355 fi 6356done 6357 done 6358IFS=$as_save_IFS 6359 6360fi 6361fi 6362ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6363if test -n "$ac_ct_OBJDUMP"; then 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6365$as_echo "$ac_ct_OBJDUMP" >&6; } 6366else 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6368$as_echo "no" >&6; } 6369fi 6370 6371 if test "x$ac_ct_OBJDUMP" = x; then 6372 OBJDUMP="false" 6373 else 6374 case $cross_compiling:$ac_tool_warned in 6375yes:) 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6378ac_tool_warned=yes ;; 6379esac 6380 OBJDUMP=$ac_ct_OBJDUMP 6381 fi 6382else 6383 OBJDUMP="$ac_cv_prog_OBJDUMP" 6384fi 6385 6386test -z "$OBJDUMP" && OBJDUMP=objdump 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6397$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6398if ${lt_cv_deplibs_check_method+:} false; then : 6399 $as_echo_n "(cached) " >&6 6400else 6401 lt_cv_file_magic_cmd='$MAGIC_CMD' 6402lt_cv_file_magic_test_file= 6403lt_cv_deplibs_check_method='unknown' 6404# Need to set the preceding variable on all platforms that support 6405# interlibrary dependencies. 6406# 'none' -- dependencies not supported. 6407# 'unknown' -- same as none, but documents that we really don't know. 6408# 'pass_all' -- all dependencies passed with no checks. 6409# 'test_compile' -- check by making test program. 6410# 'file_magic [[regex]]' -- check by looking for files in library path 6411# that responds to the $file_magic_cmd with a given extended regex. 6412# If you have 'file' or equivalent on your system and you're not sure 6413# whether 'pass_all' will *always* work, you probably want this one. 6414 6415case $host_os in 6416aix[4-9]*) 6417 lt_cv_deplibs_check_method=pass_all 6418 ;; 6419 6420beos*) 6421 lt_cv_deplibs_check_method=pass_all 6422 ;; 6423 6424bsdi[45]*) 6425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6426 lt_cv_file_magic_cmd='/usr/bin/file -L' 6427 lt_cv_file_magic_test_file=/shlib/libc.so 6428 ;; 6429 6430cygwin*) 6431 # func_win32_libid is a shell function defined in ltmain.sh 6432 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6433 lt_cv_file_magic_cmd='func_win32_libid' 6434 ;; 6435 6436mingw* | pw32*) 6437 # Base MSYS/MinGW do not provide the 'file' command needed by 6438 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6439 # unless we find 'file', for example because we are cross-compiling. 6440 if ( file / ) >/dev/null 2>&1; then 6441 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6442 lt_cv_file_magic_cmd='func_win32_libid' 6443 else 6444 # Keep this pattern in sync with the one in func_win32_libid. 6445 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6446 lt_cv_file_magic_cmd='$OBJDUMP -f' 6447 fi 6448 ;; 6449 6450cegcc*) 6451 # use the weaker test based on 'objdump'. See mingw*. 6452 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6453 lt_cv_file_magic_cmd='$OBJDUMP -f' 6454 ;; 6455 6456darwin* | rhapsody*) 6457 lt_cv_deplibs_check_method=pass_all 6458 ;; 6459 6460freebsd* | dragonfly*) 6461 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6462 case $host_cpu in 6463 i*86 ) 6464 # Not sure whether the presence of OpenBSD here was a mistake. 6465 # Let's accept both of them until this is cleared up. 6466 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6467 lt_cv_file_magic_cmd=/usr/bin/file 6468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6469 ;; 6470 esac 6471 else 6472 lt_cv_deplibs_check_method=pass_all 6473 fi 6474 ;; 6475 6476haiku*) 6477 lt_cv_deplibs_check_method=pass_all 6478 ;; 6479 6480hpux10.20* | hpux11*) 6481 lt_cv_file_magic_cmd=/usr/bin/file 6482 case $host_cpu in 6483 ia64*) 6484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6486 ;; 6487 hppa*64*) 6488 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]' 6489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6490 ;; 6491 *) 6492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6493 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6494 ;; 6495 esac 6496 ;; 6497 6498interix[3-9]*) 6499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6501 ;; 6502 6503irix5* | irix6* | nonstopux*) 6504 case $LD in 6505 *-32|*"-32 ") libmagic=32-bit;; 6506 *-n32|*"-n32 ") libmagic=N32;; 6507 *-64|*"-64 ") libmagic=64-bit;; 6508 *) libmagic=never-match;; 6509 esac 6510 lt_cv_deplibs_check_method=pass_all 6511 ;; 6512 6513# This must be glibc/ELF. 6514linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6515 lt_cv_deplibs_check_method=pass_all 6516 ;; 6517 6518netbsd*) 6519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6521 else 6522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6523 fi 6524 ;; 6525 6526newos6*) 6527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6528 lt_cv_file_magic_cmd=/usr/bin/file 6529 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6530 ;; 6531 6532*nto* | *qnx*) 6533 lt_cv_deplibs_check_method=pass_all 6534 ;; 6535 6536openbsd* | bitrig*) 6537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6539 else 6540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6541 fi 6542 ;; 6543 6544osf3* | osf4* | osf5*) 6545 lt_cv_deplibs_check_method=pass_all 6546 ;; 6547 6548rdos*) 6549 lt_cv_deplibs_check_method=pass_all 6550 ;; 6551 6552solaris*) 6553 lt_cv_deplibs_check_method=pass_all 6554 ;; 6555 6556sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6557 lt_cv_deplibs_check_method=pass_all 6558 ;; 6559 6560sysv4 | sysv4.3*) 6561 case $host_vendor in 6562 motorola) 6563 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]' 6564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6565 ;; 6566 ncr) 6567 lt_cv_deplibs_check_method=pass_all 6568 ;; 6569 sequent) 6570 lt_cv_file_magic_cmd='/bin/file' 6571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6572 ;; 6573 sni) 6574 lt_cv_file_magic_cmd='/bin/file' 6575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6576 lt_cv_file_magic_test_file=/lib/libc.so 6577 ;; 6578 siemens) 6579 lt_cv_deplibs_check_method=pass_all 6580 ;; 6581 pc) 6582 lt_cv_deplibs_check_method=pass_all 6583 ;; 6584 esac 6585 ;; 6586 6587tpf*) 6588 lt_cv_deplibs_check_method=pass_all 6589 ;; 6590os2*) 6591 lt_cv_deplibs_check_method=pass_all 6592 ;; 6593esac 6594 6595fi 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6597$as_echo "$lt_cv_deplibs_check_method" >&6; } 6598 6599file_magic_glob= 6600want_nocaseglob=no 6601if test "$build" = "$host"; then 6602 case $host_os in 6603 mingw* | pw32*) 6604 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6605 want_nocaseglob=yes 6606 else 6607 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6608 fi 6609 ;; 6610 esac 6611fi 6612 6613file_magic_cmd=$lt_cv_file_magic_cmd 6614deplibs_check_method=$lt_cv_deplibs_check_method 6615test -z "$deplibs_check_method" && deplibs_check_method=unknown 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638if test -n "$ac_tool_prefix"; then 6639 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6640set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6642$as_echo_n "checking for $ac_word... " >&6; } 6643if ${ac_cv_prog_DLLTOOL+:} false; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 if test -n "$DLLTOOL"; then 6647 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6648else 6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6650for as_dir in $PATH 6651do 6652 IFS=$as_save_IFS 6653 test -z "$as_dir" && as_dir=. 6654 for ac_exec_ext in '' $ac_executable_extensions; do 6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6656 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6658 break 2 6659 fi 6660done 6661 done 6662IFS=$as_save_IFS 6663 6664fi 6665fi 6666DLLTOOL=$ac_cv_prog_DLLTOOL 6667if test -n "$DLLTOOL"; then 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6669$as_echo "$DLLTOOL" >&6; } 6670else 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6672$as_echo "no" >&6; } 6673fi 6674 6675 6676fi 6677if test -z "$ac_cv_prog_DLLTOOL"; then 6678 ac_ct_DLLTOOL=$DLLTOOL 6679 # Extract the first word of "dlltool", so it can be a program name with args. 6680set dummy dlltool; ac_word=$2 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6682$as_echo_n "checking for $ac_word... " >&6; } 6683if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6684 $as_echo_n "(cached) " >&6 6685else 6686 if test -n "$ac_ct_DLLTOOL"; then 6687 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6688else 6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6690for as_dir in $PATH 6691do 6692 IFS=$as_save_IFS 6693 test -z "$as_dir" && as_dir=. 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6696 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6698 break 2 6699 fi 6700done 6701 done 6702IFS=$as_save_IFS 6703 6704fi 6705fi 6706ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6707if test -n "$ac_ct_DLLTOOL"; then 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6709$as_echo "$ac_ct_DLLTOOL" >&6; } 6710else 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6712$as_echo "no" >&6; } 6713fi 6714 6715 if test "x$ac_ct_DLLTOOL" = x; then 6716 DLLTOOL="false" 6717 else 6718 case $cross_compiling:$ac_tool_warned in 6719yes:) 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6722ac_tool_warned=yes ;; 6723esac 6724 DLLTOOL=$ac_ct_DLLTOOL 6725 fi 6726else 6727 DLLTOOL="$ac_cv_prog_DLLTOOL" 6728fi 6729 6730test -z "$DLLTOOL" && DLLTOOL=dlltool 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6742$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6743if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 lt_cv_sharedlib_from_linklib_cmd='unknown' 6747 6748case $host_os in 6749cygwin* | mingw* | pw32* | cegcc*) 6750 # two different shell functions defined in ltmain.sh; 6751 # decide which one to use based on capabilities of $DLLTOOL 6752 case `$DLLTOOL --help 2>&1` in 6753 *--identify-strict*) 6754 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6755 ;; 6756 *) 6757 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6758 ;; 6759 esac 6760 ;; 6761*) 6762 # fallback: assume linklib IS sharedlib 6763 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6764 ;; 6765esac 6766 6767fi 6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6769$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6770sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6771test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6772 6773 6774 6775 6776 6777 6778 6779if test -n "$ac_tool_prefix"; then 6780 for ac_prog in ar 6781 do 6782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6783set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6785$as_echo_n "checking for $ac_word... " >&6; } 6786if ${ac_cv_prog_AR+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 if test -n "$AR"; then 6790 ac_cv_prog_AR="$AR" # Let the user override the test. 6791else 6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793for as_dir in $PATH 6794do 6795 IFS=$as_save_IFS 6796 test -z "$as_dir" && as_dir=. 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6799 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803done 6804 done 6805IFS=$as_save_IFS 6806 6807fi 6808fi 6809AR=$ac_cv_prog_AR 6810if test -n "$AR"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6812$as_echo "$AR" >&6; } 6813else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815$as_echo "no" >&6; } 6816fi 6817 6818 6819 test -n "$AR" && break 6820 done 6821fi 6822if test -z "$AR"; then 6823 ac_ct_AR=$AR 6824 for ac_prog in ar 6825do 6826 # Extract the first word of "$ac_prog", so it can be a program name with args. 6827set dummy $ac_prog; ac_word=$2 6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6829$as_echo_n "checking for $ac_word... " >&6; } 6830if ${ac_cv_prog_ac_ct_AR+:} false; then : 6831 $as_echo_n "(cached) " >&6 6832else 6833 if test -n "$ac_ct_AR"; then 6834 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6835else 6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6837for as_dir in $PATH 6838do 6839 IFS=$as_save_IFS 6840 test -z "$as_dir" && as_dir=. 6841 for ac_exec_ext in '' $ac_executable_extensions; do 6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6843 ac_cv_prog_ac_ct_AR="$ac_prog" 6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6845 break 2 6846 fi 6847done 6848 done 6849IFS=$as_save_IFS 6850 6851fi 6852fi 6853ac_ct_AR=$ac_cv_prog_ac_ct_AR 6854if test -n "$ac_ct_AR"; then 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6856$as_echo "$ac_ct_AR" >&6; } 6857else 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6859$as_echo "no" >&6; } 6860fi 6861 6862 6863 test -n "$ac_ct_AR" && break 6864done 6865 6866 if test "x$ac_ct_AR" = x; then 6867 AR="false" 6868 else 6869 case $cross_compiling:$ac_tool_warned in 6870yes:) 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6873ac_tool_warned=yes ;; 6874esac 6875 AR=$ac_ct_AR 6876 fi 6877fi 6878 6879: ${AR=ar} 6880: ${AR_FLAGS=cru} 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6893$as_echo_n "checking for archiver @FILE support... " >&6; } 6894if ${lt_cv_ar_at_file+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 lt_cv_ar_at_file=no 6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6899/* end confdefs.h. */ 6900 6901int 6902main () 6903{ 6904 6905 ; 6906 return 0; 6907} 6908_ACEOF 6909if ac_fn_c_try_compile "$LINENO"; then : 6910 echo conftest.$ac_objext > conftest.lst 6911 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6913 (eval $lt_ar_try) 2>&5 6914 ac_status=$? 6915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6916 test $ac_status = 0; } 6917 if test 0 -eq "$ac_status"; then 6918 # Ensure the archiver fails upon bogus file names. 6919 rm -f conftest.$ac_objext libconftest.a 6920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6921 (eval $lt_ar_try) 2>&5 6922 ac_status=$? 6923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6924 test $ac_status = 0; } 6925 if test 0 -ne "$ac_status"; then 6926 lt_cv_ar_at_file=@ 6927 fi 6928 fi 6929 rm -f conftest.* libconftest.a 6930 6931fi 6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6933 6934fi 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6936$as_echo "$lt_cv_ar_at_file" >&6; } 6937 6938if test no = "$lt_cv_ar_at_file"; then 6939 archiver_list_spec= 6940else 6941 archiver_list_spec=$lt_cv_ar_at_file 6942fi 6943 6944 6945 6946 6947 6948 6949 6950if test -n "$ac_tool_prefix"; then 6951 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6952set dummy ${ac_tool_prefix}strip; ac_word=$2 6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6954$as_echo_n "checking for $ac_word... " >&6; } 6955if ${ac_cv_prog_STRIP+:} false; then : 6956 $as_echo_n "(cached) " >&6 6957else 6958 if test -n "$STRIP"; then 6959 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6960else 6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6962for as_dir in $PATH 6963do 6964 IFS=$as_save_IFS 6965 test -z "$as_dir" && as_dir=. 6966 for ac_exec_ext in '' $ac_executable_extensions; do 6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6968 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6970 break 2 6971 fi 6972done 6973 done 6974IFS=$as_save_IFS 6975 6976fi 6977fi 6978STRIP=$ac_cv_prog_STRIP 6979if test -n "$STRIP"; then 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6981$as_echo "$STRIP" >&6; } 6982else 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6984$as_echo "no" >&6; } 6985fi 6986 6987 6988fi 6989if test -z "$ac_cv_prog_STRIP"; then 6990 ac_ct_STRIP=$STRIP 6991 # Extract the first word of "strip", so it can be a program name with args. 6992set dummy strip; ac_word=$2 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6994$as_echo_n "checking for $ac_word... " >&6; } 6995if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 if test -n "$ac_ct_STRIP"; then 6999 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7000else 7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7002for as_dir in $PATH 7003do 7004 IFS=$as_save_IFS 7005 test -z "$as_dir" && as_dir=. 7006 for ac_exec_ext in '' $ac_executable_extensions; do 7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7008 ac_cv_prog_ac_ct_STRIP="strip" 7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7010 break 2 7011 fi 7012done 7013 done 7014IFS=$as_save_IFS 7015 7016fi 7017fi 7018ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7019if test -n "$ac_ct_STRIP"; then 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7021$as_echo "$ac_ct_STRIP" >&6; } 7022else 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7024$as_echo "no" >&6; } 7025fi 7026 7027 if test "x$ac_ct_STRIP" = x; then 7028 STRIP=":" 7029 else 7030 case $cross_compiling:$ac_tool_warned in 7031yes:) 7032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7034ac_tool_warned=yes ;; 7035esac 7036 STRIP=$ac_ct_STRIP 7037 fi 7038else 7039 STRIP="$ac_cv_prog_STRIP" 7040fi 7041 7042test -z "$STRIP" && STRIP=: 7043 7044 7045 7046 7047 7048 7049if test -n "$ac_tool_prefix"; then 7050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7051set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7053$as_echo_n "checking for $ac_word... " >&6; } 7054if ${ac_cv_prog_RANLIB+:} false; then : 7055 $as_echo_n "(cached) " >&6 7056else 7057 if test -n "$RANLIB"; then 7058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7059else 7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7061for as_dir in $PATH 7062do 7063 IFS=$as_save_IFS 7064 test -z "$as_dir" && as_dir=. 7065 for ac_exec_ext in '' $ac_executable_extensions; do 7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7069 break 2 7070 fi 7071done 7072 done 7073IFS=$as_save_IFS 7074 7075fi 7076fi 7077RANLIB=$ac_cv_prog_RANLIB 7078if test -n "$RANLIB"; then 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7080$as_echo "$RANLIB" >&6; } 7081else 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7083$as_echo "no" >&6; } 7084fi 7085 7086 7087fi 7088if test -z "$ac_cv_prog_RANLIB"; then 7089 ac_ct_RANLIB=$RANLIB 7090 # Extract the first word of "ranlib", so it can be a program name with args. 7091set dummy ranlib; ac_word=$2 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7093$as_echo_n "checking for $ac_word... " >&6; } 7094if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 if test -n "$ac_ct_RANLIB"; then 7098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7099else 7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7101for as_dir in $PATH 7102do 7103 IFS=$as_save_IFS 7104 test -z "$as_dir" && as_dir=. 7105 for ac_exec_ext in '' $ac_executable_extensions; do 7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7107 ac_cv_prog_ac_ct_RANLIB="ranlib" 7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7109 break 2 7110 fi 7111done 7112 done 7113IFS=$as_save_IFS 7114 7115fi 7116fi 7117ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7118if test -n "$ac_ct_RANLIB"; then 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7120$as_echo "$ac_ct_RANLIB" >&6; } 7121else 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7123$as_echo "no" >&6; } 7124fi 7125 7126 if test "x$ac_ct_RANLIB" = x; then 7127 RANLIB=":" 7128 else 7129 case $cross_compiling:$ac_tool_warned in 7130yes:) 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7133ac_tool_warned=yes ;; 7134esac 7135 RANLIB=$ac_ct_RANLIB 7136 fi 7137else 7138 RANLIB="$ac_cv_prog_RANLIB" 7139fi 7140 7141test -z "$RANLIB" && RANLIB=: 7142 7143 7144 7145 7146 7147 7148# Determine commands to create old-style static archives. 7149old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7150old_postinstall_cmds='chmod 644 $oldlib' 7151old_postuninstall_cmds= 7152 7153if test -n "$RANLIB"; then 7154 case $host_os in 7155 bitrig* | openbsd*) 7156 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7157 ;; 7158 *) 7159 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7160 ;; 7161 esac 7162 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7163fi 7164 7165case $host_os in 7166 darwin*) 7167 lock_old_archive_extraction=yes ;; 7168 *) 7169 lock_old_archive_extraction=no ;; 7170esac 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210# If no C compiler was specified, use CC. 7211LTCC=${LTCC-"$CC"} 7212 7213# If no C compiler flags were specified, use CFLAGS. 7214LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7215 7216# Allow CC to be a program name with arguments. 7217compiler=$CC 7218 7219 7220# Check for command to grab the raw symbol name followed by C symbol from nm. 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7222$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7223if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 7227# These are sane defaults that work on at least a few old systems. 7228# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7229 7230# Character class describing NM global symbol codes. 7231symcode='[BCDEGRST]' 7232 7233# Regexp to match symbols that can be accessed directly from C. 7234sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7235 7236# Define system-specific variables. 7237case $host_os in 7238aix*) 7239 symcode='[BCDT]' 7240 ;; 7241cygwin* | mingw* | pw32* | cegcc*) 7242 symcode='[ABCDGISTW]' 7243 ;; 7244hpux*) 7245 if test ia64 = "$host_cpu"; then 7246 symcode='[ABCDEGRST]' 7247 fi 7248 ;; 7249irix* | nonstopux*) 7250 symcode='[BCDEGRST]' 7251 ;; 7252osf*) 7253 symcode='[BCDEGQRST]' 7254 ;; 7255solaris*) 7256 symcode='[BDRT]' 7257 ;; 7258sco3.2v5*) 7259 symcode='[DT]' 7260 ;; 7261sysv4.2uw2*) 7262 symcode='[DT]' 7263 ;; 7264sysv5* | sco5v6* | unixware* | OpenUNIX*) 7265 symcode='[ABDT]' 7266 ;; 7267sysv4) 7268 symcode='[DFNSTU]' 7269 ;; 7270esac 7271 7272# If we're using GNU nm, then use its standard symbol codes. 7273case `$NM -V 2>&1` in 7274*GNU* | *'with BFD'*) 7275 symcode='[ABCDGIRSTW]' ;; 7276esac 7277 7278if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7279 # Gets list of data symbols to import. 7280 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7281 # Adjust the below global symbol transforms to fixup imported variables. 7282 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7283 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7284 lt_c_name_lib_hook="\ 7285 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7286 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7287else 7288 # Disable hooks by default. 7289 lt_cv_sys_global_symbol_to_import= 7290 lt_cdecl_hook= 7291 lt_c_name_hook= 7292 lt_c_name_lib_hook= 7293fi 7294 7295# Transform an extracted symbol line into a proper C declaration. 7296# Some systems (esp. on ia64) link data and code symbols differently, 7297# so use this general approach. 7298lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7299$lt_cdecl_hook\ 7300" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7301" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7302 7303# Transform an extracted symbol line into symbol name and symbol address 7304lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7305$lt_c_name_hook\ 7306" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7307" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7308 7309# Transform an extracted symbol line into symbol name with lib prefix and 7310# symbol address. 7311lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7312$lt_c_name_lib_hook\ 7313" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7314" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7315" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7316 7317# Handle CRLF in mingw tool chain 7318opt_cr= 7319case $build_os in 7320mingw*) 7321 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7322 ;; 7323esac 7324 7325# Try without a prefix underscore, then with it. 7326for ac_symprfx in "" "_"; do 7327 7328 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7329 symxfrm="\\1 $ac_symprfx\\2 \\2" 7330 7331 # Write the raw and C identifiers. 7332 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7333 # Fake it for dumpbin and say T for any non-static function, 7334 # D for any global variable and I for any imported variable. 7335 # Also find C++ and __fastcall symbols from MSVC++, 7336 # which start with @ or ?. 7337 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7338" {last_section=section; section=\$ 3};"\ 7339" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7340" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7341" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7342" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7343" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7344" \$ 0!~/External *\|/{next};"\ 7345" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7346" {if(hide[section]) next};"\ 7347" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7348" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7349" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7350" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7351" ' prfx=^$ac_symprfx" 7352 else 7353 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7354 fi 7355 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7356 7357 # Check to see that the pipe works correctly. 7358 pipe_works=no 7359 7360 rm -f conftest* 7361 cat > conftest.$ac_ext <<_LT_EOF 7362#ifdef __cplusplus 7363extern "C" { 7364#endif 7365char nm_test_var; 7366void nm_test_func(void); 7367void nm_test_func(void){} 7368#ifdef __cplusplus 7369} 7370#endif 7371int main(){nm_test_var='a';nm_test_func();return(0);} 7372_LT_EOF 7373 7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7375 (eval $ac_compile) 2>&5 7376 ac_status=$? 7377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7378 test $ac_status = 0; }; then 7379 # Now try to grab the symbols. 7380 nlist=conftest.nm 7381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7382 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7383 ac_status=$? 7384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7385 test $ac_status = 0; } && test -s "$nlist"; then 7386 # Try sorting and uniquifying the output. 7387 if sort "$nlist" | uniq > "$nlist"T; then 7388 mv -f "$nlist"T "$nlist" 7389 else 7390 rm -f "$nlist"T 7391 fi 7392 7393 # Make sure that we snagged all the symbols we need. 7394 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7395 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7396 cat <<_LT_EOF > conftest.$ac_ext 7397/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7398#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7399/* DATA imports from DLLs on WIN32 can't be const, because runtime 7400 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7401# define LT_DLSYM_CONST 7402#elif defined __osf__ 7403/* This system does not cope well with relocations in const data. */ 7404# define LT_DLSYM_CONST 7405#else 7406# define LT_DLSYM_CONST const 7407#endif 7408 7409#ifdef __cplusplus 7410extern "C" { 7411#endif 7412 7413_LT_EOF 7414 # Now generate the symbol file. 7415 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7416 7417 cat <<_LT_EOF >> conftest.$ac_ext 7418 7419/* The mapping between symbol names and symbols. */ 7420LT_DLSYM_CONST struct { 7421 const char *name; 7422 void *address; 7423} 7424lt__PROGRAM__LTX_preloaded_symbols[] = 7425{ 7426 { "@PROGRAM@", (void *) 0 }, 7427_LT_EOF 7428 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7429 cat <<\_LT_EOF >> conftest.$ac_ext 7430 {0, (void *) 0} 7431}; 7432 7433/* This works around a problem in FreeBSD linker */ 7434#ifdef FREEBSD_WORKAROUND 7435static const void *lt_preloaded_setup() { 7436 return lt__PROGRAM__LTX_preloaded_symbols; 7437} 7438#endif 7439 7440#ifdef __cplusplus 7441} 7442#endif 7443_LT_EOF 7444 # Now try linking the two files. 7445 mv conftest.$ac_objext conftstm.$ac_objext 7446 lt_globsym_save_LIBS=$LIBS 7447 lt_globsym_save_CFLAGS=$CFLAGS 7448 LIBS=conftstm.$ac_objext 7449 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7451 (eval $ac_link) 2>&5 7452 ac_status=$? 7453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7454 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7455 pipe_works=yes 7456 fi 7457 LIBS=$lt_globsym_save_LIBS 7458 CFLAGS=$lt_globsym_save_CFLAGS 7459 else 7460 echo "cannot find nm_test_func in $nlist" >&5 7461 fi 7462 else 7463 echo "cannot find nm_test_var in $nlist" >&5 7464 fi 7465 else 7466 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7467 fi 7468 else 7469 echo "$progname: failed program was:" >&5 7470 cat conftest.$ac_ext >&5 7471 fi 7472 rm -rf conftest* conftst* 7473 7474 # Do not use the global_symbol_pipe unless it works. 7475 if test yes = "$pipe_works"; then 7476 break 7477 else 7478 lt_cv_sys_global_symbol_pipe= 7479 fi 7480done 7481 7482fi 7483 7484if test -z "$lt_cv_sys_global_symbol_pipe"; then 7485 lt_cv_sys_global_symbol_to_cdecl= 7486fi 7487if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7489$as_echo "failed" >&6; } 7490else 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7492$as_echo "ok" >&6; } 7493fi 7494 7495# Response file support. 7496if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7497 nm_file_list_spec='@' 7498elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7499 nm_file_list_spec='@' 7500fi 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7539$as_echo_n "checking for sysroot... " >&6; } 7540 7541# Check whether --with-sysroot was given. 7542if test "${with_sysroot+set}" = set; then : 7543 withval=$with_sysroot; 7544else 7545 with_sysroot=no 7546fi 7547 7548 7549lt_sysroot= 7550case $with_sysroot in #( 7551 yes) 7552 if test yes = "$GCC"; then 7553 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7554 fi 7555 ;; #( 7556 /*) 7557 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7558 ;; #( 7559 no|'') 7560 ;; #( 7561 *) 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7563$as_echo "$with_sysroot" >&6; } 7564 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7565 ;; 7566esac 7567 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7569$as_echo "${lt_sysroot:-no}" >&6; } 7570 7571 7572 7573 7574 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7576$as_echo_n "checking for a working dd... " >&6; } 7577if ${ac_cv_path_lt_DD+:} false; then : 7578 $as_echo_n "(cached) " >&6 7579else 7580 printf 0123456789abcdef0123456789abcdef >conftest.i 7581cat conftest.i conftest.i >conftest2.i 7582: ${lt_DD:=$DD} 7583if test -z "$lt_DD"; then 7584 ac_path_lt_DD_found=false 7585 # Loop through the user's path and test for each of PROGNAME-LIST 7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7587for as_dir in $PATH 7588do 7589 IFS=$as_save_IFS 7590 test -z "$as_dir" && as_dir=. 7591 for ac_prog in dd; do 7592 for ac_exec_ext in '' $ac_executable_extensions; do 7593 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7594 as_fn_executable_p "$ac_path_lt_DD" || continue 7595if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7596 cmp -s conftest.i conftest.out \ 7597 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7598fi 7599 $ac_path_lt_DD_found && break 3 7600 done 7601 done 7602 done 7603IFS=$as_save_IFS 7604 if test -z "$ac_cv_path_lt_DD"; then 7605 : 7606 fi 7607else 7608 ac_cv_path_lt_DD=$lt_DD 7609fi 7610 7611rm -f conftest.i conftest2.i conftest.out 7612fi 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7614$as_echo "$ac_cv_path_lt_DD" >&6; } 7615 7616 7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7618$as_echo_n "checking how to truncate binary pipes... " >&6; } 7619if ${lt_cv_truncate_bin+:} false; then : 7620 $as_echo_n "(cached) " >&6 7621else 7622 printf 0123456789abcdef0123456789abcdef >conftest.i 7623cat conftest.i conftest.i >conftest2.i 7624lt_cv_truncate_bin= 7625if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7626 cmp -s conftest.i conftest.out \ 7627 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7628fi 7629rm -f conftest.i conftest2.i conftest.out 7630test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7631fi 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7633$as_echo "$lt_cv_truncate_bin" >&6; } 7634 7635 7636 7637 7638 7639 7640 7641# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7642func_cc_basename () 7643{ 7644 for cc_temp in $*""; do 7645 case $cc_temp in 7646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7648 \-*) ;; 7649 *) break;; 7650 esac 7651 done 7652 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7653} 7654 7655# Check whether --enable-libtool-lock was given. 7656if test "${enable_libtool_lock+set}" = set; then : 7657 enableval=$enable_libtool_lock; 7658fi 7659 7660test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7661 7662# Some flags need to be propagated to the compiler or linker for good 7663# libtool support. 7664case $host in 7665ia64-*-hpux*) 7666 # Find out what ABI is being produced by ac_compile, and set mode 7667 # options accordingly. 7668 echo 'int i;' > conftest.$ac_ext 7669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7670 (eval $ac_compile) 2>&5 7671 ac_status=$? 7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7673 test $ac_status = 0; }; then 7674 case `/usr/bin/file conftest.$ac_objext` in 7675 *ELF-32*) 7676 HPUX_IA64_MODE=32 7677 ;; 7678 *ELF-64*) 7679 HPUX_IA64_MODE=64 7680 ;; 7681 esac 7682 fi 7683 rm -rf conftest* 7684 ;; 7685*-*-irix6*) 7686 # Find out what ABI is being produced by ac_compile, and set linker 7687 # options accordingly. 7688 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7690 (eval $ac_compile) 2>&5 7691 ac_status=$? 7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7693 test $ac_status = 0; }; then 7694 if test yes = "$lt_cv_prog_gnu_ld"; then 7695 case `/usr/bin/file conftest.$ac_objext` in 7696 *32-bit*) 7697 LD="${LD-ld} -melf32bsmip" 7698 ;; 7699 *N32*) 7700 LD="${LD-ld} -melf32bmipn32" 7701 ;; 7702 *64-bit*) 7703 LD="${LD-ld} -melf64bmip" 7704 ;; 7705 esac 7706 else 7707 case `/usr/bin/file conftest.$ac_objext` in 7708 *32-bit*) 7709 LD="${LD-ld} -32" 7710 ;; 7711 *N32*) 7712 LD="${LD-ld} -n32" 7713 ;; 7714 *64-bit*) 7715 LD="${LD-ld} -64" 7716 ;; 7717 esac 7718 fi 7719 fi 7720 rm -rf conftest* 7721 ;; 7722 7723mips64*-*linux*) 7724 # Find out what ABI is being produced by ac_compile, and set linker 7725 # options accordingly. 7726 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7728 (eval $ac_compile) 2>&5 7729 ac_status=$? 7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7731 test $ac_status = 0; }; then 7732 emul=elf 7733 case `/usr/bin/file conftest.$ac_objext` in 7734 *32-bit*) 7735 emul="${emul}32" 7736 ;; 7737 *64-bit*) 7738 emul="${emul}64" 7739 ;; 7740 esac 7741 case `/usr/bin/file conftest.$ac_objext` in 7742 *MSB*) 7743 emul="${emul}btsmip" 7744 ;; 7745 *LSB*) 7746 emul="${emul}ltsmip" 7747 ;; 7748 esac 7749 case `/usr/bin/file conftest.$ac_objext` in 7750 *N32*) 7751 emul="${emul}n32" 7752 ;; 7753 esac 7754 LD="${LD-ld} -m $emul" 7755 fi 7756 rm -rf conftest* 7757 ;; 7758 7759x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7760s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7761 # Find out what ABI is being produced by ac_compile, and set linker 7762 # options accordingly. Note that the listed cases only cover the 7763 # situations where additional linker options are needed (such as when 7764 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7765 # vice versa); the common cases where no linker options are needed do 7766 # not appear in the list. 7767 echo 'int i;' > conftest.$ac_ext 7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7769 (eval $ac_compile) 2>&5 7770 ac_status=$? 7771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7772 test $ac_status = 0; }; then 7773 case `/usr/bin/file conftest.o` in 7774 *32-bit*) 7775 case $host in 7776 x86_64-*kfreebsd*-gnu) 7777 LD="${LD-ld} -m elf_i386_fbsd" 7778 ;; 7779 x86_64-*linux*) 7780 case `/usr/bin/file conftest.o` in 7781 *x86-64*) 7782 LD="${LD-ld} -m elf32_x86_64" 7783 ;; 7784 *) 7785 LD="${LD-ld} -m elf_i386" 7786 ;; 7787 esac 7788 ;; 7789 powerpc64le-*linux*) 7790 LD="${LD-ld} -m elf32lppclinux" 7791 ;; 7792 powerpc64-*linux*) 7793 LD="${LD-ld} -m elf32ppclinux" 7794 ;; 7795 s390x-*linux*) 7796 LD="${LD-ld} -m elf_s390" 7797 ;; 7798 sparc64-*linux*) 7799 LD="${LD-ld} -m elf32_sparc" 7800 ;; 7801 esac 7802 ;; 7803 *64-bit*) 7804 case $host in 7805 x86_64-*kfreebsd*-gnu) 7806 LD="${LD-ld} -m elf_x86_64_fbsd" 7807 ;; 7808 x86_64-*linux*) 7809 LD="${LD-ld} -m elf_x86_64" 7810 ;; 7811 powerpcle-*linux*) 7812 LD="${LD-ld} -m elf64lppc" 7813 ;; 7814 powerpc-*linux*) 7815 LD="${LD-ld} -m elf64ppc" 7816 ;; 7817 s390*-*linux*|s390*-*tpf*) 7818 LD="${LD-ld} -m elf64_s390" 7819 ;; 7820 sparc*-*linux*) 7821 LD="${LD-ld} -m elf64_sparc" 7822 ;; 7823 esac 7824 ;; 7825 esac 7826 fi 7827 rm -rf conftest* 7828 ;; 7829 7830*-*-sco3.2v5*) 7831 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7832 SAVE_CFLAGS=$CFLAGS 7833 CFLAGS="$CFLAGS -belf" 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7835$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7836if ${lt_cv_cc_needs_belf+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838else 7839 ac_ext=c 7840ac_cpp='$CPP $CPPFLAGS' 7841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7843ac_compiler_gnu=$ac_cv_c_compiler_gnu 7844 7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7846/* end confdefs.h. */ 7847 7848int 7849main () 7850{ 7851 7852 ; 7853 return 0; 7854} 7855_ACEOF 7856if ac_fn_c_try_link "$LINENO"; then : 7857 lt_cv_cc_needs_belf=yes 7858else 7859 lt_cv_cc_needs_belf=no 7860fi 7861rm -f core conftest.err conftest.$ac_objext \ 7862 conftest$ac_exeext conftest.$ac_ext 7863 ac_ext=c 7864ac_cpp='$CPP $CPPFLAGS' 7865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7867ac_compiler_gnu=$ac_cv_c_compiler_gnu 7868 7869fi 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7871$as_echo "$lt_cv_cc_needs_belf" >&6; } 7872 if test yes != "$lt_cv_cc_needs_belf"; then 7873 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7874 CFLAGS=$SAVE_CFLAGS 7875 fi 7876 ;; 7877*-*solaris*) 7878 # Find out what ABI is being produced by ac_compile, and set linker 7879 # options accordingly. 7880 echo 'int i;' > conftest.$ac_ext 7881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7882 (eval $ac_compile) 2>&5 7883 ac_status=$? 7884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7885 test $ac_status = 0; }; then 7886 case `/usr/bin/file conftest.o` in 7887 *64-bit*) 7888 case $lt_cv_prog_gnu_ld in 7889 yes*) 7890 case $host in 7891 i?86-*-solaris*|x86_64-*-solaris*) 7892 LD="${LD-ld} -m elf_x86_64" 7893 ;; 7894 sparc*-*-solaris*) 7895 LD="${LD-ld} -m elf64_sparc" 7896 ;; 7897 esac 7898 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7899 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7900 LD=${LD-ld}_sol2 7901 fi 7902 ;; 7903 *) 7904 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7905 LD="${LD-ld} -64" 7906 fi 7907 ;; 7908 esac 7909 ;; 7910 esac 7911 fi 7912 rm -rf conftest* 7913 ;; 7914esac 7915 7916need_locks=$enable_libtool_lock 7917 7918if test -n "$ac_tool_prefix"; then 7919 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7920set dummy ${ac_tool_prefix}mt; ac_word=$2 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7922$as_echo_n "checking for $ac_word... " >&6; } 7923if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7924 $as_echo_n "(cached) " >&6 7925else 7926 if test -n "$MANIFEST_TOOL"; then 7927 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7928else 7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7930for as_dir in $PATH 7931do 7932 IFS=$as_save_IFS 7933 test -z "$as_dir" && as_dir=. 7934 for ac_exec_ext in '' $ac_executable_extensions; do 7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7936 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7938 break 2 7939 fi 7940done 7941 done 7942IFS=$as_save_IFS 7943 7944fi 7945fi 7946MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7947if test -n "$MANIFEST_TOOL"; then 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7949$as_echo "$MANIFEST_TOOL" >&6; } 7950else 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7952$as_echo "no" >&6; } 7953fi 7954 7955 7956fi 7957if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7958 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7959 # Extract the first word of "mt", so it can be a program name with args. 7960set dummy mt; ac_word=$2 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7962$as_echo_n "checking for $ac_word... " >&6; } 7963if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7964 $as_echo_n "(cached) " >&6 7965else 7966 if test -n "$ac_ct_MANIFEST_TOOL"; then 7967 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7968else 7969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7970for as_dir in $PATH 7971do 7972 IFS=$as_save_IFS 7973 test -z "$as_dir" && as_dir=. 7974 for ac_exec_ext in '' $ac_executable_extensions; do 7975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7976 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7978 break 2 7979 fi 7980done 7981 done 7982IFS=$as_save_IFS 7983 7984fi 7985fi 7986ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7987if test -n "$ac_ct_MANIFEST_TOOL"; then 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7989$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7990else 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7992$as_echo "no" >&6; } 7993fi 7994 7995 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7996 MANIFEST_TOOL=":" 7997 else 7998 case $cross_compiling:$ac_tool_warned in 7999yes:) 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8002ac_tool_warned=yes ;; 8003esac 8004 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8005 fi 8006else 8007 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8008fi 8009 8010test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8012$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8013if ${lt_cv_path_mainfest_tool+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 lt_cv_path_mainfest_tool=no 8017 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8018 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8019 cat conftest.err >&5 8020 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8021 lt_cv_path_mainfest_tool=yes 8022 fi 8023 rm -f conftest* 8024fi 8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8026$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8027if test yes != "$lt_cv_path_mainfest_tool"; then 8028 MANIFEST_TOOL=: 8029fi 8030 8031 8032 8033 8034 8035 8036 case $host_os in 8037 rhapsody* | darwin*) 8038 if test -n "$ac_tool_prefix"; then 8039 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8040set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8042$as_echo_n "checking for $ac_word... " >&6; } 8043if ${ac_cv_prog_DSYMUTIL+:} false; then : 8044 $as_echo_n "(cached) " >&6 8045else 8046 if test -n "$DSYMUTIL"; then 8047 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8048else 8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8050for as_dir in $PATH 8051do 8052 IFS=$as_save_IFS 8053 test -z "$as_dir" && as_dir=. 8054 for ac_exec_ext in '' $ac_executable_extensions; do 8055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8056 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8058 break 2 8059 fi 8060done 8061 done 8062IFS=$as_save_IFS 8063 8064fi 8065fi 8066DSYMUTIL=$ac_cv_prog_DSYMUTIL 8067if test -n "$DSYMUTIL"; then 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8069$as_echo "$DSYMUTIL" >&6; } 8070else 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8072$as_echo "no" >&6; } 8073fi 8074 8075 8076fi 8077if test -z "$ac_cv_prog_DSYMUTIL"; then 8078 ac_ct_DSYMUTIL=$DSYMUTIL 8079 # Extract the first word of "dsymutil", so it can be a program name with args. 8080set dummy dsymutil; ac_word=$2 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8082$as_echo_n "checking for $ac_word... " >&6; } 8083if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085else 8086 if test -n "$ac_ct_DSYMUTIL"; then 8087 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8088else 8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8090for as_dir in $PATH 8091do 8092 IFS=$as_save_IFS 8093 test -z "$as_dir" && as_dir=. 8094 for ac_exec_ext in '' $ac_executable_extensions; do 8095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8096 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8098 break 2 8099 fi 8100done 8101 done 8102IFS=$as_save_IFS 8103 8104fi 8105fi 8106ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8107if test -n "$ac_ct_DSYMUTIL"; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8109$as_echo "$ac_ct_DSYMUTIL" >&6; } 8110else 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8112$as_echo "no" >&6; } 8113fi 8114 8115 if test "x$ac_ct_DSYMUTIL" = x; then 8116 DSYMUTIL=":" 8117 else 8118 case $cross_compiling:$ac_tool_warned in 8119yes:) 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8122ac_tool_warned=yes ;; 8123esac 8124 DSYMUTIL=$ac_ct_DSYMUTIL 8125 fi 8126else 8127 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8128fi 8129 8130 if test -n "$ac_tool_prefix"; then 8131 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8132set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8134$as_echo_n "checking for $ac_word... " >&6; } 8135if ${ac_cv_prog_NMEDIT+:} false; then : 8136 $as_echo_n "(cached) " >&6 8137else 8138 if test -n "$NMEDIT"; then 8139 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8140else 8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8142for as_dir in $PATH 8143do 8144 IFS=$as_save_IFS 8145 test -z "$as_dir" && as_dir=. 8146 for ac_exec_ext in '' $ac_executable_extensions; do 8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8148 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8150 break 2 8151 fi 8152done 8153 done 8154IFS=$as_save_IFS 8155 8156fi 8157fi 8158NMEDIT=$ac_cv_prog_NMEDIT 8159if test -n "$NMEDIT"; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8161$as_echo "$NMEDIT" >&6; } 8162else 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8164$as_echo "no" >&6; } 8165fi 8166 8167 8168fi 8169if test -z "$ac_cv_prog_NMEDIT"; then 8170 ac_ct_NMEDIT=$NMEDIT 8171 # Extract the first word of "nmedit", so it can be a program name with args. 8172set dummy nmedit; ac_word=$2 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8174$as_echo_n "checking for $ac_word... " >&6; } 8175if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8176 $as_echo_n "(cached) " >&6 8177else 8178 if test -n "$ac_ct_NMEDIT"; then 8179 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8180else 8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8182for as_dir in $PATH 8183do 8184 IFS=$as_save_IFS 8185 test -z "$as_dir" && as_dir=. 8186 for ac_exec_ext in '' $ac_executable_extensions; do 8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8188 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8190 break 2 8191 fi 8192done 8193 done 8194IFS=$as_save_IFS 8195 8196fi 8197fi 8198ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8199if test -n "$ac_ct_NMEDIT"; then 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8201$as_echo "$ac_ct_NMEDIT" >&6; } 8202else 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8204$as_echo "no" >&6; } 8205fi 8206 8207 if test "x$ac_ct_NMEDIT" = x; then 8208 NMEDIT=":" 8209 else 8210 case $cross_compiling:$ac_tool_warned in 8211yes:) 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8214ac_tool_warned=yes ;; 8215esac 8216 NMEDIT=$ac_ct_NMEDIT 8217 fi 8218else 8219 NMEDIT="$ac_cv_prog_NMEDIT" 8220fi 8221 8222 if test -n "$ac_tool_prefix"; then 8223 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8224set dummy ${ac_tool_prefix}lipo; ac_word=$2 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8226$as_echo_n "checking for $ac_word... " >&6; } 8227if ${ac_cv_prog_LIPO+:} false; then : 8228 $as_echo_n "(cached) " >&6 8229else 8230 if test -n "$LIPO"; then 8231 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8232else 8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8234for as_dir in $PATH 8235do 8236 IFS=$as_save_IFS 8237 test -z "$as_dir" && as_dir=. 8238 for ac_exec_ext in '' $ac_executable_extensions; do 8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8240 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8242 break 2 8243 fi 8244done 8245 done 8246IFS=$as_save_IFS 8247 8248fi 8249fi 8250LIPO=$ac_cv_prog_LIPO 8251if test -n "$LIPO"; then 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8253$as_echo "$LIPO" >&6; } 8254else 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8256$as_echo "no" >&6; } 8257fi 8258 8259 8260fi 8261if test -z "$ac_cv_prog_LIPO"; then 8262 ac_ct_LIPO=$LIPO 8263 # Extract the first word of "lipo", so it can be a program name with args. 8264set dummy lipo; ac_word=$2 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8266$as_echo_n "checking for $ac_word... " >&6; } 8267if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 if test -n "$ac_ct_LIPO"; then 8271 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8272else 8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8274for as_dir in $PATH 8275do 8276 IFS=$as_save_IFS 8277 test -z "$as_dir" && as_dir=. 8278 for ac_exec_ext in '' $ac_executable_extensions; do 8279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8280 ac_cv_prog_ac_ct_LIPO="lipo" 8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8282 break 2 8283 fi 8284done 8285 done 8286IFS=$as_save_IFS 8287 8288fi 8289fi 8290ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8291if test -n "$ac_ct_LIPO"; then 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8293$as_echo "$ac_ct_LIPO" >&6; } 8294else 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8296$as_echo "no" >&6; } 8297fi 8298 8299 if test "x$ac_ct_LIPO" = x; then 8300 LIPO=":" 8301 else 8302 case $cross_compiling:$ac_tool_warned in 8303yes:) 8304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8306ac_tool_warned=yes ;; 8307esac 8308 LIPO=$ac_ct_LIPO 8309 fi 8310else 8311 LIPO="$ac_cv_prog_LIPO" 8312fi 8313 8314 if test -n "$ac_tool_prefix"; then 8315 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8316set dummy ${ac_tool_prefix}otool; ac_word=$2 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8318$as_echo_n "checking for $ac_word... " >&6; } 8319if ${ac_cv_prog_OTOOL+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 if test -n "$OTOOL"; then 8323 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8324else 8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8326for as_dir in $PATH 8327do 8328 IFS=$as_save_IFS 8329 test -z "$as_dir" && as_dir=. 8330 for ac_exec_ext in '' $ac_executable_extensions; do 8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8332 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8334 break 2 8335 fi 8336done 8337 done 8338IFS=$as_save_IFS 8339 8340fi 8341fi 8342OTOOL=$ac_cv_prog_OTOOL 8343if test -n "$OTOOL"; then 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8345$as_echo "$OTOOL" >&6; } 8346else 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8348$as_echo "no" >&6; } 8349fi 8350 8351 8352fi 8353if test -z "$ac_cv_prog_OTOOL"; then 8354 ac_ct_OTOOL=$OTOOL 8355 # Extract the first word of "otool", so it can be a program name with args. 8356set dummy otool; ac_word=$2 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8358$as_echo_n "checking for $ac_word... " >&6; } 8359if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8360 $as_echo_n "(cached) " >&6 8361else 8362 if test -n "$ac_ct_OTOOL"; then 8363 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8364else 8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8366for as_dir in $PATH 8367do 8368 IFS=$as_save_IFS 8369 test -z "$as_dir" && as_dir=. 8370 for ac_exec_ext in '' $ac_executable_extensions; do 8371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8372 ac_cv_prog_ac_ct_OTOOL="otool" 8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8374 break 2 8375 fi 8376done 8377 done 8378IFS=$as_save_IFS 8379 8380fi 8381fi 8382ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8383if test -n "$ac_ct_OTOOL"; then 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8385$as_echo "$ac_ct_OTOOL" >&6; } 8386else 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8388$as_echo "no" >&6; } 8389fi 8390 8391 if test "x$ac_ct_OTOOL" = x; then 8392 OTOOL=":" 8393 else 8394 case $cross_compiling:$ac_tool_warned in 8395yes:) 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8398ac_tool_warned=yes ;; 8399esac 8400 OTOOL=$ac_ct_OTOOL 8401 fi 8402else 8403 OTOOL="$ac_cv_prog_OTOOL" 8404fi 8405 8406 if test -n "$ac_tool_prefix"; then 8407 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8408set dummy ${ac_tool_prefix}otool64; ac_word=$2 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8410$as_echo_n "checking for $ac_word... " >&6; } 8411if ${ac_cv_prog_OTOOL64+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 if test -n "$OTOOL64"; then 8415 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8416else 8417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8418for as_dir in $PATH 8419do 8420 IFS=$as_save_IFS 8421 test -z "$as_dir" && as_dir=. 8422 for ac_exec_ext in '' $ac_executable_extensions; do 8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8424 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8426 break 2 8427 fi 8428done 8429 done 8430IFS=$as_save_IFS 8431 8432fi 8433fi 8434OTOOL64=$ac_cv_prog_OTOOL64 8435if test -n "$OTOOL64"; then 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8437$as_echo "$OTOOL64" >&6; } 8438else 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8440$as_echo "no" >&6; } 8441fi 8442 8443 8444fi 8445if test -z "$ac_cv_prog_OTOOL64"; then 8446 ac_ct_OTOOL64=$OTOOL64 8447 # Extract the first word of "otool64", so it can be a program name with args. 8448set dummy otool64; ac_word=$2 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8450$as_echo_n "checking for $ac_word... " >&6; } 8451if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453else 8454 if test -n "$ac_ct_OTOOL64"; then 8455 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8456else 8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8458for as_dir in $PATH 8459do 8460 IFS=$as_save_IFS 8461 test -z "$as_dir" && as_dir=. 8462 for ac_exec_ext in '' $ac_executable_extensions; do 8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8464 ac_cv_prog_ac_ct_OTOOL64="otool64" 8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8466 break 2 8467 fi 8468done 8469 done 8470IFS=$as_save_IFS 8471 8472fi 8473fi 8474ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8475if test -n "$ac_ct_OTOOL64"; then 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8477$as_echo "$ac_ct_OTOOL64" >&6; } 8478else 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8480$as_echo "no" >&6; } 8481fi 8482 8483 if test "x$ac_ct_OTOOL64" = x; then 8484 OTOOL64=":" 8485 else 8486 case $cross_compiling:$ac_tool_warned in 8487yes:) 8488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8490ac_tool_warned=yes ;; 8491esac 8492 OTOOL64=$ac_ct_OTOOL64 8493 fi 8494else 8495 OTOOL64="$ac_cv_prog_OTOOL64" 8496fi 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8525$as_echo_n "checking for -single_module linker flag... " >&6; } 8526if ${lt_cv_apple_cc_single_mod+:} false; then : 8527 $as_echo_n "(cached) " >&6 8528else 8529 lt_cv_apple_cc_single_mod=no 8530 if test -z "$LT_MULTI_MODULE"; then 8531 # By default we will add the -single_module flag. You can override 8532 # by either setting the environment variable LT_MULTI_MODULE 8533 # non-empty at configure time, or by adding -multi_module to the 8534 # link flags. 8535 rm -rf libconftest.dylib* 8536 echo "int foo(void){return 1;}" > conftest.c 8537 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8538-dynamiclib -Wl,-single_module conftest.c" >&5 8539 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8540 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8541 _lt_result=$? 8542 # If there is a non-empty error log, and "single_module" 8543 # appears in it, assume the flag caused a linker warning 8544 if test -s conftest.err && $GREP single_module conftest.err; then 8545 cat conftest.err >&5 8546 # Otherwise, if the output was created with a 0 exit code from 8547 # the compiler, it worked. 8548 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8549 lt_cv_apple_cc_single_mod=yes 8550 else 8551 cat conftest.err >&5 8552 fi 8553 rm -rf libconftest.dylib* 8554 rm -f conftest.* 8555 fi 8556fi 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8558$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8559 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8561$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8562if ${lt_cv_ld_exported_symbols_list+:} false; then : 8563 $as_echo_n "(cached) " >&6 8564else 8565 lt_cv_ld_exported_symbols_list=no 8566 save_LDFLAGS=$LDFLAGS 8567 echo "_main" > conftest.sym 8568 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8570/* end confdefs.h. */ 8571 8572int 8573main () 8574{ 8575 8576 ; 8577 return 0; 8578} 8579_ACEOF 8580if ac_fn_c_try_link "$LINENO"; then : 8581 lt_cv_ld_exported_symbols_list=yes 8582else 8583 lt_cv_ld_exported_symbols_list=no 8584fi 8585rm -f core conftest.err conftest.$ac_objext \ 8586 conftest$ac_exeext conftest.$ac_ext 8587 LDFLAGS=$save_LDFLAGS 8588 8589fi 8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8591$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8592 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8594$as_echo_n "checking for -force_load linker flag... " >&6; } 8595if ${lt_cv_ld_force_load+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597else 8598 lt_cv_ld_force_load=no 8599 cat > conftest.c << _LT_EOF 8600int forced_loaded() { return 2;} 8601_LT_EOF 8602 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8603 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8604 echo "$AR cru libconftest.a conftest.o" >&5 8605 $AR cru libconftest.a conftest.o 2>&5 8606 echo "$RANLIB libconftest.a" >&5 8607 $RANLIB libconftest.a 2>&5 8608 cat > conftest.c << _LT_EOF 8609int main() { return 0;} 8610_LT_EOF 8611 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8612 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8613 _lt_result=$? 8614 if test -s conftest.err && $GREP force_load conftest.err; then 8615 cat conftest.err >&5 8616 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8617 lt_cv_ld_force_load=yes 8618 else 8619 cat conftest.err >&5 8620 fi 8621 rm -f conftest.err libconftest.a conftest conftest.c 8622 rm -rf conftest.dSYM 8623 8624fi 8625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8626$as_echo "$lt_cv_ld_force_load" >&6; } 8627 case $host_os in 8628 rhapsody* | darwin1.[012]) 8629 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8630 darwin1.*) 8631 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8632 darwin*) # darwin 5.x on 8633 # if running on 10.5 or later, the deployment target defaults 8634 # to the OS version, if on x86, and 10.4, the deployment 8635 # target defaults to 10.4. Don't you love it? 8636 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8637 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8638 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8639 10.[012][,.]*) 8640 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8641 10.*) 8642 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8643 esac 8644 ;; 8645 esac 8646 if test yes = "$lt_cv_apple_cc_single_mod"; then 8647 _lt_dar_single_mod='$single_module' 8648 fi 8649 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8650 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8651 else 8652 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8653 fi 8654 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8655 _lt_dsymutil='~$DSYMUTIL $lib || :' 8656 else 8657 _lt_dsymutil= 8658 fi 8659 ;; 8660 esac 8661 8662# func_munge_path_list VARIABLE PATH 8663# ----------------------------------- 8664# VARIABLE is name of variable containing _space_ separated list of 8665# directories to be munged by the contents of PATH, which is string 8666# having a format: 8667# "DIR[:DIR]:" 8668# string "DIR[ DIR]" will be prepended to VARIABLE 8669# ":DIR[:DIR]" 8670# string "DIR[ DIR]" will be appended to VARIABLE 8671# "DIRP[:DIRP]::[DIRA:]DIRA" 8672# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8673# "DIRA[ DIRA]" will be appended to VARIABLE 8674# "DIR[:DIR]" 8675# VARIABLE will be replaced by "DIR[ DIR]" 8676func_munge_path_list () 8677{ 8678 case x$2 in 8679 x) 8680 ;; 8681 *:) 8682 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8683 ;; 8684 x:*) 8685 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8686 ;; 8687 *::*) 8688 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8689 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8690 ;; 8691 *) 8692 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8693 ;; 8694 esac 8695} 8696 8697for ac_header in dlfcn.h 8698do : 8699 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8700" 8701if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8702 cat >>confdefs.h <<_ACEOF 8703#define HAVE_DLFCN_H 1 8704_ACEOF 8705 8706fi 8707 8708done 8709 8710 8711 8712 8713 8714# Set options 8715 8716 8717 8718 8719 enable_win32_dll=no 8720 8721 8722 8723 8724 8725# Check whether --with-pic was given. 8726if test "${with_pic+set}" = set; then : 8727 withval=$with_pic; lt_p=${PACKAGE-default} 8728 case $withval in 8729 yes|no) pic_mode=$withval ;; 8730 *) 8731 pic_mode=default 8732 # Look at the argument we got. We use all the common list separators. 8733 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8734 for lt_pkg in $withval; do 8735 IFS=$lt_save_ifs 8736 if test "X$lt_pkg" = "X$lt_p"; then 8737 pic_mode=yes 8738 fi 8739 done 8740 IFS=$lt_save_ifs 8741 ;; 8742 esac 8743else 8744 pic_mode=default 8745fi 8746 8747 8748 8749 8750 8751 8752 8753 8754 # Check whether --enable-fast-install was given. 8755if test "${enable_fast_install+set}" = set; then : 8756 enableval=$enable_fast_install; p=${PACKAGE-default} 8757 case $enableval in 8758 yes) enable_fast_install=yes ;; 8759 no) enable_fast_install=no ;; 8760 *) 8761 enable_fast_install=no 8762 # Look at the argument we got. We use all the common list separators. 8763 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8764 for pkg in $enableval; do 8765 IFS=$lt_save_ifs 8766 if test "X$pkg" = "X$p"; then 8767 enable_fast_install=yes 8768 fi 8769 done 8770 IFS=$lt_save_ifs 8771 ;; 8772 esac 8773else 8774 enable_fast_install=yes 8775fi 8776 8777 8778 8779 8780 8781 8782 8783 8784 shared_archive_member_spec= 8785case $host,$enable_shared in 8786power*-*-aix[5-9]*,yes) 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8788$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8789 8790# Check whether --with-aix-soname was given. 8791if test "${with_aix_soname+set}" = set; then : 8792 withval=$with_aix_soname; case $withval in 8793 aix|svr4|both) 8794 ;; 8795 *) 8796 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8797 ;; 8798 esac 8799 lt_cv_with_aix_soname=$with_aix_soname 8800else 8801 if ${lt_cv_with_aix_soname+:} false; then : 8802 $as_echo_n "(cached) " >&6 8803else 8804 lt_cv_with_aix_soname=aix 8805fi 8806 8807 with_aix_soname=$lt_cv_with_aix_soname 8808fi 8809 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8811$as_echo "$with_aix_soname" >&6; } 8812 if test aix != "$with_aix_soname"; then 8813 # For the AIX way of multilib, we name the shared archive member 8814 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8815 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8816 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8817 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8818 if test 64 = "${OBJECT_MODE-32}"; then 8819 shared_archive_member_spec=shr_64 8820 else 8821 shared_archive_member_spec=shr 8822 fi 8823 fi 8824 ;; 8825*) 8826 with_aix_soname=aix 8827 ;; 8828esac 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839# This can be used to rebuild libtool when needed 8840LIBTOOL_DEPS=$ltmain 8841 8842# Always use our own libtool. 8843LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874test -z "$LN_S" && LN_S="ln -s" 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889if test -n "${ZSH_VERSION+set}"; then 8890 setopt NO_GLOB_SUBST 8891fi 8892 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8894$as_echo_n "checking for objdir... " >&6; } 8895if ${lt_cv_objdir+:} false; then : 8896 $as_echo_n "(cached) " >&6 8897else 8898 rm -f .libs 2>/dev/null 8899mkdir .libs 2>/dev/null 8900if test -d .libs; then 8901 lt_cv_objdir=.libs 8902else 8903 # MS-DOS does not allow filenames that begin with a dot. 8904 lt_cv_objdir=_libs 8905fi 8906rmdir .libs 2>/dev/null 8907fi 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8909$as_echo "$lt_cv_objdir" >&6; } 8910objdir=$lt_cv_objdir 8911 8912 8913 8914 8915 8916cat >>confdefs.h <<_ACEOF 8917#define LT_OBJDIR "$lt_cv_objdir/" 8918_ACEOF 8919 8920 8921 8922 8923case $host_os in 8924aix3*) 8925 # AIX sometimes has problems with the GCC collect2 program. For some 8926 # reason, if we set the COLLECT_NAMES environment variable, the problems 8927 # vanish in a puff of smoke. 8928 if test set != "${COLLECT_NAMES+set}"; then 8929 COLLECT_NAMES= 8930 export COLLECT_NAMES 8931 fi 8932 ;; 8933esac 8934 8935# Global variables: 8936ofile=libtool 8937can_build_shared=yes 8938 8939# All known linkers require a '.a' archive for static linking (except MSVC, 8940# which needs '.lib'). 8941libext=a 8942 8943with_gnu_ld=$lt_cv_prog_gnu_ld 8944 8945old_CC=$CC 8946old_CFLAGS=$CFLAGS 8947 8948# Set sane defaults for various variables 8949test -z "$CC" && CC=cc 8950test -z "$LTCC" && LTCC=$CC 8951test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8952test -z "$LD" && LD=ld 8953test -z "$ac_objext" && ac_objext=o 8954 8955func_cc_basename $compiler 8956cc_basename=$func_cc_basename_result 8957 8958 8959# Only perform the check for file, if the check method requires it 8960test -z "$MAGIC_CMD" && MAGIC_CMD=file 8961case $deplibs_check_method in 8962file_magic*) 8963 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8965$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8966if ${lt_cv_path_MAGIC_CMD+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968else 8969 case $MAGIC_CMD in 8970[\\/*] | ?:[\\/]*) 8971 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8972 ;; 8973*) 8974 lt_save_MAGIC_CMD=$MAGIC_CMD 8975 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8976 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8977 for ac_dir in $ac_dummy; do 8978 IFS=$lt_save_ifs 8979 test -z "$ac_dir" && ac_dir=. 8980 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8981 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8982 if test -n "$file_magic_test_file"; then 8983 case $deplibs_check_method in 8984 "file_magic "*) 8985 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8986 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8987 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8988 $EGREP "$file_magic_regex" > /dev/null; then 8989 : 8990 else 8991 cat <<_LT_EOF 1>&2 8992 8993*** Warning: the command libtool uses to detect shared libraries, 8994*** $file_magic_cmd, produces output that libtool cannot recognize. 8995*** The result is that libtool may fail to recognize shared libraries 8996*** as such. This will affect the creation of libtool libraries that 8997*** depend on shared libraries, but programs linked with such libtool 8998*** libraries will work regardless of this problem. Nevertheless, you 8999*** may want to report the problem to your system manager and/or to 9000*** [email protected] 9001 9002_LT_EOF 9003 fi ;; 9004 esac 9005 fi 9006 break 9007 fi 9008 done 9009 IFS=$lt_save_ifs 9010 MAGIC_CMD=$lt_save_MAGIC_CMD 9011 ;; 9012esac 9013fi 9014 9015MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9016if test -n "$MAGIC_CMD"; then 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9018$as_echo "$MAGIC_CMD" >&6; } 9019else 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9021$as_echo "no" >&6; } 9022fi 9023 9024 9025 9026 9027 9028if test -z "$lt_cv_path_MAGIC_CMD"; then 9029 if test -n "$ac_tool_prefix"; then 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9031$as_echo_n "checking for file... " >&6; } 9032if ${lt_cv_path_MAGIC_CMD+:} false; then : 9033 $as_echo_n "(cached) " >&6 9034else 9035 case $MAGIC_CMD in 9036[\\/*] | ?:[\\/]*) 9037 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9038 ;; 9039*) 9040 lt_save_MAGIC_CMD=$MAGIC_CMD 9041 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9043 for ac_dir in $ac_dummy; do 9044 IFS=$lt_save_ifs 9045 test -z "$ac_dir" && ac_dir=. 9046 if test -f "$ac_dir/file"; then 9047 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9048 if test -n "$file_magic_test_file"; then 9049 case $deplibs_check_method in 9050 "file_magic "*) 9051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9052 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9054 $EGREP "$file_magic_regex" > /dev/null; then 9055 : 9056 else 9057 cat <<_LT_EOF 1>&2 9058 9059*** Warning: the command libtool uses to detect shared libraries, 9060*** $file_magic_cmd, produces output that libtool cannot recognize. 9061*** The result is that libtool may fail to recognize shared libraries 9062*** as such. This will affect the creation of libtool libraries that 9063*** depend on shared libraries, but programs linked with such libtool 9064*** libraries will work regardless of this problem. Nevertheless, you 9065*** may want to report the problem to your system manager and/or to 9066*** [email protected] 9067 9068_LT_EOF 9069 fi ;; 9070 esac 9071 fi 9072 break 9073 fi 9074 done 9075 IFS=$lt_save_ifs 9076 MAGIC_CMD=$lt_save_MAGIC_CMD 9077 ;; 9078esac 9079fi 9080 9081MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9082if test -n "$MAGIC_CMD"; then 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9084$as_echo "$MAGIC_CMD" >&6; } 9085else 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9087$as_echo "no" >&6; } 9088fi 9089 9090 9091 else 9092 MAGIC_CMD=: 9093 fi 9094fi 9095 9096 fi 9097 ;; 9098esac 9099 9100# Use C for the default configuration in the libtool script 9101 9102lt_save_CC=$CC 9103ac_ext=c 9104ac_cpp='$CPP $CPPFLAGS' 9105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9107ac_compiler_gnu=$ac_cv_c_compiler_gnu 9108 9109 9110# Source file extension for C test sources. 9111ac_ext=c 9112 9113# Object file extension for compiled C test sources. 9114objext=o 9115objext=$objext 9116 9117# Code to be used in simple compile tests 9118lt_simple_compile_test_code="int some_variable = 0;" 9119 9120# Code to be used in simple link tests 9121lt_simple_link_test_code='int main(){return(0);}' 9122 9123 9124 9125 9126 9127 9128 9129# If no C compiler was specified, use CC. 9130LTCC=${LTCC-"$CC"} 9131 9132# If no C compiler flags were specified, use CFLAGS. 9133LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9134 9135# Allow CC to be a program name with arguments. 9136compiler=$CC 9137 9138# Save the default compiler, since it gets overwritten when the other 9139# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9140compiler_DEFAULT=$CC 9141 9142# save warnings/boilerplate of simple test code 9143ac_outfile=conftest.$ac_objext 9144echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9145eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9146_lt_compiler_boilerplate=`cat conftest.err` 9147$RM conftest* 9148 9149ac_outfile=conftest.$ac_objext 9150echo "$lt_simple_link_test_code" >conftest.$ac_ext 9151eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9152_lt_linker_boilerplate=`cat conftest.err` 9153$RM -r conftest* 9154 9155 9156## CAVEAT EMPTOR: 9157## There is no encapsulation within the following macros, do not change 9158## the running order or otherwise move them around unless you know exactly 9159## what you are doing... 9160if test -n "$compiler"; then 9161 9162lt_prog_compiler_no_builtin_flag= 9163 9164if test yes = "$GCC"; then 9165 case $cc_basename in 9166 nvcc*) 9167 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9168 *) 9169 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9170 esac 9171 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9173$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9174if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9175 $as_echo_n "(cached) " >&6 9176else 9177 lt_cv_prog_compiler_rtti_exceptions=no 9178 ac_outfile=conftest.$ac_objext 9179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9180 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9181 # Insert the option either (1) after the last *FLAGS variable, or 9182 # (2) before a word containing "conftest.", or (3) at the end. 9183 # Note that $ac_compile itself does not contain backslashes and begins 9184 # with a dollar sign (not a hyphen), so the echo should work correctly. 9185 # The option is referenced via a variable to avoid confusing sed. 9186 lt_compile=`echo "$ac_compile" | $SED \ 9187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9189 -e 's:$: $lt_compiler_flag:'` 9190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9191 (eval "$lt_compile" 2>conftest.err) 9192 ac_status=$? 9193 cat conftest.err >&5 9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9195 if (exit $ac_status) && test -s "$ac_outfile"; then 9196 # The compiler can only warn and ignore the option if not recognized 9197 # So say no if there are warnings other than the usual output. 9198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9201 lt_cv_prog_compiler_rtti_exceptions=yes 9202 fi 9203 fi 9204 $RM conftest* 9205 9206fi 9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9208$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9209 9210if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9211 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9212else 9213 : 9214fi 9215 9216fi 9217 9218 9219 9220 9221 9222 9223 lt_prog_compiler_wl= 9224lt_prog_compiler_pic= 9225lt_prog_compiler_static= 9226 9227 9228 if test yes = "$GCC"; then 9229 lt_prog_compiler_wl='-Wl,' 9230 lt_prog_compiler_static='-static' 9231 9232 case $host_os in 9233 aix*) 9234 # All AIX code is PIC. 9235 if test ia64 = "$host_cpu"; then 9236 # AIX 5 now supports IA64 processor 9237 lt_prog_compiler_static='-Bstatic' 9238 fi 9239 lt_prog_compiler_pic='-fPIC' 9240 ;; 9241 9242 amigaos*) 9243 case $host_cpu in 9244 powerpc) 9245 # see comment about AmigaOS4 .so support 9246 lt_prog_compiler_pic='-fPIC' 9247 ;; 9248 m68k) 9249 # FIXME: we need at least 68020 code to build shared libraries, but 9250 # adding the '-m68020' flag to GCC prevents building anything better, 9251 # like '-m68040'. 9252 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9253 ;; 9254 esac 9255 ;; 9256 9257 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9258 # PIC is the default for these OSes. 9259 ;; 9260 9261 mingw* | cygwin* | pw32* | os2* | cegcc*) 9262 # This hack is so that the source file can tell whether it is being 9263 # built for inclusion in a dll (and should export symbols for example). 9264 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9265 # (--disable-auto-import) libraries 9266 lt_prog_compiler_pic='-DDLL_EXPORT' 9267 case $host_os in 9268 os2*) 9269 lt_prog_compiler_static='$wl-static' 9270 ;; 9271 esac 9272 ;; 9273 9274 darwin* | rhapsody*) 9275 # PIC is the default on this platform 9276 # Common symbols not allowed in MH_DYLIB files 9277 lt_prog_compiler_pic='-fno-common' 9278 ;; 9279 9280 haiku*) 9281 # PIC is the default for Haiku. 9282 # The "-static" flag exists, but is broken. 9283 lt_prog_compiler_static= 9284 ;; 9285 9286 hpux*) 9287 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9288 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9289 # sets the default TLS model and affects inlining. 9290 case $host_cpu in 9291 hppa*64*) 9292 # +Z the default 9293 ;; 9294 *) 9295 lt_prog_compiler_pic='-fPIC' 9296 ;; 9297 esac 9298 ;; 9299 9300 interix[3-9]*) 9301 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9302 # Instead, we relocate shared libraries at runtime. 9303 ;; 9304 9305 msdosdjgpp*) 9306 # Just because we use GCC doesn't mean we suddenly get shared libraries 9307 # on systems that don't support them. 9308 lt_prog_compiler_can_build_shared=no 9309 enable_shared=no 9310 ;; 9311 9312 *nto* | *qnx*) 9313 # QNX uses GNU C++, but need to define -shared option too, otherwise 9314 # it will coredump. 9315 lt_prog_compiler_pic='-fPIC -shared' 9316 ;; 9317 9318 sysv4*MP*) 9319 if test -d /usr/nec; then 9320 lt_prog_compiler_pic=-Kconform_pic 9321 fi 9322 ;; 9323 9324 *) 9325 lt_prog_compiler_pic='-fPIC' 9326 ;; 9327 esac 9328 9329 case $cc_basename in 9330 nvcc*) # Cuda Compiler Driver 2.2 9331 lt_prog_compiler_wl='-Xlinker ' 9332 if test -n "$lt_prog_compiler_pic"; then 9333 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9334 fi 9335 ;; 9336 esac 9337 else 9338 # PORTME Check for flag to pass linker flags through the system compiler. 9339 case $host_os in 9340 aix*) 9341 lt_prog_compiler_wl='-Wl,' 9342 if test ia64 = "$host_cpu"; then 9343 # AIX 5 now supports IA64 processor 9344 lt_prog_compiler_static='-Bstatic' 9345 else 9346 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9347 fi 9348 ;; 9349 9350 darwin* | rhapsody*) 9351 # PIC is the default on this platform 9352 # Common symbols not allowed in MH_DYLIB files 9353 lt_prog_compiler_pic='-fno-common' 9354 case $cc_basename in 9355 nagfor*) 9356 # NAG Fortran compiler 9357 lt_prog_compiler_wl='-Wl,-Wl,,' 9358 lt_prog_compiler_pic='-PIC' 9359 lt_prog_compiler_static='-Bstatic' 9360 ;; 9361 esac 9362 ;; 9363 9364 mingw* | cygwin* | pw32* | os2* | cegcc*) 9365 # This hack is so that the source file can tell whether it is being 9366 # built for inclusion in a dll (and should export symbols for example). 9367 lt_prog_compiler_pic='-DDLL_EXPORT' 9368 case $host_os in 9369 os2*) 9370 lt_prog_compiler_static='$wl-static' 9371 ;; 9372 esac 9373 ;; 9374 9375 hpux9* | hpux10* | hpux11*) 9376 lt_prog_compiler_wl='-Wl,' 9377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9378 # not for PA HP-UX. 9379 case $host_cpu in 9380 hppa*64*|ia64*) 9381 # +Z the default 9382 ;; 9383 *) 9384 lt_prog_compiler_pic='+Z' 9385 ;; 9386 esac 9387 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9388 lt_prog_compiler_static='$wl-a ${wl}archive' 9389 ;; 9390 9391 irix5* | irix6* | nonstopux*) 9392 lt_prog_compiler_wl='-Wl,' 9393 # PIC (with -KPIC) is the default. 9394 lt_prog_compiler_static='-non_shared' 9395 ;; 9396 9397 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9398 case $cc_basename in 9399 # old Intel for x86_64, which still supported -KPIC. 9400 ecc*) 9401 lt_prog_compiler_wl='-Wl,' 9402 lt_prog_compiler_pic='-KPIC' 9403 lt_prog_compiler_static='-static' 9404 ;; 9405 # icc used to be incompatible with GCC. 9406 # ICC 10 doesn't accept -KPIC any more. 9407 icc* | ifort*) 9408 lt_prog_compiler_wl='-Wl,' 9409 lt_prog_compiler_pic='-fPIC' 9410 lt_prog_compiler_static='-static' 9411 ;; 9412 # Lahey Fortran 8.1. 9413 lf95*) 9414 lt_prog_compiler_wl='-Wl,' 9415 lt_prog_compiler_pic='--shared' 9416 lt_prog_compiler_static='--static' 9417 ;; 9418 nagfor*) 9419 # NAG Fortran compiler 9420 lt_prog_compiler_wl='-Wl,-Wl,,' 9421 lt_prog_compiler_pic='-PIC' 9422 lt_prog_compiler_static='-Bstatic' 9423 ;; 9424 tcc*) 9425 # Fabrice Bellard et al's Tiny C Compiler 9426 lt_prog_compiler_wl='-Wl,' 9427 lt_prog_compiler_pic='-fPIC' 9428 lt_prog_compiler_static='-static' 9429 ;; 9430 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9431 # Portland Group compilers (*not* the Pentium gcc compiler, 9432 # which looks to be a dead project) 9433 lt_prog_compiler_wl='-Wl,' 9434 lt_prog_compiler_pic='-fpic' 9435 lt_prog_compiler_static='-Bstatic' 9436 ;; 9437 ccc*) 9438 lt_prog_compiler_wl='-Wl,' 9439 # All Alpha code is PIC. 9440 lt_prog_compiler_static='-non_shared' 9441 ;; 9442 xl* | bgxl* | bgf* | mpixl*) 9443 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9444 lt_prog_compiler_wl='-Wl,' 9445 lt_prog_compiler_pic='-qpic' 9446 lt_prog_compiler_static='-qstaticlink' 9447 ;; 9448 *) 9449 case `$CC -V 2>&1 | sed 5q` in 9450 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9451 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9452 lt_prog_compiler_pic='-KPIC' 9453 lt_prog_compiler_static='-Bstatic' 9454 lt_prog_compiler_wl='' 9455 ;; 9456 *Sun\ F* | *Sun*Fortran*) 9457 lt_prog_compiler_pic='-KPIC' 9458 lt_prog_compiler_static='-Bstatic' 9459 lt_prog_compiler_wl='-Qoption ld ' 9460 ;; 9461 *Sun\ C*) 9462 # Sun C 5.9 9463 lt_prog_compiler_pic='-KPIC' 9464 lt_prog_compiler_static='-Bstatic' 9465 lt_prog_compiler_wl='-Wl,' 9466 ;; 9467 *Intel*\ [CF]*Compiler*) 9468 lt_prog_compiler_wl='-Wl,' 9469 lt_prog_compiler_pic='-fPIC' 9470 lt_prog_compiler_static='-static' 9471 ;; 9472 *Portland\ Group*) 9473 lt_prog_compiler_wl='-Wl,' 9474 lt_prog_compiler_pic='-fpic' 9475 lt_prog_compiler_static='-Bstatic' 9476 ;; 9477 esac 9478 ;; 9479 esac 9480 ;; 9481 9482 newsos6) 9483 lt_prog_compiler_pic='-KPIC' 9484 lt_prog_compiler_static='-Bstatic' 9485 ;; 9486 9487 *nto* | *qnx*) 9488 # QNX uses GNU C++, but need to define -shared option too, otherwise 9489 # it will coredump. 9490 lt_prog_compiler_pic='-fPIC -shared' 9491 ;; 9492 9493 osf3* | osf4* | osf5*) 9494 lt_prog_compiler_wl='-Wl,' 9495 # All OSF/1 code is PIC. 9496 lt_prog_compiler_static='-non_shared' 9497 ;; 9498 9499 rdos*) 9500 lt_prog_compiler_static='-non_shared' 9501 ;; 9502 9503 solaris*) 9504 lt_prog_compiler_pic='-KPIC' 9505 lt_prog_compiler_static='-Bstatic' 9506 case $cc_basename in 9507 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9508 lt_prog_compiler_wl='-Qoption ld ';; 9509 *) 9510 lt_prog_compiler_wl='-Wl,';; 9511 esac 9512 ;; 9513 9514 sunos4*) 9515 lt_prog_compiler_wl='-Qoption ld ' 9516 lt_prog_compiler_pic='-PIC' 9517 lt_prog_compiler_static='-Bstatic' 9518 ;; 9519 9520 sysv4 | sysv4.2uw2* | sysv4.3*) 9521 lt_prog_compiler_wl='-Wl,' 9522 lt_prog_compiler_pic='-KPIC' 9523 lt_prog_compiler_static='-Bstatic' 9524 ;; 9525 9526 sysv4*MP*) 9527 if test -d /usr/nec; then 9528 lt_prog_compiler_pic='-Kconform_pic' 9529 lt_prog_compiler_static='-Bstatic' 9530 fi 9531 ;; 9532 9533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9534 lt_prog_compiler_wl='-Wl,' 9535 lt_prog_compiler_pic='-KPIC' 9536 lt_prog_compiler_static='-Bstatic' 9537 ;; 9538 9539 unicos*) 9540 lt_prog_compiler_wl='-Wl,' 9541 lt_prog_compiler_can_build_shared=no 9542 ;; 9543 9544 uts4*) 9545 lt_prog_compiler_pic='-pic' 9546 lt_prog_compiler_static='-Bstatic' 9547 ;; 9548 9549 *) 9550 lt_prog_compiler_can_build_shared=no 9551 ;; 9552 esac 9553 fi 9554 9555case $host_os in 9556 # For platforms that do not support PIC, -DPIC is meaningless: 9557 *djgpp*) 9558 lt_prog_compiler_pic= 9559 ;; 9560 *) 9561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9562 ;; 9563esac 9564 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9566$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9567if ${lt_cv_prog_compiler_pic+:} false; then : 9568 $as_echo_n "(cached) " >&6 9569else 9570 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9571fi 9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9573$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9574lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9575 9576# 9577# Check to make sure the PIC flag actually works. 9578# 9579if test -n "$lt_prog_compiler_pic"; then 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9581$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9582if ${lt_cv_prog_compiler_pic_works+:} false; then : 9583 $as_echo_n "(cached) " >&6 9584else 9585 lt_cv_prog_compiler_pic_works=no 9586 ac_outfile=conftest.$ac_objext 9587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9588 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9589 # Insert the option either (1) after the last *FLAGS variable, or 9590 # (2) before a word containing "conftest.", or (3) at the end. 9591 # Note that $ac_compile itself does not contain backslashes and begins 9592 # with a dollar sign (not a hyphen), so the echo should work correctly. 9593 # The option is referenced via a variable to avoid confusing sed. 9594 lt_compile=`echo "$ac_compile" | $SED \ 9595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9597 -e 's:$: $lt_compiler_flag:'` 9598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9599 (eval "$lt_compile" 2>conftest.err) 9600 ac_status=$? 9601 cat conftest.err >&5 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9603 if (exit $ac_status) && test -s "$ac_outfile"; then 9604 # The compiler can only warn and ignore the option if not recognized 9605 # So say no if there are warnings other than the usual output. 9606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9609 lt_cv_prog_compiler_pic_works=yes 9610 fi 9611 fi 9612 $RM conftest* 9613 9614fi 9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9616$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9617 9618if test yes = "$lt_cv_prog_compiler_pic_works"; then 9619 case $lt_prog_compiler_pic in 9620 "" | " "*) ;; 9621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9622 esac 9623else 9624 lt_prog_compiler_pic= 9625 lt_prog_compiler_can_build_shared=no 9626fi 9627 9628fi 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640# 9641# Check to make sure the static flag actually works. 9642# 9643wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9645$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9646if ${lt_cv_prog_compiler_static_works+:} false; then : 9647 $as_echo_n "(cached) " >&6 9648else 9649 lt_cv_prog_compiler_static_works=no 9650 save_LDFLAGS=$LDFLAGS 9651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9652 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9654 # The linker can only warn and ignore the option if not recognized 9655 # So say no if there are warnings 9656 if test -s conftest.err; then 9657 # Append any errors to the config.log. 9658 cat conftest.err 1>&5 9659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9661 if diff conftest.exp conftest.er2 >/dev/null; then 9662 lt_cv_prog_compiler_static_works=yes 9663 fi 9664 else 9665 lt_cv_prog_compiler_static_works=yes 9666 fi 9667 fi 9668 $RM -r conftest* 9669 LDFLAGS=$save_LDFLAGS 9670 9671fi 9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9673$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9674 9675if test yes = "$lt_cv_prog_compiler_static_works"; then 9676 : 9677else 9678 lt_prog_compiler_static= 9679fi 9680 9681 9682 9683 9684 9685 9686 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9688$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9689if ${lt_cv_prog_compiler_c_o+:} false; then : 9690 $as_echo_n "(cached) " >&6 9691else 9692 lt_cv_prog_compiler_c_o=no 9693 $RM -r conftest 2>/dev/null 9694 mkdir conftest 9695 cd conftest 9696 mkdir out 9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9698 9699 lt_compiler_flag="-o out/conftest2.$ac_objext" 9700 # Insert the option either (1) after the last *FLAGS variable, or 9701 # (2) before a word containing "conftest.", or (3) at the end. 9702 # Note that $ac_compile itself does not contain backslashes and begins 9703 # with a dollar sign (not a hyphen), so the echo should work correctly. 9704 lt_compile=`echo "$ac_compile" | $SED \ 9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9707 -e 's:$: $lt_compiler_flag:'` 9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9709 (eval "$lt_compile" 2>out/conftest.err) 9710 ac_status=$? 9711 cat out/conftest.err >&5 9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9714 then 9715 # The compiler can only warn and ignore the option if not recognized 9716 # So say no if there are warnings 9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9720 lt_cv_prog_compiler_c_o=yes 9721 fi 9722 fi 9723 chmod u+w . 2>&5 9724 $RM conftest* 9725 # SGI C++ compiler will create directory out/ii_files/ for 9726 # template instantiation 9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9728 $RM out/* && rmdir out 9729 cd .. 9730 $RM -r conftest 9731 $RM conftest* 9732 9733fi 9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9735$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9736 9737 9738 9739 9740 9741 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9743$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9744if ${lt_cv_prog_compiler_c_o+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 lt_cv_prog_compiler_c_o=no 9748 $RM -r conftest 2>/dev/null 9749 mkdir conftest 9750 cd conftest 9751 mkdir out 9752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9753 9754 lt_compiler_flag="-o out/conftest2.$ac_objext" 9755 # Insert the option either (1) after the last *FLAGS variable, or 9756 # (2) before a word containing "conftest.", or (3) at the end. 9757 # Note that $ac_compile itself does not contain backslashes and begins 9758 # with a dollar sign (not a hyphen), so the echo should work correctly. 9759 lt_compile=`echo "$ac_compile" | $SED \ 9760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9762 -e 's:$: $lt_compiler_flag:'` 9763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9764 (eval "$lt_compile" 2>out/conftest.err) 9765 ac_status=$? 9766 cat out/conftest.err >&5 9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9768 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9769 then 9770 # The compiler can only warn and ignore the option if not recognized 9771 # So say no if there are warnings 9772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9775 lt_cv_prog_compiler_c_o=yes 9776 fi 9777 fi 9778 chmod u+w . 2>&5 9779 $RM conftest* 9780 # SGI C++ compiler will create directory out/ii_files/ for 9781 # template instantiation 9782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9783 $RM out/* && rmdir out 9784 cd .. 9785 $RM -r conftest 9786 $RM conftest* 9787 9788fi 9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9790$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9791 9792 9793 9794 9795hard_links=nottested 9796if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9797 # do not overwrite the value of need_locks provided by the user 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9799$as_echo_n "checking if we can lock with hard links... " >&6; } 9800 hard_links=yes 9801 $RM conftest* 9802 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9803 touch conftest.a 9804 ln conftest.a conftest.b 2>&5 || hard_links=no 9805 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9807$as_echo "$hard_links" >&6; } 9808 if test no = "$hard_links"; then 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9810$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9811 need_locks=warn 9812 fi 9813else 9814 need_locks=no 9815fi 9816 9817 9818 9819 9820 9821 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9823$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9824 9825 runpath_var= 9826 allow_undefined_flag= 9827 always_export_symbols=no 9828 archive_cmds= 9829 archive_expsym_cmds= 9830 compiler_needs_object=no 9831 enable_shared_with_static_runtimes=no 9832 export_dynamic_flag_spec= 9833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9834 hardcode_automatic=no 9835 hardcode_direct=no 9836 hardcode_direct_absolute=no 9837 hardcode_libdir_flag_spec= 9838 hardcode_libdir_separator= 9839 hardcode_minus_L=no 9840 hardcode_shlibpath_var=unsupported 9841 inherit_rpath=no 9842 link_all_deplibs=unknown 9843 module_cmds= 9844 module_expsym_cmds= 9845 old_archive_from_new_cmds= 9846 old_archive_from_expsyms_cmds= 9847 thread_safe_flag_spec= 9848 whole_archive_flag_spec= 9849 # include_expsyms should be a list of space-separated symbols to be *always* 9850 # included in the symbol list 9851 include_expsyms= 9852 # exclude_expsyms can be an extended regexp of symbols to exclude 9853 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9854 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9855 # as well as any symbol that contains 'd'. 9856 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9858 # platforms (ab)use it in PIC code, but their linkers get confused if 9859 # the symbol is explicitly referenced. Since portable code cannot 9860 # rely on this symbol name, it's probably fine to never include it in 9861 # preloaded symbol tables. 9862 # Exclude shared library initialization/finalization symbols. 9863 extract_expsyms_cmds= 9864 9865 case $host_os in 9866 cygwin* | mingw* | pw32* | cegcc*) 9867 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9868 # When not using gcc, we currently assume that we are using 9869 # Microsoft Visual C++. 9870 if test yes != "$GCC"; then 9871 with_gnu_ld=no 9872 fi 9873 ;; 9874 interix*) 9875 # we just hope/assume this is gcc and not c89 (= MSVC++) 9876 with_gnu_ld=yes 9877 ;; 9878 openbsd* | bitrig*) 9879 with_gnu_ld=no 9880 ;; 9881 esac 9882 9883 ld_shlibs=yes 9884 9885 # On some targets, GNU ld is compatible enough with the native linker 9886 # that we're better off using the native interface for both. 9887 lt_use_gnu_ld_interface=no 9888 if test yes = "$with_gnu_ld"; then 9889 case $host_os in 9890 aix*) 9891 # The AIX port of GNU ld has always aspired to compatibility 9892 # with the native linker. However, as the warning in the GNU ld 9893 # block says, versions before 2.19.5* couldn't really create working 9894 # shared libraries, regardless of the interface used. 9895 case `$LD -v 2>&1` in 9896 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9897 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9898 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9899 *) 9900 lt_use_gnu_ld_interface=yes 9901 ;; 9902 esac 9903 ;; 9904 *) 9905 lt_use_gnu_ld_interface=yes 9906 ;; 9907 esac 9908 fi 9909 9910 if test yes = "$lt_use_gnu_ld_interface"; then 9911 # If archive_cmds runs LD, not CC, wlarc should be empty 9912 wlarc='$wl' 9913 9914 # Set some defaults for GNU ld with shared library support. These 9915 # are reset later if shared libraries are not supported. Putting them 9916 # here allows them to be overridden if necessary. 9917 runpath_var=LD_RUN_PATH 9918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9919 export_dynamic_flag_spec='$wl--export-dynamic' 9920 # ancient GNU ld didn't support --whole-archive et. al. 9921 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9922 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9923 else 9924 whole_archive_flag_spec= 9925 fi 9926 supports_anon_versioning=no 9927 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9928 *GNU\ gold*) supports_anon_versioning=yes ;; 9929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9932 *\ 2.11.*) ;; # other 2.11 versions 9933 *) supports_anon_versioning=yes ;; 9934 esac 9935 9936 # See if GNU ld supports shared libraries. 9937 case $host_os in 9938 aix[3-9]*) 9939 # On AIX/PPC, the GNU linker is very broken 9940 if test ia64 != "$host_cpu"; then 9941 ld_shlibs=no 9942 cat <<_LT_EOF 1>&2 9943 9944*** Warning: the GNU linker, at least up to release 2.19, is reported 9945*** to be unable to reliably create shared libraries on AIX. 9946*** Therefore, libtool is disabling shared libraries support. If you 9947*** really care for shared libraries, you may want to install binutils 9948*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9949*** You will then need to restart the configuration process. 9950 9951_LT_EOF 9952 fi 9953 ;; 9954 9955 amigaos*) 9956 case $host_cpu in 9957 powerpc) 9958 # see comment about AmigaOS4 .so support 9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9960 archive_expsym_cmds='' 9961 ;; 9962 m68k) 9963 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)' 9964 hardcode_libdir_flag_spec='-L$libdir' 9965 hardcode_minus_L=yes 9966 ;; 9967 esac 9968 ;; 9969 9970 beos*) 9971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9972 allow_undefined_flag=unsupported 9973 # Joseph Beckenbach <[email protected]> says some releases of gcc 9974 # support --undefined. This deserves some investigation. FIXME 9975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9976 else 9977 ld_shlibs=no 9978 fi 9979 ;; 9980 9981 cygwin* | mingw* | pw32* | cegcc*) 9982 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9983 # as there is no search path for DLLs. 9984 hardcode_libdir_flag_spec='-L$libdir' 9985 export_dynamic_flag_spec='$wl--export-all-symbols' 9986 allow_undefined_flag=unsupported 9987 always_export_symbols=no 9988 enable_shared_with_static_runtimes=yes 9989 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' 9990 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9991 9992 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9994 # If the export-symbols file already is a .def file, use it as 9995 # is; otherwise, prepend EXPORTS... 9996 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9997 cp $export_symbols $output_objdir/$soname.def; 9998 else 9999 echo EXPORTS > $output_objdir/$soname.def; 10000 cat $export_symbols >> $output_objdir/$soname.def; 10001 fi~ 10002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10003 else 10004 ld_shlibs=no 10005 fi 10006 ;; 10007 10008 haiku*) 10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10010 link_all_deplibs=yes 10011 ;; 10012 10013 os2*) 10014 hardcode_libdir_flag_spec='-L$libdir' 10015 hardcode_minus_L=yes 10016 allow_undefined_flag=unsupported 10017 shrext_cmds=.dll 10018 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10019 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10020 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10021 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10022 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10023 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10024 emximp -o $lib $output_objdir/$libname.def' 10025 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10026 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10027 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10028 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10029 prefix_cmds="$SED"~ 10030 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10031 prefix_cmds="$prefix_cmds -e 1d"; 10032 fi~ 10033 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10034 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10035 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10036 emximp -o $lib $output_objdir/$libname.def' 10037 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10038 enable_shared_with_static_runtimes=yes 10039 ;; 10040 10041 interix[3-9]*) 10042 hardcode_direct=no 10043 hardcode_shlibpath_var=no 10044 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10045 export_dynamic_flag_spec='$wl-E' 10046 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10047 # Instead, shared libraries are loaded at an image base (0x10000000 by 10048 # default) and relocated if they conflict, which is a slow very memory 10049 # consuming and fragmenting process. To avoid this, we pick a random, 10050 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10051 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10053 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' 10054 ;; 10055 10056 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10057 tmp_diet=no 10058 if test linux-dietlibc = "$host_os"; then 10059 case $cc_basename in 10060 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10061 esac 10062 fi 10063 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10064 && test no = "$tmp_diet" 10065 then 10066 tmp_addflag=' $pic_flag' 10067 tmp_sharedflag='-shared' 10068 case $cc_basename,$host_cpu in 10069 pgcc*) # Portland Group C compiler 10070 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' 10071 tmp_addflag=' $pic_flag' 10072 ;; 10073 pgf77* | pgf90* | pgf95* | pgfortran*) 10074 # Portland Group f77 and f90 compilers 10075 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' 10076 tmp_addflag=' $pic_flag -Mnomain' ;; 10077 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10078 tmp_addflag=' -i_dynamic' ;; 10079 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10080 tmp_addflag=' -i_dynamic -nofor_main' ;; 10081 ifc* | ifort*) # Intel Fortran compiler 10082 tmp_addflag=' -nofor_main' ;; 10083 lf95*) # Lahey Fortran 8.1 10084 whole_archive_flag_spec= 10085 tmp_sharedflag='--shared' ;; 10086 nagfor*) # NAGFOR 5.3 10087 tmp_sharedflag='-Wl,-shared' ;; 10088 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10089 tmp_sharedflag='-qmkshrobj' 10090 tmp_addflag= ;; 10091 nvcc*) # Cuda Compiler Driver 2.2 10092 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10093 compiler_needs_object=yes 10094 ;; 10095 esac 10096 case `$CC -V 2>&1 | sed 5q` in 10097 *Sun\ C*) # Sun C 5.9 10098 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' 10099 compiler_needs_object=yes 10100 tmp_sharedflag='-G' ;; 10101 *Sun\ F*) # Sun Fortran 8.3 10102 tmp_sharedflag='-G' ;; 10103 esac 10104 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10105 10106 if test yes = "$supports_anon_versioning"; then 10107 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10109 echo "local: *; };" >> $output_objdir/$libname.ver~ 10110 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10111 fi 10112 10113 case $cc_basename in 10114 tcc*) 10115 export_dynamic_flag_spec='-rdynamic' 10116 ;; 10117 xlf* | bgf* | bgxlf* | mpixlf*) 10118 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10119 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10120 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10121 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10122 if test yes = "$supports_anon_versioning"; then 10123 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10125 echo "local: *; };" >> $output_objdir/$libname.ver~ 10126 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10127 fi 10128 ;; 10129 esac 10130 else 10131 ld_shlibs=no 10132 fi 10133 ;; 10134 10135 netbsd*) 10136 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10137 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10138 wlarc= 10139 else 10140 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10141 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10142 fi 10143 ;; 10144 10145 solaris*) 10146 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10147 ld_shlibs=no 10148 cat <<_LT_EOF 1>&2 10149 10150*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10151*** create shared libraries on Solaris systems. Therefore, libtool 10152*** is disabling shared libraries support. We urge you to upgrade GNU 10153*** binutils to release 2.9.1 or newer. Another option is to modify 10154*** your PATH or compiler configuration so that the native linker is 10155*** used, and then restart. 10156 10157_LT_EOF 10158 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10160 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10161 else 10162 ld_shlibs=no 10163 fi 10164 ;; 10165 10166 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10167 case `$LD -v 2>&1` in 10168 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10169 ld_shlibs=no 10170 cat <<_LT_EOF 1>&2 10171 10172*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10173*** reliably create shared libraries on SCO systems. Therefore, libtool 10174*** is disabling shared libraries support. We urge you to upgrade GNU 10175*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10176*** your PATH or compiler configuration so that the native linker is 10177*** used, and then restart. 10178 10179_LT_EOF 10180 ;; 10181 *) 10182 # For security reasons, it is highly recommended that you always 10183 # use absolute paths for naming shared libraries, and exclude the 10184 # DT_RUNPATH tag from executables and libraries. But doing so 10185 # requires that you compile everything twice, which is a pain. 10186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10190 else 10191 ld_shlibs=no 10192 fi 10193 ;; 10194 esac 10195 ;; 10196 10197 sunos4*) 10198 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10199 wlarc= 10200 hardcode_direct=yes 10201 hardcode_shlibpath_var=no 10202 ;; 10203 10204 *) 10205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10206 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10207 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10208 else 10209 ld_shlibs=no 10210 fi 10211 ;; 10212 esac 10213 10214 if test no = "$ld_shlibs"; then 10215 runpath_var= 10216 hardcode_libdir_flag_spec= 10217 export_dynamic_flag_spec= 10218 whole_archive_flag_spec= 10219 fi 10220 else 10221 # PORTME fill in a description of your system's linker (not GNU ld) 10222 case $host_os in 10223 aix3*) 10224 allow_undefined_flag=unsupported 10225 always_export_symbols=yes 10226 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' 10227 # Note: this linker hardcodes the directories in LIBPATH if there 10228 # are no directories specified by -L. 10229 hardcode_minus_L=yes 10230 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10231 # Neither direct hardcoding nor static linking is supported with a 10232 # broken collect2. 10233 hardcode_direct=unsupported 10234 fi 10235 ;; 10236 10237 aix[4-9]*) 10238 if test ia64 = "$host_cpu"; then 10239 # On IA64, the linker does run time linking by default, so we don't 10240 # have to do anything special. 10241 aix_use_runtimelinking=no 10242 exp_sym_flag='-Bexport' 10243 no_entry_flag= 10244 else 10245 # If we're using GNU nm, then we don't want the "-C" option. 10246 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10247 # Without the "-l" option, or with the "-B" option, AIX nm treats 10248 # weak defined symbols like other global defined symbols, whereas 10249 # GNU nm marks them as "W". 10250 # While the 'weak' keyword is ignored in the Export File, we need 10251 # it in the Import File for the 'aix-soname' feature, so we have 10252 # to replace the "-B" option with "-P" for AIX nm. 10253 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10254 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' 10255 else 10256 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' 10257 fi 10258 aix_use_runtimelinking=no 10259 10260 # Test if we are trying to use run time linking or normal 10261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10262 # have runtime linking enabled, and use it for executables. 10263 # For shared libraries, we enable/disable runtime linking 10264 # depending on the kind of the shared library created - 10265 # when "with_aix_soname,aix_use_runtimelinking" is: 10266 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10267 # "aix,yes" lib.so shared, rtl:yes, for executables 10268 # lib.a static archive 10269 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10270 # lib.a(lib.so.V) shared, rtl:no, for executables 10271 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10272 # lib.a(lib.so.V) shared, rtl:no 10273 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10274 # lib.a static archive 10275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10276 for ld_flag in $LDFLAGS; do 10277 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10278 aix_use_runtimelinking=yes 10279 break 10280 fi 10281 done 10282 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10283 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10284 # so we don't have lib.a shared libs to link our executables. 10285 # We have to force runtime linking in this case. 10286 aix_use_runtimelinking=yes 10287 LDFLAGS="$LDFLAGS -Wl,-brtl" 10288 fi 10289 ;; 10290 esac 10291 10292 exp_sym_flag='-bexport' 10293 no_entry_flag='-bnoentry' 10294 fi 10295 10296 # When large executables or shared objects are built, AIX ld can 10297 # have problems creating the table of contents. If linking a library 10298 # or program results in "error TOC overflow" add -mminimal-toc to 10299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10301 10302 archive_cmds='' 10303 hardcode_direct=yes 10304 hardcode_direct_absolute=yes 10305 hardcode_libdir_separator=':' 10306 link_all_deplibs=yes 10307 file_list_spec='$wl-f,' 10308 case $with_aix_soname,$aix_use_runtimelinking in 10309 aix,*) ;; # traditional, no import file 10310 svr4,* | *,yes) # use import file 10311 # The Import File defines what to hardcode. 10312 hardcode_direct=no 10313 hardcode_direct_absolute=no 10314 ;; 10315 esac 10316 10317 if test yes = "$GCC"; then 10318 case $host_os in aix4.[012]|aix4.[012].*) 10319 # We only want to do this on AIX 4.2 and lower, the check 10320 # below for broken collect2 doesn't work under 4.3+ 10321 collect2name=`$CC -print-prog-name=collect2` 10322 if test -f "$collect2name" && 10323 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10324 then 10325 # We have reworked collect2 10326 : 10327 else 10328 # We have old collect2 10329 hardcode_direct=unsupported 10330 # It fails to find uninstalled libraries when the uninstalled 10331 # path is not listed in the libpath. Setting hardcode_minus_L 10332 # to unsupported forces relinking 10333 hardcode_minus_L=yes 10334 hardcode_libdir_flag_spec='-L$libdir' 10335 hardcode_libdir_separator= 10336 fi 10337 ;; 10338 esac 10339 shared_flag='-shared' 10340 if test yes = "$aix_use_runtimelinking"; then 10341 shared_flag="$shared_flag "'$wl-G' 10342 fi 10343 # Need to ensure runtime linking is disabled for the traditional 10344 # shared library, or the linker may eventually find shared libraries 10345 # /with/ Import File - we do not want to mix them. 10346 shared_flag_aix='-shared' 10347 shared_flag_svr4='-shared $wl-G' 10348 else 10349 # not using gcc 10350 if test ia64 = "$host_cpu"; then 10351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10352 # chokes on -Wl,-G. The following line is correct: 10353 shared_flag='-G' 10354 else 10355 if test yes = "$aix_use_runtimelinking"; then 10356 shared_flag='$wl-G' 10357 else 10358 shared_flag='$wl-bM:SRE' 10359 fi 10360 shared_flag_aix='$wl-bM:SRE' 10361 shared_flag_svr4='$wl-G' 10362 fi 10363 fi 10364 10365 export_dynamic_flag_spec='$wl-bexpall' 10366 # It seems that -bexpall does not export symbols beginning with 10367 # underscore (_), so it is better to generate a list of symbols to export. 10368 always_export_symbols=yes 10369 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10370 # Warning - without using the other runtime loading flags (-brtl), 10371 # -berok will link without error, but may produce a broken library. 10372 allow_undefined_flag='-berok' 10373 # Determine the default libpath from the value encoded in an 10374 # empty executable. 10375 if test set = "${lt_cv_aix_libpath+set}"; then 10376 aix_libpath=$lt_cv_aix_libpath 10377else 10378 if ${lt_cv_aix_libpath_+:} false; then : 10379 $as_echo_n "(cached) " >&6 10380else 10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10382/* end confdefs.h. */ 10383 10384int 10385main () 10386{ 10387 10388 ; 10389 return 0; 10390} 10391_ACEOF 10392if ac_fn_c_try_link "$LINENO"; then : 10393 10394 lt_aix_libpath_sed=' 10395 /Import File Strings/,/^$/ { 10396 /^0/ { 10397 s/^0 *\([^ ]*\) *$/\1/ 10398 p 10399 } 10400 }' 10401 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10402 # Check for a 64-bit object if we didn't find anything. 10403 if test -z "$lt_cv_aix_libpath_"; then 10404 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10405 fi 10406fi 10407rm -f core conftest.err conftest.$ac_objext \ 10408 conftest$ac_exeext conftest.$ac_ext 10409 if test -z "$lt_cv_aix_libpath_"; then 10410 lt_cv_aix_libpath_=/usr/lib:/lib 10411 fi 10412 10413fi 10414 10415 aix_libpath=$lt_cv_aix_libpath_ 10416fi 10417 10418 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10419 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 10420 else 10421 if test ia64 = "$host_cpu"; then 10422 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10423 allow_undefined_flag="-z nodefs" 10424 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" 10425 else 10426 # Determine the default libpath from the value encoded in an 10427 # empty executable. 10428 if test set = "${lt_cv_aix_libpath+set}"; then 10429 aix_libpath=$lt_cv_aix_libpath 10430else 10431 if ${lt_cv_aix_libpath_+:} false; then : 10432 $as_echo_n "(cached) " >&6 10433else 10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10435/* end confdefs.h. */ 10436 10437int 10438main () 10439{ 10440 10441 ; 10442 return 0; 10443} 10444_ACEOF 10445if ac_fn_c_try_link "$LINENO"; then : 10446 10447 lt_aix_libpath_sed=' 10448 /Import File Strings/,/^$/ { 10449 /^0/ { 10450 s/^0 *\([^ ]*\) *$/\1/ 10451 p 10452 } 10453 }' 10454 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10455 # Check for a 64-bit object if we didn't find anything. 10456 if test -z "$lt_cv_aix_libpath_"; then 10457 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10458 fi 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462 if test -z "$lt_cv_aix_libpath_"; then 10463 lt_cv_aix_libpath_=/usr/lib:/lib 10464 fi 10465 10466fi 10467 10468 aix_libpath=$lt_cv_aix_libpath_ 10469fi 10470 10471 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10472 # Warning - without using the other run time loading flags, 10473 # -berok will link without error, but may produce a broken library. 10474 no_undefined_flag=' $wl-bernotok' 10475 allow_undefined_flag=' $wl-berok' 10476 if test yes = "$with_gnu_ld"; then 10477 # We only use this code for GNU lds that support --whole-archive. 10478 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10479 else 10480 # Exported symbols can be pulled into shared objects from archives 10481 whole_archive_flag_spec='$convenience' 10482 fi 10483 archive_cmds_need_lc=yes 10484 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10485 # -brtl affects multiple linker settings, -berok does not and is overridden later 10486 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10487 if test svr4 != "$with_aix_soname"; then 10488 # This is similar to how AIX traditionally builds its shared libraries. 10489 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' 10490 fi 10491 if test aix != "$with_aix_soname"; then 10492 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' 10493 else 10494 # used by -dlpreopen to get the symbols 10495 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10496 fi 10497 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10498 fi 10499 fi 10500 ;; 10501 10502 amigaos*) 10503 case $host_cpu in 10504 powerpc) 10505 # see comment about AmigaOS4 .so support 10506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10507 archive_expsym_cmds='' 10508 ;; 10509 m68k) 10510 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)' 10511 hardcode_libdir_flag_spec='-L$libdir' 10512 hardcode_minus_L=yes 10513 ;; 10514 esac 10515 ;; 10516 10517 bsdi[45]*) 10518 export_dynamic_flag_spec=-rdynamic 10519 ;; 10520 10521 cygwin* | mingw* | pw32* | cegcc*) 10522 # When not using gcc, we currently assume that we are using 10523 # Microsoft Visual C++. 10524 # hardcode_libdir_flag_spec is actually meaningless, as there is 10525 # no search path for DLLs. 10526 case $cc_basename in 10527 cl*) 10528 # Native MSVC 10529 hardcode_libdir_flag_spec=' ' 10530 allow_undefined_flag=unsupported 10531 always_export_symbols=yes 10532 file_list_spec='@' 10533 # Tell ltmain to make .lib files, not .a files. 10534 libext=lib 10535 # Tell ltmain to make .dll files, not .so files. 10536 shrext_cmds=.dll 10537 # FIXME: Setting linknames here is a bad hack. 10538 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10539 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10540 cp "$export_symbols" "$output_objdir/$soname.def"; 10541 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10542 else 10543 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10544 fi~ 10545 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10546 linknames=' 10547 # The linker will not automatically build a static lib if we build a DLL. 10548 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10549 enable_shared_with_static_runtimes=yes 10550 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10552 # Don't use ranlib 10553 old_postinstall_cmds='chmod 644 $oldlib' 10554 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10555 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10556 case $lt_outputfile in 10557 *.exe|*.EXE) ;; 10558 *) 10559 lt_outputfile=$lt_outputfile.exe 10560 lt_tool_outputfile=$lt_tool_outputfile.exe 10561 ;; 10562 esac~ 10563 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10564 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10565 $RM "$lt_outputfile.manifest"; 10566 fi' 10567 ;; 10568 *) 10569 # Assume MSVC wrapper 10570 hardcode_libdir_flag_spec=' ' 10571 allow_undefined_flag=unsupported 10572 # Tell ltmain to make .lib files, not .a files. 10573 libext=lib 10574 # Tell ltmain to make .dll files, not .so files. 10575 shrext_cmds=.dll 10576 # FIXME: Setting linknames here is a bad hack. 10577 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10578 # The linker will automatically build a .lib file if we build a DLL. 10579 old_archive_from_new_cmds='true' 10580 # FIXME: Should let the user specify the lib program. 10581 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10582 enable_shared_with_static_runtimes=yes 10583 ;; 10584 esac 10585 ;; 10586 10587 darwin* | rhapsody*) 10588 10589 10590 archive_cmds_need_lc=no 10591 hardcode_direct=no 10592 hardcode_automatic=yes 10593 hardcode_shlibpath_var=unsupported 10594 if test yes = "$lt_cv_ld_force_load"; then 10595 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\"`' 10596 10597 else 10598 whole_archive_flag_spec='' 10599 fi 10600 link_all_deplibs=yes 10601 allow_undefined_flag=$_lt_dar_allow_undefined 10602 case $cc_basename in 10603 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10604 *) _lt_dar_can_shared=$GCC ;; 10605 esac 10606 if test yes = "$_lt_dar_can_shared"; then 10607 output_verbose_link_cmd=func_echo_all 10608 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10609 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10610 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" 10611 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" 10612 10613 else 10614 ld_shlibs=no 10615 fi 10616 10617 ;; 10618 10619 dgux*) 10620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10621 hardcode_libdir_flag_spec='-L$libdir' 10622 hardcode_shlibpath_var=no 10623 ;; 10624 10625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10626 # support. Future versions do this automatically, but an explicit c++rt0.o 10627 # does not break anything, and helps significantly (at the cost of a little 10628 # extra space). 10629 freebsd2.2*) 10630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10631 hardcode_libdir_flag_spec='-R$libdir' 10632 hardcode_direct=yes 10633 hardcode_shlibpath_var=no 10634 ;; 10635 10636 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10637 freebsd2.*) 10638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10639 hardcode_direct=yes 10640 hardcode_minus_L=yes 10641 hardcode_shlibpath_var=no 10642 ;; 10643 10644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10645 freebsd* | dragonfly*) 10646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10647 hardcode_libdir_flag_spec='-R$libdir' 10648 hardcode_direct=yes 10649 hardcode_shlibpath_var=no 10650 ;; 10651 10652 hpux9*) 10653 if test yes = "$GCC"; then 10654 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' 10655 else 10656 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' 10657 fi 10658 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10659 hardcode_libdir_separator=: 10660 hardcode_direct=yes 10661 10662 # hardcode_minus_L: Not really in the search PATH, 10663 # but as the default location of the library. 10664 hardcode_minus_L=yes 10665 export_dynamic_flag_spec='$wl-E' 10666 ;; 10667 10668 hpux10*) 10669 if test yes,no = "$GCC,$with_gnu_ld"; then 10670 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10671 else 10672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10673 fi 10674 if test no = "$with_gnu_ld"; then 10675 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10676 hardcode_libdir_separator=: 10677 hardcode_direct=yes 10678 hardcode_direct_absolute=yes 10679 export_dynamic_flag_spec='$wl-E' 10680 # hardcode_minus_L: Not really in the search PATH, 10681 # but as the default location of the library. 10682 hardcode_minus_L=yes 10683 fi 10684 ;; 10685 10686 hpux11*) 10687 if test yes,no = "$GCC,$with_gnu_ld"; then 10688 case $host_cpu in 10689 hppa*64*) 10690 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10691 ;; 10692 ia64*) 10693 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10694 ;; 10695 *) 10696 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10697 ;; 10698 esac 10699 else 10700 case $host_cpu in 10701 hppa*64*) 10702 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10703 ;; 10704 ia64*) 10705 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10706 ;; 10707 *) 10708 10709 # Older versions of the 11.00 compiler do not understand -b yet 10710 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10712$as_echo_n "checking if $CC understands -b... " >&6; } 10713if ${lt_cv_prog_compiler__b+:} false; then : 10714 $as_echo_n "(cached) " >&6 10715else 10716 lt_cv_prog_compiler__b=no 10717 save_LDFLAGS=$LDFLAGS 10718 LDFLAGS="$LDFLAGS -b" 10719 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10721 # The linker can only warn and ignore the option if not recognized 10722 # So say no if there are warnings 10723 if test -s conftest.err; then 10724 # Append any errors to the config.log. 10725 cat conftest.err 1>&5 10726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10728 if diff conftest.exp conftest.er2 >/dev/null; then 10729 lt_cv_prog_compiler__b=yes 10730 fi 10731 else 10732 lt_cv_prog_compiler__b=yes 10733 fi 10734 fi 10735 $RM -r conftest* 10736 LDFLAGS=$save_LDFLAGS 10737 10738fi 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10740$as_echo "$lt_cv_prog_compiler__b" >&6; } 10741 10742if test yes = "$lt_cv_prog_compiler__b"; then 10743 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10744else 10745 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10746fi 10747 10748 ;; 10749 esac 10750 fi 10751 if test no = "$with_gnu_ld"; then 10752 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10753 hardcode_libdir_separator=: 10754 10755 case $host_cpu in 10756 hppa*64*|ia64*) 10757 hardcode_direct=no 10758 hardcode_shlibpath_var=no 10759 ;; 10760 *) 10761 hardcode_direct=yes 10762 hardcode_direct_absolute=yes 10763 export_dynamic_flag_spec='$wl-E' 10764 10765 # hardcode_minus_L: Not really in the search PATH, 10766 # but as the default location of the library. 10767 hardcode_minus_L=yes 10768 ;; 10769 esac 10770 fi 10771 ;; 10772 10773 irix5* | irix6* | nonstopux*) 10774 if test yes = "$GCC"; then 10775 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' 10776 # Try to use the -exported_symbol ld option, if it does not 10777 # work, assume that -exports_file does not work either and 10778 # implicitly export all symbols. 10779 # This should be the same for all languages, so no per-tag cache variable. 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10781$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10782if ${lt_cv_irix_exported_symbol+:} false; then : 10783 $as_echo_n "(cached) " >&6 10784else 10785 save_LDFLAGS=$LDFLAGS 10786 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10788/* end confdefs.h. */ 10789int foo (void) { return 0; } 10790_ACEOF 10791if ac_fn_c_try_link "$LINENO"; then : 10792 lt_cv_irix_exported_symbol=yes 10793else 10794 lt_cv_irix_exported_symbol=no 10795fi 10796rm -f core conftest.err conftest.$ac_objext \ 10797 conftest$ac_exeext conftest.$ac_ext 10798 LDFLAGS=$save_LDFLAGS 10799fi 10800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10801$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10802 if test yes = "$lt_cv_irix_exported_symbol"; then 10803 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' 10804 fi 10805 else 10806 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' 10807 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' 10808 fi 10809 archive_cmds_need_lc='no' 10810 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10811 hardcode_libdir_separator=: 10812 inherit_rpath=yes 10813 link_all_deplibs=yes 10814 ;; 10815 10816 linux*) 10817 case $cc_basename in 10818 tcc*) 10819 # Fabrice Bellard et al's Tiny C Compiler 10820 ld_shlibs=yes 10821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10822 ;; 10823 esac 10824 ;; 10825 10826 netbsd*) 10827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10829 else 10830 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10831 fi 10832 hardcode_libdir_flag_spec='-R$libdir' 10833 hardcode_direct=yes 10834 hardcode_shlibpath_var=no 10835 ;; 10836 10837 newsos6) 10838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10839 hardcode_direct=yes 10840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10841 hardcode_libdir_separator=: 10842 hardcode_shlibpath_var=no 10843 ;; 10844 10845 *nto* | *qnx*) 10846 ;; 10847 10848 openbsd* | bitrig*) 10849 if test -f /usr/libexec/ld.so; then 10850 hardcode_direct=yes 10851 hardcode_shlibpath_var=no 10852 hardcode_direct_absolute=yes 10853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10855 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10856 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10857 export_dynamic_flag_spec='$wl-E' 10858 else 10859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10860 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10861 fi 10862 else 10863 ld_shlibs=no 10864 fi 10865 ;; 10866 10867 os2*) 10868 hardcode_libdir_flag_spec='-L$libdir' 10869 hardcode_minus_L=yes 10870 allow_undefined_flag=unsupported 10871 shrext_cmds=.dll 10872 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10873 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10874 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10875 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10876 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10877 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10878 emximp -o $lib $output_objdir/$libname.def' 10879 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10880 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10881 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10882 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10883 prefix_cmds="$SED"~ 10884 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10885 prefix_cmds="$prefix_cmds -e 1d"; 10886 fi~ 10887 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10888 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10889 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10890 emximp -o $lib $output_objdir/$libname.def' 10891 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10892 enable_shared_with_static_runtimes=yes 10893 ;; 10894 10895 osf3*) 10896 if test yes = "$GCC"; then 10897 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10898 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' 10899 else 10900 allow_undefined_flag=' -expect_unresolved \*' 10901 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' 10902 fi 10903 archive_cmds_need_lc='no' 10904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10905 hardcode_libdir_separator=: 10906 ;; 10907 10908 osf4* | osf5*) # as osf3* with the addition of -msym flag 10909 if test yes = "$GCC"; then 10910 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10911 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' 10912 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10913 else 10914 allow_undefined_flag=' -expect_unresolved \*' 10915 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' 10916 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~ 10917 $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' 10918 10919 # Both c and cxx compiler support -rpath directly 10920 hardcode_libdir_flag_spec='-rpath $libdir' 10921 fi 10922 archive_cmds_need_lc='no' 10923 hardcode_libdir_separator=: 10924 ;; 10925 10926 solaris*) 10927 no_undefined_flag=' -z defs' 10928 if test yes = "$GCC"; then 10929 wlarc='$wl' 10930 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10932 $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' 10933 else 10934 case `$CC -V 2>&1` in 10935 *"Compilers 5.0"*) 10936 wlarc='' 10937 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10939 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10940 ;; 10941 *) 10942 wlarc='$wl' 10943 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10945 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10946 ;; 10947 esac 10948 fi 10949 hardcode_libdir_flag_spec='-R$libdir' 10950 hardcode_shlibpath_var=no 10951 case $host_os in 10952 solaris2.[0-5] | solaris2.[0-5].*) ;; 10953 *) 10954 # The compiler driver will combine and reorder linker options, 10955 # but understands '-z linker_flag'. GCC discards it without '$wl', 10956 # but is careful enough not to reorder. 10957 # Supported since Solaris 2.6 (maybe 2.5.1?) 10958 if test yes = "$GCC"; then 10959 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10960 else 10961 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10962 fi 10963 ;; 10964 esac 10965 link_all_deplibs=yes 10966 ;; 10967 10968 sunos4*) 10969 if test sequent = "$host_vendor"; then 10970 # Use $CC to link under sequent, because it throws in some extra .o 10971 # files that make .init and .fini sections work. 10972 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10973 else 10974 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10975 fi 10976 hardcode_libdir_flag_spec='-L$libdir' 10977 hardcode_direct=yes 10978 hardcode_minus_L=yes 10979 hardcode_shlibpath_var=no 10980 ;; 10981 10982 sysv4) 10983 case $host_vendor in 10984 sni) 10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10986 hardcode_direct=yes # is this really true??? 10987 ;; 10988 siemens) 10989 ## LD is ld it makes a PLAMLIB 10990 ## CC just makes a GrossModule. 10991 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10992 reload_cmds='$CC -r -o $output$reload_objs' 10993 hardcode_direct=no 10994 ;; 10995 motorola) 10996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10997 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10998 ;; 10999 esac 11000 runpath_var='LD_RUN_PATH' 11001 hardcode_shlibpath_var=no 11002 ;; 11003 11004 sysv4.3*) 11005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11006 hardcode_shlibpath_var=no 11007 export_dynamic_flag_spec='-Bexport' 11008 ;; 11009 11010 sysv4*MP*) 11011 if test -d /usr/nec; then 11012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11013 hardcode_shlibpath_var=no 11014 runpath_var=LD_RUN_PATH 11015 hardcode_runpath_var=yes 11016 ld_shlibs=yes 11017 fi 11018 ;; 11019 11020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11021 no_undefined_flag='$wl-z,text' 11022 archive_cmds_need_lc=no 11023 hardcode_shlibpath_var=no 11024 runpath_var='LD_RUN_PATH' 11025 11026 if test yes = "$GCC"; then 11027 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11028 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11029 else 11030 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11031 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11032 fi 11033 ;; 11034 11035 sysv5* | sco3.2v5* | sco5v6*) 11036 # Note: We CANNOT use -z defs as we might desire, because we do not 11037 # link with -lc, and that would cause any symbols used from libc to 11038 # always be unresolved, which means just about no library would 11039 # ever link correctly. If we're not using GNU ld we use -z text 11040 # though, which does catch some bad symbols but isn't as heavy-handed 11041 # as -z defs. 11042 no_undefined_flag='$wl-z,text' 11043 allow_undefined_flag='$wl-z,nodefs' 11044 archive_cmds_need_lc=no 11045 hardcode_shlibpath_var=no 11046 hardcode_libdir_flag_spec='$wl-R,$libdir' 11047 hardcode_libdir_separator=':' 11048 link_all_deplibs=yes 11049 export_dynamic_flag_spec='$wl-Bexport' 11050 runpath_var='LD_RUN_PATH' 11051 11052 if test yes = "$GCC"; then 11053 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11054 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11055 else 11056 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11057 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11058 fi 11059 ;; 11060 11061 uts4*) 11062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11063 hardcode_libdir_flag_spec='-L$libdir' 11064 hardcode_shlibpath_var=no 11065 ;; 11066 11067 *) 11068 ld_shlibs=no 11069 ;; 11070 esac 11071 11072 if test sni = "$host_vendor"; then 11073 case $host in 11074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11075 export_dynamic_flag_spec='$wl-Blargedynsym' 11076 ;; 11077 esac 11078 fi 11079 fi 11080 11081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11082$as_echo "$ld_shlibs" >&6; } 11083test no = "$ld_shlibs" && can_build_shared=no 11084 11085with_gnu_ld=$with_gnu_ld 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101# 11102# Do we need to explicitly link libc? 11103# 11104case "x$archive_cmds_need_lc" in 11105x|xyes) 11106 # Assume -lc should be added 11107 archive_cmds_need_lc=yes 11108 11109 if test yes,yes = "$GCC,$enable_shared"; then 11110 case $archive_cmds in 11111 *'~'*) 11112 # FIXME: we may have to deal with multi-command sequences. 11113 ;; 11114 '$CC '*) 11115 # Test whether the compiler implicitly links with -lc since on some 11116 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11117 # to ld, don't add -lc before -lgcc. 11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11119$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11120if ${lt_cv_archive_cmds_need_lc+:} false; then : 11121 $as_echo_n "(cached) " >&6 11122else 11123 $RM conftest* 11124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11125 11126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11127 (eval $ac_compile) 2>&5 11128 ac_status=$? 11129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11130 test $ac_status = 0; } 2>conftest.err; then 11131 soname=conftest 11132 lib=conftest 11133 libobjs=conftest.$ac_objext 11134 deplibs= 11135 wl=$lt_prog_compiler_wl 11136 pic_flag=$lt_prog_compiler_pic 11137 compiler_flags=-v 11138 linker_flags=-v 11139 verstring= 11140 output_objdir=. 11141 libname=conftest 11142 lt_save_allow_undefined_flag=$allow_undefined_flag 11143 allow_undefined_flag= 11144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11145 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11146 ac_status=$? 11147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11148 test $ac_status = 0; } 11149 then 11150 lt_cv_archive_cmds_need_lc=no 11151 else 11152 lt_cv_archive_cmds_need_lc=yes 11153 fi 11154 allow_undefined_flag=$lt_save_allow_undefined_flag 11155 else 11156 cat conftest.err 1>&5 11157 fi 11158 $RM conftest* 11159 11160fi 11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11162$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11163 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11164 ;; 11165 esac 11166 fi 11167 ;; 11168esac 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11322$as_echo_n "checking dynamic linker characteristics... " >&6; } 11323 11324if test yes = "$GCC"; then 11325 case $host_os in 11326 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11327 *) lt_awk_arg='/^libraries:/' ;; 11328 esac 11329 case $host_os in 11330 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11331 *) lt_sed_strip_eq='s|=/|/|g' ;; 11332 esac 11333 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11334 case $lt_search_path_spec in 11335 *\;*) 11336 # if the path contains ";" then we assume it to be the separator 11337 # otherwise default to the standard path separator (i.e. ":") - it is 11338 # assumed that no part of a normal pathname contains ";" but that should 11339 # okay in the real world where ";" in dirpaths is itself problematic. 11340 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11341 ;; 11342 *) 11343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11344 ;; 11345 esac 11346 # Ok, now we have the path, separated by spaces, we can step through it 11347 # and add multilib dir if necessary... 11348 lt_tmp_lt_search_path_spec= 11349 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11350 # ...but if some path component already ends with the multilib dir we assume 11351 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11352 case "$lt_multi_os_dir; $lt_search_path_spec " in 11353 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11354 lt_multi_os_dir= 11355 ;; 11356 esac 11357 for lt_sys_path in $lt_search_path_spec; do 11358 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11359 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11360 elif test -n "$lt_multi_os_dir"; then 11361 test -d "$lt_sys_path" && \ 11362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11363 fi 11364 done 11365 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11366BEGIN {RS = " "; FS = "/|\n";} { 11367 lt_foo = ""; 11368 lt_count = 0; 11369 for (lt_i = NF; lt_i > 0; lt_i--) { 11370 if ($lt_i != "" && $lt_i != ".") { 11371 if ($lt_i == "..") { 11372 lt_count++; 11373 } else { 11374 if (lt_count == 0) { 11375 lt_foo = "/" $lt_i lt_foo; 11376 } else { 11377 lt_count--; 11378 } 11379 } 11380 } 11381 } 11382 if (lt_foo != "") { lt_freq[lt_foo]++; } 11383 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11384}'` 11385 # AWK program above erroneously prepends '/' to C:/dos/paths 11386 # for these hosts. 11387 case $host_os in 11388 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11389 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11390 esac 11391 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11392else 11393 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11394fi 11395library_names_spec= 11396libname_spec='lib$name' 11397soname_spec= 11398shrext_cmds=.so 11399postinstall_cmds= 11400postuninstall_cmds= 11401finish_cmds= 11402finish_eval= 11403shlibpath_var= 11404shlibpath_overrides_runpath=unknown 11405version_type=none 11406dynamic_linker="$host_os ld.so" 11407sys_lib_dlsearch_path_spec="/lib /usr/lib" 11408need_lib_prefix=unknown 11409hardcode_into_libs=no 11410 11411# when you set need_version to no, make sure it does not cause -set_version 11412# flags to be left without arguments 11413need_version=unknown 11414 11415 11416 11417case $host_os in 11418aix3*) 11419 version_type=linux # correct to gnu/linux during the next big refactor 11420 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11421 shlibpath_var=LIBPATH 11422 11423 # AIX 3 has no versioning support, so we append a major version to the name. 11424 soname_spec='$libname$release$shared_ext$major' 11425 ;; 11426 11427aix[4-9]*) 11428 version_type=linux # correct to gnu/linux during the next big refactor 11429 need_lib_prefix=no 11430 need_version=no 11431 hardcode_into_libs=yes 11432 if test ia64 = "$host_cpu"; then 11433 # AIX 5 supports IA64 11434 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11435 shlibpath_var=LD_LIBRARY_PATH 11436 else 11437 # With GCC up to 2.95.x, collect2 would create an import file 11438 # for dependence libraries. The import file would start with 11439 # the line '#! .'. This would cause the generated library to 11440 # depend on '.', always an invalid library. This was fixed in 11441 # development snapshots of GCC prior to 3.0. 11442 case $host_os in 11443 aix4 | aix4.[01] | aix4.[01].*) 11444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11445 echo ' yes ' 11446 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11447 : 11448 else 11449 can_build_shared=no 11450 fi 11451 ;; 11452 esac 11453 # Using Import Files as archive members, it is possible to support 11454 # filename-based versioning of shared library archives on AIX. While 11455 # this would work for both with and without runtime linking, it will 11456 # prevent static linking of such archives. So we do filename-based 11457 # shared library versioning with .so extension only, which is used 11458 # when both runtime linking and shared linking is enabled. 11459 # Unfortunately, runtime linking may impact performance, so we do 11460 # not want this to be the default eventually. Also, we use the 11461 # versioned .so libs for executables only if there is the -brtl 11462 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11463 # To allow for filename-based versioning support, we need to create 11464 # libNAME.so.V as an archive file, containing: 11465 # *) an Import File, referring to the versioned filename of the 11466 # archive as well as the shared archive member, telling the 11467 # bitwidth (32 or 64) of that shared object, and providing the 11468 # list of exported symbols of that shared object, eventually 11469 # decorated with the 'weak' keyword 11470 # *) the shared object with the F_LOADONLY flag set, to really avoid 11471 # it being seen by the linker. 11472 # At run time we better use the real file rather than another symlink, 11473 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11474 11475 case $with_aix_soname,$aix_use_runtimelinking in 11476 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11477 # soname into executable. Probably we can add versioning support to 11478 # collect2, so additional links can be useful in future. 11479 aix,yes) # traditional libtool 11480 dynamic_linker='AIX unversionable lib.so' 11481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11482 # instead of lib<name>.a to let people know that these are not 11483 # typical AIX shared libraries. 11484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11485 ;; 11486 aix,no) # traditional AIX only 11487 dynamic_linker='AIX lib.a(lib.so.V)' 11488 # We preserve .a as extension for shared libraries through AIX4.2 11489 # and later when we are not doing run time linking. 11490 library_names_spec='$libname$release.a $libname.a' 11491 soname_spec='$libname$release$shared_ext$major' 11492 ;; 11493 svr4,*) # full svr4 only 11494 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11495 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11496 # We do not specify a path in Import Files, so LIBPATH fires. 11497 shlibpath_overrides_runpath=yes 11498 ;; 11499 *,yes) # both, prefer svr4 11500 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11501 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11502 # unpreferred sharedlib libNAME.a needs extra handling 11503 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"' 11504 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"' 11505 # We do not specify a path in Import Files, so LIBPATH fires. 11506 shlibpath_overrides_runpath=yes 11507 ;; 11508 *,no) # both, prefer aix 11509 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11510 library_names_spec='$libname$release.a $libname.a' 11511 soname_spec='$libname$release$shared_ext$major' 11512 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11513 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)' 11514 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"' 11515 ;; 11516 esac 11517 shlibpath_var=LIBPATH 11518 fi 11519 ;; 11520 11521amigaos*) 11522 case $host_cpu in 11523 powerpc) 11524 # Since July 2007 AmigaOS4 officially supports .so libraries. 11525 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11527 ;; 11528 m68k) 11529 library_names_spec='$libname.ixlibrary $libname.a' 11530 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11531 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' 11532 ;; 11533 esac 11534 ;; 11535 11536beos*) 11537 library_names_spec='$libname$shared_ext' 11538 dynamic_linker="$host_os ld.so" 11539 shlibpath_var=LIBRARY_PATH 11540 ;; 11541 11542bsdi[45]*) 11543 version_type=linux # correct to gnu/linux during the next big refactor 11544 need_version=no 11545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11546 soname_spec='$libname$release$shared_ext$major' 11547 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11548 shlibpath_var=LD_LIBRARY_PATH 11549 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11550 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11551 # the default ld.so.conf also contains /usr/contrib/lib and 11552 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11553 # libtool to hard-code these into programs 11554 ;; 11555 11556cygwin* | mingw* | pw32* | cegcc*) 11557 version_type=windows 11558 shrext_cmds=.dll 11559 need_version=no 11560 need_lib_prefix=no 11561 11562 case $GCC,$cc_basename in 11563 yes,*) 11564 # gcc 11565 library_names_spec='$libname.dll.a' 11566 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11567 postinstall_cmds='base_file=`basename \$file`~ 11568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11569 dldir=$destdir/`dirname \$dlpath`~ 11570 test -d \$dldir || mkdir -p \$dldir~ 11571 $install_prog $dir/$dlname \$dldir/$dlname~ 11572 chmod a+x \$dldir/$dlname~ 11573 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11574 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11575 fi' 11576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11577 dlpath=$dir/\$dldll~ 11578 $RM \$dlpath' 11579 shlibpath_overrides_runpath=yes 11580 11581 case $host_os in 11582 cygwin*) 11583 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11584 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11585 11586 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11587 ;; 11588 mingw* | cegcc*) 11589 # MinGW DLLs use traditional 'lib' prefix 11590 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11591 ;; 11592 pw32*) 11593 # pw32 DLLs use 'pw' prefix rather than 'lib' 11594 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11595 ;; 11596 esac 11597 dynamic_linker='Win32 ld.exe' 11598 ;; 11599 11600 *,cl*) 11601 # Native MSVC 11602 libname_spec='$name' 11603 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11604 library_names_spec='$libname.dll.lib' 11605 11606 case $build_os in 11607 mingw*) 11608 sys_lib_search_path_spec= 11609 lt_save_ifs=$IFS 11610 IFS=';' 11611 for lt_path in $LIB 11612 do 11613 IFS=$lt_save_ifs 11614 # Let DOS variable expansion print the short 8.3 style file name. 11615 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11616 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11617 done 11618 IFS=$lt_save_ifs 11619 # Convert to MSYS style. 11620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11621 ;; 11622 cygwin*) 11623 # Convert to unix form, then to dos form, then back to unix form 11624 # but this time dos style (no spaces!) so that the unix form looks 11625 # like /cygdrive/c/PROGRA~1:/cygdr... 11626 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11627 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11628 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11629 ;; 11630 *) 11631 sys_lib_search_path_spec=$LIB 11632 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11633 # It is most probably a Windows format PATH. 11634 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11635 else 11636 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11637 fi 11638 # FIXME: find the short name or the path components, as spaces are 11639 # common. (e.g. "Program Files" -> "PROGRA~1") 11640 ;; 11641 esac 11642 11643 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11644 postinstall_cmds='base_file=`basename \$file`~ 11645 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11646 dldir=$destdir/`dirname \$dlpath`~ 11647 test -d \$dldir || mkdir -p \$dldir~ 11648 $install_prog $dir/$dlname \$dldir/$dlname' 11649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11650 dlpath=$dir/\$dldll~ 11651 $RM \$dlpath' 11652 shlibpath_overrides_runpath=yes 11653 dynamic_linker='Win32 link.exe' 11654 ;; 11655 11656 *) 11657 # Assume MSVC wrapper 11658 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11659 dynamic_linker='Win32 ld.exe' 11660 ;; 11661 esac 11662 # FIXME: first we should search . and the directory the executable is in 11663 shlibpath_var=PATH 11664 ;; 11665 11666darwin* | rhapsody*) 11667 dynamic_linker="$host_os dyld" 11668 version_type=darwin 11669 need_lib_prefix=no 11670 need_version=no 11671 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11672 soname_spec='$libname$release$major$shared_ext' 11673 shlibpath_overrides_runpath=yes 11674 shlibpath_var=DYLD_LIBRARY_PATH 11675 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11676 11677 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11678 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11679 ;; 11680 11681dgux*) 11682 version_type=linux # correct to gnu/linux during the next big refactor 11683 need_lib_prefix=no 11684 need_version=no 11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11686 soname_spec='$libname$release$shared_ext$major' 11687 shlibpath_var=LD_LIBRARY_PATH 11688 ;; 11689 11690freebsd* | dragonfly*) 11691 # DragonFly does not have aout. When/if they implement a new 11692 # versioning mechanism, adjust this. 11693 if test -x /usr/bin/objformat; then 11694 objformat=`/usr/bin/objformat` 11695 else 11696 case $host_os in 11697 freebsd[23].*) objformat=aout ;; 11698 *) objformat=elf ;; 11699 esac 11700 fi 11701 version_type=freebsd-$objformat 11702 case $version_type in 11703 freebsd-elf*) 11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11705 soname_spec='$libname$release$shared_ext$major' 11706 need_version=no 11707 need_lib_prefix=no 11708 ;; 11709 freebsd-*) 11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11711 need_version=yes 11712 ;; 11713 esac 11714 shlibpath_var=LD_LIBRARY_PATH 11715 case $host_os in 11716 freebsd2.*) 11717 shlibpath_overrides_runpath=yes 11718 ;; 11719 freebsd3.[01]* | freebsdelf3.[01]*) 11720 shlibpath_overrides_runpath=yes 11721 hardcode_into_libs=yes 11722 ;; 11723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11725 shlibpath_overrides_runpath=no 11726 hardcode_into_libs=yes 11727 ;; 11728 *) # from 4.6 on, and DragonFly 11729 shlibpath_overrides_runpath=yes 11730 hardcode_into_libs=yes 11731 ;; 11732 esac 11733 ;; 11734 11735haiku*) 11736 version_type=linux # correct to gnu/linux during the next big refactor 11737 need_lib_prefix=no 11738 need_version=no 11739 dynamic_linker="$host_os runtime_loader" 11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11741 soname_spec='$libname$release$shared_ext$major' 11742 shlibpath_var=LIBRARY_PATH 11743 shlibpath_overrides_runpath=no 11744 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11745 hardcode_into_libs=yes 11746 ;; 11747 11748hpux9* | hpux10* | hpux11*) 11749 # Give a soname corresponding to the major version so that dld.sl refuses to 11750 # link against other versions. 11751 version_type=sunos 11752 need_lib_prefix=no 11753 need_version=no 11754 case $host_cpu in 11755 ia64*) 11756 shrext_cmds='.so' 11757 hardcode_into_libs=yes 11758 dynamic_linker="$host_os dld.so" 11759 shlibpath_var=LD_LIBRARY_PATH 11760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11762 soname_spec='$libname$release$shared_ext$major' 11763 if test 32 = "$HPUX_IA64_MODE"; then 11764 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11765 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11766 else 11767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11768 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11769 fi 11770 ;; 11771 hppa*64*) 11772 shrext_cmds='.sl' 11773 hardcode_into_libs=yes 11774 dynamic_linker="$host_os dld.sl" 11775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11778 soname_spec='$libname$release$shared_ext$major' 11779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11781 ;; 11782 *) 11783 shrext_cmds='.sl' 11784 dynamic_linker="$host_os dld.sl" 11785 shlibpath_var=SHLIB_PATH 11786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11788 soname_spec='$libname$release$shared_ext$major' 11789 ;; 11790 esac 11791 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11792 postinstall_cmds='chmod 555 $lib' 11793 # or fails outright, so override atomically: 11794 install_override_mode=555 11795 ;; 11796 11797interix[3-9]*) 11798 version_type=linux # correct to gnu/linux during the next big refactor 11799 need_lib_prefix=no 11800 need_version=no 11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11802 soname_spec='$libname$release$shared_ext$major' 11803 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11804 shlibpath_var=LD_LIBRARY_PATH 11805 shlibpath_overrides_runpath=no 11806 hardcode_into_libs=yes 11807 ;; 11808 11809irix5* | irix6* | nonstopux*) 11810 case $host_os in 11811 nonstopux*) version_type=nonstopux ;; 11812 *) 11813 if test yes = "$lt_cv_prog_gnu_ld"; then 11814 version_type=linux # correct to gnu/linux during the next big refactor 11815 else 11816 version_type=irix 11817 fi ;; 11818 esac 11819 need_lib_prefix=no 11820 need_version=no 11821 soname_spec='$libname$release$shared_ext$major' 11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11823 case $host_os in 11824 irix5* | nonstopux*) 11825 libsuff= shlibsuff= 11826 ;; 11827 *) 11828 case $LD in # libtool.m4 will add one of these switches to LD 11829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11830 libsuff= shlibsuff= libmagic=32-bit;; 11831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11832 libsuff=32 shlibsuff=N32 libmagic=N32;; 11833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11834 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11835 *) libsuff= shlibsuff= libmagic=never-match;; 11836 esac 11837 ;; 11838 esac 11839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11840 shlibpath_overrides_runpath=no 11841 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11842 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11843 hardcode_into_libs=yes 11844 ;; 11845 11846# No shared lib support for Linux oldld, aout, or coff. 11847linux*oldld* | linux*aout* | linux*coff*) 11848 dynamic_linker=no 11849 ;; 11850 11851linux*android*) 11852 version_type=none # Android doesn't support versioned libraries. 11853 need_lib_prefix=no 11854 need_version=no 11855 library_names_spec='$libname$release$shared_ext' 11856 soname_spec='$libname$release$shared_ext' 11857 finish_cmds= 11858 shlibpath_var=LD_LIBRARY_PATH 11859 shlibpath_overrides_runpath=yes 11860 11861 # This implies no fast_install, which is unacceptable. 11862 # Some rework will be needed to allow for fast_install 11863 # before this can be enabled. 11864 hardcode_into_libs=yes 11865 11866 dynamic_linker='Android linker' 11867 # Don't embed -rpath directories since the linker doesn't support them. 11868 hardcode_libdir_flag_spec='-L$libdir' 11869 ;; 11870 11871# This must be glibc/ELF. 11872linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11873 version_type=linux # correct to gnu/linux during the next big refactor 11874 need_lib_prefix=no 11875 need_version=no 11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11877 soname_spec='$libname$release$shared_ext$major' 11878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11879 shlibpath_var=LD_LIBRARY_PATH 11880 shlibpath_overrides_runpath=no 11881 11882 # Some binutils ld are patched to set DT_RUNPATH 11883 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11884 $as_echo_n "(cached) " >&6 11885else 11886 lt_cv_shlibpath_overrides_runpath=no 11887 save_LDFLAGS=$LDFLAGS 11888 save_libdir=$libdir 11889 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11890 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11892/* end confdefs.h. */ 11893 11894int 11895main () 11896{ 11897 11898 ; 11899 return 0; 11900} 11901_ACEOF 11902if ac_fn_c_try_link "$LINENO"; then : 11903 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11904 lt_cv_shlibpath_overrides_runpath=yes 11905fi 11906fi 11907rm -f core conftest.err conftest.$ac_objext \ 11908 conftest$ac_exeext conftest.$ac_ext 11909 LDFLAGS=$save_LDFLAGS 11910 libdir=$save_libdir 11911 11912fi 11913 11914 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11915 11916 # This implies no fast_install, which is unacceptable. 11917 # Some rework will be needed to allow for fast_install 11918 # before this can be enabled. 11919 hardcode_into_libs=yes 11920 11921 # Add ABI-specific directories to the system library path. 11922 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11923 11924 # Ideally, we could use ldconfig to report *all* directores which are 11925 # searched for libraries, however this is still not possible. Aside from not 11926 # being certain /sbin/ldconfig is available, command 11927 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11928 # even though it is searched at run-time. Try to do the best guess by 11929 # appending ld.so.conf contents (and includes) to the search path. 11930 if test -f /etc/ld.so.conf; then 11931 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' ' '` 11932 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11933 fi 11934 11935 # We used to test for /lib/ld.so.1 and disable shared libraries on 11936 # powerpc, because MkLinux only supported shared libraries with the 11937 # GNU dynamic linker. Since this was broken with cross compilers, 11938 # most powerpc-linux boxes support dynamic linking these days and 11939 # people can always --disable-shared, the test was removed, and we 11940 # assume the GNU/Linux dynamic linker is in use. 11941 dynamic_linker='GNU/Linux ld.so' 11942 ;; 11943 11944netbsd*) 11945 version_type=sunos 11946 need_lib_prefix=no 11947 need_version=no 11948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11951 dynamic_linker='NetBSD (a.out) ld.so' 11952 else 11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11954 soname_spec='$libname$release$shared_ext$major' 11955 dynamic_linker='NetBSD ld.elf_so' 11956 fi 11957 shlibpath_var=LD_LIBRARY_PATH 11958 shlibpath_overrides_runpath=yes 11959 hardcode_into_libs=yes 11960 ;; 11961 11962newsos6) 11963 version_type=linux # correct to gnu/linux during the next big refactor 11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11965 shlibpath_var=LD_LIBRARY_PATH 11966 shlibpath_overrides_runpath=yes 11967 ;; 11968 11969*nto* | *qnx*) 11970 version_type=qnx 11971 need_lib_prefix=no 11972 need_version=no 11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11974 soname_spec='$libname$release$shared_ext$major' 11975 shlibpath_var=LD_LIBRARY_PATH 11976 shlibpath_overrides_runpath=no 11977 hardcode_into_libs=yes 11978 dynamic_linker='ldqnx.so' 11979 ;; 11980 11981openbsd* | bitrig*) 11982 version_type=sunos 11983 sys_lib_dlsearch_path_spec=/usr/lib 11984 need_lib_prefix=no 11985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11986 need_version=no 11987 else 11988 need_version=yes 11989 fi 11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11992 shlibpath_var=LD_LIBRARY_PATH 11993 shlibpath_overrides_runpath=yes 11994 ;; 11995 11996os2*) 11997 libname_spec='$name' 11998 version_type=windows 11999 shrext_cmds=.dll 12000 need_version=no 12001 need_lib_prefix=no 12002 # OS/2 can only load a DLL with a base name of 8 characters or less. 12003 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12004 v=$($ECHO $release$versuffix | tr -d .-); 12005 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12006 $ECHO $n$v`$shared_ext' 12007 library_names_spec='${libname}_dll.$libext' 12008 dynamic_linker='OS/2 ld.exe' 12009 shlibpath_var=BEGINLIBPATH 12010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12012 postinstall_cmds='base_file=`basename \$file`~ 12013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12014 dldir=$destdir/`dirname \$dlpath`~ 12015 test -d \$dldir || mkdir -p \$dldir~ 12016 $install_prog $dir/$dlname \$dldir/$dlname~ 12017 chmod a+x \$dldir/$dlname~ 12018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12020 fi' 12021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12022 dlpath=$dir/\$dldll~ 12023 $RM \$dlpath' 12024 ;; 12025 12026osf3* | osf4* | osf5*) 12027 version_type=osf 12028 need_lib_prefix=no 12029 need_version=no 12030 soname_spec='$libname$release$shared_ext$major' 12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12032 shlibpath_var=LD_LIBRARY_PATH 12033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12035 ;; 12036 12037rdos*) 12038 dynamic_linker=no 12039 ;; 12040 12041solaris*) 12042 version_type=linux # correct to gnu/linux during the next big refactor 12043 need_lib_prefix=no 12044 need_version=no 12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12046 soname_spec='$libname$release$shared_ext$major' 12047 shlibpath_var=LD_LIBRARY_PATH 12048 shlibpath_overrides_runpath=yes 12049 hardcode_into_libs=yes 12050 # ldd complains unless libraries are executable 12051 postinstall_cmds='chmod +x $lib' 12052 ;; 12053 12054sunos4*) 12055 version_type=sunos 12056 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12058 shlibpath_var=LD_LIBRARY_PATH 12059 shlibpath_overrides_runpath=yes 12060 if test yes = "$with_gnu_ld"; then 12061 need_lib_prefix=no 12062 fi 12063 need_version=yes 12064 ;; 12065 12066sysv4 | sysv4.3*) 12067 version_type=linux # correct to gnu/linux during the next big refactor 12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12069 soname_spec='$libname$release$shared_ext$major' 12070 shlibpath_var=LD_LIBRARY_PATH 12071 case $host_vendor in 12072 sni) 12073 shlibpath_overrides_runpath=no 12074 need_lib_prefix=no 12075 runpath_var=LD_RUN_PATH 12076 ;; 12077 siemens) 12078 need_lib_prefix=no 12079 ;; 12080 motorola) 12081 need_lib_prefix=no 12082 need_version=no 12083 shlibpath_overrides_runpath=no 12084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12085 ;; 12086 esac 12087 ;; 12088 12089sysv4*MP*) 12090 if test -d /usr/nec; then 12091 version_type=linux # correct to gnu/linux during the next big refactor 12092 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12093 soname_spec='$libname$shared_ext.$major' 12094 shlibpath_var=LD_LIBRARY_PATH 12095 fi 12096 ;; 12097 12098sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12099 version_type=sco 12100 need_lib_prefix=no 12101 need_version=no 12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12103 soname_spec='$libname$release$shared_ext$major' 12104 shlibpath_var=LD_LIBRARY_PATH 12105 shlibpath_overrides_runpath=yes 12106 hardcode_into_libs=yes 12107 if test yes = "$with_gnu_ld"; then 12108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12109 else 12110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12111 case $host_os in 12112 sco3.2v5*) 12113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12114 ;; 12115 esac 12116 fi 12117 sys_lib_dlsearch_path_spec='/usr/lib' 12118 ;; 12119 12120tpf*) 12121 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12122 version_type=linux # correct to gnu/linux during the next big refactor 12123 need_lib_prefix=no 12124 need_version=no 12125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12126 shlibpath_var=LD_LIBRARY_PATH 12127 shlibpath_overrides_runpath=no 12128 hardcode_into_libs=yes 12129 ;; 12130 12131uts4*) 12132 version_type=linux # correct to gnu/linux during the next big refactor 12133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12134 soname_spec='$libname$release$shared_ext$major' 12135 shlibpath_var=LD_LIBRARY_PATH 12136 ;; 12137 12138*) 12139 dynamic_linker=no 12140 ;; 12141esac 12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12143$as_echo "$dynamic_linker" >&6; } 12144test no = "$dynamic_linker" && can_build_shared=no 12145 12146variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12147if test yes = "$GCC"; then 12148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12149fi 12150 12151if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12152 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12153fi 12154 12155if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12156 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12157fi 12158 12159# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12160configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12161 12162# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12163func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12164 12165# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12166configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12265$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12266hardcode_action= 12267if test -n "$hardcode_libdir_flag_spec" || 12268 test -n "$runpath_var" || 12269 test yes = "$hardcode_automatic"; then 12270 12271 # We can hardcode non-existent directories. 12272 if test no != "$hardcode_direct" && 12273 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12274 # have to relink, otherwise we might link with an installed library 12275 # when we should be linking with a yet-to-be-installed one 12276 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12277 test no != "$hardcode_minus_L"; then 12278 # Linking always hardcodes the temporary library directory. 12279 hardcode_action=relink 12280 else 12281 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12282 hardcode_action=immediate 12283 fi 12284else 12285 # We cannot hardcode anything, or else we can only hardcode existing 12286 # directories. 12287 hardcode_action=unsupported 12288fi 12289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12290$as_echo "$hardcode_action" >&6; } 12291 12292if test relink = "$hardcode_action" || 12293 test yes = "$inherit_rpath"; then 12294 # Fast installation is not supported 12295 enable_fast_install=no 12296elif test yes = "$shlibpath_overrides_runpath" || 12297 test no = "$enable_shared"; then 12298 # Fast installation is not necessary 12299 enable_fast_install=needless 12300fi 12301 12302 12303 12304 12305 12306 12307 if test yes != "$enable_dlopen"; then 12308 enable_dlopen=unknown 12309 enable_dlopen_self=unknown 12310 enable_dlopen_self_static=unknown 12311else 12312 lt_cv_dlopen=no 12313 lt_cv_dlopen_libs= 12314 12315 case $host_os in 12316 beos*) 12317 lt_cv_dlopen=load_add_on 12318 lt_cv_dlopen_libs= 12319 lt_cv_dlopen_self=yes 12320 ;; 12321 12322 mingw* | pw32* | cegcc*) 12323 lt_cv_dlopen=LoadLibrary 12324 lt_cv_dlopen_libs= 12325 ;; 12326 12327 cygwin*) 12328 lt_cv_dlopen=dlopen 12329 lt_cv_dlopen_libs= 12330 ;; 12331 12332 darwin*) 12333 # if libdl is installed we need to link against it 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12335$as_echo_n "checking for dlopen in -ldl... " >&6; } 12336if ${ac_cv_lib_dl_dlopen+:} false; then : 12337 $as_echo_n "(cached) " >&6 12338else 12339 ac_check_lib_save_LIBS=$LIBS 12340LIBS="-ldl $LIBS" 12341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343 12344/* Override any GCC internal prototype to avoid an error. 12345 Use char because int might match the return type of a GCC 12346 builtin and then its argument prototype would still apply. */ 12347#ifdef __cplusplus 12348extern "C" 12349#endif 12350char dlopen (); 12351int 12352main () 12353{ 12354return dlopen (); 12355 ; 12356 return 0; 12357} 12358_ACEOF 12359if ac_fn_c_try_link "$LINENO"; then : 12360 ac_cv_lib_dl_dlopen=yes 12361else 12362 ac_cv_lib_dl_dlopen=no 12363fi 12364rm -f core conftest.err conftest.$ac_objext \ 12365 conftest$ac_exeext conftest.$ac_ext 12366LIBS=$ac_check_lib_save_LIBS 12367fi 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12369$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12370if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12372else 12373 12374 lt_cv_dlopen=dyld 12375 lt_cv_dlopen_libs= 12376 lt_cv_dlopen_self=yes 12377 12378fi 12379 12380 ;; 12381 12382 tpf*) 12383 # Don't try to run any link tests for TPF. We know it's impossible 12384 # because TPF is a cross-compiler, and we know how we open DSOs. 12385 lt_cv_dlopen=dlopen 12386 lt_cv_dlopen_libs= 12387 lt_cv_dlopen_self=no 12388 ;; 12389 12390 *) 12391 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12392if test "x$ac_cv_func_shl_load" = xyes; then : 12393 lt_cv_dlopen=shl_load 12394else 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12396$as_echo_n "checking for shl_load in -ldld... " >&6; } 12397if ${ac_cv_lib_dld_shl_load+:} false; then : 12398 $as_echo_n "(cached) " >&6 12399else 12400 ac_check_lib_save_LIBS=$LIBS 12401LIBS="-ldld $LIBS" 12402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12403/* end confdefs.h. */ 12404 12405/* Override any GCC internal prototype to avoid an error. 12406 Use char because int might match the return type of a GCC 12407 builtin and then its argument prototype would still apply. */ 12408#ifdef __cplusplus 12409extern "C" 12410#endif 12411char shl_load (); 12412int 12413main () 12414{ 12415return shl_load (); 12416 ; 12417 return 0; 12418} 12419_ACEOF 12420if ac_fn_c_try_link "$LINENO"; then : 12421 ac_cv_lib_dld_shl_load=yes 12422else 12423 ac_cv_lib_dld_shl_load=no 12424fi 12425rm -f core conftest.err conftest.$ac_objext \ 12426 conftest$ac_exeext conftest.$ac_ext 12427LIBS=$ac_check_lib_save_LIBS 12428fi 12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12430$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12431if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12432 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12433else 12434 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12435if test "x$ac_cv_func_dlopen" = xyes; then : 12436 lt_cv_dlopen=dlopen 12437else 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12439$as_echo_n "checking for dlopen in -ldl... " >&6; } 12440if ${ac_cv_lib_dl_dlopen+:} false; then : 12441 $as_echo_n "(cached) " >&6 12442else 12443 ac_check_lib_save_LIBS=$LIBS 12444LIBS="-ldl $LIBS" 12445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12446/* end confdefs.h. */ 12447 12448/* Override any GCC internal prototype to avoid an error. 12449 Use char because int might match the return type of a GCC 12450 builtin and then its argument prototype would still apply. */ 12451#ifdef __cplusplus 12452extern "C" 12453#endif 12454char dlopen (); 12455int 12456main () 12457{ 12458return dlopen (); 12459 ; 12460 return 0; 12461} 12462_ACEOF 12463if ac_fn_c_try_link "$LINENO"; then : 12464 ac_cv_lib_dl_dlopen=yes 12465else 12466 ac_cv_lib_dl_dlopen=no 12467fi 12468rm -f core conftest.err conftest.$ac_objext \ 12469 conftest$ac_exeext conftest.$ac_ext 12470LIBS=$ac_check_lib_save_LIBS 12471fi 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12473$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12474if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12475 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12476else 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12478$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12479if ${ac_cv_lib_svld_dlopen+:} false; then : 12480 $as_echo_n "(cached) " >&6 12481else 12482 ac_check_lib_save_LIBS=$LIBS 12483LIBS="-lsvld $LIBS" 12484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12485/* end confdefs.h. */ 12486 12487/* Override any GCC internal prototype to avoid an error. 12488 Use char because int might match the return type of a GCC 12489 builtin and then its argument prototype would still apply. */ 12490#ifdef __cplusplus 12491extern "C" 12492#endif 12493char dlopen (); 12494int 12495main () 12496{ 12497return dlopen (); 12498 ; 12499 return 0; 12500} 12501_ACEOF 12502if ac_fn_c_try_link "$LINENO"; then : 12503 ac_cv_lib_svld_dlopen=yes 12504else 12505 ac_cv_lib_svld_dlopen=no 12506fi 12507rm -f core conftest.err conftest.$ac_objext \ 12508 conftest$ac_exeext conftest.$ac_ext 12509LIBS=$ac_check_lib_save_LIBS 12510fi 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12512$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12513if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12514 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12515else 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12517$as_echo_n "checking for dld_link in -ldld... " >&6; } 12518if ${ac_cv_lib_dld_dld_link+:} false; then : 12519 $as_echo_n "(cached) " >&6 12520else 12521 ac_check_lib_save_LIBS=$LIBS 12522LIBS="-ldld $LIBS" 12523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12524/* end confdefs.h. */ 12525 12526/* Override any GCC internal prototype to avoid an error. 12527 Use char because int might match the return type of a GCC 12528 builtin and then its argument prototype would still apply. */ 12529#ifdef __cplusplus 12530extern "C" 12531#endif 12532char dld_link (); 12533int 12534main () 12535{ 12536return dld_link (); 12537 ; 12538 return 0; 12539} 12540_ACEOF 12541if ac_fn_c_try_link "$LINENO"; then : 12542 ac_cv_lib_dld_dld_link=yes 12543else 12544 ac_cv_lib_dld_dld_link=no 12545fi 12546rm -f core conftest.err conftest.$ac_objext \ 12547 conftest$ac_exeext conftest.$ac_ext 12548LIBS=$ac_check_lib_save_LIBS 12549fi 12550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12551$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12552if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12553 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12554fi 12555 12556 12557fi 12558 12559 12560fi 12561 12562 12563fi 12564 12565 12566fi 12567 12568 12569fi 12570 12571 ;; 12572 esac 12573 12574 if test no = "$lt_cv_dlopen"; then 12575 enable_dlopen=no 12576 else 12577 enable_dlopen=yes 12578 fi 12579 12580 case $lt_cv_dlopen in 12581 dlopen) 12582 save_CPPFLAGS=$CPPFLAGS 12583 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12584 12585 save_LDFLAGS=$LDFLAGS 12586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12587 12588 save_LIBS=$LIBS 12589 LIBS="$lt_cv_dlopen_libs $LIBS" 12590 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12592$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12593if ${lt_cv_dlopen_self+:} false; then : 12594 $as_echo_n "(cached) " >&6 12595else 12596 if test yes = "$cross_compiling"; then : 12597 lt_cv_dlopen_self=cross 12598else 12599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12600 lt_status=$lt_dlunknown 12601 cat > conftest.$ac_ext <<_LT_EOF 12602#line $LINENO "configure" 12603#include "confdefs.h" 12604 12605#if HAVE_DLFCN_H 12606#include <dlfcn.h> 12607#endif 12608 12609#include <stdio.h> 12610 12611#ifdef RTLD_GLOBAL 12612# define LT_DLGLOBAL RTLD_GLOBAL 12613#else 12614# ifdef DL_GLOBAL 12615# define LT_DLGLOBAL DL_GLOBAL 12616# else 12617# define LT_DLGLOBAL 0 12618# endif 12619#endif 12620 12621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12622 find out it does not work in some platform. */ 12623#ifndef LT_DLLAZY_OR_NOW 12624# ifdef RTLD_LAZY 12625# define LT_DLLAZY_OR_NOW RTLD_LAZY 12626# else 12627# ifdef DL_LAZY 12628# define LT_DLLAZY_OR_NOW DL_LAZY 12629# else 12630# ifdef RTLD_NOW 12631# define LT_DLLAZY_OR_NOW RTLD_NOW 12632# else 12633# ifdef DL_NOW 12634# define LT_DLLAZY_OR_NOW DL_NOW 12635# else 12636# define LT_DLLAZY_OR_NOW 0 12637# endif 12638# endif 12639# endif 12640# endif 12641#endif 12642 12643/* When -fvisibility=hidden is used, assume the code has been annotated 12644 correspondingly for the symbols needed. */ 12645#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12646int fnord () __attribute__((visibility("default"))); 12647#endif 12648 12649int fnord () { return 42; } 12650int main () 12651{ 12652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12653 int status = $lt_dlunknown; 12654 12655 if (self) 12656 { 12657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12658 else 12659 { 12660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12661 else puts (dlerror ()); 12662 } 12663 /* dlclose (self); */ 12664 } 12665 else 12666 puts (dlerror ()); 12667 12668 return status; 12669} 12670_LT_EOF 12671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12672 (eval $ac_link) 2>&5 12673 ac_status=$? 12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12675 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12676 (./conftest; exit; ) >&5 2>/dev/null 12677 lt_status=$? 12678 case x$lt_status in 12679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12681 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12682 esac 12683 else : 12684 # compilation failed 12685 lt_cv_dlopen_self=no 12686 fi 12687fi 12688rm -fr conftest* 12689 12690 12691fi 12692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12693$as_echo "$lt_cv_dlopen_self" >&6; } 12694 12695 if test yes = "$lt_cv_dlopen_self"; then 12696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12698$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12699if ${lt_cv_dlopen_self_static+:} false; then : 12700 $as_echo_n "(cached) " >&6 12701else 12702 if test yes = "$cross_compiling"; then : 12703 lt_cv_dlopen_self_static=cross 12704else 12705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12706 lt_status=$lt_dlunknown 12707 cat > conftest.$ac_ext <<_LT_EOF 12708#line $LINENO "configure" 12709#include "confdefs.h" 12710 12711#if HAVE_DLFCN_H 12712#include <dlfcn.h> 12713#endif 12714 12715#include <stdio.h> 12716 12717#ifdef RTLD_GLOBAL 12718# define LT_DLGLOBAL RTLD_GLOBAL 12719#else 12720# ifdef DL_GLOBAL 12721# define LT_DLGLOBAL DL_GLOBAL 12722# else 12723# define LT_DLGLOBAL 0 12724# endif 12725#endif 12726 12727/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12728 find out it does not work in some platform. */ 12729#ifndef LT_DLLAZY_OR_NOW 12730# ifdef RTLD_LAZY 12731# define LT_DLLAZY_OR_NOW RTLD_LAZY 12732# else 12733# ifdef DL_LAZY 12734# define LT_DLLAZY_OR_NOW DL_LAZY 12735# else 12736# ifdef RTLD_NOW 12737# define LT_DLLAZY_OR_NOW RTLD_NOW 12738# else 12739# ifdef DL_NOW 12740# define LT_DLLAZY_OR_NOW DL_NOW 12741# else 12742# define LT_DLLAZY_OR_NOW 0 12743# endif 12744# endif 12745# endif 12746# endif 12747#endif 12748 12749/* When -fvisibility=hidden is used, assume the code has been annotated 12750 correspondingly for the symbols needed. */ 12751#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12752int fnord () __attribute__((visibility("default"))); 12753#endif 12754 12755int fnord () { return 42; } 12756int main () 12757{ 12758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12759 int status = $lt_dlunknown; 12760 12761 if (self) 12762 { 12763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12764 else 12765 { 12766 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12767 else puts (dlerror ()); 12768 } 12769 /* dlclose (self); */ 12770 } 12771 else 12772 puts (dlerror ()); 12773 12774 return status; 12775} 12776_LT_EOF 12777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12778 (eval $ac_link) 2>&5 12779 ac_status=$? 12780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12781 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12782 (./conftest; exit; ) >&5 2>/dev/null 12783 lt_status=$? 12784 case x$lt_status in 12785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12787 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12788 esac 12789 else : 12790 # compilation failed 12791 lt_cv_dlopen_self_static=no 12792 fi 12793fi 12794rm -fr conftest* 12795 12796 12797fi 12798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12799$as_echo "$lt_cv_dlopen_self_static" >&6; } 12800 fi 12801 12802 CPPFLAGS=$save_CPPFLAGS 12803 LDFLAGS=$save_LDFLAGS 12804 LIBS=$save_LIBS 12805 ;; 12806 esac 12807 12808 case $lt_cv_dlopen_self in 12809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12810 *) enable_dlopen_self=unknown ;; 12811 esac 12812 12813 case $lt_cv_dlopen_self_static in 12814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12815 *) enable_dlopen_self_static=unknown ;; 12816 esac 12817fi 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835striplib= 12836old_striplib= 12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12838$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12839if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12841 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12843$as_echo "yes" >&6; } 12844else 12845# FIXME - insert some real tests, host_os isn't really good enough 12846 case $host_os in 12847 darwin*) 12848 if test -n "$STRIP"; then 12849 striplib="$STRIP -x" 12850 old_striplib="$STRIP -S" 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12852$as_echo "yes" >&6; } 12853 else 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12855$as_echo "no" >&6; } 12856 fi 12857 ;; 12858 *) 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12860$as_echo "no" >&6; } 12861 ;; 12862 esac 12863fi 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 # Report what library types will actually be built 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12878$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12880$as_echo "$can_build_shared" >&6; } 12881 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12883$as_echo_n "checking whether to build shared libraries... " >&6; } 12884 test no = "$can_build_shared" && enable_shared=no 12885 12886 # On AIX, shared libraries and static libraries use the same namespace, and 12887 # are all built from PIC. 12888 case $host_os in 12889 aix3*) 12890 test yes = "$enable_shared" && enable_static=no 12891 if test -n "$RANLIB"; then 12892 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12893 postinstall_cmds='$RANLIB $lib' 12894 fi 12895 ;; 12896 12897 aix[4-9]*) 12898 if test ia64 != "$host_cpu"; then 12899 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12900 yes,aix,yes) ;; # shared object as lib.so file only 12901 yes,svr4,*) ;; # shared object as lib.so archive member only 12902 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12903 esac 12904 fi 12905 ;; 12906 esac 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12908$as_echo "$enable_shared" >&6; } 12909 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12911$as_echo_n "checking whether to build static libraries... " >&6; } 12912 # Make sure either enable_shared or enable_static is yes. 12913 test yes = "$enable_shared" || enable_static=yes 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12915$as_echo "$enable_static" >&6; } 12916 12917 12918 12919 12920fi 12921ac_ext=c 12922ac_cpp='$CPP $CPPFLAGS' 12923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12925ac_compiler_gnu=$ac_cv_c_compiler_gnu 12926 12927CC=$lt_save_CC 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 ac_config_commands="$ac_config_commands libtool" 12944 12945 12946 12947 12948# Only expand once: 12949 12950 12951 12952CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__" 12953 12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12955$as_echo_n "checking for ANSI C header files... " >&6; } 12956if ${ac_cv_header_stdc+:} false; then : 12957 $as_echo_n "(cached) " >&6 12958else 12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12960/* end confdefs.h. */ 12961#include <stdlib.h> 12962#include <stdarg.h> 12963#include <string.h> 12964#include <float.h> 12965 12966int 12967main () 12968{ 12969 12970 ; 12971 return 0; 12972} 12973_ACEOF 12974if ac_fn_c_try_compile "$LINENO"; then : 12975 ac_cv_header_stdc=yes 12976else 12977 ac_cv_header_stdc=no 12978fi 12979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12980 12981if test $ac_cv_header_stdc = yes; then 12982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12984/* end confdefs.h. */ 12985#include <string.h> 12986 12987_ACEOF 12988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12989 $EGREP "memchr" >/dev/null 2>&1; then : 12990 12991else 12992 ac_cv_header_stdc=no 12993fi 12994rm -f conftest* 12995 12996fi 12997 12998if test $ac_cv_header_stdc = yes; then 12999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13001/* end confdefs.h. */ 13002#include <stdlib.h> 13003 13004_ACEOF 13005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13006 $EGREP "free" >/dev/null 2>&1; then : 13007 13008else 13009 ac_cv_header_stdc=no 13010fi 13011rm -f conftest* 13012 13013fi 13014 13015if test $ac_cv_header_stdc = yes; then 13016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13017 if test "$cross_compiling" = yes; then : 13018 : 13019else 13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021/* end confdefs.h. */ 13022#include <ctype.h> 13023#include <stdlib.h> 13024#if ((' ' & 0x0FF) == 0x020) 13025# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13026# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13027#else 13028# define ISLOWER(c) \ 13029 (('a' <= (c) && (c) <= 'i') \ 13030 || ('j' <= (c) && (c) <= 'r') \ 13031 || ('s' <= (c) && (c) <= 'z')) 13032# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13033#endif 13034 13035#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13036int 13037main () 13038{ 13039 int i; 13040 for (i = 0; i < 256; i++) 13041 if (XOR (islower (i), ISLOWER (i)) 13042 || toupper (i) != TOUPPER (i)) 13043 return 2; 13044 return 0; 13045} 13046_ACEOF 13047if ac_fn_c_try_run "$LINENO"; then : 13048 13049else 13050 ac_cv_header_stdc=no 13051fi 13052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13053 conftest.$ac_objext conftest.beam conftest.$ac_ext 13054fi 13055 13056fi 13057fi 13058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13059$as_echo "$ac_cv_header_stdc" >&6; } 13060if test $ac_cv_header_stdc = yes; then 13061 13062$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13063 13064fi 13065 13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13067$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13068if ${ac_cv_header_sys_wait_h+:} false; then : 13069 $as_echo_n "(cached) " >&6 13070else 13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13072/* end confdefs.h. */ 13073#include <sys/types.h> 13074#include <sys/wait.h> 13075#ifndef WEXITSTATUS 13076# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13077#endif 13078#ifndef WIFEXITED 13079# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13080#endif 13081 13082int 13083main () 13084{ 13085 int s; 13086 wait (&s); 13087 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13088 ; 13089 return 0; 13090} 13091_ACEOF 13092if ac_fn_c_try_compile "$LINENO"; then : 13093 ac_cv_header_sys_wait_h=yes 13094else 13095 ac_cv_header_sys_wait_h=no 13096fi 13097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13098fi 13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13100$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13101if test $ac_cv_header_sys_wait_h = yes; then 13102 13103$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13104 13105fi 13106 13107for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \ 13108sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \ 13109getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \ 13110sys/mman.h sys/event.h port.h pwd.h sys/syslimits.h \ 13111sys/resource.h sys/un.h syslog.h sys/prctl.h uuid/uuid.h 13112do : 13113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13114ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13116 cat >>confdefs.h <<_ACEOF 13117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13118_ACEOF 13119 13120fi 13121 13122done 13123 13124 13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13126$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13127if ${ac_cv_c_const+:} false; then : 13128 $as_echo_n "(cached) " >&6 13129else 13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13131/* end confdefs.h. */ 13132 13133int 13134main () 13135{ 13136 13137#ifndef __cplusplus 13138 /* Ultrix mips cc rejects this sort of thing. */ 13139 typedef int charset[2]; 13140 const charset cs = { 0, 0 }; 13141 /* SunOS 4.1.1 cc rejects this. */ 13142 char const *const *pcpcc; 13143 char **ppc; 13144 /* NEC SVR4.0.2 mips cc rejects this. */ 13145 struct point {int x, y;}; 13146 static struct point const zero = {0,0}; 13147 /* AIX XL C 1.02.0.0 rejects this. 13148 It does not let you subtract one const X* pointer from another in 13149 an arm of an if-expression whose if-part is not a constant 13150 expression */ 13151 const char *g = "string"; 13152 pcpcc = &g + (g ? g-g : 0); 13153 /* HPUX 7.0 cc rejects these. */ 13154 ++pcpcc; 13155 ppc = (char**) pcpcc; 13156 pcpcc = (char const *const *) ppc; 13157 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13158 char tx; 13159 char *t = &tx; 13160 char const *s = 0 ? (char *) 0 : (char const *) 0; 13161 13162 *t++ = 0; 13163 if (s) return 0; 13164 } 13165 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13166 int x[] = {25, 17}; 13167 const int *foo = &x[0]; 13168 ++foo; 13169 } 13170 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13171 typedef const int *iptr; 13172 iptr p = 0; 13173 ++p; 13174 } 13175 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13176 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13177 struct s { int j; const int *ap[3]; } bx; 13178 struct s *b = &bx; b->j = 5; 13179 } 13180 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13181 const int foo = 10; 13182 if (!foo) return 0; 13183 } 13184 return !cs[0] && !zero.x; 13185#endif 13186 13187 ; 13188 return 0; 13189} 13190_ACEOF 13191if ac_fn_c_try_compile "$LINENO"; then : 13192 ac_cv_c_const=yes 13193else 13194 ac_cv_c_const=no 13195fi 13196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13197fi 13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13199$as_echo "$ac_cv_c_const" >&6; } 13200if test $ac_cv_c_const = no; then 13201 13202$as_echo "#define const /**/" >>confdefs.h 13203 13204fi 13205 13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13207$as_echo_n "checking for inline... " >&6; } 13208if ${ac_cv_c_inline+:} false; then : 13209 $as_echo_n "(cached) " >&6 13210else 13211 ac_cv_c_inline=no 13212for ac_kw in inline __inline__ __inline; do 13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13214/* end confdefs.h. */ 13215#ifndef __cplusplus 13216typedef int foo_t; 13217static $ac_kw foo_t static_foo () {return 0; } 13218$ac_kw foo_t foo () {return 0; } 13219#endif 13220 13221_ACEOF 13222if ac_fn_c_try_compile "$LINENO"; then : 13223 ac_cv_c_inline=$ac_kw 13224fi 13225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13226 test "$ac_cv_c_inline" != no && break 13227done 13228 13229fi 13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13231$as_echo "$ac_cv_c_inline" >&6; } 13232 13233case $ac_cv_c_inline in 13234 inline | yes) ;; 13235 *) 13236 case $ac_cv_c_inline in 13237 no) ac_val=;; 13238 *) ac_val=$ac_cv_c_inline;; 13239 esac 13240 cat >>confdefs.h <<_ACEOF 13241#ifndef __cplusplus 13242#define inline $ac_val 13243#endif 13244_ACEOF 13245 ;; 13246esac 13247 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 13249$as_echo_n "checking whether char is unsigned... " >&6; } 13250if ${ac_cv_c_char_unsigned+:} false; then : 13251 $as_echo_n "(cached) " >&6 13252else 13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13254/* end confdefs.h. */ 13255$ac_includes_default 13256int 13257main () 13258{ 13259static int test_array [1 - 2 * !(((char) -1) < 0)]; 13260test_array [0] = 0; 13261return test_array [0]; 13262 13263 ; 13264 return 0; 13265} 13266_ACEOF 13267if ac_fn_c_try_compile "$LINENO"; then : 13268 ac_cv_c_char_unsigned=no 13269else 13270 ac_cv_c_char_unsigned=yes 13271fi 13272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13273fi 13274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 13275$as_echo "$ac_cv_c_char_unsigned" >&6; } 13276if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 13277 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 13278 13279fi 13280 13281ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13282if test "x$ac_cv_type_off_t" = xyes; then : 13283 13284else 13285 13286cat >>confdefs.h <<_ACEOF 13287#define off_t long int 13288_ACEOF 13289 13290fi 13291 13292ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13293if test "x$ac_cv_type_pid_t" = xyes; then : 13294 13295else 13296 13297cat >>confdefs.h <<_ACEOF 13298#define pid_t int 13299_ACEOF 13300 13301fi 13302 13303ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13304if test "x$ac_cv_type_size_t" = xyes; then : 13305 13306else 13307 13308cat >>confdefs.h <<_ACEOF 13309#define size_t unsigned int 13310_ACEOF 13311 13312fi 13313 13314 13315ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 13316" 13317if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 13318 13319$as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h 13320 13321fi 13322 13323ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h> 13324" 13325if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 13326 13327cat >>confdefs.h <<_ACEOF 13328#define HAVE_STRUCT_SOCKADDR_STORAGE 1 13329_ACEOF 13330 13331 13332fi 13333 13334ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 13335#include <sys/socket.h> 13336" 13337if test "x$ac_cv_type_socklen_t" = xyes; then : 13338 13339cat >>confdefs.h <<_ACEOF 13340#define HAVE_SOCKLEN_T 1 13341_ACEOF 13342 13343 13344fi 13345 13346 13347for ac_header in vfork.h 13348do : 13349 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 13350if test "x$ac_cv_header_vfork_h" = xyes; then : 13351 cat >>confdefs.h <<_ACEOF 13352#define HAVE_VFORK_H 1 13353_ACEOF 13354 13355fi 13356 13357done 13358 13359for ac_func in fork vfork 13360do : 13361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13362ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13363if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13364 cat >>confdefs.h <<_ACEOF 13365#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13366_ACEOF 13367 13368fi 13369done 13370 13371if test "x$ac_cv_func_fork" = xyes; then 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 13373$as_echo_n "checking for working fork... " >&6; } 13374if ${ac_cv_func_fork_works+:} false; then : 13375 $as_echo_n "(cached) " >&6 13376else 13377 if test "$cross_compiling" = yes; then : 13378 ac_cv_func_fork_works=cross 13379else 13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13381/* end confdefs.h. */ 13382$ac_includes_default 13383int 13384main () 13385{ 13386 13387 /* By Ruediger Kuhlmann. */ 13388 return fork () < 0; 13389 13390 ; 13391 return 0; 13392} 13393_ACEOF 13394if ac_fn_c_try_run "$LINENO"; then : 13395 ac_cv_func_fork_works=yes 13396else 13397 ac_cv_func_fork_works=no 13398fi 13399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13400 conftest.$ac_objext conftest.beam conftest.$ac_ext 13401fi 13402 13403fi 13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 13405$as_echo "$ac_cv_func_fork_works" >&6; } 13406 13407else 13408 ac_cv_func_fork_works=$ac_cv_func_fork 13409fi 13410if test "x$ac_cv_func_fork_works" = xcross; then 13411 case $host in 13412 *-*-amigaos* | *-*-msdosdjgpp*) 13413 # Override, as these systems have only a dummy fork() stub 13414 ac_cv_func_fork_works=no 13415 ;; 13416 *) 13417 ac_cv_func_fork_works=yes 13418 ;; 13419 esac 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 13421$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 13422fi 13423ac_cv_func_vfork_works=$ac_cv_func_vfork 13424if test "x$ac_cv_func_vfork" = xyes; then 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 13426$as_echo_n "checking for working vfork... " >&6; } 13427if ${ac_cv_func_vfork_works+:} false; then : 13428 $as_echo_n "(cached) " >&6 13429else 13430 if test "$cross_compiling" = yes; then : 13431 ac_cv_func_vfork_works=cross 13432else 13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13434/* end confdefs.h. */ 13435/* Thanks to Paul Eggert for this test. */ 13436$ac_includes_default 13437#include <sys/wait.h> 13438#ifdef HAVE_VFORK_H 13439# include <vfork.h> 13440#endif 13441/* On some sparc systems, changes by the child to local and incoming 13442 argument registers are propagated back to the parent. The compiler 13443 is told about this with #include <vfork.h>, but some compilers 13444 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 13445 static variable whose address is put into a register that is 13446 clobbered by the vfork. */ 13447static void 13448#ifdef __cplusplus 13449sparc_address_test (int arg) 13450# else 13451sparc_address_test (arg) int arg; 13452#endif 13453{ 13454 static pid_t child; 13455 if (!child) { 13456 child = vfork (); 13457 if (child < 0) { 13458 perror ("vfork"); 13459 _exit(2); 13460 } 13461 if (!child) { 13462 arg = getpid(); 13463 write(-1, "", 0); 13464 _exit (arg); 13465 } 13466 } 13467} 13468 13469int 13470main () 13471{ 13472 pid_t parent = getpid (); 13473 pid_t child; 13474 13475 sparc_address_test (0); 13476 13477 child = vfork (); 13478 13479 if (child == 0) { 13480 /* Here is another test for sparc vfork register problems. This 13481 test uses lots of local variables, at least as many local 13482 variables as main has allocated so far including compiler 13483 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 13484 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 13485 reuse the register of parent for one of the local variables, 13486 since it will think that parent can't possibly be used any more 13487 in this routine. Assigning to the local variable will thus 13488 munge parent in the parent process. */ 13489 pid_t 13490 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 13491 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 13492 /* Convince the compiler that p..p7 are live; otherwise, it might 13493 use the same hardware register for all 8 local variables. */ 13494 if (p != p1 || p != p2 || p != p3 || p != p4 13495 || p != p5 || p != p6 || p != p7) 13496 _exit(1); 13497 13498 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 13499 from child file descriptors. If the child closes a descriptor 13500 before it execs or exits, this munges the parent's descriptor 13501 as well. Test for this by closing stdout in the child. */ 13502 _exit(close(fileno(stdout)) != 0); 13503 } else { 13504 int status; 13505 struct stat st; 13506 13507 while (wait(&status) != child) 13508 ; 13509 return ( 13510 /* Was there some problem with vforking? */ 13511 child < 0 13512 13513 /* Did the child fail? (This shouldn't happen.) */ 13514 || status 13515 13516 /* Did the vfork/compiler bug occur? */ 13517 || parent != getpid() 13518 13519 /* Did the file descriptor bug occur? */ 13520 || fstat(fileno(stdout), &st) != 0 13521 ); 13522 } 13523} 13524_ACEOF 13525if ac_fn_c_try_run "$LINENO"; then : 13526 ac_cv_func_vfork_works=yes 13527else 13528 ac_cv_func_vfork_works=no 13529fi 13530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13531 conftest.$ac_objext conftest.beam conftest.$ac_ext 13532fi 13533 13534fi 13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 13536$as_echo "$ac_cv_func_vfork_works" >&6; } 13537 13538fi; 13539if test "x$ac_cv_func_fork_works" = xcross; then 13540 ac_cv_func_vfork_works=$ac_cv_func_vfork 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13542$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13543fi 13544 13545if test "x$ac_cv_func_vfork_works" = xyes; then 13546 13547$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 13548 13549else 13550 13551$as_echo "#define vfork fork" >>confdefs.h 13552 13553fi 13554if test "x$ac_cv_func_fork_works" = xyes; then 13555 13556$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 13557 13558fi 13559 13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 13561$as_echo_n "checking return type of signal handlers... " >&6; } 13562if ${ac_cv_type_signal+:} false; then : 13563 $as_echo_n "(cached) " >&6 13564else 13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13566/* end confdefs.h. */ 13567#include <sys/types.h> 13568#include <signal.h> 13569 13570int 13571main () 13572{ 13573return *(signal (0, 0)) (0) == 1; 13574 ; 13575 return 0; 13576} 13577_ACEOF 13578if ac_fn_c_try_compile "$LINENO"; then : 13579 ac_cv_type_signal=int 13580else 13581 ac_cv_type_signal=void 13582fi 13583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13584fi 13585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 13586$as_echo "$ac_cv_type_signal" >&6; } 13587 13588cat >>confdefs.h <<_ACEOF 13589#define RETSIGTYPE $ac_cv_type_signal 13590_ACEOF 13591 13592 13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 13594$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 13595if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 13596 $as_echo_n "(cached) " >&6 13597else 13598 rm -f conftest.sym conftest.file 13599echo >conftest.file 13600if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 13601 if test "$cross_compiling" = yes; then : 13602 ac_cv_func_lstat_dereferences_slashed_symlink=no 13603else 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605/* end confdefs.h. */ 13606$ac_includes_default 13607int 13608main () 13609{ 13610struct stat sbuf; 13611 /* Linux will dereference the symlink and fail, as required by POSIX. 13612 That is better in the sense that it means we will not 13613 have to compile and use the lstat wrapper. */ 13614 return lstat ("conftest.sym/", &sbuf) == 0; 13615 ; 13616 return 0; 13617} 13618_ACEOF 13619if ac_fn_c_try_run "$LINENO"; then : 13620 ac_cv_func_lstat_dereferences_slashed_symlink=yes 13621else 13622 ac_cv_func_lstat_dereferences_slashed_symlink=no 13623fi 13624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13625 conftest.$ac_objext conftest.beam conftest.$ac_ext 13626fi 13627 13628else 13629 # If the `ln -s' command failed, then we probably don't even 13630 # have an lstat function. 13631 ac_cv_func_lstat_dereferences_slashed_symlink=no 13632fi 13633rm -f conftest.sym conftest.file 13634 13635fi 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 13637$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 13638 13639test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 13640 13641cat >>confdefs.h <<_ACEOF 13642#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 13643_ACEOF 13644 13645 13646if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 13647 case " $LIBOBJS " in 13648 *" lstat.$ac_objext "* ) ;; 13649 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 13650 ;; 13651esac 13652 13653fi 13654 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 13656$as_echo_n "checking whether stat accepts an empty string... " >&6; } 13657if ${ac_cv_func_stat_empty_string_bug+:} false; then : 13658 $as_echo_n "(cached) " >&6 13659else 13660 if test "$cross_compiling" = yes; then : 13661 ac_cv_func_stat_empty_string_bug=yes 13662else 13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13664/* end confdefs.h. */ 13665$ac_includes_default 13666int 13667main () 13668{ 13669struct stat sbuf; 13670 return stat ("", &sbuf) == 0; 13671 ; 13672 return 0; 13673} 13674_ACEOF 13675if ac_fn_c_try_run "$LINENO"; then : 13676 ac_cv_func_stat_empty_string_bug=no 13677else 13678 ac_cv_func_stat_empty_string_bug=yes 13679fi 13680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13681 conftest.$ac_objext conftest.beam conftest.$ac_ext 13682fi 13683 13684fi 13685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 13686$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 13687if test $ac_cv_func_stat_empty_string_bug = yes; then 13688 case " $LIBOBJS " in 13689 *" stat.$ac_objext "* ) ;; 13690 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 13691 ;; 13692esac 13693 13694 13695cat >>confdefs.h <<_ACEOF 13696#define HAVE_STAT_EMPTY_STRING_BUG 1 13697_ACEOF 13698 13699fi 13700 13701for ac_func in strftime 13702do : 13703 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 13704if test "x$ac_cv_func_strftime" = xyes; then : 13705 cat >>confdefs.h <<_ACEOF 13706#define HAVE_STRFTIME 1 13707_ACEOF 13708 13709else 13710 # strftime is in -lintl on SCO UNIX. 13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 13712$as_echo_n "checking for strftime in -lintl... " >&6; } 13713if ${ac_cv_lib_intl_strftime+:} false; then : 13714 $as_echo_n "(cached) " >&6 13715else 13716 ac_check_lib_save_LIBS=$LIBS 13717LIBS="-lintl $LIBS" 13718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13719/* end confdefs.h. */ 13720 13721/* Override any GCC internal prototype to avoid an error. 13722 Use char because int might match the return type of a GCC 13723 builtin and then its argument prototype would still apply. */ 13724#ifdef __cplusplus 13725extern "C" 13726#endif 13727char strftime (); 13728int 13729main () 13730{ 13731return strftime (); 13732 ; 13733 return 0; 13734} 13735_ACEOF 13736if ac_fn_c_try_link "$LINENO"; then : 13737 ac_cv_lib_intl_strftime=yes 13738else 13739 ac_cv_lib_intl_strftime=no 13740fi 13741rm -f core conftest.err conftest.$ac_objext \ 13742 conftest$ac_exeext conftest.$ac_ext 13743LIBS=$ac_check_lib_save_LIBS 13744fi 13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 13746$as_echo "$ac_cv_lib_intl_strftime" >&6; } 13747if test "x$ac_cv_lib_intl_strftime" = xyes; then : 13748 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 13749 13750LIBS="-lintl $LIBS" 13751fi 13752 13753fi 13754done 13755 13756for ac_func in issetugid inet_pton 13757do : 13758 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13759ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13760if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13761 cat >>confdefs.h <<_ACEOF 13762#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13763_ACEOF 13764 13765fi 13766done 13767 13768 13769if test -z "$PKG_CONFIG"; then 13770 # Extract the first word of "pkg-config", so it can be a program name with args. 13771set dummy pkg-config; ac_word=$2 13772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13773$as_echo_n "checking for $ac_word... " >&6; } 13774if ${ac_cv_path_PKG_CONFIG+:} false; then : 13775 $as_echo_n "(cached) " >&6 13776else 13777 case $PKG_CONFIG in 13778 [\\/]* | ?:[\\/]*) 13779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13780 ;; 13781 *) 13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13783for as_dir in $PATH 13784do 13785 IFS=$as_save_IFS 13786 test -z "$as_dir" && as_dir=. 13787 for ac_exec_ext in '' $ac_executable_extensions; do 13788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13789 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13791 break 2 13792 fi 13793done 13794 done 13795IFS=$as_save_IFS 13796 13797 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13798 ;; 13799esac 13800fi 13801PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13802if test -n "$PKG_CONFIG"; then 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13804$as_echo "$PKG_CONFIG" >&6; } 13805else 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13807$as_echo "no" >&6; } 13808fi 13809 13810 13811fi 13812 13813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev support" >&5 13814$as_echo_n "checking for libev support... " >&6; } 13815 13816# Check whether --with-libev was given. 13817if test "${with_libev+set}" = set; then : 13818 withval=$with_libev; WITH_LIBEV=$withval 13819else 13820 WITH_LIBEV=no 13821fi 13822 13823 13824LIBEV_CFLAGS="" 13825LIBEV_LIBS="" 13826 13827if test "$WITH_LIBEV" != "no"; then 13828 13829 13830 13831 13832 13833 13834 13835if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13836 if test -n "$ac_tool_prefix"; then 13837 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13838set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13840$as_echo_n "checking for $ac_word... " >&6; } 13841if ${ac_cv_path_PKG_CONFIG+:} false; then : 13842 $as_echo_n "(cached) " >&6 13843else 13844 case $PKG_CONFIG in 13845 [\\/]* | ?:[\\/]*) 13846 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13847 ;; 13848 *) 13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13850for as_dir in $PATH 13851do 13852 IFS=$as_save_IFS 13853 test -z "$as_dir" && as_dir=. 13854 for ac_exec_ext in '' $ac_executable_extensions; do 13855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13856 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13858 break 2 13859 fi 13860done 13861 done 13862IFS=$as_save_IFS 13863 13864 ;; 13865esac 13866fi 13867PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13868if test -n "$PKG_CONFIG"; then 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13870$as_echo "$PKG_CONFIG" >&6; } 13871else 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13873$as_echo "no" >&6; } 13874fi 13875 13876 13877fi 13878if test -z "$ac_cv_path_PKG_CONFIG"; then 13879 ac_pt_PKG_CONFIG=$PKG_CONFIG 13880 # Extract the first word of "pkg-config", so it can be a program name with args. 13881set dummy pkg-config; ac_word=$2 13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13883$as_echo_n "checking for $ac_word... " >&6; } 13884if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13885 $as_echo_n "(cached) " >&6 13886else 13887 case $ac_pt_PKG_CONFIG in 13888 [\\/]* | ?:[\\/]*) 13889 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13890 ;; 13891 *) 13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13893for as_dir in $PATH 13894do 13895 IFS=$as_save_IFS 13896 test -z "$as_dir" && as_dir=. 13897 for ac_exec_ext in '' $ac_executable_extensions; do 13898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13899 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13901 break 2 13902 fi 13903done 13904 done 13905IFS=$as_save_IFS 13906 13907 ;; 13908esac 13909fi 13910ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13911if test -n "$ac_pt_PKG_CONFIG"; then 13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13913$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13914else 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13916$as_echo "no" >&6; } 13917fi 13918 13919 if test "x$ac_pt_PKG_CONFIG" = x; then 13920 PKG_CONFIG="" 13921 else 13922 case $cross_compiling:$ac_tool_warned in 13923yes:) 13924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13926ac_tool_warned=yes ;; 13927esac 13928 PKG_CONFIG=$ac_pt_PKG_CONFIG 13929 fi 13930else 13931 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13932fi 13933 13934fi 13935if test -n "$PKG_CONFIG"; then 13936 _pkg_min_version=0.9.0 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13938$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13939 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13941$as_echo "yes" >&6; } 13942 else 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13944$as_echo "no" >&6; } 13945 PKG_CONFIG="" 13946 fi 13947fi 13948 13949pkg_failed=no 13950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5 13951$as_echo_n "checking for LIBEV... " >&6; } 13952 13953if test -n "$LIBEV_CFLAGS"; then 13954 pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS" 13955 elif test -n "$PKG_CONFIG"; then 13956 if test -n "$PKG_CONFIG" && \ 13957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5 13958 ($PKG_CONFIG --exists --print-errors "libev") 2>&5 13959 ac_status=$? 13960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13961 test $ac_status = 0; }; then 13962 pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null` 13963 test "x$?" != "x0" && pkg_failed=yes 13964else 13965 pkg_failed=yes 13966fi 13967 else 13968 pkg_failed=untried 13969fi 13970if test -n "$LIBEV_LIBS"; then 13971 pkg_cv_LIBEV_LIBS="$LIBEV_LIBS" 13972 elif test -n "$PKG_CONFIG"; then 13973 if test -n "$PKG_CONFIG" && \ 13974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5 13975 ($PKG_CONFIG --exists --print-errors "libev") 2>&5 13976 ac_status=$? 13977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13978 test $ac_status = 0; }; then 13979 pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null` 13980 test "x$?" != "x0" && pkg_failed=yes 13981else 13982 pkg_failed=yes 13983fi 13984 else 13985 pkg_failed=untried 13986fi 13987 13988 13989 13990if test $pkg_failed = yes; then 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13992$as_echo "no" >&6; } 13993 13994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13995 _pkg_short_errors_supported=yes 13996else 13997 _pkg_short_errors_supported=no 13998fi 13999 if test $_pkg_short_errors_supported = yes; then 14000 LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev" 2>&1` 14001 else 14002 LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev" 2>&1` 14003 fi 14004 # Put the nasty error message in config.log where it belongs 14005 echo "$LIBEV_PKG_ERRORS" >&5 14006 14007 14008 14009 if test "$WITH_LIBEV" != "yes"; then 14010 LIBEV_CFLAGS="-I$WITH_LIBEV/include" 14011 LIBEV_LIBS="-L$WITH_LIBEV/lib -lev" 14012 else 14013 for ac_header in ev.h 14014do : 14015 ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default" 14016if test "x$ac_cv_header_ev_h" = xyes; then : 14017 cat >>confdefs.h <<_ACEOF 14018#define HAVE_EV_H 1 14019_ACEOF 14020 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5 14022$as_echo_n "checking for ev_time in -lev... " >&6; } 14023if ${ac_cv_lib_ev_ev_time+:} false; then : 14024 $as_echo_n "(cached) " >&6 14025else 14026 ac_check_lib_save_LIBS=$LIBS 14027LIBS="-lev $LIBS" 14028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14029/* end confdefs.h. */ 14030 14031/* Override any GCC internal prototype to avoid an error. 14032 Use char because int might match the return type of a GCC 14033 builtin and then its argument prototype would still apply. */ 14034#ifdef __cplusplus 14035extern "C" 14036#endif 14037char ev_time (); 14038int 14039main () 14040{ 14041return ev_time (); 14042 ; 14043 return 0; 14044} 14045_ACEOF 14046if ac_fn_c_try_link "$LINENO"; then : 14047 ac_cv_lib_ev_ev_time=yes 14048else 14049 ac_cv_lib_ev_ev_time=no 14050fi 14051rm -f core conftest.err conftest.$ac_objext \ 14052 conftest$ac_exeext conftest.$ac_ext 14053LIBS=$ac_check_lib_save_LIBS 14054fi 14055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5 14056$as_echo "$ac_cv_lib_ev_ev_time" >&6; } 14057if test "x$ac_cv_lib_ev_ev_time" = xyes; then : 14058 14059 LIBEV_CFLAGS="" 14060 LIBEV_LIBS="-lev" 14061 14062else 14063 14064 as_fn_error $? "libev not found" "$LINENO" 5 14065 14066 14067fi 14068 14069else 14070 14071 as_fn_error $? "libev not found" "$LINENO" 5 14072 14073 14074fi 14075 14076done 14077 14078 fi 14079 14080elif test $pkg_failed = untried; then 14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14082$as_echo "no" >&6; } 14083 14084 14085 if test "$WITH_LIBEV" != "yes"; then 14086 LIBEV_CFLAGS="-I$WITH_LIBEV/include" 14087 LIBEV_LIBS="-L$WITH_LIBEV/lib -lev" 14088 else 14089 for ac_header in ev.h 14090do : 14091 ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default" 14092if test "x$ac_cv_header_ev_h" = xyes; then : 14093 cat >>confdefs.h <<_ACEOF 14094#define HAVE_EV_H 1 14095_ACEOF 14096 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5 14098$as_echo_n "checking for ev_time in -lev... " >&6; } 14099if ${ac_cv_lib_ev_ev_time+:} false; then : 14100 $as_echo_n "(cached) " >&6 14101else 14102 ac_check_lib_save_LIBS=$LIBS 14103LIBS="-lev $LIBS" 14104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14105/* end confdefs.h. */ 14106 14107/* Override any GCC internal prototype to avoid an error. 14108 Use char because int might match the return type of a GCC 14109 builtin and then its argument prototype would still apply. */ 14110#ifdef __cplusplus 14111extern "C" 14112#endif 14113char ev_time (); 14114int 14115main () 14116{ 14117return ev_time (); 14118 ; 14119 return 0; 14120} 14121_ACEOF 14122if ac_fn_c_try_link "$LINENO"; then : 14123 ac_cv_lib_ev_ev_time=yes 14124else 14125 ac_cv_lib_ev_ev_time=no 14126fi 14127rm -f core conftest.err conftest.$ac_objext \ 14128 conftest$ac_exeext conftest.$ac_ext 14129LIBS=$ac_check_lib_save_LIBS 14130fi 14131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5 14132$as_echo "$ac_cv_lib_ev_ev_time" >&6; } 14133if test "x$ac_cv_lib_ev_ev_time" = xyes; then : 14134 14135 LIBEV_CFLAGS="" 14136 LIBEV_LIBS="-lev" 14137 14138else 14139 14140 as_fn_error $? "libev not found" "$LINENO" 5 14141 14142 14143fi 14144 14145else 14146 14147 as_fn_error $? "libev not found" "$LINENO" 5 14148 14149 14150fi 14151 14152done 14153 14154 fi 14155 14156else 14157 LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS 14158 LIBEV_LIBS=$pkg_cv_LIBEV_LIBS 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14160$as_echo "yes" >&6; } 14161 14162fi 14163 14164 14165$as_echo "#define HAVE_LIBEV 1" >>confdefs.h 14166 14167fi 14168 14169 14170 14171 14172MYSQL_INCLUDE="" 14173MYSQL_LIBS="" 14174 14175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5 14176$as_echo_n "checking for MySQL support... " >&6; } 14177 14178# Check whether --with-mysql was given. 14179if test "${with_mysql+set}" = set; then : 14180 withval=$with_mysql; WITH_MYSQL=$withval 14181else 14182 WITH_MYSQL=no 14183fi 14184 14185 14186if test "$WITH_MYSQL" != "no"; then 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14188$as_echo "yes" >&6; } 14189 if test "$WITH_MYSQL" = "yes"; then 14190 # Extract the first word of "mysql_config", so it can be a program name with args. 14191set dummy mysql_config; ac_word=$2 14192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14193$as_echo_n "checking for $ac_word... " >&6; } 14194if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 14195 $as_echo_n "(cached) " >&6 14196else 14197 case $MYSQL_CONFIG in 14198 [\\/]* | ?:[\\/]*) 14199 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 14200 ;; 14201 *) 14202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14203for as_dir in $PATH 14204do 14205 IFS=$as_save_IFS 14206 test -z "$as_dir" && as_dir=. 14207 for ac_exec_ext in '' $ac_executable_extensions; do 14208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14209 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14211 break 2 14212 fi 14213done 14214 done 14215IFS=$as_save_IFS 14216 14217 ;; 14218esac 14219fi 14220MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 14221if test -n "$MYSQL_CONFIG"; then 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 14223$as_echo "$MYSQL_CONFIG" >&6; } 14224else 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14226$as_echo "no" >&6; } 14227fi 14228 14229 14230 else 14231 MYSQL_CONFIG=$WITH_MYSQL 14232 fi 14233 14234 if test "$MYSQL_CONFIG" = ""; then 14235 as_fn_error $? "mysql_config is not found" "$LINENO" 5 14236 fi 14237 if test \! -x $MYSQL_CONFIG; then 14238 as_fn_error use --with-mysql=path-to-mysql_config "mysql_config not exists or not executable" "$LINENO" 5 14239 fi 14240 14241 if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then 14242 MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`" 14243 else 14244 MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`" 14245 fi 14246 MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`" 14247 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5 14249$as_echo_n "checking for MySQL includes at... " >&6; } 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5 14251$as_echo "$MYSQL_INCLUDE" >&6; } 14252 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5 14254$as_echo_n "checking for MySQL libraries at... " >&6; } 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5 14256$as_echo "$MYSQL_LIBS" >&6; } 14257 old_CPPFLAGS="$CPPFLAGS" 14258 CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE" 14259 for ac_header in errmsg.h mysql.h 14260do : 14261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14262ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14263if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14264 cat >>confdefs.h <<_ACEOF 14265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14266_ACEOF 14267 14268fi 14269 14270done 14271 14272 CPPFLAGS="$old_CPPFLAGS" 14273 14274 14275$as_echo "#define HAVE_MYSQL 1" >>confdefs.h 14276 14277else 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14279$as_echo "no" >&6; } 14280fi 14281 14282 14283 14284 14285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5 14286$as_echo_n "checking for LDAP support... " >&6; } 14287 14288# Check whether --with-ldap was given. 14289if test "${with_ldap+set}" = set; then : 14290 withval=$with_ldap; WITH_LDAP=$withval 14291else 14292 WITH_LDAP=no 14293fi 14294 14295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 14296$as_echo "$withval" >&6; } 14297if test "$WITH_LDAP" != "no"; then 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5 14299$as_echo_n "checking for ldap_bind in -lldap... " >&6; } 14300if ${ac_cv_lib_ldap_ldap_bind+:} false; then : 14301 $as_echo_n "(cached) " >&6 14302else 14303 ac_check_lib_save_LIBS=$LIBS 14304LIBS="-lldap $LIBS" 14305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14306/* end confdefs.h. */ 14307 14308/* Override any GCC internal prototype to avoid an error. 14309 Use char because int might match the return type of a GCC 14310 builtin and then its argument prototype would still apply. */ 14311#ifdef __cplusplus 14312extern "C" 14313#endif 14314char ldap_bind (); 14315int 14316main () 14317{ 14318return ldap_bind (); 14319 ; 14320 return 0; 14321} 14322_ACEOF 14323if ac_fn_c_try_link "$LINENO"; then : 14324 ac_cv_lib_ldap_ldap_bind=yes 14325else 14326 ac_cv_lib_ldap_ldap_bind=no 14327fi 14328rm -f core conftest.err conftest.$ac_objext \ 14329 conftest$ac_exeext conftest.$ac_ext 14330LIBS=$ac_check_lib_save_LIBS 14331fi 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5 14333$as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; } 14334if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then : 14335 14336 for ac_header in ldap.h 14337do : 14338 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" 14339if test "x$ac_cv_header_ldap_h" = xyes; then : 14340 cat >>confdefs.h <<_ACEOF 14341#define HAVE_LDAP_H 1 14342_ACEOF 14343 14344 LDAP_LIB=-lldap 14345 14346$as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h 14347 14348 $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h 14349 14350 14351$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h 14352 14353 14354fi 14355 14356done 14357 14358 14359fi 14360 14361 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5 14363$as_echo_n "checking for ber_printf in -llber... " >&6; } 14364if ${ac_cv_lib_lber_ber_printf+:} false; then : 14365 $as_echo_n "(cached) " >&6 14366else 14367 ac_check_lib_save_LIBS=$LIBS 14368LIBS="-llber $LIBS" 14369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370/* end confdefs.h. */ 14371 14372/* Override any GCC internal prototype to avoid an error. 14373 Use char because int might match the return type of a GCC 14374 builtin and then its argument prototype would still apply. */ 14375#ifdef __cplusplus 14376extern "C" 14377#endif 14378char ber_printf (); 14379int 14380main () 14381{ 14382return ber_printf (); 14383 ; 14384 return 0; 14385} 14386_ACEOF 14387if ac_fn_c_try_link "$LINENO"; then : 14388 ac_cv_lib_lber_ber_printf=yes 14389else 14390 ac_cv_lib_lber_ber_printf=no 14391fi 14392rm -f core conftest.err conftest.$ac_objext \ 14393 conftest$ac_exeext conftest.$ac_ext 14394LIBS=$ac_check_lib_save_LIBS 14395fi 14396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5 14397$as_echo "$ac_cv_lib_lber_ber_printf" >&6; } 14398if test "x$ac_cv_lib_lber_ber_printf" = xyes; then : 14399 14400 for ac_header in lber.h 14401do : 14402 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" 14403if test "x$ac_cv_header_lber_h" = xyes; then : 14404 cat >>confdefs.h <<_ACEOF 14405#define HAVE_LBER_H 1 14406_ACEOF 14407 14408 LBER_LIB=-llber 14409 14410$as_echo "#define HAVE_LIBLBER 1" >>confdefs.h 14411 14412 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h 14413 14414 14415fi 14416 14417done 14418 14419 14420fi 14421 14422 14423fi 14424 14425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5 14426$as_echo_n "checking for extended attributes support... " >&6; } 14427 14428# Check whether --with-attr was given. 14429if test "${with_attr+set}" = set; then : 14430 withval=$with_attr; WITH_ATTR=$withval 14431else 14432 WITH_ATTR=no 14433fi 14434 14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 14436$as_echo "$withval" >&6; } 14437if test "$WITH_ATTR" != "no"; then 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5 14439$as_echo_n "checking for attr_get in -lattr... " >&6; } 14440if ${ac_cv_lib_attr_attr_get+:} false; then : 14441 $as_echo_n "(cached) " >&6 14442else 14443 ac_check_lib_save_LIBS=$LIBS 14444LIBS="-lattr $LIBS" 14445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14446/* end confdefs.h. */ 14447 14448/* Override any GCC internal prototype to avoid an error. 14449 Use char because int might match the return type of a GCC 14450 builtin and then its argument prototype would still apply. */ 14451#ifdef __cplusplus 14452extern "C" 14453#endif 14454char attr_get (); 14455int 14456main () 14457{ 14458return attr_get (); 14459 ; 14460 return 0; 14461} 14462_ACEOF 14463if ac_fn_c_try_link "$LINENO"; then : 14464 ac_cv_lib_attr_attr_get=yes 14465else 14466 ac_cv_lib_attr_attr_get=no 14467fi 14468rm -f core conftest.err conftest.$ac_objext \ 14469 conftest$ac_exeext conftest.$ac_ext 14470LIBS=$ac_check_lib_save_LIBS 14471fi 14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5 14473$as_echo "$ac_cv_lib_attr_attr_get" >&6; } 14474if test "x$ac_cv_lib_attr_attr_get" = xyes; then : 14475 14476 for ac_header in attr/attributes.h 14477do : 14478 ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default" 14479if test "x$ac_cv_header_attr_attributes_h" = xyes; then : 14480 cat >>confdefs.h <<_ACEOF 14481#define HAVE_ATTR_ATTRIBUTES_H 1 14482_ACEOF 14483 14484 ATTR_LIB=-lattr 14485 14486$as_echo "#define HAVE_XATTR 1" >>confdefs.h 14487 14488 $as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h 14489 14490 14491fi 14492 14493done 14494 14495 14496fi 14497 14498 14499fi 14500 14501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14502$as_echo_n "checking for library containing socket... " >&6; } 14503if ${ac_cv_search_socket+:} false; then : 14504 $as_echo_n "(cached) " >&6 14505else 14506 ac_func_search_save_LIBS=$LIBS 14507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14508/* end confdefs.h. */ 14509 14510/* Override any GCC internal prototype to avoid an error. 14511 Use char because int might match the return type of a GCC 14512 builtin and then its argument prototype would still apply. */ 14513#ifdef __cplusplus 14514extern "C" 14515#endif 14516char socket (); 14517int 14518main () 14519{ 14520return socket (); 14521 ; 14522 return 0; 14523} 14524_ACEOF 14525for ac_lib in '' socket; do 14526 if test -z "$ac_lib"; then 14527 ac_res="none required" 14528 else 14529 ac_res=-l$ac_lib 14530 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14531 fi 14532 if ac_fn_c_try_link "$LINENO"; then : 14533 ac_cv_search_socket=$ac_res 14534fi 14535rm -f core conftest.err conftest.$ac_objext \ 14536 conftest$ac_exeext 14537 if ${ac_cv_search_socket+:} false; then : 14538 break 14539fi 14540done 14541if ${ac_cv_search_socket+:} false; then : 14542 14543else 14544 ac_cv_search_socket=no 14545fi 14546rm conftest.$ac_ext 14547LIBS=$ac_func_search_save_LIBS 14548fi 14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14550$as_echo "$ac_cv_search_socket" >&6; } 14551ac_res=$ac_cv_search_socket 14552if test "$ac_res" != no; then : 14553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14554 14555fi 14556 14557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 14558$as_echo_n "checking for library containing gethostbyname... " >&6; } 14559if ${ac_cv_search_gethostbyname+:} false; then : 14560 $as_echo_n "(cached) " >&6 14561else 14562 ac_func_search_save_LIBS=$LIBS 14563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14564/* end confdefs.h. */ 14565 14566/* Override any GCC internal prototype to avoid an error. 14567 Use char because int might match the return type of a GCC 14568 builtin and then its argument prototype would still apply. */ 14569#ifdef __cplusplus 14570extern "C" 14571#endif 14572char gethostbyname (); 14573int 14574main () 14575{ 14576return gethostbyname (); 14577 ; 14578 return 0; 14579} 14580_ACEOF 14581for ac_lib in '' nsl socket; do 14582 if test -z "$ac_lib"; then 14583 ac_res="none required" 14584 else 14585 ac_res=-l$ac_lib 14586 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14587 fi 14588 if ac_fn_c_try_link "$LINENO"; then : 14589 ac_cv_search_gethostbyname=$ac_res 14590fi 14591rm -f core conftest.err conftest.$ac_objext \ 14592 conftest$ac_exeext 14593 if ${ac_cv_search_gethostbyname+:} false; then : 14594 break 14595fi 14596done 14597if ${ac_cv_search_gethostbyname+:} false; then : 14598 14599else 14600 ac_cv_search_gethostbyname=no 14601fi 14602rm conftest.$ac_ext 14603LIBS=$ac_func_search_save_LIBS 14604fi 14605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 14606$as_echo "$ac_cv_search_gethostbyname" >&6; } 14607ac_res=$ac_cv_search_gethostbyname 14608if test "$ac_res" != no; then : 14609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14610 14611fi 14612 14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 14614$as_echo_n "checking for library containing hstrerror... " >&6; } 14615if ${ac_cv_search_hstrerror+:} false; then : 14616 $as_echo_n "(cached) " >&6 14617else 14618 ac_func_search_save_LIBS=$LIBS 14619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14620/* end confdefs.h. */ 14621 14622/* Override any GCC internal prototype to avoid an error. 14623 Use char because int might match the return type of a GCC 14624 builtin and then its argument prototype would still apply. */ 14625#ifdef __cplusplus 14626extern "C" 14627#endif 14628char hstrerror (); 14629int 14630main () 14631{ 14632return hstrerror (); 14633 ; 14634 return 0; 14635} 14636_ACEOF 14637for ac_lib in '' resolv; do 14638 if test -z "$ac_lib"; then 14639 ac_res="none required" 14640 else 14641 ac_res=-l$ac_lib 14642 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14643 fi 14644 if ac_fn_c_try_link "$LINENO"; then : 14645 ac_cv_search_hstrerror=$ac_res 14646fi 14647rm -f core conftest.err conftest.$ac_objext \ 14648 conftest$ac_exeext 14649 if ${ac_cv_search_hstrerror+:} false; then : 14650 break 14651fi 14652done 14653if ${ac_cv_search_hstrerror+:} false; then : 14654 14655else 14656 ac_cv_search_hstrerror=no 14657fi 14658rm conftest.$ac_ext 14659LIBS=$ac_func_search_save_LIBS 14660fi 14661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 14662$as_echo "$ac_cv_search_hstrerror" >&6; } 14663ac_res=$ac_cv_search_hstrerror 14664if test "$ac_res" != no; then : 14665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14666 14667fi 14668 14669 14670save_LIBS=$LIBS 14671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 14672$as_echo_n "checking for library containing dlopen... " >&6; } 14673if ${ac_cv_search_dlopen+:} false; then : 14674 $as_echo_n "(cached) " >&6 14675else 14676 ac_func_search_save_LIBS=$LIBS 14677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14678/* end confdefs.h. */ 14679 14680/* Override any GCC internal prototype to avoid an error. 14681 Use char because int might match the return type of a GCC 14682 builtin and then its argument prototype would still apply. */ 14683#ifdef __cplusplus 14684extern "C" 14685#endif 14686char dlopen (); 14687int 14688main () 14689{ 14690return dlopen (); 14691 ; 14692 return 0; 14693} 14694_ACEOF 14695for ac_lib in '' dl; do 14696 if test -z "$ac_lib"; then 14697 ac_res="none required" 14698 else 14699 ac_res=-l$ac_lib 14700 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14701 fi 14702 if ac_fn_c_try_link "$LINENO"; then : 14703 ac_cv_search_dlopen=$ac_res 14704fi 14705rm -f core conftest.err conftest.$ac_objext \ 14706 conftest$ac_exeext 14707 if ${ac_cv_search_dlopen+:} false; then : 14708 break 14709fi 14710done 14711if ${ac_cv_search_dlopen+:} false; then : 14712 14713else 14714 ac_cv_search_dlopen=no 14715fi 14716rm conftest.$ac_ext 14717LIBS=$ac_func_search_save_LIBS 14718fi 14719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14720$as_echo "$ac_cv_search_dlopen" >&6; } 14721ac_res=$ac_cv_search_dlopen 14722if test "$ac_res" != no; then : 14723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14724 14725 for ac_header in dlfcn.h 14726do : 14727 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14728if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14729 cat >>confdefs.h <<_ACEOF 14730#define HAVE_DLFCN_H 1 14731_ACEOF 14732 14733 if test "$ac_cv_search_dlopen" != no; then 14734 test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen" 14735 fi 14736 14737 14738$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 14739 14740 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 14741 14742 14743fi 14744 14745done 14746 14747 14748fi 14749 14750LIBS=$save_LIBS 14751 14752 14753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5 14754$as_echo_n "checking for valgrind... " >&6; } 14755 14756# Check whether --with-valgrind was given. 14757if test "${with_valgrind+set}" = set; then : 14758 withval=$with_valgrind; WITH_VALGRIND=$withval 14759else 14760 WITH_VALGRIND=no 14761fi 14762 14763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5 14764$as_echo "$WITH_VALGRIND" >&6; } 14765if test "$WITH_VALGRIND" != "no"; then 14766 for ac_header in valgrind/valgrind.h 14767do : 14768 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 14769if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 14770 cat >>confdefs.h <<_ACEOF 14771#define HAVE_VALGRIND_VALGRIND_H 1 14772_ACEOF 14773 14774fi 14775 14776done 14777 14778fi 14779 14780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 14781$as_echo_n "checking for OpenSSL... " >&6; } 14782 14783# Check whether --with-openssl was given. 14784if test "${with_openssl+set}" = set; then : 14785 withval=$with_openssl; WITH_OPENSSL=$withval 14786else 14787 WITH_OPENSSL=no 14788fi 14789 14790 14791if test "$WITH_OPENSSL" != "no"; then 14792 use_openssl=yes 14793 if test "$WITH_OPENSSL" != "yes"; then 14794 CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include" 14795 LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib" 14796 fi 14797else 14798 use_openssl=no 14799fi 14800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5 14801$as_echo "$use_openssl" >&6; } 14802 14803 14804# Check whether --with-openssl-includes was given. 14805if test "${with_openssl_includes+set}" = set; then : 14806 withval=$with_openssl_includes; use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval" 14807 14808fi 14809 14810 14811 14812# Check whether --with-openssl-libs was given. 14813if test "${with_openssl_libs+set}" = set; then : 14814 withval=$with_openssl_libs; use_openssl=yes LDFLAGS="$LDFLAGS -L$withval" 14815 14816fi 14817 14818 14819 14820# Check whether --with-kerberos5 was given. 14821if test "${with_kerberos5+set}" = set; then : 14822 withval=$with_kerberos5; use_kerberos=yes 14823else 14824 use_kerberos=no 14825 14826fi 14827 14828 14829if test "x$use_openssl" = "xyes"; then 14830 if test "x$use_kerberos" != "xyes"; then 14831 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5" 14832 fi 14833 14834 for ac_header in openssl/ssl.h 14835do : 14836 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 14837if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 14838 cat >>confdefs.h <<_ACEOF 14839#define HAVE_OPENSSL_SSL_H 1 14840_ACEOF 14841 14842fi 14843 14844done 14845 14846 OLDLIBS="$LIBS" 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_f_base64 in -lcrypto" >&5 14848$as_echo_n "checking for BIO_f_base64 in -lcrypto... " >&6; } 14849if ${ac_cv_lib_crypto_BIO_f_base64+:} false; then : 14850 $as_echo_n "(cached) " >&6 14851else 14852 ac_check_lib_save_LIBS=$LIBS 14853LIBS="-lcrypto $LIBS" 14854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855/* end confdefs.h. */ 14856 14857/* Override any GCC internal prototype to avoid an error. 14858 Use char because int might match the return type of a GCC 14859 builtin and then its argument prototype would still apply. */ 14860#ifdef __cplusplus 14861extern "C" 14862#endif 14863char BIO_f_base64 (); 14864int 14865main () 14866{ 14867return BIO_f_base64 (); 14868 ; 14869 return 0; 14870} 14871_ACEOF 14872if ac_fn_c_try_link "$LINENO"; then : 14873 ac_cv_lib_crypto_BIO_f_base64=yes 14874else 14875 ac_cv_lib_crypto_BIO_f_base64=no 14876fi 14877rm -f core conftest.err conftest.$ac_objext \ 14878 conftest$ac_exeext conftest.$ac_ext 14879LIBS=$ac_check_lib_save_LIBS 14880fi 14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_f_base64" >&5 14882$as_echo "$ac_cv_lib_crypto_BIO_f_base64" >&6; } 14883if test "x$ac_cv_lib_crypto_BIO_f_base64" = xyes; then : 14884 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 14886$as_echo_n "checking for SSL_new in -lssl... " >&6; } 14887if ${ac_cv_lib_ssl_SSL_new+:} false; then : 14888 $as_echo_n "(cached) " >&6 14889else 14890 ac_check_lib_save_LIBS=$LIBS 14891LIBS="-lssl -lcrypto "$DL_LIB" $LIBS" 14892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893/* end confdefs.h. */ 14894 14895/* Override any GCC internal prototype to avoid an error. 14896 Use char because int might match the return type of a GCC 14897 builtin and then its argument prototype would still apply. */ 14898#ifdef __cplusplus 14899extern "C" 14900#endif 14901char SSL_new (); 14902int 14903main () 14904{ 14905return SSL_new (); 14906 ; 14907 return 0; 14908} 14909_ACEOF 14910if ac_fn_c_try_link "$LINENO"; then : 14911 ac_cv_lib_ssl_SSL_new=yes 14912else 14913 ac_cv_lib_ssl_SSL_new=no 14914fi 14915rm -f core conftest.err conftest.$ac_objext \ 14916 conftest$ac_exeext conftest.$ac_ext 14917LIBS=$ac_check_lib_save_LIBS 14918fi 14919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 14920$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } 14921if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then : 14922 SSL_LIB="-lssl -lcrypto" 14923 14924$as_echo "#define HAVE_LIBSSL /**/" >>confdefs.h 14925 14926fi 14927 14928 14929fi 14930 14931 LIBS="$OLDLIBS" 14932 14933fi 14934 14935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5 14936$as_echo_n "checking for perl regular expressions support... " >&6; } 14937 14938# Check whether --with-pcre was given. 14939if test "${with_pcre+set}" = set; then : 14940 withval=$with_pcre; WITH_PCRE=$withval 14941else 14942 WITH_PCRE=yes 14943fi 14944 14945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5 14946$as_echo "$WITH_PCRE" >&6; } 14947 14948if test "$WITH_PCRE" != "no"; then 14949 # Extract the first word of "pcre-config", so it can be a program name with args. 14950set dummy pcre-config; ac_word=$2 14951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14952$as_echo_n "checking for $ac_word... " >&6; } 14953if ${ac_cv_path_PCRECONFIG+:} false; then : 14954 $as_echo_n "(cached) " >&6 14955else 14956 case $PCRECONFIG in 14957 [\\/]* | ?:[\\/]*) 14958 ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path. 14959 ;; 14960 *) 14961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14962for as_dir in $PATH 14963do 14964 IFS=$as_save_IFS 14965 test -z "$as_dir" && as_dir=. 14966 for ac_exec_ext in '' $ac_executable_extensions; do 14967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14968 ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext" 14969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14970 break 2 14971 fi 14972done 14973 done 14974IFS=$as_save_IFS 14975 14976 ;; 14977esac 14978fi 14979PCRECONFIG=$ac_cv_path_PCRECONFIG 14980if test -n "$PCRECONFIG"; then 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5 14982$as_echo "$PCRECONFIG" >&6; } 14983else 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14985$as_echo "no" >&6; } 14986fi 14987 14988 14989 14990 if test x"$PCRECONFIG" != x; then 14991 PCRE_LIB=`$PCRECONFIG --libs` 14992 CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`" 14993 14994$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h 14995 14996 14997$as_echo "#define HAVE_PCRE_H 1" >>confdefs.h 14998 14999 else 15000 as_fn_error $? "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5 15001 fi 15002fi 15003 15004 15005 15006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 15007$as_echo_n "checking for zlib support... " >&6; } 15008 15009# Check whether --with-zlib was given. 15010if test "${with_zlib+set}" = set; then : 15011 withval=$with_zlib; WITH_ZLIB=$withval 15012else 15013 WITH_ZLIB=yes 15014fi 15015 15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5 15017$as_echo "$WITH_ZLIB" >&6; } 15018 15019if test "$WITH_ZLIB" != "no"; then 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 15021$as_echo_n "checking for deflate in -lz... " >&6; } 15022if ${ac_cv_lib_z_deflate+:} false; then : 15023 $as_echo_n "(cached) " >&6 15024else 15025 ac_check_lib_save_LIBS=$LIBS 15026LIBS="-lz $LIBS" 15027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029 15030/* Override any GCC internal prototype to avoid an error. 15031 Use char because int might match the return type of a GCC 15032 builtin and then its argument prototype would still apply. */ 15033#ifdef __cplusplus 15034extern "C" 15035#endif 15036char deflate (); 15037int 15038main () 15039{ 15040return deflate (); 15041 ; 15042 return 0; 15043} 15044_ACEOF 15045if ac_fn_c_try_link "$LINENO"; then : 15046 ac_cv_lib_z_deflate=yes 15047else 15048 ac_cv_lib_z_deflate=no 15049fi 15050rm -f core conftest.err conftest.$ac_objext \ 15051 conftest$ac_exeext conftest.$ac_ext 15052LIBS=$ac_check_lib_save_LIBS 15053fi 15054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 15055$as_echo "$ac_cv_lib_z_deflate" >&6; } 15056if test "x$ac_cv_lib_z_deflate" = xyes; then : 15057 15058 for ac_header in zlib.h 15059do : 15060 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 15061if test "x$ac_cv_header_zlib_h" = xyes; then : 15062 cat >>confdefs.h <<_ACEOF 15063#define HAVE_ZLIB_H 1 15064_ACEOF 15065 15066 Z_LIB=-lz 15067 15068$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 15069 15070 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 15071 15072 15073fi 15074 15075done 15076 15077 15078fi 15079 15080 if test x$Z_LIB = x; then 15081 as_fn_error $? "zlib-headers and/or libs where not found, install them or build with --without-zlib" "$LINENO" 5 15082 fi 15083fi 15084 15085 15086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5 15087$as_echo_n "checking for bzip2 support... " >&6; } 15088 15089# Check whether --with-bzip2 was given. 15090if test "${with_bzip2+set}" = set; then : 15091 withval=$with_bzip2; WITH_BZIP2=$withval 15092else 15093 WITH_BZIP2=yes 15094fi 15095 15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5 15097$as_echo "$WITH_BZIP2" >&6; } 15098 15099if test "$WITH_BZIP2" != "no"; then 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5 15101$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; } 15102if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then : 15103 $as_echo_n "(cached) " >&6 15104else 15105 ac_check_lib_save_LIBS=$LIBS 15106LIBS="-lbz2 $LIBS" 15107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15108/* end confdefs.h. */ 15109 15110/* Override any GCC internal prototype to avoid an error. 15111 Use char because int might match the return type of a GCC 15112 builtin and then its argument prototype would still apply. */ 15113#ifdef __cplusplus 15114extern "C" 15115#endif 15116char BZ2_bzCompress (); 15117int 15118main () 15119{ 15120return BZ2_bzCompress (); 15121 ; 15122 return 0; 15123} 15124_ACEOF 15125if ac_fn_c_try_link "$LINENO"; then : 15126 ac_cv_lib_bz2_BZ2_bzCompress=yes 15127else 15128 ac_cv_lib_bz2_BZ2_bzCompress=no 15129fi 15130rm -f core conftest.err conftest.$ac_objext \ 15131 conftest$ac_exeext conftest.$ac_ext 15132LIBS=$ac_check_lib_save_LIBS 15133fi 15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5 15135$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; } 15136if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then : 15137 15138 for ac_header in bzlib.h 15139do : 15140 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 15141if test "x$ac_cv_header_bzlib_h" = xyes; then : 15142 cat >>confdefs.h <<_ACEOF 15143#define HAVE_BZLIB_H 1 15144_ACEOF 15145 15146 BZ_LIB=-lbz2 15147 15148$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h 15149 15150 $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h 15151 15152 15153fi 15154 15155done 15156 15157 15158fi 15159 15160 if test x$BZ_LIB = x; then 15161 as_fn_error $? "bzip2-headers and/or libs where not found, install them or build with --without-bzip2" "$LINENO" 5 15162 fi 15163fi 15164 15165 15166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5 15167$as_echo_n "checking for FAM... " >&6; } 15168 15169# Check whether --with-fam was given. 15170if test "${with_fam+set}" = set; then : 15171 withval=$with_fam; WITH_FAM=$withval 15172else 15173 WITH_FAM=no 15174fi 15175 15176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5 15177$as_echo "$WITH_FAM" >&6; } 15178 15179if test "$WITH_FAM" != "no"; then 15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5 15181$as_echo_n "checking for FAMOpen2 in -lfam... " >&6; } 15182if ${ac_cv_lib_fam_FAMOpen2+:} false; then : 15183 $as_echo_n "(cached) " >&6 15184else 15185 ac_check_lib_save_LIBS=$LIBS 15186LIBS="-lfam $LIBS" 15187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15188/* end confdefs.h. */ 15189 15190/* Override any GCC internal prototype to avoid an error. 15191 Use char because int might match the return type of a GCC 15192 builtin and then its argument prototype would still apply. */ 15193#ifdef __cplusplus 15194extern "C" 15195#endif 15196char FAMOpen2 (); 15197int 15198main () 15199{ 15200return FAMOpen2 (); 15201 ; 15202 return 0; 15203} 15204_ACEOF 15205if ac_fn_c_try_link "$LINENO"; then : 15206 ac_cv_lib_fam_FAMOpen2=yes 15207else 15208 ac_cv_lib_fam_FAMOpen2=no 15209fi 15210rm -f core conftest.err conftest.$ac_objext \ 15211 conftest$ac_exeext conftest.$ac_ext 15212LIBS=$ac_check_lib_save_LIBS 15213fi 15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5 15215$as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; } 15216if test "x$ac_cv_lib_fam_FAMOpen2" = xyes; then : 15217 15218 for ac_header in fam.h 15219do : 15220 ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default" 15221if test "x$ac_cv_header_fam_h" = xyes; then : 15222 cat >>confdefs.h <<_ACEOF 15223#define HAVE_FAM_H 1 15224_ACEOF 15225 15226 FAM_LIBS=-lfam 15227 15228$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h 15229 15230 15231$as_echo "#define HAVE_FAM_H 1" >>confdefs.h 15232 15233 15234fi 15235 15236done 15237 15238 15239fi 15240 15241 if test "x$FAM_LIBS" = x; then 15242 15243pkg_failed=no 15244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5 15245$as_echo_n "checking for FAM... " >&6; } 15246 15247if test -n "$FAM_CFLAGS"; then 15248 pkg_cv_FAM_CFLAGS="$FAM_CFLAGS" 15249 elif test -n "$PKG_CONFIG"; then 15250 if test -n "$PKG_CONFIG" && \ 15251 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5 15252 ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5 15253 ac_status=$? 15254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15255 test $ac_status = 0; }; then 15256 pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null` 15257 test "x$?" != "x0" && pkg_failed=yes 15258else 15259 pkg_failed=yes 15260fi 15261 else 15262 pkg_failed=untried 15263fi 15264if test -n "$FAM_LIBS"; then 15265 pkg_cv_FAM_LIBS="$FAM_LIBS" 15266 elif test -n "$PKG_CONFIG"; then 15267 if test -n "$PKG_CONFIG" && \ 15268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5 15269 ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5 15270 ac_status=$? 15271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15272 test $ac_status = 0; }; then 15273 pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null` 15274 test "x$?" != "x0" && pkg_failed=yes 15275else 15276 pkg_failed=yes 15277fi 15278 else 15279 pkg_failed=untried 15280fi 15281 15282 15283 15284if test $pkg_failed = yes; then 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15286$as_echo "no" >&6; } 15287 15288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15289 _pkg_short_errors_supported=yes 15290else 15291 _pkg_short_errors_supported=no 15292fi 15293 if test $_pkg_short_errors_supported = yes; then 15294 FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1` 15295 else 15296 FAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1` 15297 fi 15298 # Put the nasty error message in config.log where it belongs 15299 echo "$FAM_PKG_ERRORS" >&5 15300 15301 as_fn_error $? "Package requirements (gamin >= 0.1.0) were not met: 15302 15303$FAM_PKG_ERRORS 15304 15305Consider adjusting the PKG_CONFIG_PATH environment variable if you 15306installed software in a non-standard prefix. 15307 15308Alternatively, you may set the environment variables FAM_CFLAGS 15309and FAM_LIBS to avoid the need to call pkg-config. 15310See the pkg-config man page for more details." "$LINENO" 5 15311elif test $pkg_failed = untried; then 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15313$as_echo "no" >&6; } 15314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15316as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15317is in your PATH or set the PKG_CONFIG environment variable to the full 15318path to pkg-config. 15319 15320Alternatively, you may set the environment variables FAM_CFLAGS 15321and FAM_LIBS to avoid the need to call pkg-config. 15322See the pkg-config man page for more details. 15323 15324To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15325See \`config.log' for more details" "$LINENO" 5; } 15326else 15327 FAM_CFLAGS=$pkg_cv_FAM_CFLAGS 15328 FAM_LIBS=$pkg_cv_FAM_LIBS 15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15330$as_echo "yes" >&6; } 15331 15332 15333$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h 15334 15335 15336$as_echo "#define HAVE_FAM_H 1" >>confdefs.h 15337 15338 15339fi 15340 fi 15341 OLD_LIBS=$LIBS 15342 LIBS=$FAM_LIBS 15343 for ac_func in FAMNoExists 15344do : 15345 ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists" 15346if test "x$ac_cv_func_FAMNoExists" = xyes; then : 15347 cat >>confdefs.h <<_ACEOF 15348#define HAVE_FAMNOEXISTS 1 15349_ACEOF 15350 15351fi 15352done 15353 15354 LIBS=$OLD_LIBS 15355 15356 if test x$FAM_LIBS = x; then 15357 as_fn_error $? "fam/gamin-headers and/or libs where not found, install them or build with --without-fam" "$LINENO" 5 15358 fi 15359fi 15360 15361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5 15362$as_echo_n "checking for properties in mod_webdav... " >&6; } 15363 15364# Check whether --with-webdav-props was given. 15365if test "${with_webdav_props+set}" = set; then : 15366 withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval 15367else 15368 WITH_WEBDAV_PROPS=no 15369fi 15370 15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5 15372$as_echo "$WITH_WEBDAV_PROPS" >&6; } 15373 15374if test "$WITH_WEBDAV_PROPS" != "no"; then 15375 15376pkg_failed=no 15377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 15378$as_echo_n "checking for XML... " >&6; } 15379 15380if test -n "$XML_CFLAGS"; then 15381 pkg_cv_XML_CFLAGS="$XML_CFLAGS" 15382 elif test -n "$PKG_CONFIG"; then 15383 if test -n "$PKG_CONFIG" && \ 15384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 15385 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 15386 ac_status=$? 15387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15388 test $ac_status = 0; }; then 15389 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 15390 test "x$?" != "x0" && pkg_failed=yes 15391else 15392 pkg_failed=yes 15393fi 15394 else 15395 pkg_failed=untried 15396fi 15397if test -n "$XML_LIBS"; then 15398 pkg_cv_XML_LIBS="$XML_LIBS" 15399 elif test -n "$PKG_CONFIG"; then 15400 if test -n "$PKG_CONFIG" && \ 15401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 15402 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 15403 ac_status=$? 15404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15405 test $ac_status = 0; }; then 15406 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 15407 test "x$?" != "x0" && pkg_failed=yes 15408else 15409 pkg_failed=yes 15410fi 15411 else 15412 pkg_failed=untried 15413fi 15414 15415 15416 15417if test $pkg_failed = yes; then 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15419$as_echo "no" >&6; } 15420 15421if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15422 _pkg_short_errors_supported=yes 15423else 15424 _pkg_short_errors_supported=no 15425fi 15426 if test $_pkg_short_errors_supported = yes; then 15427 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` 15428 else 15429 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` 15430 fi 15431 # Put the nasty error message in config.log where it belongs 15432 echo "$XML_PKG_ERRORS" >&5 15433 15434 as_fn_error $? "Package requirements (libxml-2.0) were not met: 15435 15436$XML_PKG_ERRORS 15437 15438Consider adjusting the PKG_CONFIG_PATH environment variable if you 15439installed software in a non-standard prefix. 15440 15441Alternatively, you may set the environment variables XML_CFLAGS 15442and XML_LIBS to avoid the need to call pkg-config. 15443See the pkg-config man page for more details." "$LINENO" 5 15444elif test $pkg_failed = untried; then 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15446$as_echo "no" >&6; } 15447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15449as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15450is in your PATH or set the PKG_CONFIG environment variable to the full 15451path to pkg-config. 15452 15453Alternatively, you may set the environment variables XML_CFLAGS 15454and XML_LIBS to avoid the need to call pkg-config. 15455See the pkg-config man page for more details. 15456 15457To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15458See \`config.log' for more details" "$LINENO" 5; } 15459else 15460 XML_CFLAGS=$pkg_cv_XML_CFLAGS 15461 XML_LIBS=$pkg_cv_XML_LIBS 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15463$as_echo "yes" >&6; } 15464 15465 15466$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h 15467 15468 15469$as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h 15470 15471 15472fi 15473 15474pkg_failed=no 15475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 15476$as_echo_n "checking for SQLITE... " >&6; } 15477 15478if test -n "$SQLITE_CFLAGS"; then 15479 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" 15480 elif test -n "$PKG_CONFIG"; then 15481 if test -n "$PKG_CONFIG" && \ 15482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 15483 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 15484 ac_status=$? 15485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15486 test $ac_status = 0; }; then 15487 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` 15488 test "x$?" != "x0" && pkg_failed=yes 15489else 15490 pkg_failed=yes 15491fi 15492 else 15493 pkg_failed=untried 15494fi 15495if test -n "$SQLITE_LIBS"; then 15496 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" 15497 elif test -n "$PKG_CONFIG"; then 15498 if test -n "$PKG_CONFIG" && \ 15499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 15500 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 15501 ac_status=$? 15502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15503 test $ac_status = 0; }; then 15504 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` 15505 test "x$?" != "x0" && pkg_failed=yes 15506else 15507 pkg_failed=yes 15508fi 15509 else 15510 pkg_failed=untried 15511fi 15512 15513 15514 15515if test $pkg_failed = yes; then 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15517$as_echo "no" >&6; } 15518 15519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15520 _pkg_short_errors_supported=yes 15521else 15522 _pkg_short_errors_supported=no 15523fi 15524 if test $_pkg_short_errors_supported = yes; then 15525 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` 15526 else 15527 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` 15528 fi 15529 # Put the nasty error message in config.log where it belongs 15530 echo "$SQLITE_PKG_ERRORS" >&5 15531 15532 as_fn_error $? "Package requirements (sqlite3) were not met: 15533 15534$SQLITE_PKG_ERRORS 15535 15536Consider adjusting the PKG_CONFIG_PATH environment variable if you 15537installed software in a non-standard prefix. 15538 15539Alternatively, you may set the environment variables SQLITE_CFLAGS 15540and SQLITE_LIBS to avoid the need to call pkg-config. 15541See the pkg-config man page for more details." "$LINENO" 5 15542elif test $pkg_failed = untried; then 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15544$as_echo "no" >&6; } 15545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15547as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15548is in your PATH or set the PKG_CONFIG environment variable to the full 15549path to pkg-config. 15550 15551Alternatively, you may set the environment variables SQLITE_CFLAGS 15552and SQLITE_LIBS to avoid the need to call pkg-config. 15553See the pkg-config man page for more details. 15554 15555To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15556See \`config.log' for more details" "$LINENO" 5; } 15557else 15558 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS 15559 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS 15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15561$as_echo "yes" >&6; } 15562 15563 15564$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h 15565 15566 15567$as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h 15568 15569 15570fi 15571 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5 15573$as_echo_n "checking for locks in mod_webdav... " >&6; } 15574 15575# Check whether --with-webdav-locks was given. 15576if test "${with_webdav_locks+set}" = set; then : 15577 withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval 15578else 15579 WITH_WEBDAV_LOCKS=no 15580fi 15581 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5 15583$as_echo "$WITH_WEBDAV_LOCKS" >&6; } 15584 15585 if test "$WITH_WEBDAV_LOCKS" != "no"; then 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5 15587$as_echo_n "checking for uuid_unparse in -luuid... " >&6; } 15588if ${ac_cv_lib_uuid_uuid_unparse+:} false; then : 15589 $as_echo_n "(cached) " >&6 15590else 15591 ac_check_lib_save_LIBS=$LIBS 15592LIBS="-luuid $LIBS" 15593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15594/* end confdefs.h. */ 15595 15596/* Override any GCC internal prototype to avoid an error. 15597 Use char because int might match the return type of a GCC 15598 builtin and then its argument prototype would still apply. */ 15599#ifdef __cplusplus 15600extern "C" 15601#endif 15602char uuid_unparse (); 15603int 15604main () 15605{ 15606return uuid_unparse (); 15607 ; 15608 return 0; 15609} 15610_ACEOF 15611if ac_fn_c_try_link "$LINENO"; then : 15612 ac_cv_lib_uuid_uuid_unparse=yes 15613else 15614 ac_cv_lib_uuid_uuid_unparse=no 15615fi 15616rm -f core conftest.err conftest.$ac_objext \ 15617 conftest$ac_exeext conftest.$ac_ext 15618LIBS=$ac_check_lib_save_LIBS 15619fi 15620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5 15621$as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; } 15622if test "x$ac_cv_lib_uuid_uuid_unparse" = xyes; then : 15623 15624 for ac_header in uuid/uuid.h 15625do : 15626 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 15627if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : 15628 cat >>confdefs.h <<_ACEOF 15629#define HAVE_UUID_UUID_H 1 15630_ACEOF 15631 15632 UUID_LIBS=-luuid 15633 15634$as_echo "#define HAVE_UUID 1" >>confdefs.h 15635 15636 15637$as_echo "#define HAVE_UUID_H 1" >>confdefs.h 15638 15639 15640fi 15641 15642done 15643 15644 15645fi 15646 15647 15648 fi 15649fi 15650 15651 15652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5 15653$as_echo_n "checking for gdbm... " >&6; } 15654 15655# Check whether --with-gdbm was given. 15656if test "${with_gdbm+set}" = set; then : 15657 withval=$with_gdbm; WITH_GDBM=$withval 15658else 15659 WITH_GDBM=no 15660fi 15661 15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5 15663$as_echo "$WITH_GDBM" >&6; } 15664 15665if test "$WITH_GDBM" != "no"; then 15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 15667$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 15668if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 15669 $as_echo_n "(cached) " >&6 15670else 15671 ac_check_lib_save_LIBS=$LIBS 15672LIBS="-lgdbm $LIBS" 15673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15674/* end confdefs.h. */ 15675 15676/* Override any GCC internal prototype to avoid an error. 15677 Use char because int might match the return type of a GCC 15678 builtin and then its argument prototype would still apply. */ 15679#ifdef __cplusplus 15680extern "C" 15681#endif 15682char gdbm_open (); 15683int 15684main () 15685{ 15686return gdbm_open (); 15687 ; 15688 return 0; 15689} 15690_ACEOF 15691if ac_fn_c_try_link "$LINENO"; then : 15692 ac_cv_lib_gdbm_gdbm_open=yes 15693else 15694 ac_cv_lib_gdbm_gdbm_open=no 15695fi 15696rm -f core conftest.err conftest.$ac_objext \ 15697 conftest$ac_exeext conftest.$ac_ext 15698LIBS=$ac_check_lib_save_LIBS 15699fi 15700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 15701$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 15702if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 15703 15704 for ac_header in gdbm.h 15705do : 15706 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 15707if test "x$ac_cv_header_gdbm_h" = xyes; then : 15708 cat >>confdefs.h <<_ACEOF 15709#define HAVE_GDBM_H 1 15710_ACEOF 15711 15712 GDBM_LIB=-lgdbm 15713 15714$as_echo "#define HAVE_GDBM 1" >>confdefs.h 15715 15716 $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h 15717 15718 15719fi 15720 15721done 15722 15723 15724fi 15725 15726 15727fi 15728 15729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5 15730$as_echo_n "checking for memcache... " >&6; } 15731 15732# Check whether --with-memcache was given. 15733if test "${with_memcache+set}" = set; then : 15734 withval=$with_memcache; WITH_MEMCACHE=$withval 15735else 15736 WITH_MEMCACHE=no 15737fi 15738 15739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MEMCACHE" >&5 15740$as_echo "$WITH_MEMCACHE" >&6; } 15741if test "$WITH_MEMCACHE" != "no"; then 15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mc_new in -lmemcache" >&5 15743$as_echo_n "checking for mc_new in -lmemcache... " >&6; } 15744if ${ac_cv_lib_memcache_mc_new+:} false; then : 15745 $as_echo_n "(cached) " >&6 15746else 15747 ac_check_lib_save_LIBS=$LIBS 15748LIBS="-lmemcache $LIBS" 15749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15750/* end confdefs.h. */ 15751 15752/* Override any GCC internal prototype to avoid an error. 15753 Use char because int might match the return type of a GCC 15754 builtin and then its argument prototype would still apply. */ 15755#ifdef __cplusplus 15756extern "C" 15757#endif 15758char mc_new (); 15759int 15760main () 15761{ 15762return mc_new (); 15763 ; 15764 return 0; 15765} 15766_ACEOF 15767if ac_fn_c_try_link "$LINENO"; then : 15768 ac_cv_lib_memcache_mc_new=yes 15769else 15770 ac_cv_lib_memcache_mc_new=no 15771fi 15772rm -f core conftest.err conftest.$ac_objext \ 15773 conftest$ac_exeext conftest.$ac_ext 15774LIBS=$ac_check_lib_save_LIBS 15775fi 15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcache_mc_new" >&5 15777$as_echo "$ac_cv_lib_memcache_mc_new" >&6; } 15778if test "x$ac_cv_lib_memcache_mc_new" = xyes; then : 15779 15780 for ac_header in memcache.h 15781do : 15782 ac_fn_c_check_header_mongrel "$LINENO" "memcache.h" "ac_cv_header_memcache_h" "$ac_includes_default" 15783if test "x$ac_cv_header_memcache_h" = xyes; then : 15784 cat >>confdefs.h <<_ACEOF 15785#define HAVE_MEMCACHE_H 1 15786_ACEOF 15787 15788 MEMCACHE_LIB=-lmemcache 15789 15790$as_echo "#define HAVE_MEMCACHE 1" >>confdefs.h 15791 15792 15793$as_echo "#define HAVE_MEMCACHE_H 1" >>confdefs.h 15794 15795 15796fi 15797 15798done 15799 15800 15801fi 15802 15803 15804fi 15805 15806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5 15807$as_echo_n "checking if lua-support is requested... " >&6; } 15808 15809# Check whether --with-lua was given. 15810if test "${with_lua+set}" = set; then : 15811 withval=$with_lua; WITH_LUA=$withval 15812else 15813 WITH_LUA=no 15814fi 15815 15816 15817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5 15818$as_echo "$WITH_LUA" >&6; } 15819if test "$WITH_LUA" != "no"; then 15820 if test "$WITH_LUA" = "yes"; then 15821 WITH_LUA=lua 15822 fi 15823 15824pkg_failed=no 15825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 15826$as_echo_n "checking for LUA... " >&6; } 15827 15828if test -n "$LUA_CFLAGS"; then 15829 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 15830 elif test -n "$PKG_CONFIG"; then 15831 if test -n "$PKG_CONFIG" && \ 15832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5 15833 ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5 15834 ac_status=$? 15835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15836 test $ac_status = 0; }; then 15837 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null` 15838 test "x$?" != "x0" && pkg_failed=yes 15839else 15840 pkg_failed=yes 15841fi 15842 else 15843 pkg_failed=untried 15844fi 15845if test -n "$LUA_LIBS"; then 15846 pkg_cv_LUA_LIBS="$LUA_LIBS" 15847 elif test -n "$PKG_CONFIG"; then 15848 if test -n "$PKG_CONFIG" && \ 15849 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5 15850 ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5 15851 ac_status=$? 15852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15853 test $ac_status = 0; }; then 15854 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null` 15855 test "x$?" != "x0" && pkg_failed=yes 15856else 15857 pkg_failed=yes 15858fi 15859 else 15860 pkg_failed=untried 15861fi 15862 15863 15864 15865if test $pkg_failed = yes; then 15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15867$as_echo "no" >&6; } 15868 15869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15870 _pkg_short_errors_supported=yes 15871else 15872 _pkg_short_errors_supported=no 15873fi 15874 if test $_pkg_short_errors_supported = yes; then 15875 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1` 15876 else 15877 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1` 15878 fi 15879 # Put the nasty error message in config.log where it belongs 15880 echo "$LUA_PKG_ERRORS" >&5 15881 15882 15883 15884pkg_failed=no 15885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 15886$as_echo_n "checking for LUA... " >&6; } 15887 15888if test -n "$LUA_CFLAGS"; then 15889 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 15890 elif test -n "$PKG_CONFIG"; then 15891 if test -n "$PKG_CONFIG" && \ 15892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 15893 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 15894 ac_status=$? 15895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15896 test $ac_status = 0; }; then 15897 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null` 15898 test "x$?" != "x0" && pkg_failed=yes 15899else 15900 pkg_failed=yes 15901fi 15902 else 15903 pkg_failed=untried 15904fi 15905if test -n "$LUA_LIBS"; then 15906 pkg_cv_LUA_LIBS="$LUA_LIBS" 15907 elif test -n "$PKG_CONFIG"; then 15908 if test -n "$PKG_CONFIG" && \ 15909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 15910 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 15911 ac_status=$? 15912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15913 test $ac_status = 0; }; then 15914 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null` 15915 test "x$?" != "x0" && pkg_failed=yes 15916else 15917 pkg_failed=yes 15918fi 15919 else 15920 pkg_failed=untried 15921fi 15922 15923 15924 15925if test $pkg_failed = yes; then 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15927$as_echo "no" >&6; } 15928 15929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15930 _pkg_short_errors_supported=yes 15931else 15932 _pkg_short_errors_supported=no 15933fi 15934 if test $_pkg_short_errors_supported = yes; then 15935 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1` 15936 else 15937 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1` 15938 fi 15939 # Put the nasty error message in config.log where it belongs 15940 echo "$LUA_PKG_ERRORS" >&5 15941 15942 15943 15944pkg_failed=no 15945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 15946$as_echo_n "checking for LUA... " >&6; } 15947 15948if test -n "$LUA_CFLAGS"; then 15949 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 15950 elif test -n "$PKG_CONFIG"; then 15951 if test -n "$PKG_CONFIG" && \ 15952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 15953 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 15954 ac_status=$? 15955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15956 test $ac_status = 0; }; then 15957 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null` 15958 test "x$?" != "x0" && pkg_failed=yes 15959else 15960 pkg_failed=yes 15961fi 15962 else 15963 pkg_failed=untried 15964fi 15965if test -n "$LUA_LIBS"; then 15966 pkg_cv_LUA_LIBS="$LUA_LIBS" 15967 elif test -n "$PKG_CONFIG"; then 15968 if test -n "$PKG_CONFIG" && \ 15969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 15970 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 15971 ac_status=$? 15972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15973 test $ac_status = 0; }; then 15974 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null` 15975 test "x$?" != "x0" && pkg_failed=yes 15976else 15977 pkg_failed=yes 15978fi 15979 else 15980 pkg_failed=untried 15981fi 15982 15983 15984 15985if test $pkg_failed = yes; then 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15987$as_echo "no" >&6; } 15988 15989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15990 _pkg_short_errors_supported=yes 15991else 15992 _pkg_short_errors_supported=no 15993fi 15994 if test $_pkg_short_errors_supported = yes; then 15995 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1` 15996 else 15997 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1` 15998 fi 15999 # Put the nasty error message in config.log where it belongs 16000 echo "$LUA_PKG_ERRORS" >&5 16001 16002 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met: 16003 16004$LUA_PKG_ERRORS 16005 16006Consider adjusting the PKG_CONFIG_PATH environment variable if you 16007installed software in a non-standard prefix. 16008 16009Alternatively, you may set the environment variables LUA_CFLAGS 16010and LUA_LIBS to avoid the need to call pkg-config. 16011See the pkg-config man page for more details." "$LINENO" 5 16012elif test $pkg_failed = untried; then 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16014$as_echo "no" >&6; } 16015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16017as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16018is in your PATH or set the PKG_CONFIG environment variable to the full 16019path to pkg-config. 16020 16021Alternatively, you may set the environment variables LUA_CFLAGS 16022and LUA_LIBS to avoid the need to call pkg-config. 16023See the pkg-config man page for more details. 16024 16025To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16026See \`config.log' for more details" "$LINENO" 5; } 16027else 16028 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 16029 LUA_LIBS=$pkg_cv_LUA_LIBS 16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16031$as_echo "yes" >&6; } 16032 16033 16034$as_echo "#define HAVE_LUA 1" >>confdefs.h 16035 16036 16037$as_echo "#define HAVE_LUA_H 1" >>confdefs.h 16038 16039 16040fi 16041 16042elif test $pkg_failed = untried; then 16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16044$as_echo "no" >&6; } 16045 16046 16047pkg_failed=no 16048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 16049$as_echo_n "checking for LUA... " >&6; } 16050 16051if test -n "$LUA_CFLAGS"; then 16052 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 16053 elif test -n "$PKG_CONFIG"; then 16054 if test -n "$PKG_CONFIG" && \ 16055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 16056 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 16057 ac_status=$? 16058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16059 test $ac_status = 0; }; then 16060 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null` 16061 test "x$?" != "x0" && pkg_failed=yes 16062else 16063 pkg_failed=yes 16064fi 16065 else 16066 pkg_failed=untried 16067fi 16068if test -n "$LUA_LIBS"; then 16069 pkg_cv_LUA_LIBS="$LUA_LIBS" 16070 elif test -n "$PKG_CONFIG"; then 16071 if test -n "$PKG_CONFIG" && \ 16072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 16073 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 16074 ac_status=$? 16075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16076 test $ac_status = 0; }; then 16077 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null` 16078 test "x$?" != "x0" && pkg_failed=yes 16079else 16080 pkg_failed=yes 16081fi 16082 else 16083 pkg_failed=untried 16084fi 16085 16086 16087 16088if test $pkg_failed = yes; then 16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16090$as_echo "no" >&6; } 16091 16092if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16093 _pkg_short_errors_supported=yes 16094else 16095 _pkg_short_errors_supported=no 16096fi 16097 if test $_pkg_short_errors_supported = yes; then 16098 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1` 16099 else 16100 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1` 16101 fi 16102 # Put the nasty error message in config.log where it belongs 16103 echo "$LUA_PKG_ERRORS" >&5 16104 16105 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met: 16106 16107$LUA_PKG_ERRORS 16108 16109Consider adjusting the PKG_CONFIG_PATH environment variable if you 16110installed software in a non-standard prefix. 16111 16112Alternatively, you may set the environment variables LUA_CFLAGS 16113and LUA_LIBS to avoid the need to call pkg-config. 16114See the pkg-config man page for more details." "$LINENO" 5 16115elif test $pkg_failed = untried; then 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16117$as_echo "no" >&6; } 16118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16120as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16121is in your PATH or set the PKG_CONFIG environment variable to the full 16122path to pkg-config. 16123 16124Alternatively, you may set the environment variables LUA_CFLAGS 16125and LUA_LIBS to avoid the need to call pkg-config. 16126See the pkg-config man page for more details. 16127 16128To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16129See \`config.log' for more details" "$LINENO" 5; } 16130else 16131 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 16132 LUA_LIBS=$pkg_cv_LUA_LIBS 16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16134$as_echo "yes" >&6; } 16135 16136 16137$as_echo "#define HAVE_LUA 1" >>confdefs.h 16138 16139 16140$as_echo "#define HAVE_LUA_H 1" >>confdefs.h 16141 16142 16143fi 16144 16145else 16146 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 16147 LUA_LIBS=$pkg_cv_LUA_LIBS 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16149$as_echo "yes" >&6; } 16150 16151 16152$as_echo "#define HAVE_LUA 1" >>confdefs.h 16153 16154 16155$as_echo "#define HAVE_LUA_H 1" >>confdefs.h 16156 16157 16158fi 16159 16160elif test $pkg_failed = untried; then 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16162$as_echo "no" >&6; } 16163 16164 16165pkg_failed=no 16166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 16167$as_echo_n "checking for LUA... " >&6; } 16168 16169if test -n "$LUA_CFLAGS"; then 16170 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 16171 elif test -n "$PKG_CONFIG"; then 16172 if test -n "$PKG_CONFIG" && \ 16173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 16174 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 16175 ac_status=$? 16176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16177 test $ac_status = 0; }; then 16178 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null` 16179 test "x$?" != "x0" && pkg_failed=yes 16180else 16181 pkg_failed=yes 16182fi 16183 else 16184 pkg_failed=untried 16185fi 16186if test -n "$LUA_LIBS"; then 16187 pkg_cv_LUA_LIBS="$LUA_LIBS" 16188 elif test -n "$PKG_CONFIG"; then 16189 if test -n "$PKG_CONFIG" && \ 16190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5 16191 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5 16192 ac_status=$? 16193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16194 test $ac_status = 0; }; then 16195 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null` 16196 test "x$?" != "x0" && pkg_failed=yes 16197else 16198 pkg_failed=yes 16199fi 16200 else 16201 pkg_failed=untried 16202fi 16203 16204 16205 16206if test $pkg_failed = yes; then 16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16208$as_echo "no" >&6; } 16209 16210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16211 _pkg_short_errors_supported=yes 16212else 16213 _pkg_short_errors_supported=no 16214fi 16215 if test $_pkg_short_errors_supported = yes; then 16216 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1` 16217 else 16218 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1` 16219 fi 16220 # Put the nasty error message in config.log where it belongs 16221 echo "$LUA_PKG_ERRORS" >&5 16222 16223 16224 16225pkg_failed=no 16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 16227$as_echo_n "checking for LUA... " >&6; } 16228 16229if test -n "$LUA_CFLAGS"; then 16230 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 16231 elif test -n "$PKG_CONFIG"; then 16232 if test -n "$PKG_CONFIG" && \ 16233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 16234 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 16235 ac_status=$? 16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16237 test $ac_status = 0; }; then 16238 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null` 16239 test "x$?" != "x0" && pkg_failed=yes 16240else 16241 pkg_failed=yes 16242fi 16243 else 16244 pkg_failed=untried 16245fi 16246if test -n "$LUA_LIBS"; then 16247 pkg_cv_LUA_LIBS="$LUA_LIBS" 16248 elif test -n "$PKG_CONFIG"; then 16249 if test -n "$PKG_CONFIG" && \ 16250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 16251 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 16252 ac_status=$? 16253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16254 test $ac_status = 0; }; then 16255 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null` 16256 test "x$?" != "x0" && pkg_failed=yes 16257else 16258 pkg_failed=yes 16259fi 16260 else 16261 pkg_failed=untried 16262fi 16263 16264 16265 16266if test $pkg_failed = yes; then 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16268$as_echo "no" >&6; } 16269 16270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16271 _pkg_short_errors_supported=yes 16272else 16273 _pkg_short_errors_supported=no 16274fi 16275 if test $_pkg_short_errors_supported = yes; then 16276 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1` 16277 else 16278 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1` 16279 fi 16280 # Put the nasty error message in config.log where it belongs 16281 echo "$LUA_PKG_ERRORS" >&5 16282 16283 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met: 16284 16285$LUA_PKG_ERRORS 16286 16287Consider adjusting the PKG_CONFIG_PATH environment variable if you 16288installed software in a non-standard prefix. 16289 16290Alternatively, you may set the environment variables LUA_CFLAGS 16291and LUA_LIBS to avoid the need to call pkg-config. 16292See the pkg-config man page for more details." "$LINENO" 5 16293elif test $pkg_failed = untried; then 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16295$as_echo "no" >&6; } 16296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16298as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16299is in your PATH or set the PKG_CONFIG environment variable to the full 16300path to pkg-config. 16301 16302Alternatively, you may set the environment variables LUA_CFLAGS 16303and LUA_LIBS to avoid the need to call pkg-config. 16304See the pkg-config man page for more details. 16305 16306To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16307See \`config.log' for more details" "$LINENO" 5; } 16308else 16309 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 16310 LUA_LIBS=$pkg_cv_LUA_LIBS 16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16312$as_echo "yes" >&6; } 16313 16314 16315$as_echo "#define HAVE_LUA 1" >>confdefs.h 16316 16317 16318$as_echo "#define HAVE_LUA_H 1" >>confdefs.h 16319 16320 16321fi 16322 16323elif test $pkg_failed = untried; then 16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16325$as_echo "no" >&6; } 16326 16327 16328pkg_failed=no 16329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 16330$as_echo_n "checking for LUA... " >&6; } 16331 16332if test -n "$LUA_CFLAGS"; then 16333 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 16334 elif test -n "$PKG_CONFIG"; then 16335 if test -n "$PKG_CONFIG" && \ 16336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 16337 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 16338 ac_status=$? 16339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16340 test $ac_status = 0; }; then 16341 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null` 16342 test "x$?" != "x0" && pkg_failed=yes 16343else 16344 pkg_failed=yes 16345fi 16346 else 16347 pkg_failed=untried 16348fi 16349if test -n "$LUA_LIBS"; then 16350 pkg_cv_LUA_LIBS="$LUA_LIBS" 16351 elif test -n "$PKG_CONFIG"; then 16352 if test -n "$PKG_CONFIG" && \ 16353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5 16354 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5 16355 ac_status=$? 16356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16357 test $ac_status = 0; }; then 16358 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null` 16359 test "x$?" != "x0" && pkg_failed=yes 16360else 16361 pkg_failed=yes 16362fi 16363 else 16364 pkg_failed=untried 16365fi 16366 16367 16368 16369if test $pkg_failed = yes; then 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16371$as_echo "no" >&6; } 16372 16373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16374 _pkg_short_errors_supported=yes 16375else 16376 _pkg_short_errors_supported=no 16377fi 16378 if test $_pkg_short_errors_supported = yes; then 16379 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1` 16380 else 16381 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1` 16382 fi 16383 # Put the nasty error message in config.log where it belongs 16384 echo "$LUA_PKG_ERRORS" >&5 16385 16386 as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met: 16387 16388$LUA_PKG_ERRORS 16389 16390Consider adjusting the PKG_CONFIG_PATH environment variable if you 16391installed software in a non-standard prefix. 16392 16393Alternatively, you may set the environment variables LUA_CFLAGS 16394and LUA_LIBS to avoid the need to call pkg-config. 16395See the pkg-config man page for more details." "$LINENO" 5 16396elif test $pkg_failed = untried; then 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16398$as_echo "no" >&6; } 16399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16401as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16402is in your PATH or set the PKG_CONFIG environment variable to the full 16403path to pkg-config. 16404 16405Alternatively, you may set the environment variables LUA_CFLAGS 16406and LUA_LIBS to avoid the need to call pkg-config. 16407See the pkg-config man page for more details. 16408 16409To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16410See \`config.log' for more details" "$LINENO" 5; } 16411else 16412 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 16413 LUA_LIBS=$pkg_cv_LUA_LIBS 16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16415$as_echo "yes" >&6; } 16416 16417 16418$as_echo "#define HAVE_LUA 1" >>confdefs.h 16419 16420 16421$as_echo "#define HAVE_LUA_H 1" >>confdefs.h 16422 16423 16424fi 16425 16426else 16427 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 16428 LUA_LIBS=$pkg_cv_LUA_LIBS 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16430$as_echo "yes" >&6; } 16431 16432 16433$as_echo "#define HAVE_LUA 1" >>confdefs.h 16434 16435 16436$as_echo "#define HAVE_LUA_H 1" >>confdefs.h 16437 16438 16439fi 16440 16441else 16442 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 16443 LUA_LIBS=$pkg_cv_LUA_LIBS 16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16445$as_echo "yes" >&6; } 16446 16447 16448$as_echo "#define HAVE_LUA 1" >>confdefs.h 16449 16450 16451$as_echo "#define HAVE_LUA_H 1" >>confdefs.h 16452 16453 16454fi 16455 16456 16457 16458fi 16459 16460save_LIBS=$LIBS 16461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 16462$as_echo_n "checking for library containing crypt... " >&6; } 16463if ${ac_cv_search_crypt+:} false; then : 16464 $as_echo_n "(cached) " >&6 16465else 16466 ac_func_search_save_LIBS=$LIBS 16467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16468/* end confdefs.h. */ 16469 16470/* Override any GCC internal prototype to avoid an error. 16471 Use char because int might match the return type of a GCC 16472 builtin and then its argument prototype would still apply. */ 16473#ifdef __cplusplus 16474extern "C" 16475#endif 16476char crypt (); 16477int 16478main () 16479{ 16480return crypt (); 16481 ; 16482 return 0; 16483} 16484_ACEOF 16485for ac_lib in '' crypt; do 16486 if test -z "$ac_lib"; then 16487 ac_res="none required" 16488 else 16489 ac_res=-l$ac_lib 16490 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16491 fi 16492 if ac_fn_c_try_link "$LINENO"; then : 16493 ac_cv_search_crypt=$ac_res 16494fi 16495rm -f core conftest.err conftest.$ac_objext \ 16496 conftest$ac_exeext 16497 if ${ac_cv_search_crypt+:} false; then : 16498 break 16499fi 16500done 16501if ${ac_cv_search_crypt+:} false; then : 16502 16503else 16504 ac_cv_search_crypt=no 16505fi 16506rm conftest.$ac_ext 16507LIBS=$ac_func_search_save_LIBS 16508fi 16509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 16510$as_echo "$ac_cv_search_crypt" >&6; } 16511ac_res=$ac_cv_search_crypt 16512if test "$ac_res" != no; then : 16513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16514 16515 for ac_header in crypt.h 16516do : 16517 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 16518if test "x$ac_cv_header_crypt_h" = xyes; then : 16519 cat >>confdefs.h <<_ACEOF 16520#define HAVE_CRYPT_H 1 16521_ACEOF 16522 16523 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h 16524 16525 16526fi 16527 16528done 16529 16530 16531 16532$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h 16533 16534 if test "$ac_cv_search_crypt" != no; then 16535 test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt" 16536 fi 16537 16538fi 16539 16540LIBS=$save_LIBS 16541 16542 16543save_LIBS=$LIBS 16544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5 16545$as_echo_n "checking for library containing sendfilev... " >&6; } 16546if ${ac_cv_search_sendfilev+:} false; then : 16547 $as_echo_n "(cached) " >&6 16548else 16549 ac_func_search_save_LIBS=$LIBS 16550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16551/* end confdefs.h. */ 16552 16553/* Override any GCC internal prototype to avoid an error. 16554 Use char because int might match the return type of a GCC 16555 builtin and then its argument prototype would still apply. */ 16556#ifdef __cplusplus 16557extern "C" 16558#endif 16559char sendfilev (); 16560int 16561main () 16562{ 16563return sendfilev (); 16564 ; 16565 return 0; 16566} 16567_ACEOF 16568for ac_lib in '' sendfile; do 16569 if test -z "$ac_lib"; then 16570 ac_res="none required" 16571 else 16572 ac_res=-l$ac_lib 16573 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16574 fi 16575 if ac_fn_c_try_link "$LINENO"; then : 16576 ac_cv_search_sendfilev=$ac_res 16577fi 16578rm -f core conftest.err conftest.$ac_objext \ 16579 conftest$ac_exeext 16580 if ${ac_cv_search_sendfilev+:} false; then : 16581 break 16582fi 16583done 16584if ${ac_cv_search_sendfilev+:} false; then : 16585 16586else 16587 ac_cv_search_sendfilev=no 16588fi 16589rm conftest.$ac_ext 16590LIBS=$ac_func_search_save_LIBS 16591fi 16592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5 16593$as_echo "$ac_cv_search_sendfilev" >&6; } 16594ac_res=$ac_cv_search_sendfilev 16595if test "$ac_res" != no; then : 16596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16597 16598 if test "$ac_cv_search_sendfilev" != no; then 16599 test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev" 16600 16601$as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h 16602 16603 fi 16604 16605fi 16606 16607LIBS=$save_LIBS 16608 16609 16610case $host_os in 16611 *mingw* ) LIBS="$LIBS -lwsock32";; 16612 * ) ;; 16613esac 16614 16615for ac_func in dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \ 16616 strdup strerror strstr strtol sendfile getopt socket lstat \ 16617 gethostbyname poll epoll_ctl getrlimit chroot \ 16618 getuid select signal pathconf madvise posix_fadvise posix_madvise \ 16619 writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r 16620do : 16621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16622ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16623if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16624 cat >>confdefs.h <<_ACEOF 16625#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16626_ACEOF 16627 16628fi 16629done 16630 16631 16632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5 16633$as_echo_n "checking for Large File System support... " >&6; } 16634# Check whether --enable-lfs was given. 16635if test "${enable_lfs+set}" = set; then : 16636 enableval=$enable_lfs; case "${enableval}" in 16637 yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;; 16638 no) ;; 16639 *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;; 16640 esac 16641else 16642 CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" 16643 enable_lfs=yes 16644fi 16645 16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 16647$as_echo "$enableval" >&6; } 16648 16649# The cast to long int works around a bug in the HP C Compiler 16650# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16651# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16652# This bug is HP SR number 8606223364. 16653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16654$as_echo_n "checking size of long... " >&6; } 16655if ${ac_cv_sizeof_long+:} false; then : 16656 $as_echo_n "(cached) " >&6 16657else 16658 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 16659 16660else 16661 if test "$ac_cv_type_long" = yes; then 16662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16664as_fn_error 77 "cannot compute sizeof (long) 16665See \`config.log' for more details" "$LINENO" 5; } 16666 else 16667 ac_cv_sizeof_long=0 16668 fi 16669fi 16670 16671fi 16672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16673$as_echo "$ac_cv_sizeof_long" >&6; } 16674 16675 16676 16677cat >>confdefs.h <<_ACEOF 16678#define SIZEOF_LONG $ac_cv_sizeof_long 16679_ACEOF 16680 16681 16682# The cast to long int works around a bug in the HP C Compiler 16683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16685# This bug is HP SR number 8606223364. 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 16687$as_echo_n "checking size of off_t... " >&6; } 16688if ${ac_cv_sizeof_off_t+:} false; then : 16689 $as_echo_n "(cached) " >&6 16690else 16691 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 16692 16693else 16694 if test "$ac_cv_type_off_t" = yes; then 16695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16697as_fn_error 77 "cannot compute sizeof (off_t) 16698See \`config.log' for more details" "$LINENO" 5; } 16699 else 16700 ac_cv_sizeof_off_t=0 16701 fi 16702fi 16703 16704fi 16705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 16706$as_echo "$ac_cv_sizeof_off_t" >&6; } 16707 16708 16709 16710cat >>confdefs.h <<_ACEOF 16711#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 16712_ACEOF 16713 16714 16715 16716if test "x$ac_cv_func_sendfile" = xyes; then 16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5 16718$as_echo_n "checking if sendfile works... " >&6; } 16719 if test "x$cross_compiling" = xno; then 16720 if test "$cross_compiling" = yes; then : 16721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16723as_fn_error $? "cannot run test program while cross compiling 16724See \`config.log' for more details" "$LINENO" 5; } 16725else 16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16727/* end confdefs.h. */ 16728 16729 #ifdef HAVE_SYS_SENDFILE_H 16730 #include <sys/sendfile.h> 16731 #endif /* HAVE_SYS_SENDFILE_H */ 16732 #include <errno.h> 16733 int main() { 16734 int o = 0; 16735 if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1; 16736 return 0; 16737 } 16738_ACEOF 16739if ac_fn_c_try_run "$LINENO"; then : 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16741$as_echo "yes" >&6; } 16742else 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16744$as_echo "no" >&6; } 16745 16746$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h 16747 16748fi 16749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16750 conftest.$ac_objext conftest.beam conftest.$ac_ext 16751fi 16752 16753 else 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16755$as_echo "no" >&6; } 16756 16757$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h 16758 16759 fi 16760fi 16761 16762 16763# Check whether --enable-ipv6 was given. 16764if test "${enable_ipv6+set}" = set; then : 16765 enableval=$enable_ipv6; case "${enableval}" in 16766 yes) ipv6=true ;; 16767 no) ipv6=false ;; 16768 *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;; 16769 esac 16770else 16771 ipv6=true 16772fi 16773 16774 16775if test x$ipv6 = xtrue; then 16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 16777$as_echo_n "checking for IPv6 support... " >&6; } 16778if ${ac_cv_ipv6_support+:} false; then : 16779 $as_echo_n "(cached) " >&6 16780else 16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16782/* end confdefs.h. */ 16783 #include <sys/types.h> 16784#include <sys/socket.h> 16785#include <netinet/in.h> 16786int 16787main () 16788{ 16789struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0; 16790 ; 16791 return 0; 16792} 16793_ACEOF 16794if ac_fn_c_try_link "$LINENO"; then : 16795 ac_cv_ipv6_support=yes 16796else 16797 ac_cv_ipv6_support=no 16798fi 16799rm -f core conftest.err conftest.$ac_objext \ 16800 conftest$ac_exeext conftest.$ac_ext 16801fi 16802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5 16803$as_echo "$ac_cv_ipv6_support" >&6; } 16804 16805 if test "$ac_cv_ipv6_support" = yes; then 16806 16807$as_echo "#define HAVE_IPV6 1" >>confdefs.h 16808 16809 fi 16810fi 16811 16812# disable mmap by default; if a mmapped file gets truncated, the process gets a SIGBUS signal 16813# on reading the truncated area which we can't handle (yet). 16814# lighttpd may always use mmap with files it owns (created tmp files) 16815# Check whether --enable-mmap was given. 16816if test "${enable_mmap+set}" = set; then : 16817 enableval=$enable_mmap; case "${enableval}" in 16818 yes) mmap=true ;; 16819 no) mmap=false ;; 16820 *) as_fn_error $? "bad value ${enableval} for --enable-mmap" "$LINENO" 5 ;; 16821 esac 16822else 16823 mmap=false 16824fi 16825 16826 16827if test x$mmap = xtrue; then 16828 16829$as_echo "#define ENABLE_MMAP 1" >>confdefs.h 16830 16831fi 16832 16833 16834 if test "x$cross_compiling" = xyes; then 16835 CROSS_COMPILING_TRUE= 16836 CROSS_COMPILING_FALSE='#' 16837else 16838 CROSS_COMPILING_TRUE='#' 16839 CROSS_COMPILING_FALSE= 16840fi 16841 16842 16843fastcgi_found=no 16844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGI_Accept in -lfcgi" >&5 16845$as_echo_n "checking for FCGI_Accept in -lfcgi... " >&6; } 16846if ${ac_cv_lib_fcgi_FCGI_Accept+:} false; then : 16847 $as_echo_n "(cached) " >&6 16848else 16849 ac_check_lib_save_LIBS=$LIBS 16850LIBS="-lfcgi $LIBS" 16851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16852/* end confdefs.h. */ 16853 16854/* Override any GCC internal prototype to avoid an error. 16855 Use char because int might match the return type of a GCC 16856 builtin and then its argument prototype would still apply. */ 16857#ifdef __cplusplus 16858extern "C" 16859#endif 16860char FCGI_Accept (); 16861int 16862main () 16863{ 16864return FCGI_Accept (); 16865 ; 16866 return 0; 16867} 16868_ACEOF 16869if ac_fn_c_try_link "$LINENO"; then : 16870 ac_cv_lib_fcgi_FCGI_Accept=yes 16871else 16872 ac_cv_lib_fcgi_FCGI_Accept=no 16873fi 16874rm -f core conftest.err conftest.$ac_objext \ 16875 conftest$ac_exeext conftest.$ac_ext 16876LIBS=$ac_check_lib_save_LIBS 16877fi 16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGI_Accept" >&5 16879$as_echo "$ac_cv_lib_fcgi_FCGI_Accept" >&6; } 16880if test "x$ac_cv_lib_fcgi_FCGI_Accept" = xyes; then : 16881 16882 for ac_header in fastcgi.h fastcgi/fastcgi.h 16883do : 16884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16885ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16887 cat >>confdefs.h <<_ACEOF 16888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16889_ACEOF 16890 16891 fastcgi_found=yes 16892 16893fi 16894 16895done 16896 16897 16898fi 16899 16900 16901 if test "x$fastcgi_found" = xyes; then 16902 CHECK_WITH_FASTCGI_TRUE= 16903 CHECK_WITH_FASTCGI_FALSE='#' 16904else 16905 CHECK_WITH_FASTCGI_TRUE='#' 16906 CHECK_WITH_FASTCGI_FALSE= 16907fi 16908 16909 16910 16911if test "${GCC}" = "yes"; then 16912 CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99" 16913fi 16914 16915# Check whether --enable-extra-warnings was given. 16916if test "${enable_extra_warnings+set}" = set; then : 16917 enableval=$enable_extra_warnings; case "${enableval}" in 16918 yes) extrawarnings=true ;; 16919 no) extrawarnings=false ;; 16920 *) as_fn_error $? "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;; 16921 esac 16922else 16923 extrawarnings=false 16924fi 16925 16926 16927if test x$extrawarnings = xtrue; then 16928 CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -Wformat-security" 16929fi 16930 16931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multi-threading mode" >&5 16932$as_echo_n "checking for multi-threading mode... " >&6; } 16933# Check whether --enable-multithreading was given. 16934if test "${enable_multithreading+set}" = set; then : 16935 enableval=$enable_multithreading; case "${enableval}" in 16936 yes) multithreading=true ;; 16937 no) multithreading=false ;; 16938 *) as_fn_error $? "bad value ${enableval} for --enable-multithreading" "$LINENO" 5 ;; 16939 esac 16940else 16941 multithreading=false 16942fi 16943 16944 16945if test x$multithreading = xtrue; then 16946 CFLAGS="${CFLAGS} -DMULTI_THREADED" 16947 LDFLAGS="${LDFLAGS} -lpthread -lnuma" 16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16949$as_echo "yes" >&6; } 16950else 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16952$as_echo "no" >&6; } 16953fi 16954 16955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mtcp support (multhreading mode enabled)" >&5 16956$as_echo_n "checking for mtcp support (multhreading mode enabled)... " >&6; } 16957 16958# Check whether --with-libmtcp was given. 16959if test "${with_libmtcp+set}" = set; then : 16960 withval=$with_libmtcp; WITH_LIBMTCP=$withval 16961else 16962 WITH_LIBMTCP=no 16963fi 16964 16965 16966LIBMTCP_CFLAGS="" 16967LIBMTCP_LIBS="" 16968 16969if test "$WITH_LIBMTCP" != "no"; then 16970 LIBMTCP_CFLAGS="-I$WITH_LIBMTCP/lib/ -I$WITH_LIBMTCP/src/include/ -DMULTI_THREADED" 16971 LIBMTCP_LIBS="$WITH_LIBMTCP/lib/libmtcp.a -lpthread -lnuma -lrt" 16972 CFLAGS="${CFLAGS} ${LIBMTCP_CFLAGS}" 16973 16974$as_echo "#define HAVE_LIBMTCP 1" >>confdefs.h 16975 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16977$as_echo "yes" >&6; } 16978else 16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16980$as_echo "no" >&6; } 16981fi 16982 16983 16984 16985 16986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for psio support" >&5 16987$as_echo_n "checking for psio support... " >&6; } 16988 16989# Check whether --with-libpsio was given. 16990if test "${with_libpsio+set}" = set; then : 16991 withval=$with_libpsio; WITH_LIBPSIO=$withval 16992else 16993 WITH_LIBPSIO=no 16994fi 16995 16996 16997LIBPSIO_CFLAGS="" 16998LIBPSIO_LIBS="" 16999 17000if test "$WITH_LIBPSIO" != "no"; then 17001 LIBPSIO_CFLAGS="-I$WITH_LIBPSIO/include/" 17002 LIBPSIO_LIBS="$WITH_LIBPSIO/lib/libps.a" 17003 CFLAGS="${CFLAGS} ${LIBPSIO_CFLAGS}" 17004 17005$as_echo "#define HAVE_LIBPSIO 1" >>confdefs.h 17006 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17008$as_echo "yes" >&6; } 17009else 17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17011$as_echo "no" >&6; } 17012fi 17013 17014 17015 17016 17017 17018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpdk support" >&5 17019$as_echo_n "checking for dpdk support... " >&6; } 17020 17021# Check whether --with-libdpdk was given. 17022if test "${with_libdpdk+set}" = set; then : 17023 withval=$with_libdpdk; WITH_LIBDPDK=$withval 17024else 17025 WITH_LIBDPDK=no 17026fi 17027 17028 17029LIBDPDK_CFLAGS="" 17030LIBDPDK_LIBS="" 17031 17032if test "$WITH_LIBDPDK" != "no"; then 17033 LIBDPDK_CFLAGS="-I$WITH_LIBDPDK/include/" 17034 LIBDPDK_LDFLAGS=`cat $WITH_LIBDPDK/lib/ldflags.txt` 17035 LIBDPDK_LIBS="-L$WITH_LIBDPDK/lib/ -m64 -g -O3 -pthread -lrt -march=native -Wl,-export-dynamic -Wl,-lnuma -Wl,-lpthread -Wl,-lrt -Wl,-ldl -Wl,$LIBDPDK_LDFLAGS" 17036 CFLAGS="${CFLAGS} ${LIBDPDK_CFLAGS}" 17037 17038$as_echo "#define HAVE_LIBDPDK 1" >>confdefs.h 17039 17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17041$as_echo "yes" >&6; } 17042else 17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17044$as_echo "no" >&6; } 17045fi 17046 17047 17048 17049 17050 17051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap support" >&5 17052$as_echo_n "checking for netmap support... " >&6; } 17053# Check whether --enable-netmap was given. 17054if test "${enable_netmap+set}" = set; then : 17055 enableval=$enable_netmap; case "${enableval}" in 17056 yes) CFLAGS="${CFLAGS} -DHAVE_NETMAP";; 17057 no) ;; 17058 *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;; 17059 esac 17060else 17061 CFLAGS="${CFLAGS}" 17062 enable_netmap=no 17063fi 17064 17065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 17066$as_echo "$enableval" >&6; } 17067 17068LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'` 17069 17070cat >>confdefs.h <<_ACEOF 17071#define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID 17072_ACEOF 17073 17074 17075ac_config_files="$ac_config_files Makefile src/Makefile doc/config/conf.d/Makefile doc/config/vhosts.d/Makefile doc/config/Makefile doc/scripts/Makefile doc/initscripts/Makefile doc/systemd/Makefile doc/outdated/Makefile doc/Makefile tests/Makefile tests/docroot/Makefile tests/docroot/123/Makefile tests/docroot/www/Makefile tests/docroot/www/go/Makefile tests/docroot/www/indexfile/Makefile tests/docroot/www/expire/Makefile distribute.sh" 17076 17077cat >confcache <<\_ACEOF 17078# This file is a shell script that caches the results of configure 17079# tests run on this system so they can be shared between configure 17080# scripts and configure runs, see configure's option --config-cache. 17081# It is not useful on other systems. If it contains results you don't 17082# want to keep, you may remove or edit it. 17083# 17084# config.status only pays attention to the cache file if you give it 17085# the --recheck option to rerun configure. 17086# 17087# `ac_cv_env_foo' variables (set or unset) will be overridden when 17088# loading this file, other *unset* `ac_cv_foo' will be assigned the 17089# following values. 17090 17091_ACEOF 17092 17093# The following way of writing the cache mishandles newlines in values, 17094# but we know of no workaround that is simple, portable, and efficient. 17095# So, we kill variables containing newlines. 17096# Ultrix sh set writes to stderr and can't be redirected directly, 17097# and sets the high bit in the cache file unless we assign to the vars. 17098( 17099 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17100 eval ac_val=\$$ac_var 17101 case $ac_val in #( 17102 *${as_nl}*) 17103 case $ac_var in #( 17104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17105$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17106 esac 17107 case $ac_var in #( 17108 _ | IFS | as_nl) ;; #( 17109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17110 *) { eval $ac_var=; unset $ac_var;} ;; 17111 esac ;; 17112 esac 17113 done 17114 17115 (set) 2>&1 | 17116 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17117 *${as_nl}ac_space=\ *) 17118 # `set' does not quote correctly, so add quotes: double-quote 17119 # substitution turns \\\\ into \\, and sed turns \\ into \. 17120 sed -n \ 17121 "s/'/'\\\\''/g; 17122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17123 ;; #( 17124 *) 17125 # `set' quotes correctly as required by POSIX, so do not add quotes. 17126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17127 ;; 17128 esac | 17129 sort 17130) | 17131 sed ' 17132 /^ac_cv_env_/b end 17133 t clear 17134 :clear 17135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17136 t end 17137 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17138 :end' >>confcache 17139if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17140 if test -w "$cache_file"; then 17141 if test "x$cache_file" != "x/dev/null"; then 17142 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17143$as_echo "$as_me: updating cache $cache_file" >&6;} 17144 if test ! -f "$cache_file" || test -h "$cache_file"; then 17145 cat confcache >"$cache_file" 17146 else 17147 case $cache_file in #( 17148 */* | ?:*) 17149 mv -f confcache "$cache_file"$$ && 17150 mv -f "$cache_file"$$ "$cache_file" ;; #( 17151 *) 17152 mv -f confcache "$cache_file" ;; 17153 esac 17154 fi 17155 fi 17156 else 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17158$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17159 fi 17160fi 17161rm -f confcache 17162 17163test "x$prefix" = xNONE && prefix=$ac_default_prefix 17164# Let make expand exec_prefix. 17165test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17166 17167DEFS=-DHAVE_CONFIG_H 17168 17169ac_libobjs= 17170ac_ltlibobjs= 17171U= 17172for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17173 # 1. Remove the extension, and $U if already installed. 17174 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17175 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17176 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17177 # will be set to the directory where LIBOBJS objects are built. 17178 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17179 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17180done 17181LIBOBJS=$ac_libobjs 17182 17183LTLIBOBJS=$ac_ltlibobjs 17184 17185 17186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17187$as_echo_n "checking that generated files are newer than configure... " >&6; } 17188 if test -n "$am_sleep_pid"; then 17189 # Hide warnings about reused PIDs. 17190 wait $am_sleep_pid 2>/dev/null 17191 fi 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17193$as_echo "done" >&6; } 17194 if test -n "$EXEEXT"; then 17195 am__EXEEXT_TRUE= 17196 am__EXEEXT_FALSE='#' 17197else 17198 am__EXEEXT_TRUE='#' 17199 am__EXEEXT_FALSE= 17200fi 17201 17202if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17203 as_fn_error $? "conditional \"AMDEP\" was never defined. 17204Usually this means the macro was only invoked conditionally." "$LINENO" 5 17205fi 17206if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17207 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17208Usually this means the macro was only invoked conditionally." "$LINENO" 5 17209fi 17210if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then 17211 as_fn_error $? "conditional \"NO_RDYNAMIC\" was never defined. 17212Usually this means the macro was only invoked conditionally." "$LINENO" 5 17213fi 17214if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 17215 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. 17216Usually this means the macro was only invoked conditionally." "$LINENO" 5 17217fi 17218if test -z "${CHECK_WITH_FASTCGI_TRUE}" && test -z "${CHECK_WITH_FASTCGI_FALSE}"; then 17219 as_fn_error $? "conditional \"CHECK_WITH_FASTCGI\" was never defined. 17220Usually this means the macro was only invoked conditionally." "$LINENO" 5 17221fi 17222 17223: "${CONFIG_STATUS=./config.status}" 17224ac_write_fail=0 17225ac_clean_files_save=$ac_clean_files 17226ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17228$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17229as_write_fail=0 17230cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17231#! $SHELL 17232# Generated by $as_me. 17233# Run this file to recreate the current configuration. 17234# Compiler output produced by configure, useful for debugging 17235# configure, is in config.log if it exists. 17236 17237debug=false 17238ac_cs_recheck=false 17239ac_cs_silent=false 17240 17241SHELL=\${CONFIG_SHELL-$SHELL} 17242export SHELL 17243_ASEOF 17244cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17245## -------------------- ## 17246## M4sh Initialization. ## 17247## -------------------- ## 17248 17249# Be more Bourne compatible 17250DUALCASE=1; export DUALCASE # for MKS sh 17251if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17252 emulate sh 17253 NULLCMD=: 17254 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17255 # is contrary to our usage. Disable this feature. 17256 alias -g '${1+"$@"}'='"$@"' 17257 setopt NO_GLOB_SUBST 17258else 17259 case `(set -o) 2>/dev/null` in #( 17260 *posix*) : 17261 set -o posix ;; #( 17262 *) : 17263 ;; 17264esac 17265fi 17266 17267 17268as_nl=' 17269' 17270export as_nl 17271# Printing a long string crashes Solaris 7 /usr/bin/printf. 17272as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17273as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17274as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17275# Prefer a ksh shell builtin over an external printf program on Solaris, 17276# but without wasting forks for bash or zsh. 17277if test -z "$BASH_VERSION$ZSH_VERSION" \ 17278 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17279 as_echo='print -r --' 17280 as_echo_n='print -rn --' 17281elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17282 as_echo='printf %s\n' 17283 as_echo_n='printf %s' 17284else 17285 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17286 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17287 as_echo_n='/usr/ucb/echo -n' 17288 else 17289 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17290 as_echo_n_body='eval 17291 arg=$1; 17292 case $arg in #( 17293 *"$as_nl"*) 17294 expr "X$arg" : "X\\(.*\\)$as_nl"; 17295 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17296 esac; 17297 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17298 ' 17299 export as_echo_n_body 17300 as_echo_n='sh -c $as_echo_n_body as_echo' 17301 fi 17302 export as_echo_body 17303 as_echo='sh -c $as_echo_body as_echo' 17304fi 17305 17306# The user is always right. 17307if test "${PATH_SEPARATOR+set}" != set; then 17308 PATH_SEPARATOR=: 17309 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17310 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17311 PATH_SEPARATOR=';' 17312 } 17313fi 17314 17315 17316# IFS 17317# We need space, tab and new line, in precisely that order. Quoting is 17318# there to prevent editors from complaining about space-tab. 17319# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17320# splitting by setting IFS to empty value.) 17321IFS=" "" $as_nl" 17322 17323# Find who we are. Look in the path if we contain no directory separator. 17324as_myself= 17325case $0 in #(( 17326 *[\\/]* ) as_myself=$0 ;; 17327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17328for as_dir in $PATH 17329do 17330 IFS=$as_save_IFS 17331 test -z "$as_dir" && as_dir=. 17332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17333 done 17334IFS=$as_save_IFS 17335 17336 ;; 17337esac 17338# We did not find ourselves, most probably we were run as `sh COMMAND' 17339# in which case we are not to be found in the path. 17340if test "x$as_myself" = x; then 17341 as_myself=$0 17342fi 17343if test ! -f "$as_myself"; then 17344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17345 exit 1 17346fi 17347 17348# Unset variables that we do not need and which cause bugs (e.g. in 17349# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17350# suppresses any "Segmentation fault" message there. '((' could 17351# trigger a bug in pdksh 5.2.14. 17352for as_var in BASH_ENV ENV MAIL MAILPATH 17353do eval test x\${$as_var+set} = xset \ 17354 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17355done 17356PS1='$ ' 17357PS2='> ' 17358PS4='+ ' 17359 17360# NLS nuisances. 17361LC_ALL=C 17362export LC_ALL 17363LANGUAGE=C 17364export LANGUAGE 17365 17366# CDPATH. 17367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17368 17369 17370# as_fn_error STATUS ERROR [LINENO LOG_FD] 17371# ---------------------------------------- 17372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17374# script with STATUS, using 1 if that was 0. 17375as_fn_error () 17376{ 17377 as_status=$1; test $as_status -eq 0 && as_status=1 17378 if test "$4"; then 17379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17381 fi 17382 $as_echo "$as_me: error: $2" >&2 17383 as_fn_exit $as_status 17384} # as_fn_error 17385 17386 17387# as_fn_set_status STATUS 17388# ----------------------- 17389# Set $? to STATUS, without forking. 17390as_fn_set_status () 17391{ 17392 return $1 17393} # as_fn_set_status 17394 17395# as_fn_exit STATUS 17396# ----------------- 17397# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17398as_fn_exit () 17399{ 17400 set +e 17401 as_fn_set_status $1 17402 exit $1 17403} # as_fn_exit 17404 17405# as_fn_unset VAR 17406# --------------- 17407# Portably unset VAR. 17408as_fn_unset () 17409{ 17410 { eval $1=; unset $1;} 17411} 17412as_unset=as_fn_unset 17413# as_fn_append VAR VALUE 17414# ---------------------- 17415# Append the text in VALUE to the end of the definition contained in VAR. Take 17416# advantage of any shell optimizations that allow amortized linear growth over 17417# repeated appends, instead of the typical quadratic growth present in naive 17418# implementations. 17419if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17420 eval 'as_fn_append () 17421 { 17422 eval $1+=\$2 17423 }' 17424else 17425 as_fn_append () 17426 { 17427 eval $1=\$$1\$2 17428 } 17429fi # as_fn_append 17430 17431# as_fn_arith ARG... 17432# ------------------ 17433# Perform arithmetic evaluation on the ARGs, and store the result in the 17434# global $as_val. Take advantage of shells that can avoid forks. The arguments 17435# must be portable across $(()) and expr. 17436if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17437 eval 'as_fn_arith () 17438 { 17439 as_val=$(( $* )) 17440 }' 17441else 17442 as_fn_arith () 17443 { 17444 as_val=`expr "$@" || test $? -eq 1` 17445 } 17446fi # as_fn_arith 17447 17448 17449if expr a : '\(a\)' >/dev/null 2>&1 && 17450 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17451 as_expr=expr 17452else 17453 as_expr=false 17454fi 17455 17456if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17457 as_basename=basename 17458else 17459 as_basename=false 17460fi 17461 17462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17463 as_dirname=dirname 17464else 17465 as_dirname=false 17466fi 17467 17468as_me=`$as_basename -- "$0" || 17469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17470 X"$0" : 'X\(//\)$' \| \ 17471 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17472$as_echo X/"$0" | 17473 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17474 s//\1/ 17475 q 17476 } 17477 /^X\/\(\/\/\)$/{ 17478 s//\1/ 17479 q 17480 } 17481 /^X\/\(\/\).*/{ 17482 s//\1/ 17483 q 17484 } 17485 s/.*/./; q'` 17486 17487# Avoid depending upon Character Ranges. 17488as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17490as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17491as_cr_digits='0123456789' 17492as_cr_alnum=$as_cr_Letters$as_cr_digits 17493 17494ECHO_C= ECHO_N= ECHO_T= 17495case `echo -n x` in #((((( 17496-n*) 17497 case `echo 'xy\c'` in 17498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17499 xy) ECHO_C='\c';; 17500 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17501 ECHO_T=' ';; 17502 esac;; 17503*) 17504 ECHO_N='-n';; 17505esac 17506 17507rm -f conf$$ conf$$.exe conf$$.file 17508if test -d conf$$.dir; then 17509 rm -f conf$$.dir/conf$$.file 17510else 17511 rm -f conf$$.dir 17512 mkdir conf$$.dir 2>/dev/null 17513fi 17514if (echo >conf$$.file) 2>/dev/null; then 17515 if ln -s conf$$.file conf$$ 2>/dev/null; then 17516 as_ln_s='ln -s' 17517 # ... but there are two gotchas: 17518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17520 # In both cases, we have to default to `cp -pR'. 17521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17522 as_ln_s='cp -pR' 17523 elif ln conf$$.file conf$$ 2>/dev/null; then 17524 as_ln_s=ln 17525 else 17526 as_ln_s='cp -pR' 17527 fi 17528else 17529 as_ln_s='cp -pR' 17530fi 17531rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17532rmdir conf$$.dir 2>/dev/null 17533 17534 17535# as_fn_mkdir_p 17536# ------------- 17537# Create "$as_dir" as a directory, including parents if necessary. 17538as_fn_mkdir_p () 17539{ 17540 17541 case $as_dir in #( 17542 -*) as_dir=./$as_dir;; 17543 esac 17544 test -d "$as_dir" || eval $as_mkdir_p || { 17545 as_dirs= 17546 while :; do 17547 case $as_dir in #( 17548 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17549 *) as_qdir=$as_dir;; 17550 esac 17551 as_dirs="'$as_qdir' $as_dirs" 17552 as_dir=`$as_dirname -- "$as_dir" || 17553$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17554 X"$as_dir" : 'X\(//\)[^/]' \| \ 17555 X"$as_dir" : 'X\(//\)$' \| \ 17556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17557$as_echo X"$as_dir" | 17558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17559 s//\1/ 17560 q 17561 } 17562 /^X\(\/\/\)[^/].*/{ 17563 s//\1/ 17564 q 17565 } 17566 /^X\(\/\/\)$/{ 17567 s//\1/ 17568 q 17569 } 17570 /^X\(\/\).*/{ 17571 s//\1/ 17572 q 17573 } 17574 s/.*/./; q'` 17575 test -d "$as_dir" && break 17576 done 17577 test -z "$as_dirs" || eval "mkdir $as_dirs" 17578 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17579 17580 17581} # as_fn_mkdir_p 17582if mkdir -p . 2>/dev/null; then 17583 as_mkdir_p='mkdir -p "$as_dir"' 17584else 17585 test -d ./-p && rmdir ./-p 17586 as_mkdir_p=false 17587fi 17588 17589 17590# as_fn_executable_p FILE 17591# ----------------------- 17592# Test if FILE is an executable regular file. 17593as_fn_executable_p () 17594{ 17595 test -f "$1" && test -x "$1" 17596} # as_fn_executable_p 17597as_test_x='test -x' 17598as_executable_p=as_fn_executable_p 17599 17600# Sed expression to map a string onto a valid CPP name. 17601as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17602 17603# Sed expression to map a string onto a valid variable name. 17604as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17605 17606 17607exec 6>&1 17608## ----------------------------------- ## 17609## Main body of $CONFIG_STATUS script. ## 17610## ----------------------------------- ## 17611_ASEOF 17612test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17613 17614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17615# Save the log message, to keep $0 and so on meaningful, and to 17616# report actual input values of CONFIG_FILES etc. instead of their 17617# values after options handling. 17618ac_log=" 17619This file was extended by lighttpd $as_me 1.4.32, which was 17620generated by GNU Autoconf 2.69. Invocation command line was 17621 17622 CONFIG_FILES = $CONFIG_FILES 17623 CONFIG_HEADERS = $CONFIG_HEADERS 17624 CONFIG_LINKS = $CONFIG_LINKS 17625 CONFIG_COMMANDS = $CONFIG_COMMANDS 17626 $ $0 $@ 17627 17628on `(hostname || uname -n) 2>/dev/null | sed 1q` 17629" 17630 17631_ACEOF 17632 17633case $ac_config_files in *" 17634"*) set x $ac_config_files; shift; ac_config_files=$*;; 17635esac 17636 17637case $ac_config_headers in *" 17638"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17639esac 17640 17641 17642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17643# Files that config.status was made for. 17644config_files="$ac_config_files" 17645config_headers="$ac_config_headers" 17646config_commands="$ac_config_commands" 17647 17648_ACEOF 17649 17650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17651ac_cs_usage="\ 17652\`$as_me' instantiates files and other configuration actions 17653from templates according to the current configuration. Unless the files 17654and actions are specified as TAGs, all are instantiated by default. 17655 17656Usage: $0 [OPTION]... [TAG]... 17657 17658 -h, --help print this help, then exit 17659 -V, --version print version number and configuration settings, then exit 17660 --config print configuration, then exit 17661 -q, --quiet, --silent 17662 do not print progress messages 17663 -d, --debug don't remove temporary files 17664 --recheck update $as_me by reconfiguring in the same conditions 17665 --file=FILE[:TEMPLATE] 17666 instantiate the configuration file FILE 17667 --header=FILE[:TEMPLATE] 17668 instantiate the configuration header FILE 17669 17670Configuration files: 17671$config_files 17672 17673Configuration headers: 17674$config_headers 17675 17676Configuration commands: 17677$config_commands 17678 17679Report bugs to <[email protected]>." 17680 17681_ACEOF 17682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17683ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17684ac_cs_version="\\ 17685lighttpd config.status 1.4.32 17686configured by $0, generated by GNU Autoconf 2.69, 17687 with options \\"\$ac_cs_config\\" 17688 17689Copyright (C) 2012 Free Software Foundation, Inc. 17690This config.status script is free software; the Free Software Foundation 17691gives unlimited permission to copy, distribute and modify it." 17692 17693ac_pwd='$ac_pwd' 17694srcdir='$srcdir' 17695INSTALL='$INSTALL' 17696MKDIR_P='$MKDIR_P' 17697AWK='$AWK' 17698test -n "\$AWK" || AWK=awk 17699_ACEOF 17700 17701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17702# The default lists apply if the user does not specify any file. 17703ac_need_defaults=: 17704while test $# != 0 17705do 17706 case $1 in 17707 --*=?*) 17708 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17709 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17710 ac_shift=: 17711 ;; 17712 --*=) 17713 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17714 ac_optarg= 17715 ac_shift=: 17716 ;; 17717 *) 17718 ac_option=$1 17719 ac_optarg=$2 17720 ac_shift=shift 17721 ;; 17722 esac 17723 17724 case $ac_option in 17725 # Handling of the options. 17726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17727 ac_cs_recheck=: ;; 17728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17729 $as_echo "$ac_cs_version"; exit ;; 17730 --config | --confi | --conf | --con | --co | --c ) 17731 $as_echo "$ac_cs_config"; exit ;; 17732 --debug | --debu | --deb | --de | --d | -d ) 17733 debug=: ;; 17734 --file | --fil | --fi | --f ) 17735 $ac_shift 17736 case $ac_optarg in 17737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17738 '') as_fn_error $? "missing file argument" ;; 17739 esac 17740 as_fn_append CONFIG_FILES " '$ac_optarg'" 17741 ac_need_defaults=false;; 17742 --header | --heade | --head | --hea ) 17743 $ac_shift 17744 case $ac_optarg in 17745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17746 esac 17747 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17748 ac_need_defaults=false;; 17749 --he | --h) 17750 # Conflict between --help and --header 17751 as_fn_error $? "ambiguous option: \`$1' 17752Try \`$0 --help' for more information.";; 17753 --help | --hel | -h ) 17754 $as_echo "$ac_cs_usage"; exit ;; 17755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17756 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17757 ac_cs_silent=: ;; 17758 17759 # This is an error. 17760 -*) as_fn_error $? "unrecognized option: \`$1' 17761Try \`$0 --help' for more information." ;; 17762 17763 *) as_fn_append ac_config_targets " $1" 17764 ac_need_defaults=false ;; 17765 17766 esac 17767 shift 17768done 17769 17770ac_configure_extra_args= 17771 17772if $ac_cs_silent; then 17773 exec 6>/dev/null 17774 ac_configure_extra_args="$ac_configure_extra_args --silent" 17775fi 17776 17777_ACEOF 17778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17779if \$ac_cs_recheck; then 17780 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17781 shift 17782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17783 CONFIG_SHELL='$SHELL' 17784 export CONFIG_SHELL 17785 exec "\$@" 17786fi 17787 17788_ACEOF 17789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17790exec 5>>config.log 17791{ 17792 echo 17793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17794## Running $as_me. ## 17795_ASBOX 17796 $as_echo "$ac_log" 17797} >&5 17798 17799_ACEOF 17800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17801# 17802# INIT-COMMANDS 17803# 17804AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17805 17806 17807# The HP-UX ksh and POSIX shell print the target directory to stdout 17808# if CDPATH is set. 17809(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17810 17811sed_quote_subst='$sed_quote_subst' 17812double_quote_subst='$double_quote_subst' 17813delay_variable_subst='$delay_variable_subst' 17814SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17815Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17816GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17817EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17818FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17819SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17820ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17821LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17822enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17823enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17824macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17825macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17826pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17827enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17828shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17829PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17830host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17831host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17832host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17833build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17834build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17835build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17836NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17837LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17838max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17839ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17840exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17841lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17842lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17843lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17844lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17845lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17846reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17847reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17848OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17849deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17850file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17851file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17852want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17853DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17854sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17855AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17856AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17857archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17858STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17859RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17860old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17861old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17862old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17863lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17864CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17865CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17866compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17867GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17868lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17869lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17870lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17871lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17872lt_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"`' 17873lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17874nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17875lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17876lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17877objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17878MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17879lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17880lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17881lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17882lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17883lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17884need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17885MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17886DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17887NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17888LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17889OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17890OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17891libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17892shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17893extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17894archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17895enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17896export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17897whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17898compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17899old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17900old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17901archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17902archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17903module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17904module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17905with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17906allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17907no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17908hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17909hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17910hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17911hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17912hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17913hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17914hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17915inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17916link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17917always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17918export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17919exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17920include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17921prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17922postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17923file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17924variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17925need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17926need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17927version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17928runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17929shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17930shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17931libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17932library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17933soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17934install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17935postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17936postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17937finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17938finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17939hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17940sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17941configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17942configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17943hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17944enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17945enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17946enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17947old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17948striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17949 17950LTCC='$LTCC' 17951LTCFLAGS='$LTCFLAGS' 17952compiler='$compiler_DEFAULT' 17953 17954# A function that is used when there is no print builtin or printf. 17955func_fallback_echo () 17956{ 17957 eval 'cat <<_LTECHO_EOF 17958\$1 17959_LTECHO_EOF' 17960} 17961 17962# Quote evaled strings. 17963for var in SED \ 17964GREP \ 17965EGREP \ 17966FGREP \ 17967SHELL \ 17968ECHO \ 17969LD \ 17970PATH_SEPARATOR \ 17971NM \ 17972LN_S \ 17973lt_SP2NL \ 17974lt_NL2SP \ 17975reload_flag \ 17976OBJDUMP \ 17977deplibs_check_method \ 17978file_magic_cmd \ 17979file_magic_glob \ 17980want_nocaseglob \ 17981DLLTOOL \ 17982sharedlib_from_linklib_cmd \ 17983AR \ 17984AR_FLAGS \ 17985archiver_list_spec \ 17986STRIP \ 17987RANLIB \ 17988CC \ 17989CFLAGS \ 17990compiler \ 17991lt_cv_sys_global_symbol_pipe \ 17992lt_cv_sys_global_symbol_to_cdecl \ 17993lt_cv_sys_global_symbol_to_import \ 17994lt_cv_sys_global_symbol_to_c_name_address \ 17995lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17996lt_cv_nm_interface \ 17997nm_file_list_spec \ 17998lt_cv_truncate_bin \ 17999lt_prog_compiler_no_builtin_flag \ 18000lt_prog_compiler_pic \ 18001lt_prog_compiler_wl \ 18002lt_prog_compiler_static \ 18003lt_cv_prog_compiler_c_o \ 18004need_locks \ 18005MANIFEST_TOOL \ 18006DSYMUTIL \ 18007NMEDIT \ 18008LIPO \ 18009OTOOL \ 18010OTOOL64 \ 18011shrext_cmds \ 18012export_dynamic_flag_spec \ 18013whole_archive_flag_spec \ 18014compiler_needs_object \ 18015with_gnu_ld \ 18016allow_undefined_flag \ 18017no_undefined_flag \ 18018hardcode_libdir_flag_spec \ 18019hardcode_libdir_separator \ 18020exclude_expsyms \ 18021include_expsyms \ 18022file_list_spec \ 18023variables_saved_for_relink \ 18024libname_spec \ 18025library_names_spec \ 18026soname_spec \ 18027install_override_mode \ 18028finish_eval \ 18029old_striplib \ 18030striplib; do 18031 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18032 *[\\\\\\\`\\"\\\$]*) 18033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18034 ;; 18035 *) 18036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18037 ;; 18038 esac 18039done 18040 18041# Double-quote double-evaled strings. 18042for var in reload_cmds \ 18043old_postinstall_cmds \ 18044old_postuninstall_cmds \ 18045old_archive_cmds \ 18046extract_expsyms_cmds \ 18047old_archive_from_new_cmds \ 18048old_archive_from_expsyms_cmds \ 18049archive_cmds \ 18050archive_expsym_cmds \ 18051module_cmds \ 18052module_expsym_cmds \ 18053export_symbols_cmds \ 18054prelink_cmds \ 18055postlink_cmds \ 18056postinstall_cmds \ 18057postuninstall_cmds \ 18058finish_cmds \ 18059sys_lib_search_path_spec \ 18060configure_time_dlsearch_path \ 18061configure_time_lt_sys_library_path; do 18062 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18063 *[\\\\\\\`\\"\\\$]*) 18064 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18065 ;; 18066 *) 18067 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18068 ;; 18069 esac 18070done 18071 18072ac_aux_dir='$ac_aux_dir' 18073 18074# See if we are running on zsh, and set the options that allow our 18075# commands through without removal of \ escapes INIT. 18076if test -n "\${ZSH_VERSION+set}"; then 18077 setopt NO_GLOB_SUBST 18078fi 18079 18080 18081 PACKAGE='$PACKAGE' 18082 VERSION='$VERSION' 18083 RM='$RM' 18084 ofile='$ofile' 18085 18086 18087 18088 18089_ACEOF 18090 18091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18092 18093# Handling of arguments. 18094for ac_config_target in $ac_config_targets 18095do 18096 case $ac_config_target in 18097 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18098 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18099 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18100 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18101 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18102 "doc/config/conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/conf.d/Makefile" ;; 18103 "doc/config/vhosts.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/vhosts.d/Makefile" ;; 18104 "doc/config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/Makefile" ;; 18105 "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;; 18106 "doc/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/initscripts/Makefile" ;; 18107 "doc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES doc/systemd/Makefile" ;; 18108 "doc/outdated/Makefile") CONFIG_FILES="$CONFIG_FILES doc/outdated/Makefile" ;; 18109 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18110 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 18111 "tests/docroot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/Makefile" ;; 18112 "tests/docroot/123/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/123/Makefile" ;; 18113 "tests/docroot/www/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/Makefile" ;; 18114 "tests/docroot/www/go/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/go/Makefile" ;; 18115 "tests/docroot/www/indexfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/indexfile/Makefile" ;; 18116 "tests/docroot/www/expire/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/expire/Makefile" ;; 18117 "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;; 18118 18119 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18120 esac 18121done 18122 18123 18124# If the user did not use the arguments to specify the items to instantiate, 18125# then the envvar interface is used. Set only those that are not. 18126# We use the long form for the default assignment because of an extremely 18127# bizarre bug on SunOS 4.1.3. 18128if $ac_need_defaults; then 18129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18132fi 18133 18134# Have a temporary directory for convenience. Make it in the build tree 18135# simply because there is no reason against having it here, and in addition, 18136# creating and moving files from /tmp can sometimes cause problems. 18137# Hook for its removal unless debugging. 18138# Note that there is a small window in which the directory will not be cleaned: 18139# after its creation but before its name has been assigned to `$tmp'. 18140$debug || 18141{ 18142 tmp= ac_tmp= 18143 trap 'exit_status=$? 18144 : "${ac_tmp:=$tmp}" 18145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18146' 0 18147 trap 'as_fn_exit 1' 1 2 13 15 18148} 18149# Create a (secure) tmp directory for tmp files. 18150 18151{ 18152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18153 test -d "$tmp" 18154} || 18155{ 18156 tmp=./conf$$-$RANDOM 18157 (umask 077 && mkdir "$tmp") 18158} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18159ac_tmp=$tmp 18160 18161# Set up the scripts for CONFIG_FILES section. 18162# No need to generate them if there are no CONFIG_FILES. 18163# This happens for instance with `./config.status config.h'. 18164if test -n "$CONFIG_FILES"; then 18165 18166 18167ac_cr=`echo X | tr X '\015'` 18168# On cygwin, bash can eat \r inside `` if the user requested igncr. 18169# But we know of no other shell where ac_cr would be empty at this 18170# point, so we can use a bashism as a fallback. 18171if test "x$ac_cr" = x; then 18172 eval ac_cr=\$\'\\r\' 18173fi 18174ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18175if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18176 ac_cs_awk_cr='\\r' 18177else 18178 ac_cs_awk_cr=$ac_cr 18179fi 18180 18181echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18182_ACEOF 18183 18184 18185{ 18186 echo "cat >conf$$subs.awk <<_ACEOF" && 18187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18188 echo "_ACEOF" 18189} >conf$$subs.sh || 18190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18191ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18192ac_delim='%!_!# ' 18193for ac_last_try in false false false false false :; do 18194 . ./conf$$subs.sh || 18195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18196 18197 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18198 if test $ac_delim_n = $ac_delim_num; then 18199 break 18200 elif $ac_last_try; then 18201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18202 else 18203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18204 fi 18205done 18206rm -f conf$$subs.sh 18207 18208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18209cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18210_ACEOF 18211sed -n ' 18212h 18213s/^/S["/; s/!.*/"]=/ 18214p 18215g 18216s/^[^!]*!// 18217:repl 18218t repl 18219s/'"$ac_delim"'$// 18220t delim 18221:nl 18222h 18223s/\(.\{148\}\)..*/\1/ 18224t more1 18225s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18226p 18227n 18228b repl 18229:more1 18230s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18231p 18232g 18233s/.\{148\}// 18234t nl 18235:delim 18236h 18237s/\(.\{148\}\)..*/\1/ 18238t more2 18239s/["\\]/\\&/g; s/^/"/; s/$/"/ 18240p 18241b 18242:more2 18243s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18244p 18245g 18246s/.\{148\}// 18247t delim 18248' <conf$$subs.awk | sed ' 18249/^[^""]/{ 18250 N 18251 s/\n// 18252} 18253' >>$CONFIG_STATUS || ac_write_fail=1 18254rm -f conf$$subs.awk 18255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18256_ACAWK 18257cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18258 for (key in S) S_is_set[key] = 1 18259 FS = "" 18260 18261} 18262{ 18263 line = $ 0 18264 nfields = split(line, field, "@") 18265 substed = 0 18266 len = length(field[1]) 18267 for (i = 2; i < nfields; i++) { 18268 key = field[i] 18269 keylen = length(key) 18270 if (S_is_set[key]) { 18271 value = S[key] 18272 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18273 len += length(value) + length(field[++i]) 18274 substed = 1 18275 } else 18276 len += 1 + keylen 18277 } 18278 18279 print line 18280} 18281 18282_ACAWK 18283_ACEOF 18284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18285if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18286 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18287else 18288 cat 18289fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18290 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18291_ACEOF 18292 18293# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18294# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18295# trailing colons and then remove the whole line if VPATH becomes empty 18296# (actually we leave an empty line to preserve line numbers). 18297if test "x$srcdir" = x.; then 18298 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18299h 18300s/// 18301s/^/:/ 18302s/[ ]*$/:/ 18303s/:\$(srcdir):/:/g 18304s/:\${srcdir}:/:/g 18305s/:@srcdir@:/:/g 18306s/^:*// 18307s/:*$// 18308x 18309s/\(=[ ]*\).*/\1/ 18310G 18311s/\n// 18312s/^[^=]*=[ ]*$// 18313}' 18314fi 18315 18316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18317fi # test -n "$CONFIG_FILES" 18318 18319# Set up the scripts for CONFIG_HEADERS section. 18320# No need to generate them if there are no CONFIG_HEADERS. 18321# This happens for instance with `./config.status Makefile'. 18322if test -n "$CONFIG_HEADERS"; then 18323cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18324BEGIN { 18325_ACEOF 18326 18327# Transform confdefs.h into an awk script `defines.awk', embedded as 18328# here-document in config.status, that substitutes the proper values into 18329# config.h.in to produce config.h. 18330 18331# Create a delimiter string that does not exist in confdefs.h, to ease 18332# handling of long lines. 18333ac_delim='%!_!# ' 18334for ac_last_try in false false :; do 18335 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18336 if test -z "$ac_tt"; then 18337 break 18338 elif $ac_last_try; then 18339 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18340 else 18341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18342 fi 18343done 18344 18345# For the awk script, D is an array of macro values keyed by name, 18346# likewise P contains macro parameters if any. Preserve backslash 18347# newline sequences. 18348 18349ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18350sed -n ' 18351s/.\{148\}/&'"$ac_delim"'/g 18352t rset 18353:rset 18354s/^[ ]*#[ ]*define[ ][ ]*/ / 18355t def 18356d 18357:def 18358s/\\$// 18359t bsnl 18360s/["\\]/\\&/g 18361s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18362D["\1"]=" \3"/p 18363s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18364d 18365:bsnl 18366s/["\\]/\\&/g 18367s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18368D["\1"]=" \3\\\\\\n"\\/p 18369t cont 18370s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18371t cont 18372d 18373:cont 18374n 18375s/.\{148\}/&'"$ac_delim"'/g 18376t clear 18377:clear 18378s/\\$// 18379t bsnlc 18380s/["\\]/\\&/g; s/^/"/; s/$/"/p 18381d 18382:bsnlc 18383s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18384b cont 18385' <confdefs.h | sed ' 18386s/'"$ac_delim"'/"\\\ 18387"/g' >>$CONFIG_STATUS || ac_write_fail=1 18388 18389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18390 for (key in D) D_is_set[key] = 1 18391 FS = "" 18392} 18393/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18394 line = \$ 0 18395 split(line, arg, " ") 18396 if (arg[1] == "#") { 18397 defundef = arg[2] 18398 mac1 = arg[3] 18399 } else { 18400 defundef = substr(arg[1], 2) 18401 mac1 = arg[2] 18402 } 18403 split(mac1, mac2, "(") #) 18404 macro = mac2[1] 18405 prefix = substr(line, 1, index(line, defundef) - 1) 18406 if (D_is_set[macro]) { 18407 # Preserve the white space surrounding the "#". 18408 print prefix "define", macro P[macro] D[macro] 18409 next 18410 } else { 18411 # Replace #undef with comments. This is necessary, for example, 18412 # in the case of _POSIX_SOURCE, which is predefined and required 18413 # on some systems where configure will not decide to define it. 18414 if (defundef == "undef") { 18415 print "/*", prefix defundef, macro, "*/" 18416 next 18417 } 18418 } 18419} 18420{ print } 18421_ACAWK 18422_ACEOF 18423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18424 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18425fi # test -n "$CONFIG_HEADERS" 18426 18427 18428eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18429shift 18430for ac_tag 18431do 18432 case $ac_tag in 18433 :[FHLC]) ac_mode=$ac_tag; continue;; 18434 esac 18435 case $ac_mode$ac_tag in 18436 :[FHL]*:*);; 18437 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18438 :[FH]-) ac_tag=-:-;; 18439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18440 esac 18441 ac_save_IFS=$IFS 18442 IFS=: 18443 set x $ac_tag 18444 IFS=$ac_save_IFS 18445 shift 18446 ac_file=$1 18447 shift 18448 18449 case $ac_mode in 18450 :L) ac_source=$1;; 18451 :[FH]) 18452 ac_file_inputs= 18453 for ac_f 18454 do 18455 case $ac_f in 18456 -) ac_f="$ac_tmp/stdin";; 18457 *) # Look for the file first in the build tree, then in the source tree 18458 # (if the path is not absolute). The absolute path cannot be DOS-style, 18459 # because $ac_f cannot contain `:'. 18460 test -f "$ac_f" || 18461 case $ac_f in 18462 [\\/$]*) false;; 18463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18464 esac || 18465 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18466 esac 18467 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18468 as_fn_append ac_file_inputs " '$ac_f'" 18469 done 18470 18471 # Let's still pretend it is `configure' which instantiates (i.e., don't 18472 # use $as_me), people would be surprised to read: 18473 # /* config.h. Generated by config.status. */ 18474 configure_input='Generated from '` 18475 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18476 `' by configure.' 18477 if test x"$ac_file" != x-; then 18478 configure_input="$ac_file. $configure_input" 18479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18480$as_echo "$as_me: creating $ac_file" >&6;} 18481 fi 18482 # Neutralize special characters interpreted by sed in replacement strings. 18483 case $configure_input in #( 18484 *\&* | *\|* | *\\* ) 18485 ac_sed_conf_input=`$as_echo "$configure_input" | 18486 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18487 *) ac_sed_conf_input=$configure_input;; 18488 esac 18489 18490 case $ac_tag in 18491 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18493 esac 18494 ;; 18495 esac 18496 18497 ac_dir=`$as_dirname -- "$ac_file" || 18498$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18499 X"$ac_file" : 'X\(//\)[^/]' \| \ 18500 X"$ac_file" : 'X\(//\)$' \| \ 18501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18502$as_echo X"$ac_file" | 18503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18504 s//\1/ 18505 q 18506 } 18507 /^X\(\/\/\)[^/].*/{ 18508 s//\1/ 18509 q 18510 } 18511 /^X\(\/\/\)$/{ 18512 s//\1/ 18513 q 18514 } 18515 /^X\(\/\).*/{ 18516 s//\1/ 18517 q 18518 } 18519 s/.*/./; q'` 18520 as_dir="$ac_dir"; as_fn_mkdir_p 18521 ac_builddir=. 18522 18523case "$ac_dir" in 18524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18525*) 18526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18527 # A ".." for each directory in $ac_dir_suffix. 18528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18529 case $ac_top_builddir_sub in 18530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18532 esac ;; 18533esac 18534ac_abs_top_builddir=$ac_pwd 18535ac_abs_builddir=$ac_pwd$ac_dir_suffix 18536# for backward compatibility: 18537ac_top_builddir=$ac_top_build_prefix 18538 18539case $srcdir in 18540 .) # We are building in place. 18541 ac_srcdir=. 18542 ac_top_srcdir=$ac_top_builddir_sub 18543 ac_abs_top_srcdir=$ac_pwd ;; 18544 [\\/]* | ?:[\\/]* ) # Absolute name. 18545 ac_srcdir=$srcdir$ac_dir_suffix; 18546 ac_top_srcdir=$srcdir 18547 ac_abs_top_srcdir=$srcdir ;; 18548 *) # Relative name. 18549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18550 ac_top_srcdir=$ac_top_build_prefix$srcdir 18551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18552esac 18553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18554 18555 18556 case $ac_mode in 18557 :F) 18558 # 18559 # CONFIG_FILE 18560 # 18561 18562 case $INSTALL in 18563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18565 esac 18566 ac_MKDIR_P=$MKDIR_P 18567 case $MKDIR_P in 18568 [\\/$]* | ?:[\\/]* ) ;; 18569 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18570 esac 18571_ACEOF 18572 18573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18574# If the template does not know about datarootdir, expand it. 18575# FIXME: This hack should be removed a few years after 2.60. 18576ac_datarootdir_hack=; ac_datarootdir_seen= 18577ac_sed_dataroot=' 18578/datarootdir/ { 18579 p 18580 q 18581} 18582/@datadir@/p 18583/@docdir@/p 18584/@infodir@/p 18585/@localedir@/p 18586/@mandir@/p' 18587case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18588*datarootdir*) ac_datarootdir_seen=yes;; 18589*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18591$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18592_ACEOF 18593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18594 ac_datarootdir_hack=' 18595 s&@datadir@&$datadir&g 18596 s&@docdir@&$docdir&g 18597 s&@infodir@&$infodir&g 18598 s&@localedir@&$localedir&g 18599 s&@mandir@&$mandir&g 18600 s&\\\${datarootdir}&$datarootdir&g' ;; 18601esac 18602_ACEOF 18603 18604# Neutralize VPATH when `$srcdir' = `.'. 18605# Shell code in configure.ac might set extrasub. 18606# FIXME: do we really want to maintain this feature? 18607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18608ac_sed_extra="$ac_vpsub 18609$extrasub 18610_ACEOF 18611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18612:t 18613/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18614s|@configure_input@|$ac_sed_conf_input|;t t 18615s&@top_builddir@&$ac_top_builddir_sub&;t t 18616s&@top_build_prefix@&$ac_top_build_prefix&;t t 18617s&@srcdir@&$ac_srcdir&;t t 18618s&@abs_srcdir@&$ac_abs_srcdir&;t t 18619s&@top_srcdir@&$ac_top_srcdir&;t t 18620s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18621s&@builddir@&$ac_builddir&;t t 18622s&@abs_builddir@&$ac_abs_builddir&;t t 18623s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18624s&@INSTALL@&$ac_INSTALL&;t t 18625s&@MKDIR_P@&$ac_MKDIR_P&;t t 18626$ac_datarootdir_hack 18627" 18628eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18629 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18630 18631test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18632 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18634 "$ac_tmp/out"`; test -z "$ac_out"; } && 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18636which seems to be undefined. Please make sure it is defined" >&5 18637$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18638which seems to be undefined. Please make sure it is defined" >&2;} 18639 18640 rm -f "$ac_tmp/stdin" 18641 case $ac_file in 18642 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18643 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18644 esac \ 18645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18646 ;; 18647 :H) 18648 # 18649 # CONFIG_HEADER 18650 # 18651 if test x"$ac_file" != x-; then 18652 { 18653 $as_echo "/* $configure_input */" \ 18654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18655 } >"$ac_tmp/config.h" \ 18656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18657 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18659$as_echo "$as_me: $ac_file is unchanged" >&6;} 18660 else 18661 rm -f "$ac_file" 18662 mv "$ac_tmp/config.h" "$ac_file" \ 18663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18664 fi 18665 else 18666 $as_echo "/* $configure_input */" \ 18667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18668 || as_fn_error $? "could not create -" "$LINENO" 5 18669 fi 18670# Compute "$ac_file"'s index in $config_headers. 18671_am_arg="$ac_file" 18672_am_stamp_count=1 18673for _am_header in $config_headers :; do 18674 case $_am_header in 18675 $_am_arg | $_am_arg:* ) 18676 break ;; 18677 * ) 18678 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18679 esac 18680done 18681echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18682$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18683 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18684 X"$_am_arg" : 'X\(//\)$' \| \ 18685 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18686$as_echo X"$_am_arg" | 18687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18688 s//\1/ 18689 q 18690 } 18691 /^X\(\/\/\)[^/].*/{ 18692 s//\1/ 18693 q 18694 } 18695 /^X\(\/\/\)$/{ 18696 s//\1/ 18697 q 18698 } 18699 /^X\(\/\).*/{ 18700 s//\1/ 18701 q 18702 } 18703 s/.*/./; q'`/stamp-h$_am_stamp_count 18704 ;; 18705 18706 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18707$as_echo "$as_me: executing $ac_file commands" >&6;} 18708 ;; 18709 esac 18710 18711 18712 case $ac_file$ac_mode in 18713 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18714 # Older Autoconf quotes --file arguments for eval, but not when files 18715 # are listed without --file. Let's play safe and only enable the eval 18716 # if we detect the quoting. 18717 case $CONFIG_FILES in 18718 *\'*) eval set x "$CONFIG_FILES" ;; 18719 *) set x $CONFIG_FILES ;; 18720 esac 18721 shift 18722 for mf 18723 do 18724 # Strip MF so we end up with the name of the file. 18725 mf=`echo "$mf" | sed -e 's/:.*$//'` 18726 # Check whether this is an Automake generated Makefile or not. 18727 # We used to match only the files named 'Makefile.in', but 18728 # some people rename them; so instead we look at the file content. 18729 # Grep'ing the first line is not enough: some people post-process 18730 # each Makefile.in and add a new line on top of each file to say so. 18731 # Grep'ing the whole file is not good either: AIX grep has a line 18732 # limit of 2048, but all sed's we know have understand at least 4000. 18733 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18734 dirpart=`$as_dirname -- "$mf" || 18735$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18736 X"$mf" : 'X\(//\)[^/]' \| \ 18737 X"$mf" : 'X\(//\)$' \| \ 18738 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18739$as_echo X"$mf" | 18740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18741 s//\1/ 18742 q 18743 } 18744 /^X\(\/\/\)[^/].*/{ 18745 s//\1/ 18746 q 18747 } 18748 /^X\(\/\/\)$/{ 18749 s//\1/ 18750 q 18751 } 18752 /^X\(\/\).*/{ 18753 s//\1/ 18754 q 18755 } 18756 s/.*/./; q'` 18757 else 18758 continue 18759 fi 18760 # Extract the definition of DEPDIR, am__include, and am__quote 18761 # from the Makefile without running 'make'. 18762 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18763 test -z "$DEPDIR" && continue 18764 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18765 test -z "$am__include" && continue 18766 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18767 # Find all dependency output files, they are included files with 18768 # $(DEPDIR) in their names. We invoke sed twice because it is the 18769 # simplest approach to changing $(DEPDIR) to its actual value in the 18770 # expansion. 18771 for file in `sed -n " 18772 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18773 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18774 # Make sure the directory exists. 18775 test -f "$dirpart/$file" && continue 18776 fdir=`$as_dirname -- "$file" || 18777$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18778 X"$file" : 'X\(//\)[^/]' \| \ 18779 X"$file" : 'X\(//\)$' \| \ 18780 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18781$as_echo X"$file" | 18782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18783 s//\1/ 18784 q 18785 } 18786 /^X\(\/\/\)[^/].*/{ 18787 s//\1/ 18788 q 18789 } 18790 /^X\(\/\/\)$/{ 18791 s//\1/ 18792 q 18793 } 18794 /^X\(\/\).*/{ 18795 s//\1/ 18796 q 18797 } 18798 s/.*/./; q'` 18799 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18800 # echo "creating $dirpart/$file" 18801 echo '# dummy' > "$dirpart/$file" 18802 done 18803 done 18804} 18805 ;; 18806 "libtool":C) 18807 18808 # See if we are running on zsh, and set the options that allow our 18809 # commands through without removal of \ escapes. 18810 if test -n "${ZSH_VERSION+set}"; then 18811 setopt NO_GLOB_SUBST 18812 fi 18813 18814 cfgfile=${ofile}T 18815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18816 $RM "$cfgfile" 18817 18818 cat <<_LT_EOF >> "$cfgfile" 18819#! $SHELL 18820# Generated automatically by $as_me ($PACKAGE) $VERSION 18821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18822# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18823 18824# Provide generalized library-building support services. 18825# Written by Gordon Matzigkeit, 1996 18826 18827# Copyright (C) 2014 Free Software Foundation, Inc. 18828# This is free software; see the source for copying conditions. There is NO 18829# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18830 18831# GNU Libtool is free software; you can redistribute it and/or modify 18832# it under the terms of the GNU General Public License as published by 18833# the Free Software Foundation; either version 2 of of the License, or 18834# (at your option) any later version. 18835# 18836# As a special exception to the GNU General Public License, if you 18837# distribute this file as part of a program or library that is built 18838# using GNU Libtool, you may include this file under the same 18839# distribution terms that you use for the rest of that program. 18840# 18841# GNU Libtool is distributed in the hope that it will be useful, but 18842# WITHOUT ANY WARRANTY; without even the implied warranty of 18843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18844# GNU General Public License for more details. 18845# 18846# You should have received a copy of the GNU General Public License 18847# along with this program. If not, see <http://www.gnu.org/licenses/>. 18848 18849 18850# The names of the tagged configurations supported by this script. 18851available_tags='' 18852 18853# Configured defaults for sys_lib_dlsearch_path munging. 18854: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18855 18856# ### BEGIN LIBTOOL CONFIG 18857 18858# A sed program that does not truncate output. 18859SED=$lt_SED 18860 18861# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18862Xsed="\$SED -e 1s/^X//" 18863 18864# A grep program that handles long lines. 18865GREP=$lt_GREP 18866 18867# An ERE matcher. 18868EGREP=$lt_EGREP 18869 18870# A literal string matcher. 18871FGREP=$lt_FGREP 18872 18873# Shell to use when invoking shell scripts. 18874SHELL=$lt_SHELL 18875 18876# An echo program that protects backslashes. 18877ECHO=$lt_ECHO 18878 18879# Whether or not to build static libraries. 18880build_old_libs=$enable_static 18881 18882# Whether or not to build shared libraries. 18883build_libtool_libs=$enable_shared 18884 18885# Which release of libtool.m4 was used? 18886macro_version=$macro_version 18887macro_revision=$macro_revision 18888 18889# What type of objects to build. 18890pic_mode=$pic_mode 18891 18892# Whether or not to optimize for fast installation. 18893fast_install=$enable_fast_install 18894 18895# Shared archive member basename,for filename based shared library versioning on AIX. 18896shared_archive_member_spec=$shared_archive_member_spec 18897 18898# The PATH separator for the build system. 18899PATH_SEPARATOR=$lt_PATH_SEPARATOR 18900 18901# The host system. 18902host_alias=$host_alias 18903host=$host 18904host_os=$host_os 18905 18906# The build system. 18907build_alias=$build_alias 18908build=$build 18909build_os=$build_os 18910 18911# A BSD- or MS-compatible name lister. 18912NM=$lt_NM 18913 18914# Whether we need soft or hard links. 18915LN_S=$lt_LN_S 18916 18917# What is the maximum length of a command? 18918max_cmd_len=$max_cmd_len 18919 18920# Object file suffix (normally "o"). 18921objext=$ac_objext 18922 18923# Executable file suffix (normally ""). 18924exeext=$exeext 18925 18926# whether the shell understands "unset". 18927lt_unset=$lt_unset 18928 18929# turn spaces into newlines. 18930SP2NL=$lt_lt_SP2NL 18931 18932# turn newlines into spaces. 18933NL2SP=$lt_lt_NL2SP 18934 18935# convert \$build file names to \$host format. 18936to_host_file_cmd=$lt_cv_to_host_file_cmd 18937 18938# convert \$build files to toolchain format. 18939to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18940 18941# An object symbol dumper. 18942OBJDUMP=$lt_OBJDUMP 18943 18944# Method to check whether dependent libraries are shared objects. 18945deplibs_check_method=$lt_deplibs_check_method 18946 18947# Command to use when deplibs_check_method = "file_magic". 18948file_magic_cmd=$lt_file_magic_cmd 18949 18950# How to find potential files when deplibs_check_method = "file_magic". 18951file_magic_glob=$lt_file_magic_glob 18952 18953# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18954want_nocaseglob=$lt_want_nocaseglob 18955 18956# DLL creation program. 18957DLLTOOL=$lt_DLLTOOL 18958 18959# Command to associate shared and link libraries. 18960sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18961 18962# The archiver. 18963AR=$lt_AR 18964 18965# Flags to create an archive. 18966AR_FLAGS=$lt_AR_FLAGS 18967 18968# How to feed a file listing to the archiver. 18969archiver_list_spec=$lt_archiver_list_spec 18970 18971# A symbol stripping program. 18972STRIP=$lt_STRIP 18973 18974# Commands used to install an old-style archive. 18975RANLIB=$lt_RANLIB 18976old_postinstall_cmds=$lt_old_postinstall_cmds 18977old_postuninstall_cmds=$lt_old_postuninstall_cmds 18978 18979# Whether to use a lock for old archive extraction. 18980lock_old_archive_extraction=$lock_old_archive_extraction 18981 18982# A C compiler. 18983LTCC=$lt_CC 18984 18985# LTCC compiler flags. 18986LTCFLAGS=$lt_CFLAGS 18987 18988# Take the output of nm and produce a listing of raw symbols and C names. 18989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18990 18991# Transform the output of nm in a proper C declaration. 18992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18993 18994# Transform the output of nm into a list of symbols to manually relocate. 18995global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18996 18997# Transform the output of nm in a C name address pair. 18998global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18999 19000# Transform the output of nm in a C name address pair when lib prefix is needed. 19001global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19002 19003# The name lister interface. 19004nm_interface=$lt_lt_cv_nm_interface 19005 19006# Specify filename containing input files for \$NM. 19007nm_file_list_spec=$lt_nm_file_list_spec 19008 19009# The root where to search for dependent libraries,and where our libraries should be installed. 19010lt_sysroot=$lt_sysroot 19011 19012# Command to truncate a binary pipe. 19013lt_truncate_bin=$lt_lt_cv_truncate_bin 19014 19015# The name of the directory that contains temporary libtool files. 19016objdir=$objdir 19017 19018# Used to examine libraries when file_magic_cmd begins with "file". 19019MAGIC_CMD=$MAGIC_CMD 19020 19021# Must we lock files when doing compilation? 19022need_locks=$lt_need_locks 19023 19024# Manifest tool. 19025MANIFEST_TOOL=$lt_MANIFEST_TOOL 19026 19027# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19028DSYMUTIL=$lt_DSYMUTIL 19029 19030# Tool to change global to local symbols on Mac OS X. 19031NMEDIT=$lt_NMEDIT 19032 19033# Tool to manipulate fat objects and archives on Mac OS X. 19034LIPO=$lt_LIPO 19035 19036# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19037OTOOL=$lt_OTOOL 19038 19039# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19040OTOOL64=$lt_OTOOL64 19041 19042# Old archive suffix (normally "a"). 19043libext=$libext 19044 19045# Shared library suffix (normally ".so"). 19046shrext_cmds=$lt_shrext_cmds 19047 19048# The commands to extract the exported symbol list from a shared archive. 19049extract_expsyms_cmds=$lt_extract_expsyms_cmds 19050 19051# Variables whose values should be saved in libtool wrapper scripts and 19052# restored at link time. 19053variables_saved_for_relink=$lt_variables_saved_for_relink 19054 19055# Do we need the "lib" prefix for modules? 19056need_lib_prefix=$need_lib_prefix 19057 19058# Do we need a version for libraries? 19059need_version=$need_version 19060 19061# Library versioning type. 19062version_type=$version_type 19063 19064# Shared library runtime path variable. 19065runpath_var=$runpath_var 19066 19067# Shared library path variable. 19068shlibpath_var=$shlibpath_var 19069 19070# Is shlibpath searched before the hard-coded library search path? 19071shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19072 19073# Format of library name prefix. 19074libname_spec=$lt_libname_spec 19075 19076# List of archive names. First name is the real one, the rest are links. 19077# The last name is the one that the linker finds with -lNAME 19078library_names_spec=$lt_library_names_spec 19079 19080# The coded name of the library, if different from the real name. 19081soname_spec=$lt_soname_spec 19082 19083# Permission mode override for installation of shared libraries. 19084install_override_mode=$lt_install_override_mode 19085 19086# Command to use after installation of a shared archive. 19087postinstall_cmds=$lt_postinstall_cmds 19088 19089# Command to use after uninstallation of a shared archive. 19090postuninstall_cmds=$lt_postuninstall_cmds 19091 19092# Commands used to finish a libtool library installation in a directory. 19093finish_cmds=$lt_finish_cmds 19094 19095# As "finish_cmds", except a single script fragment to be evaled but 19096# not shown. 19097finish_eval=$lt_finish_eval 19098 19099# Whether we should hardcode library paths into libraries. 19100hardcode_into_libs=$hardcode_into_libs 19101 19102# Compile-time system search path for libraries. 19103sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19104 19105# Detected run-time system search path for libraries. 19106sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19107 19108# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19109configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19110 19111# Whether dlopen is supported. 19112dlopen_support=$enable_dlopen 19113 19114# Whether dlopen of programs is supported. 19115dlopen_self=$enable_dlopen_self 19116 19117# Whether dlopen of statically linked programs is supported. 19118dlopen_self_static=$enable_dlopen_self_static 19119 19120# Commands to strip libraries. 19121old_striplib=$lt_old_striplib 19122striplib=$lt_striplib 19123 19124 19125# The linker used to build libraries. 19126LD=$lt_LD 19127 19128# How to create reloadable object files. 19129reload_flag=$lt_reload_flag 19130reload_cmds=$lt_reload_cmds 19131 19132# Commands used to build an old-style archive. 19133old_archive_cmds=$lt_old_archive_cmds 19134 19135# A language specific compiler. 19136CC=$lt_compiler 19137 19138# Is the compiler the GNU compiler? 19139with_gcc=$GCC 19140 19141# Compiler flag to turn off builtin functions. 19142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19143 19144# Additional compiler flags for building library objects. 19145pic_flag=$lt_lt_prog_compiler_pic 19146 19147# How to pass a linker flag through the compiler. 19148wl=$lt_lt_prog_compiler_wl 19149 19150# Compiler flag to prevent dynamic linking. 19151link_static_flag=$lt_lt_prog_compiler_static 19152 19153# Does compiler simultaneously support -c and -o options? 19154compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19155 19156# Whether or not to add -lc for building shared libraries. 19157build_libtool_need_lc=$archive_cmds_need_lc 19158 19159# Whether or not to disallow shared libs when runtime libs are static. 19160allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19161 19162# Compiler flag to allow reflexive dlopens. 19163export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19164 19165# Compiler flag to generate shared objects directly from archives. 19166whole_archive_flag_spec=$lt_whole_archive_flag_spec 19167 19168# Whether the compiler copes with passing no objects directly. 19169compiler_needs_object=$lt_compiler_needs_object 19170 19171# Create an old-style archive from a shared archive. 19172old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19173 19174# Create a temporary old-style archive to link instead of a shared archive. 19175old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19176 19177# Commands used to build a shared archive. 19178archive_cmds=$lt_archive_cmds 19179archive_expsym_cmds=$lt_archive_expsym_cmds 19180 19181# Commands used to build a loadable module if different from building 19182# a shared archive. 19183module_cmds=$lt_module_cmds 19184module_expsym_cmds=$lt_module_expsym_cmds 19185 19186# Whether we are building with GNU ld or not. 19187with_gnu_ld=$lt_with_gnu_ld 19188 19189# Flag that allows shared libraries with undefined symbols to be built. 19190allow_undefined_flag=$lt_allow_undefined_flag 19191 19192# Flag that enforces no undefined symbols. 19193no_undefined_flag=$lt_no_undefined_flag 19194 19195# Flag to hardcode \$libdir into a binary during linking. 19196# This must work even if \$libdir does not exist 19197hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19198 19199# Whether we need a single "-rpath" flag with a separated argument. 19200hardcode_libdir_separator=$lt_hardcode_libdir_separator 19201 19202# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19203# DIR into the resulting binary. 19204hardcode_direct=$hardcode_direct 19205 19206# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19207# DIR into the resulting binary and the resulting library dependency is 19208# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19209# library is relocated. 19210hardcode_direct_absolute=$hardcode_direct_absolute 19211 19212# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19213# into the resulting binary. 19214hardcode_minus_L=$hardcode_minus_L 19215 19216# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19217# into the resulting binary. 19218hardcode_shlibpath_var=$hardcode_shlibpath_var 19219 19220# Set to "yes" if building a shared library automatically hardcodes DIR 19221# into the library and all subsequent libraries and executables linked 19222# against it. 19223hardcode_automatic=$hardcode_automatic 19224 19225# Set to yes if linker adds runtime paths of dependent libraries 19226# to runtime path list. 19227inherit_rpath=$inherit_rpath 19228 19229# Whether libtool must link a program against all its dependency libraries. 19230link_all_deplibs=$link_all_deplibs 19231 19232# Set to "yes" if exported symbols are required. 19233always_export_symbols=$always_export_symbols 19234 19235# The commands to list exported symbols. 19236export_symbols_cmds=$lt_export_symbols_cmds 19237 19238# Symbols that should not be listed in the preloaded symbols. 19239exclude_expsyms=$lt_exclude_expsyms 19240 19241# Symbols that must always be exported. 19242include_expsyms=$lt_include_expsyms 19243 19244# Commands necessary for linking programs (against libraries) with templates. 19245prelink_cmds=$lt_prelink_cmds 19246 19247# Commands necessary for finishing linking programs. 19248postlink_cmds=$lt_postlink_cmds 19249 19250# Specify filename containing input files. 19251file_list_spec=$lt_file_list_spec 19252 19253# How to hardcode a shared library path into an executable. 19254hardcode_action=$hardcode_action 19255 19256# ### END LIBTOOL CONFIG 19257 19258_LT_EOF 19259 19260 cat <<'_LT_EOF' >> "$cfgfile" 19261 19262# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19263 19264# func_munge_path_list VARIABLE PATH 19265# ----------------------------------- 19266# VARIABLE is name of variable containing _space_ separated list of 19267# directories to be munged by the contents of PATH, which is string 19268# having a format: 19269# "DIR[:DIR]:" 19270# string "DIR[ DIR]" will be prepended to VARIABLE 19271# ":DIR[:DIR]" 19272# string "DIR[ DIR]" will be appended to VARIABLE 19273# "DIRP[:DIRP]::[DIRA:]DIRA" 19274# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19275# "DIRA[ DIRA]" will be appended to VARIABLE 19276# "DIR[:DIR]" 19277# VARIABLE will be replaced by "DIR[ DIR]" 19278func_munge_path_list () 19279{ 19280 case x$2 in 19281 x) 19282 ;; 19283 *:) 19284 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19285 ;; 19286 x:*) 19287 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19288 ;; 19289 *::*) 19290 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19291 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19292 ;; 19293 *) 19294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19295 ;; 19296 esac 19297} 19298 19299 19300# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19301func_cc_basename () 19302{ 19303 for cc_temp in $*""; do 19304 case $cc_temp in 19305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19307 \-*) ;; 19308 *) break;; 19309 esac 19310 done 19311 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19312} 19313 19314 19315# ### END FUNCTIONS SHARED WITH CONFIGURE 19316 19317_LT_EOF 19318 19319 case $host_os in 19320 aix3*) 19321 cat <<\_LT_EOF >> "$cfgfile" 19322# AIX sometimes has problems with the GCC collect2 program. For some 19323# reason, if we set the COLLECT_NAMES environment variable, the problems 19324# vanish in a puff of smoke. 19325if test set != "${COLLECT_NAMES+set}"; then 19326 COLLECT_NAMES= 19327 export COLLECT_NAMES 19328fi 19329_LT_EOF 19330 ;; 19331 esac 19332 19333 19334ltmain=$ac_aux_dir/ltmain.sh 19335 19336 19337 # We use sed instead of cat because bash on DJGPP gets confused if 19338 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19339 # text mode, it properly converts lines to CR/LF. This bash problem 19340 # is reportedly fixed, but why not run on old versions too? 19341 sed '$q' "$ltmain" >> "$cfgfile" \ 19342 || (rm -f "$cfgfile"; exit 1) 19343 19344 mv -f "$cfgfile" "$ofile" || 19345 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19346 chmod +x "$ofile" 19347 19348 ;; 19349 19350 esac 19351done # for ac_tag 19352 19353 19354as_fn_exit 0 19355_ACEOF 19356ac_clean_files=$ac_clean_files_save 19357 19358test $ac_write_fail = 0 || 19359 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19360 19361 19362# configure is writing to config.log, and then calls config.status. 19363# config.status does its own redirection, appending to config.log. 19364# Unfortunately, on DOS this fails, as config.log is still kept open 19365# by configure, so config.status won't be able to write to it; its 19366# output is simply discarded. So we exec the FD to /dev/null, 19367# effectively closing config.log, so it can be properly (re)opened and 19368# appended to by config.status. When coming back to configure, we 19369# need to make the FD available again. 19370if test "$no_create" != yes; then 19371 ac_cs_success=: 19372 ac_config_status_args= 19373 test "$silent" = yes && 19374 ac_config_status_args="$ac_config_status_args --quiet" 19375 exec 5>/dev/null 19376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19377 exec 5>>config.log 19378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19379 # would make configure fail if this is the last instruction. 19380 $ac_cs_success || as_fn_exit 1 19381fi 19382if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19384$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19385fi 19386 19387 19388 19389do_build="mod_cgi mod_fastcgi mod_extforward mod_proxy mod_evhost mod_simple_vhost mod_access mod_alias mod_setenv mod_usertrack mod_auth mod_status mod_accesslog" 19390do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_staticfile mod_scgi mod_flv_streaming" 19391 19392plugins="mod_rewrite mod_redirect mod_ssi mod_trigger_b4_dl" 19393features="regex-conditionals" 19394if test ! "x$PCRE_LIB" = x; then 19395 do_build="$do_build $plugins" 19396 enable_feature="$features" 19397else 19398 no_build="$no_build $plugins" 19399 disable_feature="$features" 19400fi 19401 19402plugins="mod_mysql_vhost" 19403if test ! "x$MYSQL_LIBS" = x; then 19404 do_build="$do_build $plugins" 19405else 19406 no_build="$no_build $plugins" 19407fi 19408 19409plugins="mod_cml mod_magnet" 19410if test ! "x$LUA_LIBS" = x; then 19411 do_build="$do_build $plugins" 19412else 19413 no_build="$no_build $plugins" 19414fi 19415 19416features="storage-gdbm" 19417if test ! "x$GDBM_LIB" = x; then 19418 enable_feature="$enable_feature $features" 19419else 19420 disable_feature="$disable_feature $features" 19421fi 19422 19423features="storage-memcache" 19424if test ! "x$MEMCACHE_LIB" = x; then 19425 enable_feature="$enable_feature $features" 19426else 19427 disable_feature="$disable_feature $features" 19428fi 19429 19430features="compress-gzip compress-deflate" 19431if test ! "x$Z_LIB" = x; then 19432 enable_feature="$enable_feature $features" 19433else 19434 disable_feature="$disable_feature $features" 19435fi 19436 19437features="compress-bzip2" 19438if test ! "x$BZ_LIB" = x; then 19439 enable_feature="$enable_feature $features" 19440else 19441 disable_feature="$disable_feature $features" 19442fi 19443 19444features="auth-ldap" 19445if test ! "x$LDAP_LIB" = x; then 19446 enable_feature="$enable_feature $features" 19447else 19448 disable_feature="$disable_feature $features" 19449fi 19450 19451features="network-openssl" 19452if test ! "x$SSL_LIB" = x; then 19453 enable_feature="$enable_feature $features" 19454else 19455 disable_feature="$disable_feature $features" 19456fi 19457 19458features="auth-crypt" 19459if test "$ac_cv_search_crypt" = no; then 19460 disable_feature="$disable_feature $features" 19461else 19462 enable_feature="$enable_feature $features" 19463fi 19464 19465features="network-ipv6" 19466if test "$ac_cv_ipv6_support" = yes; then 19467 enable_feature="$enable_feature $features" 19468else 19469 disable_feature="$disable_feature $features" 19470fi 19471 19472features="large-files" 19473if test "$enable_lfs" = yes; then 19474 enable_feature="$enable_feature $features" 19475else 19476 disable_feature="$disable_feature $features" 19477fi 19478 19479features="multithreading" 19480if test "$enable_multithreading" = yes; then 19481 enable_feature="$enable_feature $features" 19482else 19483 disable_feature="$disable_feature $features" 19484fi 19485 19486features="stat-cache-fam" 19487if test ! "x$FAM_LIBS" = x; then 19488 enable_feature="$enable_feature $features" 19489else 19490 disable_feature="$disable_feature $features" 19491fi 19492 19493features="webdav-properties" 19494if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then 19495 enable_feature="$enable_feature $features" 19496else 19497 disable_feature="$disable_feature $features" 19498fi 19499 19500features="webdav-locks" 19501if test "x$UUID_LIBS" \!= x; then 19502 enable_feature="$enable_feature $features" 19503else 19504 disable_feature="$disable_feature $features" 19505fi 19506 19507 19508 19509$ECHO 19510$ECHO "Plugins:" 19511$ECHO 19512 19513$ECHO "enabled: " 19514for p in $do_build; do 19515 $ECHO " $p" 19516done | sort 19517 19518$ECHO "disabled: " 19519for p in $no_build; do 19520 $ECHO " $p" 19521done | sort 19522 19523$ECHO 19524$ECHO "Features:" 19525$ECHO 19526 19527$ECHO "enabled: " 19528for p in $enable_feature; do 19529 $ECHO " $p" 19530done | sort 19531 19532$ECHO "disabled: " 19533for p in $disable_feature; do 19534 $ECHO " $p" 19535done | sort 19536 19537$ECHO 19538