1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for modsecurity 2.9. 4# 5# Report bugs to <support@modsecurity.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: support@modsecurity.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='modsecurity' 592PACKAGE_TARNAME='modsecurity' 593PACKAGE_VERSION='2.9' 594PACKAGE_STRING='modsecurity 2.9' 595PACKAGE_BUGREPORT='support@modsecurity.org' 596PACKAGE_URL='' 597 598ac_unique_file="LICENSE" 599ac_default_prefix=/usr/local/modsecurity 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639SSDEEP_CFLAGS 640SSDEEP_LDADD 641SSDEEP_LDFLAGS 642YAJL_LDFLAGS 643YAJL_LIBS 644YAJL_LDADD 645YAJL_CFLAGS 646LUA_LDFLAGS 647LUA_LDADD 648LUA_CFLAGS 649PKG_CONFIG_LIBDIR 650PKG_CONFIG_PATH 651PKG_CONFIG 652LIBXML2_LDFLAGS 653LIBXML2_LDADD 654LIBXML2_CPPFLAGS 655LIBXML2_CFLAGS 656LIBXML2_VERSION 657LIBXML2_CONFIG 658APU_LINKLD 659APU_INCLUDEDIR 660APU_LDADD 661APU_LDFLAGS 662APU_CFLAGS 663APU_VERSION 664APU_CONFIG 665APR_LINKLD 666APR_INCLUDEDIR 667APR_LDADD 668APR_LDFLAGS 669APR_CPPFLAGS 670APR_CFLAGS 671APR_VERSION 672APR_CONFIG 673PCRE_LD_PATH 674PCRE_LDADD 675PCRE_LDFLAGS 676PCRE_CFLAGS 677PCRE_CPPFLAGS 678PCRE_VERSION 679PCRE_CONFIG 680APXS_HTTPD 681APXS_MODULES 682APXS_LIBEXECDIR 683APXS_PROGNAME 684APXS_SBINDIR 685APXS_BINDIR 686APXS_LIBDIR 687APXS_CC 688APXS_LIBTOOL 689APXS_CFLAGS 690APXS_LIBS 691APXS_LDFLAGS 692MODSEC_APXS_EXTRA_CFLAGS 693APXS_EXTRA_CFLAGS 694APXS_INCLUDES 695APXS_INCLUDEDIR 696APXS_WRAPPER 697APXS 698MODSEC_EXTRA_CFLAGS 699EXTRA_CFLAGS 700TOPLEVEL_SUBDIRS 701DOXYGEN 702BUILD_DOCS_FALSE 703BUILD_DOCS_TRUE 704BUILD_ALP2_FALSE 705BUILD_ALP2_TRUE 706BUILD_MLOGC_FALSE 707BUILD_MLOGC_TRUE 708CURL_USES_GNUTLS 709CURL_LDADD 710CURL_LDFLAGS 711CURL_CFLAGS 712CURL_CPPFLAGS 713CURL_VERSION 714CURL_CONFIG 715BUILD_extentions_FALSE 716BUILD_extentions_TRUE 717BUILD_STANDALONE_MODULE_FALSE 718BUILD_STANDALONE_MODULE_TRUE 719BUILD_APACHE2_MODULE_FALSE 720BUILD_APACHE2_MODULE_TRUE 721NETBSD_FALSE 722NETBSD_TRUE 723OPENBSD_FALSE 724OPENBSD_TRUE 725FREEBSD_FALSE 726FREEBSD_TRUE 727SOLARIS_FALSE 728SOLARIS_TRUE 729LINUX390_FALSE 730LINUX390_TRUE 731LINUX_FALSE 732LINUX_TRUE 733MACOSX_FALSE 734MACOSX_TRUE 735HPUX_FALSE 736HPUX_TRUE 737AIX_FALSE 738AIX_TRUE 739MSC_REGRESSION_DOCROOT_DIR 740MSC_REGRESSION_LOGS_DIR 741MSC_REGRESSION_CONF_DIR 742MSC_REGRESSION_SERVERROOT_DIR 743MSC_REGRESSION_DIR 744MSC_TEST_DIR 745MSC_PKGBASE_DIR 746MSC_BASE_DIR 747LIBOBJS 748ENV_CMD 749PERL 750CPP 751LT_SYS_LIBRARY_PATH 752OTOOL64 753OTOOL 754LIPO 755NMEDIT 756DSYMUTIL 757MANIFEST_TOOL 758RANLIB 759DLLTOOL 760OBJDUMP 761LN_S 762NM 763ac_ct_DUMPBIN 764DUMPBIN 765LD 766FGREP 767EGREP 768GREP 769SED 770host_os 771host_vendor 772host_cpu 773host 774build_os 775build_vendor 776build_cpu 777build 778LIBTOOL 779am__fastdepCC_FALSE 780am__fastdepCC_TRUE 781CCDEPMODE 782am__nodep 783AMDEPBACKSLASH 784AMDEP_FALSE 785AMDEP_TRUE 786am__quote 787am__include 788DEPDIR 789OBJEXT 790EXEEXT 791ac_ct_CC 792CPPFLAGS 793LDFLAGS 794CFLAGS 795CC 796ac_ct_AR 797AR 798AM_BACKSLASH 799AM_DEFAULT_VERBOSITY 800AM_DEFAULT_V 801AM_V 802am__untar 803am__tar 804AMTAR 805am__leading_dot 806SET_MAKE 807AWK 808mkdir_p 809MKDIR_P 810INSTALL_STRIP_PROGRAM 811STRIP 812install_sh 813MAKEINFO 814AUTOHEADER 815AUTOMAKE 816AUTOCONF 817ACLOCAL 818VERSION 819PACKAGE 820CYGPATH_W 821am__isrc 822INSTALL_DATA 823INSTALL_SCRIPT 824INSTALL_PROGRAM 825target_alias 826host_alias 827build_alias 828LIBS 829ECHO_T 830ECHO_N 831ECHO_C 832DEFS 833mandir 834localedir 835libdir 836psdir 837pdfdir 838dvidir 839htmldir 840infodir 841docdir 842oldincludedir 843includedir 844runstatedir 845localstatedir 846sharedstatedir 847sysconfdir 848datadir 849datarootdir 850libexecdir 851sbindir 852bindir 853program_transform_name 854prefix 855exec_prefix 856PACKAGE_URL 857PACKAGE_BUGREPORT 858PACKAGE_STRING 859PACKAGE_VERSION 860PACKAGE_TARNAME 861PACKAGE_NAME 862PATH_SEPARATOR 863SHELL' 864ac_subst_files='' 865ac_user_opts=' 866enable_option_checking 867enable_silent_rules 868enable_dependency_tracking 869enable_shared 870enable_static 871with_pic 872enable_fast_install 873with_aix_soname 874with_gnu_ld 875with_sysroot 876enable_libtool_lock 877enable_verbose_output 878enable_apache2_module 879enable_standalone_module 880enable_extentions 881enable_mlogc 882with_curl 883enable_alp2 884enable_docs 885enable_pcre_study 886enable_pcre_jit 887enable_pcre_match_limit 888enable_pcre_match_limit_recursion 889enable_lua_cache 890enable_htaccess_config 891enable_request_early 892enable_rule_id_validation 893enable_filename_logging 894enable_server_logging 895enable_collection_delete_problem_logging 896enable_handler_logging 897enable_dechunk_logging 898enable_stopwatch_logging 899enable_server_context_logging 900enable_collection_global_lock 901enable_errors 902enable_strict_compile 903enable_debug_conf 904enable_debug_cache 905enable_debug_acmp 906enable_debug_mem 907enable_performance_measurement 908enable_modsec_api 909enable_large_stream_input 910with_apxs 911with_pcre 912with_apr 913with_apu 914with_libxml 915with_lua 916with_yajl 917with_ssdeep 918' 919 ac_precious_vars='build_alias 920host_alias 921target_alias 922CC 923CFLAGS 924LDFLAGS 925LIBS 926CPPFLAGS 927LT_SYS_LIBRARY_PATH 928CPP 929PKG_CONFIG 930PKG_CONFIG_PATH 931PKG_CONFIG_LIBDIR' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937ac_unrecognized_opts= 938ac_unrecognized_sep= 939# The variables have the same names as the options, with 940# dashes changed to underlines. 941cache_file=/dev/null 942exec_prefix=NONE 943no_create= 944no_recursion= 945prefix=NONE 946program_prefix=NONE 947program_suffix=NONE 948program_transform_name=s,x,x, 949silent= 950site= 951srcdir= 952verbose= 953x_includes=NONE 954x_libraries=NONE 955 956# Installation directory options. 957# These are left unexpanded so users can "make install exec_prefix=/foo" 958# and all the variables that are supposed to be based on exec_prefix 959# by default will actually change. 960# Use braces instead of parens because sh, perl, etc. also accept them. 961# (The list follows the same order as the GNU Coding Standards.) 962bindir='${exec_prefix}/bin' 963sbindir='${exec_prefix}/sbin' 964libexecdir='${exec_prefix}/libexec' 965datarootdir='${prefix}/share' 966datadir='${datarootdir}' 967sysconfdir='${prefix}/etc' 968sharedstatedir='${prefix}/com' 969localstatedir='${prefix}/var' 970runstatedir='${localstatedir}/run' 971includedir='${prefix}/include' 972oldincludedir='/usr/include' 973docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 974infodir='${datarootdir}/info' 975htmldir='${docdir}' 976dvidir='${docdir}' 977pdfdir='${docdir}' 978psdir='${docdir}' 979libdir='${exec_prefix}/lib' 980localedir='${datarootdir}/locale' 981mandir='${datarootdir}/man' 982 983ac_prev= 984ac_dashdash= 985for ac_option 986do 987 # If the previous option needs an argument, assign it. 988 if test -n "$ac_prev"; then 989 eval $ac_prev=\$ac_option 990 ac_prev= 991 continue 992 fi 993 994 case $ac_option in 995 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 996 *=) ac_optarg= ;; 997 *) ac_optarg=yes ;; 998 esac 999 1000 # Accept the important Cygnus configure options, so we can diagnose typos. 1001 1002 case $ac_dashdash$ac_option in 1003 --) 1004 ac_dashdash=yes ;; 1005 1006 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1007 ac_prev=bindir ;; 1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1009 bindir=$ac_optarg ;; 1010 1011 -build | --build | --buil | --bui | --bu) 1012 ac_prev=build_alias ;; 1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1014 build_alias=$ac_optarg ;; 1015 1016 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1018 ac_prev=cache_file ;; 1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1021 cache_file=$ac_optarg ;; 1022 1023 --config-cache | -C) 1024 cache_file=config.cache ;; 1025 1026 -datadir | --datadir | --datadi | --datad) 1027 ac_prev=datadir ;; 1028 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1029 datadir=$ac_optarg ;; 1030 1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1032 | --dataroo | --dataro | --datar) 1033 ac_prev=datarootdir ;; 1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1036 datarootdir=$ac_optarg ;; 1037 1038 -disable-* | --disable-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 as_fn_error $? "invalid feature name: $ac_useropt" 1043 ac_useropt_orig=$ac_useropt 1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1045 case $ac_user_opts in 1046 *" 1047"enable_$ac_useropt" 1048"*) ;; 1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1050 ac_unrecognized_sep=', ';; 1051 esac 1052 eval enable_$ac_useropt=no ;; 1053 1054 -docdir | --docdir | --docdi | --doc | --do) 1055 ac_prev=docdir ;; 1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1057 docdir=$ac_optarg ;; 1058 1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1060 ac_prev=dvidir ;; 1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1062 dvidir=$ac_optarg ;; 1063 1064 -enable-* | --enable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 as_fn_error $? "invalid feature name: $ac_useropt" 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=\$ac_optarg ;; 1079 1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1082 | --exec | --exe | --ex) 1083 ac_prev=exec_prefix ;; 1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1086 | --exec=* | --exe=* | --ex=*) 1087 exec_prefix=$ac_optarg ;; 1088 1089 -gas | --gas | --ga | --g) 1090 # Obsolete; use --with-gas. 1091 with_gas=yes ;; 1092 1093 -help | --help | --hel | --he | -h) 1094 ac_init_help=long ;; 1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1096 ac_init_help=recursive ;; 1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1098 ac_init_help=short ;; 1099 1100 -host | --host | --hos | --ho) 1101 ac_prev=host_alias ;; 1102 -host=* | --host=* | --hos=* | --ho=*) 1103 host_alias=$ac_optarg ;; 1104 1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1106 ac_prev=htmldir ;; 1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1108 | --ht=*) 1109 htmldir=$ac_optarg ;; 1110 1111 -includedir | --includedir | --includedi | --included | --include \ 1112 | --includ | --inclu | --incl | --inc) 1113 ac_prev=includedir ;; 1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1115 | --includ=* | --inclu=* | --incl=* | --inc=*) 1116 includedir=$ac_optarg ;; 1117 1118 -infodir | --infodir | --infodi | --infod | --info | --inf) 1119 ac_prev=infodir ;; 1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1121 infodir=$ac_optarg ;; 1122 1123 -libdir | --libdir | --libdi | --libd) 1124 ac_prev=libdir ;; 1125 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1126 libdir=$ac_optarg ;; 1127 1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1129 | --libexe | --libex | --libe) 1130 ac_prev=libexecdir ;; 1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1132 | --libexe=* | --libex=* | --libe=*) 1133 libexecdir=$ac_optarg ;; 1134 1135 -localedir | --localedir | --localedi | --localed | --locale) 1136 ac_prev=localedir ;; 1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1138 localedir=$ac_optarg ;; 1139 1140 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1141 | --localstate | --localstat | --localsta | --localst | --locals) 1142 ac_prev=localstatedir ;; 1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1145 localstatedir=$ac_optarg ;; 1146 1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1148 ac_prev=mandir ;; 1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1150 mandir=$ac_optarg ;; 1151 1152 -nfp | --nfp | --nf) 1153 # Obsolete; use --without-fp. 1154 with_fp=no ;; 1155 1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1157 | --no-cr | --no-c | -n) 1158 no_create=yes ;; 1159 1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1162 no_recursion=yes ;; 1163 1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1166 | --oldin | --oldi | --old | --ol | --o) 1167 ac_prev=oldincludedir ;; 1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1171 oldincludedir=$ac_optarg ;; 1172 1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1174 ac_prev=prefix ;; 1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1176 prefix=$ac_optarg ;; 1177 1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1179 | --program-pre | --program-pr | --program-p) 1180 ac_prev=program_prefix ;; 1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1183 program_prefix=$ac_optarg ;; 1184 1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1186 | --program-suf | --program-su | --program-s) 1187 ac_prev=program_suffix ;; 1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1190 program_suffix=$ac_optarg ;; 1191 1192 -program-transform-name | --program-transform-name \ 1193 | --program-transform-nam | --program-transform-na \ 1194 | --program-transform-n | --program-transform- \ 1195 | --program-transform | --program-transfor \ 1196 | --program-transfo | --program-transf \ 1197 | --program-trans | --program-tran \ 1198 | --progr-tra | --program-tr | --program-t) 1199 ac_prev=program_transform_name ;; 1200 -program-transform-name=* | --program-transform-name=* \ 1201 | --program-transform-nam=* | --program-transform-na=* \ 1202 | --program-transform-n=* | --program-transform-=* \ 1203 | --program-transform=* | --program-transfor=* \ 1204 | --program-transfo=* | --program-transf=* \ 1205 | --program-trans=* | --program-tran=* \ 1206 | --progr-tra=* | --program-tr=* | --program-t=*) 1207 program_transform_name=$ac_optarg ;; 1208 1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1210 ac_prev=pdfdir ;; 1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1212 pdfdir=$ac_optarg ;; 1213 1214 -psdir | --psdir | --psdi | --psd | --ps) 1215 ac_prev=psdir ;; 1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1217 psdir=$ac_optarg ;; 1218 1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1220 | -silent | --silent | --silen | --sile | --sil) 1221 silent=yes ;; 1222 1223 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1224 | --runstate | --runstat | --runsta | --runst | --runs \ 1225 | --run | --ru | --r) 1226 ac_prev=runstatedir ;; 1227 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1228 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1229 | --run=* | --ru=* | --r=*) 1230 runstatedir=$ac_optarg ;; 1231 1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1233 ac_prev=sbindir ;; 1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1235 | --sbi=* | --sb=*) 1236 sbindir=$ac_optarg ;; 1237 1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1240 | --sharedst | --shareds | --shared | --share | --shar \ 1241 | --sha | --sh) 1242 ac_prev=sharedstatedir ;; 1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1246 | --sha=* | --sh=*) 1247 sharedstatedir=$ac_optarg ;; 1248 1249 -site | --site | --sit) 1250 ac_prev=site ;; 1251 -site=* | --site=* | --sit=*) 1252 site=$ac_optarg ;; 1253 1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1255 ac_prev=srcdir ;; 1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1257 srcdir=$ac_optarg ;; 1258 1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1260 | --syscon | --sysco | --sysc | --sys | --sy) 1261 ac_prev=sysconfdir ;; 1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1264 sysconfdir=$ac_optarg ;; 1265 1266 -target | --target | --targe | --targ | --tar | --ta | --t) 1267 ac_prev=target_alias ;; 1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1269 target_alias=$ac_optarg ;; 1270 1271 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1272 verbose=yes ;; 1273 1274 -version | --version | --versio | --versi | --vers | -V) 1275 ac_init_version=: ;; 1276 1277 -with-* | --with-*) 1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1279 # Reject names that are not valid shell variable names. 1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1281 as_fn_error $? "invalid package name: $ac_useropt" 1282 ac_useropt_orig=$ac_useropt 1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1284 case $ac_user_opts in 1285 *" 1286"with_$ac_useropt" 1287"*) ;; 1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1289 ac_unrecognized_sep=', ';; 1290 esac 1291 eval with_$ac_useropt=\$ac_optarg ;; 1292 1293 -without-* | --without-*) 1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1297 as_fn_error $? "invalid package name: $ac_useropt" 1298 ac_useropt_orig=$ac_useropt 1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1300 case $ac_user_opts in 1301 *" 1302"with_$ac_useropt" 1303"*) ;; 1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1305 ac_unrecognized_sep=', ';; 1306 esac 1307 eval with_$ac_useropt=no ;; 1308 1309 --x) 1310 # Obsolete; use --with-x. 1311 with_x=yes ;; 1312 1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1314 | --x-incl | --x-inc | --x-in | --x-i) 1315 ac_prev=x_includes ;; 1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1318 x_includes=$ac_optarg ;; 1319 1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1322 ac_prev=x_libraries ;; 1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1325 x_libraries=$ac_optarg ;; 1326 1327 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1328Try \`$0 --help' for more information" 1329 ;; 1330 1331 *=*) 1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1333 # Reject names that are not valid shell variable names. 1334 case $ac_envvar in #( 1335 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1336 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1337 esac 1338 eval $ac_envvar=\$ac_optarg 1339 export $ac_envvar ;; 1340 1341 *) 1342 # FIXME: should be removed in autoconf 3.0. 1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1346 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1347 ;; 1348 1349 esac 1350done 1351 1352if test -n "$ac_prev"; then 1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1354 as_fn_error $? "missing argument to $ac_option" 1355fi 1356 1357if test -n "$ac_unrecognized_opts"; then 1358 case $enable_option_checking in 1359 no) ;; 1360 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1362 esac 1363fi 1364 1365# Check all directory arguments for consistency. 1366for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1367 datadir sysconfdir sharedstatedir localstatedir includedir \ 1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1369 libdir localedir mandir runstatedir 1370do 1371 eval ac_val=\$$ac_var 1372 # Remove trailing slashes. 1373 case $ac_val in 1374 */ ) 1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1376 eval $ac_var=\$ac_val;; 1377 esac 1378 # Be sure to have absolute directory names. 1379 case $ac_val in 1380 [\\/$]* | ?:[\\/]* ) continue;; 1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1382 esac 1383 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1384done 1385 1386# There might be people who depend on the old broken behavior: `$host' 1387# used to hold the argument of --host etc. 1388# FIXME: To remove some day. 1389build=$build_alias 1390host=$host_alias 1391target=$target_alias 1392 1393# FIXME: To remove some day. 1394if test "x$host_alias" != x; then 1395 if test "x$build_alias" = x; then 1396 cross_compiling=maybe 1397 elif test "x$build_alias" != "x$host_alias"; then 1398 cross_compiling=yes 1399 fi 1400fi 1401 1402ac_tool_prefix= 1403test -n "$host_alias" && ac_tool_prefix=$host_alias- 1404 1405test "$silent" = yes && exec 6>/dev/null 1406 1407 1408ac_pwd=`pwd` && test -n "$ac_pwd" && 1409ac_ls_di=`ls -di .` && 1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1411 as_fn_error $? "working directory cannot be determined" 1412test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1413 as_fn_error $? "pwd does not report name of working directory" 1414 1415 1416# Find the source files, if location was not specified. 1417if test -z "$srcdir"; then 1418 ac_srcdir_defaulted=yes 1419 # Try the directory containing this script, then the parent directory. 1420 ac_confdir=`$as_dirname -- "$as_myself" || 1421$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1422 X"$as_myself" : 'X\(//\)[^/]' \| \ 1423 X"$as_myself" : 'X\(//\)$' \| \ 1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1425$as_echo X"$as_myself" | 1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\/\)[^/].*/{ 1431 s//\1/ 1432 q 1433 } 1434 /^X\(\/\/\)$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\).*/{ 1439 s//\1/ 1440 q 1441 } 1442 s/.*/./; q'` 1443 srcdir=$ac_confdir 1444 if test ! -r "$srcdir/$ac_unique_file"; then 1445 srcdir=.. 1446 fi 1447else 1448 ac_srcdir_defaulted=no 1449fi 1450if test ! -r "$srcdir/$ac_unique_file"; then 1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1452 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1453fi 1454ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1455ac_abs_confdir=`( 1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1457 pwd)` 1458# When building in place, set srcdir=. 1459if test "$ac_abs_confdir" = "$ac_pwd"; then 1460 srcdir=. 1461fi 1462# Remove unnecessary trailing slashes from srcdir. 1463# Double slashes in file names in object file debugging info 1464# mess up M-x gdb in Emacs. 1465case $srcdir in 1466*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1467esac 1468for ac_var in $ac_precious_vars; do 1469 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1470 eval ac_env_${ac_var}_value=\$${ac_var} 1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1472 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1473done 1474 1475# 1476# Report the --help message. 1477# 1478if test "$ac_init_help" = "long"; then 1479 # Omit some internal or obsolete options to make the list less imposing. 1480 # This message is too long to be a string in the A/UX 3.1 sh. 1481 cat <<_ACEOF 1482\`configure' configures modsecurity 2.9 to adapt to many kinds of systems. 1483 1484Usage: $0 [OPTION]... [VAR=VALUE]... 1485 1486To assign environment variables (e.g., CC, CFLAGS...), specify them as 1487VAR=VALUE. See below for descriptions of some of the useful variables. 1488 1489Defaults for the options are specified in brackets. 1490 1491Configuration: 1492 -h, --help display this help and exit 1493 --help=short display options specific to this package 1494 --help=recursive display the short help of all the included packages 1495 -V, --version display version information and exit 1496 -q, --quiet, --silent do not print \`checking ...' messages 1497 --cache-file=FILE cache test results in FILE [disabled] 1498 -C, --config-cache alias for \`--cache-file=config.cache' 1499 -n, --no-create do not create output files 1500 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1501 1502Installation directories: 1503 --prefix=PREFIX install architecture-independent files in PREFIX 1504 [$ac_default_prefix] 1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1506 [PREFIX] 1507 1508By default, \`make install' will install all the files in 1509\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1510an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1511for instance \`--prefix=\$HOME'. 1512 1513For better control, use the options below. 1514 1515Fine tuning of the installation directories: 1516 --bindir=DIR user executables [EPREFIX/bin] 1517 --sbindir=DIR system admin executables [EPREFIX/sbin] 1518 --libexecdir=DIR program executables [EPREFIX/libexec] 1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1522 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1523 --libdir=DIR object code libraries [EPREFIX/lib] 1524 --includedir=DIR C header files [PREFIX/include] 1525 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1528 --infodir=DIR info documentation [DATAROOTDIR/info] 1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1530 --mandir=DIR man documentation [DATAROOTDIR/man] 1531 --docdir=DIR documentation root [DATAROOTDIR/doc/modsecurity] 1532 --htmldir=DIR html documentation [DOCDIR] 1533 --dvidir=DIR dvi documentation [DOCDIR] 1534 --pdfdir=DIR pdf documentation [DOCDIR] 1535 --psdir=DIR ps documentation [DOCDIR] 1536_ACEOF 1537 1538 cat <<\_ACEOF 1539 1540Program names: 1541 --program-prefix=PREFIX prepend PREFIX to installed program names 1542 --program-suffix=SUFFIX append SUFFIX to installed program names 1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1544 1545System types: 1546 --build=BUILD configure for building on BUILD [guessed] 1547 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1548_ACEOF 1549fi 1550 1551if test -n "$ac_init_help"; then 1552 case $ac_init_help in 1553 short | recursive ) echo "Configuration of modsecurity 2.9:";; 1554 esac 1555 cat <<\_ACEOF 1556 1557Optional Features: 1558 --disable-option-checking ignore unrecognized --enable/--with options 1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1561 --enable-silent-rules less verbose build output (undo: "make V=1") 1562 --disable-silent-rules verbose build output (undo: "make V=0") 1563 --enable-dependency-tracking 1564 do not reject slow dependency extractors 1565 --disable-dependency-tracking 1566 speeds up one-time build 1567 --enable-shared[=PKGS] build shared libraries [default=yes] 1568 --enable-static[=PKGS] build static libraries [default=yes] 1569 --enable-fast-install[=PKGS] 1570 optimize for fast installation [default=yes] 1571 --disable-libtool-lock avoid locking (might break parallel builds) 1572 --enable-verbose-output Enable more verbose configure output. 1573 --disable-apache2-module 1574 Disable building Apache2 module. 1575 --enable-standalone-module 1576 Enable building standalone module. 1577 --enable-extentions Enable building extension. 1578 --disable-mlogc Disable building mlogc. 1579 --enable-alp2 Enable building audit log parser lib. 1580 --enable-docs Enable building documentation. 1581 --enable-pcre-study Enable PCRE regex studying during configure. 1582 --enable-pcre-jit Enable PCRE regex jit support during configure. 1583 --enable-pcre-match-limit 1584 Enable PCRE regex match limit during configure. 1585 --enable-pcre-match-limit-recursion 1586 Enable PCRE regex match limit recursion during 1587 configure. 1588 --enable-lua-cache Enable Lua per transaction cache. 1589 --enable-htaccess-config 1590 Enable some mod_security directives into htaccess 1591 files. 1592 --enable-request-early Place phase1 into post_read_request hook. default is 1593 hook_request_early 1594 --enable-rule-id-validation 1595 Forbid duplicate rule ids and missing ones. This is 1596 the default 1597 --enable-filename-logging 1598 Enable logging of filename in audit log. This is the 1599 default 1600 --enable-server-logging Enable logging of "Server" in audit log when log 1601 level < 9. This is the default 1602 --enable-collection-delete-problem-logging 1603 Enable logging of collection delete problem even 1604 when log level is < 9. This is the default 1605 --enable-handler-logging 1606 Enable logging of Apache handler in audit log even 1607 when log level is < 9. This is the default 1608 --enable-dechunk-logging 1609 Enable logging of dechunking even when log level is 1610 < 9. This is the default 1611 --enable-stopwatch-logging 1612 Enable logging of stopwatches even when log level is 1613 < 9. This is the default 1614 --enable-server-context-logging 1615 Enable logging of server info (log producer, 1616 sanitized objects, ...) in audit log even when log 1617 level < 9. This is the default 1618 --enable-collection-global-lock 1619 Enable collection correctness by using a global 1620 lock. May reduce performance significatively. This 1621 is disabled by default 1622 --disable-errors Disable errors during configure. 1623 --enable-strict-compile Enable strict compilation (warnings are errors). 1624 --enable-debug-conf Enable debug during configuration. 1625 --enable-debug-cache Enable debug for transformation caching. 1626 --enable-debug-acmp Enable debugging acmp code. 1627 --enable-debug-mem Enable debug during configuration. 1628 --enable-performance-measurement 1629 Enable performance-measurement stats. 1630 --disable-modsec-api Disable the API; compiling against some older Apache 1631 versions require this. 1632 --enable-large-stream-input 1633 Enable optimization for large stream input 1634 1635Optional Packages: 1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1638 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1639 both] 1640 --with-aix-soname=aix|svr4|both 1641 shared library versioning (aka "SONAME") variant to 1642 provide on AIX, [default=aix]. 1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1644 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1645 compiler's sysroot if not specified). 1646 --with-curl=PATH Path to curl prefix or config script 1647 --with-apxs=FILE FILE is the path to apxs; defaults to "apxs". 1648 --with-pcre=PATH Path to pcre prefix or config script 1649 --with-apr=PATH Path to apr prefix or config script 1650 --with-apu=PATH Path to apu prefix or config script 1651 --with-libxml=PATH Path to libxml2 prefix or config script 1652 --with-lua=PATH Path to lua prefix or config script 1653 1654 --with-yajl=PATH Path to yajl prefix or config script 1655 1656 --with-ssdeep=PATH Path to ssdeep prefix 1657 1658 1659Some influential environment variables: 1660 CC C compiler command 1661 CFLAGS C compiler flags 1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1663 nonstandard directory <lib dir> 1664 LIBS libraries to pass to the linker, e.g. -l<library> 1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1666 you have headers in a nonstandard directory <include dir> 1667 LT_SYS_LIBRARY_PATH 1668 User-defined run-time library search path. 1669 CPP C preprocessor 1670 PKG_CONFIG path to pkg-config utility 1671 PKG_CONFIG_PATH 1672 directories to add to pkg-config's search path 1673 PKG_CONFIG_LIBDIR 1674 path overriding pkg-config's built-in search path 1675 1676Use these variables to override the choices made by `configure' or to help 1677it to find libraries and programs with nonstandard names/locations. 1678 1679Report bugs to <support@modsecurity.org>. 1680_ACEOF 1681ac_status=$? 1682fi 1683 1684if test "$ac_init_help" = "recursive"; then 1685 # If there are subdirs, report their specific --help. 1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1687 test -d "$ac_dir" || 1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1689 continue 1690 ac_builddir=. 1691 1692case "$ac_dir" in 1693.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1694*) 1695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1696 # A ".." for each directory in $ac_dir_suffix. 1697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1698 case $ac_top_builddir_sub in 1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1701 esac ;; 1702esac 1703ac_abs_top_builddir=$ac_pwd 1704ac_abs_builddir=$ac_pwd$ac_dir_suffix 1705# for backward compatibility: 1706ac_top_builddir=$ac_top_build_prefix 1707 1708case $srcdir in 1709 .) # We are building in place. 1710 ac_srcdir=. 1711 ac_top_srcdir=$ac_top_builddir_sub 1712 ac_abs_top_srcdir=$ac_pwd ;; 1713 [\\/]* | ?:[\\/]* ) # Absolute name. 1714 ac_srcdir=$srcdir$ac_dir_suffix; 1715 ac_top_srcdir=$srcdir 1716 ac_abs_top_srcdir=$srcdir ;; 1717 *) # Relative name. 1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1719 ac_top_srcdir=$ac_top_build_prefix$srcdir 1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1721esac 1722ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1723 1724 cd "$ac_dir" || { ac_status=$?; continue; } 1725 # Check for guested configure. 1726 if test -f "$ac_srcdir/configure.gnu"; then 1727 echo && 1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1729 elif test -f "$ac_srcdir/configure"; then 1730 echo && 1731 $SHELL "$ac_srcdir/configure" --help=recursive 1732 else 1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1734 fi || ac_status=$? 1735 cd "$ac_pwd" || { ac_status=$?; break; } 1736 done 1737fi 1738 1739test -n "$ac_init_help" && exit $ac_status 1740if $ac_init_version; then 1741 cat <<\_ACEOF 1742modsecurity configure 2.9 1743generated by GNU Autoconf 2.69 1744 1745Copyright (C) 2012 Free Software Foundation, Inc. 1746This configure script is free software; the Free Software Foundation 1747gives unlimited permission to copy, distribute and modify it. 1748_ACEOF 1749 exit 1750fi 1751 1752## ------------------------ ## 1753## Autoconf initialization. ## 1754## ------------------------ ## 1755 1756# ac_fn_c_try_compile LINENO 1757# -------------------------- 1758# Try to compile conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_compile () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext 1763 if { { ac_try="$ac_compile" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_compile") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest.$ac_objext; then : 1782 ac_retval=0 1783else 1784 $as_echo "$as_me: failed program was:" >&5 1785sed 's/^/| /' conftest.$ac_ext >&5 1786 1787 ac_retval=1 1788fi 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 as_fn_set_status $ac_retval 1791 1792} # ac_fn_c_try_compile 1793 1794# ac_fn_c_try_link LINENO 1795# ----------------------- 1796# Try to link conftest.$ac_ext, and return whether this succeeded. 1797ac_fn_c_try_link () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 rm -f conftest.$ac_objext conftest$ac_exeext 1801 if { { ac_try="$ac_link" 1802case "(($ac_try" in 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1804 *) ac_try_echo=$ac_try;; 1805esac 1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1807$as_echo "$ac_try_echo"; } >&5 1808 (eval "$ac_link") 2>conftest.err 1809 ac_status=$? 1810 if test -s conftest.err; then 1811 grep -v '^ *+' conftest.err >conftest.er1 1812 cat conftest.er1 >&5 1813 mv -f conftest.er1 conftest.err 1814 fi 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; } && { 1817 test -z "$ac_c_werror_flag" || 1818 test ! -s conftest.err 1819 } && test -s conftest$ac_exeext && { 1820 test "$cross_compiling" = yes || 1821 test -x conftest$ac_exeext 1822 }; then : 1823 ac_retval=0 1824else 1825 $as_echo "$as_me: failed program was:" >&5 1826sed 's/^/| /' conftest.$ac_ext >&5 1827 1828 ac_retval=1 1829fi 1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1832 # interfere with the next link command; also delete a directory that is 1833 # left behind by Apple's compiler. We do this before executing the actions. 1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} # ac_fn_c_try_link 1839 1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1841# ------------------------------------------------------- 1842# Tests whether HEADER exists and can be compiled using the include files in 1843# INCLUDES, setting the cache variable VAR accordingly. 1844ac_fn_c_check_header_compile () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1848$as_echo_n "checking for $2... " >&6; } 1849if eval \${$3+:} false; then : 1850 $as_echo_n "(cached) " >&6 1851else 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854$4 1855#include <$2> 1856_ACEOF 1857if ac_fn_c_try_compile "$LINENO"; then : 1858 eval "$3=yes" 1859else 1860 eval "$3=no" 1861fi 1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1863fi 1864eval ac_res=\$$3 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1866$as_echo "$ac_res" >&6; } 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868 1869} # ac_fn_c_check_header_compile 1870 1871# ac_fn_c_try_cpp LINENO 1872# ---------------------- 1873# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1874ac_fn_c_try_cpp () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 if { { ac_try="$ac_cpp conftest.$ac_ext" 1878case "(($ac_try" in 1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1880 *) ac_try_echo=$ac_try;; 1881esac 1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1883$as_echo "$ac_try_echo"; } >&5 1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1885 ac_status=$? 1886 if test -s conftest.err; then 1887 grep -v '^ *+' conftest.err >conftest.er1 1888 cat conftest.er1 >&5 1889 mv -f conftest.er1 conftest.err 1890 fi 1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1892 test $ac_status = 0; } > conftest.i && { 1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1894 test ! -s conftest.err 1895 }; then : 1896 ac_retval=0 1897else 1898 $as_echo "$as_me: failed program was:" >&5 1899sed 's/^/| /' conftest.$ac_ext >&5 1900 1901 ac_retval=1 1902fi 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1904 as_fn_set_status $ac_retval 1905 1906} # ac_fn_c_try_cpp 1907 1908# ac_fn_c_try_run LINENO 1909# ---------------------- 1910# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1911# that executables *can* be run. 1912ac_fn_c_try_run () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 if { { ac_try="$ac_link" 1916case "(($ac_try" in 1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1918 *) ac_try_echo=$ac_try;; 1919esac 1920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1921$as_echo "$ac_try_echo"; } >&5 1922 (eval "$ac_link") 2>&5 1923 ac_status=$? 1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1925 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1926 { { case "(($ac_try" in 1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1928 *) ac_try_echo=$ac_try;; 1929esac 1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1931$as_echo "$ac_try_echo"; } >&5 1932 (eval "$ac_try") 2>&5 1933 ac_status=$? 1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1935 test $ac_status = 0; }; }; then : 1936 ac_retval=0 1937else 1938 $as_echo "$as_me: program exited with status $ac_status" >&5 1939 $as_echo "$as_me: failed program was:" >&5 1940sed 's/^/| /' conftest.$ac_ext >&5 1941 1942 ac_retval=$ac_status 1943fi 1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 as_fn_set_status $ac_retval 1947 1948} # ac_fn_c_try_run 1949 1950# ac_fn_c_check_func LINENO FUNC VAR 1951# ---------------------------------- 1952# Tests whether FUNC exists, setting the cache variable VAR accordingly 1953ac_fn_c_check_func () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957$as_echo_n "checking for $2... " >&6; } 1958if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960else 1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1965#define $2 innocuous_$2 1966 1967/* System header to define __stub macros and hopefully few prototypes, 1968 which can conflict with char $2 (); below. 1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1970 <limits.h> exists even on freestanding compilers. */ 1971 1972#ifdef __STDC__ 1973# include <limits.h> 1974#else 1975# include <assert.h> 1976#endif 1977 1978#undef $2 1979 1980/* Override any GCC internal prototype to avoid an error. 1981 Use char because int might match the return type of a GCC 1982 builtin and then its argument prototype would still apply. */ 1983#ifdef __cplusplus 1984extern "C" 1985#endif 1986char $2 (); 1987/* The GNU C library defines this for functions which it implements 1988 to always fail with ENOSYS. Some functions are actually named 1989 something starting with __ and the normal name is an alias. */ 1990#if defined __stub_$2 || defined __stub___$2 1991choke me 1992#endif 1993 1994int 1995main () 1996{ 1997return $2 (); 1998 ; 1999 return 0; 2000} 2001_ACEOF 2002if ac_fn_c_try_link "$LINENO"; then : 2003 eval "$3=yes" 2004else 2005 eval "$3=no" 2006fi 2007rm -f core conftest.err conftest.$ac_objext \ 2008 conftest$ac_exeext conftest.$ac_ext 2009fi 2010eval ac_res=\$$3 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2012$as_echo "$ac_res" >&6; } 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 2015} # ac_fn_c_check_func 2016 2017# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2018# ------------------------------------------------------- 2019# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2020# the include files in INCLUDES and setting the cache variable VAR 2021# accordingly. 2022ac_fn_c_check_header_mongrel () 2023{ 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 if eval \${$3+:} false; then : 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2027$as_echo_n "checking for $2... " >&6; } 2028if eval \${$3+:} false; then : 2029 $as_echo_n "(cached) " >&6 2030fi 2031eval ac_res=\$$3 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2033$as_echo "$ac_res" >&6; } 2034else 2035 # Is the header compilable? 2036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2037$as_echo_n "checking $2 usability... " >&6; } 2038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040$4 2041#include <$2> 2042_ACEOF 2043if ac_fn_c_try_compile "$LINENO"; then : 2044 ac_header_compiler=yes 2045else 2046 ac_header_compiler=no 2047fi 2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2050$as_echo "$ac_header_compiler" >&6; } 2051 2052# Is the header present? 2053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2054$as_echo_n "checking $2 presence... " >&6; } 2055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056/* end confdefs.h. */ 2057#include <$2> 2058_ACEOF 2059if ac_fn_c_try_cpp "$LINENO"; then : 2060 ac_header_preproc=yes 2061else 2062 ac_header_preproc=no 2063fi 2064rm -f conftest.err conftest.i conftest.$ac_ext 2065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2066$as_echo "$ac_header_preproc" >&6; } 2067 2068# So? What about this header? 2069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2070 yes:no: ) 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2072$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2074$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2075 ;; 2076 no:yes:* ) 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2078$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2080$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2082$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2084$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2086$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2087( $as_echo "## -------------------------------------- ## 2088## Report this to support@modsecurity.org ## 2089## -------------------------------------- ##" 2090 ) | sed "s/^/$as_me: WARNING: /" >&2 2091 ;; 2092esac 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2094$as_echo_n "checking for $2... " >&6; } 2095if eval \${$3+:} false; then : 2096 $as_echo_n "(cached) " >&6 2097else 2098 eval "$3=\$ac_header_compiler" 2099fi 2100eval ac_res=\$$3 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2102$as_echo "$ac_res" >&6; } 2103fi 2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2105 2106} # ac_fn_c_check_header_mongrel 2107 2108# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2109# ------------------------------------------- 2110# Tests whether TYPE exists after having included INCLUDES, setting cache 2111# variable VAR accordingly. 2112ac_fn_c_check_type () 2113{ 2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2116$as_echo_n "checking for $2... " >&6; } 2117if eval \${$3+:} false; then : 2118 $as_echo_n "(cached) " >&6 2119else 2120 eval "$3=no" 2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2122/* end confdefs.h. */ 2123$4 2124int 2125main () 2126{ 2127if (sizeof ($2)) 2128 return 0; 2129 ; 2130 return 0; 2131} 2132_ACEOF 2133if ac_fn_c_try_compile "$LINENO"; then : 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137int 2138main () 2139{ 2140if (sizeof (($2))) 2141 return 0; 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146if ac_fn_c_try_compile "$LINENO"; then : 2147 2148else 2149 eval "$3=yes" 2150fi 2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2152fi 2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2154fi 2155eval ac_res=\$$3 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2157$as_echo "$ac_res" >&6; } 2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2159 2160} # ac_fn_c_check_type 2161 2162# ac_fn_c_find_uintX_t LINENO BITS VAR 2163# ------------------------------------ 2164# Finds an unsigned integer type with width BITS, setting cache variable VAR 2165# accordingly. 2166ac_fn_c_find_uintX_t () 2167{ 2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2170$as_echo_n "checking for uint$2_t... " >&6; } 2171if eval \${$3+:} false; then : 2172 $as_echo_n "(cached) " >&6 2173else 2174 eval "$3=no" 2175 # Order is important - never check a type that is potentially smaller 2176 # than half of the expected target width. 2177 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2178 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2180/* end confdefs.h. */ 2181$ac_includes_default 2182int 2183main () 2184{ 2185static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 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 case $ac_type in #( 2195 uint$2_t) : 2196 eval "$3=yes" ;; #( 2197 *) : 2198 eval "$3=\$ac_type" ;; 2199esac 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202 if eval test \"x\$"$3"\" = x"no"; then : 2203 2204else 2205 break 2206fi 2207 done 2208fi 2209eval ac_res=\$$3 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2211$as_echo "$ac_res" >&6; } 2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2213 2214} # ac_fn_c_find_uintX_t 2215cat >config.log <<_ACEOF 2216This file contains any messages produced by compilers while 2217running configure, to aid debugging if configure makes a mistake. 2218 2219It was created by modsecurity $as_me 2.9, which was 2220generated by GNU Autoconf 2.69. Invocation command line was 2221 2222 $ $0 $@ 2223 2224_ACEOF 2225exec 5>>config.log 2226{ 2227cat <<_ASUNAME 2228## --------- ## 2229## Platform. ## 2230## --------- ## 2231 2232hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2233uname -m = `(uname -m) 2>/dev/null || echo unknown` 2234uname -r = `(uname -r) 2>/dev/null || echo unknown` 2235uname -s = `(uname -s) 2>/dev/null || echo unknown` 2236uname -v = `(uname -v) 2>/dev/null || echo unknown` 2237 2238/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2239/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2240 2241/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2242/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2243/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2244/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2245/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2246/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2247/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2248 2249_ASUNAME 2250 2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2252for as_dir in $PATH 2253do 2254 IFS=$as_save_IFS 2255 test -z "$as_dir" && as_dir=. 2256 $as_echo "PATH: $as_dir" 2257 done 2258IFS=$as_save_IFS 2259 2260} >&5 2261 2262cat >&5 <<_ACEOF 2263 2264 2265## ----------- ## 2266## Core tests. ## 2267## ----------- ## 2268 2269_ACEOF 2270 2271 2272# Keep a trace of the command line. 2273# Strip out --no-create and --no-recursion so they do not pile up. 2274# Strip out --silent because we don't want to record it for future runs. 2275# Also quote any args containing shell meta-characters. 2276# Make two passes to allow for proper duplicate-argument suppression. 2277ac_configure_args= 2278ac_configure_args0= 2279ac_configure_args1= 2280ac_must_keep_next=false 2281for ac_pass in 1 2 2282do 2283 for ac_arg 2284 do 2285 case $ac_arg in 2286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2288 | -silent | --silent | --silen | --sile | --sil) 2289 continue ;; 2290 *\'*) 2291 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2292 esac 2293 case $ac_pass in 2294 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2295 2) 2296 as_fn_append ac_configure_args1 " '$ac_arg'" 2297 if test $ac_must_keep_next = true; then 2298 ac_must_keep_next=false # Got value, back to normal. 2299 else 2300 case $ac_arg in 2301 *=* | --config-cache | -C | -disable-* | --disable-* \ 2302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2304 | -with-* | --with-* | -without-* | --without-* | --x) 2305 case "$ac_configure_args0 " in 2306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2307 esac 2308 ;; 2309 -* ) ac_must_keep_next=true ;; 2310 esac 2311 fi 2312 as_fn_append ac_configure_args " '$ac_arg'" 2313 ;; 2314 esac 2315 done 2316done 2317{ ac_configure_args0=; unset ac_configure_args0;} 2318{ ac_configure_args1=; unset ac_configure_args1;} 2319 2320# When interrupted or exit'd, cleanup temporary files, and complete 2321# config.log. We remove comments because anyway the quotes in there 2322# would cause problems or look ugly. 2323# WARNING: Use '\'' to represent an apostrophe within the trap. 2324# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2325trap 'exit_status=$? 2326 # Save into config.log some information that might help in debugging. 2327 { 2328 echo 2329 2330 $as_echo "## ---------------- ## 2331## Cache variables. ## 2332## ---------------- ##" 2333 echo 2334 # The following way of writing the cache mishandles newlines in values, 2335( 2336 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2337 eval ac_val=\$$ac_var 2338 case $ac_val in #( 2339 *${as_nl}*) 2340 case $ac_var in #( 2341 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2342$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2343 esac 2344 case $ac_var in #( 2345 _ | IFS | as_nl) ;; #( 2346 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2347 *) { eval $ac_var=; unset $ac_var;} ;; 2348 esac ;; 2349 esac 2350 done 2351 (set) 2>&1 | 2352 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2353 *${as_nl}ac_space=\ *) 2354 sed -n \ 2355 "s/'\''/'\''\\\\'\'''\''/g; 2356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2357 ;; #( 2358 *) 2359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2360 ;; 2361 esac | 2362 sort 2363) 2364 echo 2365 2366 $as_echo "## ----------------- ## 2367## Output variables. ## 2368## ----------------- ##" 2369 echo 2370 for ac_var in $ac_subst_vars 2371 do 2372 eval ac_val=\$$ac_var 2373 case $ac_val in 2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2375 esac 2376 $as_echo "$ac_var='\''$ac_val'\''" 2377 done | sort 2378 echo 2379 2380 if test -n "$ac_subst_files"; then 2381 $as_echo "## ------------------- ## 2382## File substitutions. ## 2383## ------------------- ##" 2384 echo 2385 for ac_var in $ac_subst_files 2386 do 2387 eval ac_val=\$$ac_var 2388 case $ac_val in 2389 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2390 esac 2391 $as_echo "$ac_var='\''$ac_val'\''" 2392 done | sort 2393 echo 2394 fi 2395 2396 if test -s confdefs.h; then 2397 $as_echo "## ----------- ## 2398## confdefs.h. ## 2399## ----------- ##" 2400 echo 2401 cat confdefs.h 2402 echo 2403 fi 2404 test "$ac_signal" != 0 && 2405 $as_echo "$as_me: caught signal $ac_signal" 2406 $as_echo "$as_me: exit $exit_status" 2407 } >&5 2408 rm -f core *.core core.conftest.* && 2409 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2410 exit $exit_status 2411' 0 2412for ac_signal in 1 2 13 15; do 2413 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2414done 2415ac_signal=0 2416 2417# confdefs.h avoids OS command line length limits that DEFS can exceed. 2418rm -f -r conftest* confdefs.h 2419 2420$as_echo "/* confdefs.h */" > confdefs.h 2421 2422# Predefined preprocessor variables. 2423 2424cat >>confdefs.h <<_ACEOF 2425#define PACKAGE_NAME "$PACKAGE_NAME" 2426_ACEOF 2427 2428cat >>confdefs.h <<_ACEOF 2429#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2430_ACEOF 2431 2432cat >>confdefs.h <<_ACEOF 2433#define PACKAGE_VERSION "$PACKAGE_VERSION" 2434_ACEOF 2435 2436cat >>confdefs.h <<_ACEOF 2437#define PACKAGE_STRING "$PACKAGE_STRING" 2438_ACEOF 2439 2440cat >>confdefs.h <<_ACEOF 2441#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2442_ACEOF 2443 2444cat >>confdefs.h <<_ACEOF 2445#define PACKAGE_URL "$PACKAGE_URL" 2446_ACEOF 2447 2448 2449# Let the site file select an alternate cache file if it wants to. 2450# Prefer an explicitly selected file to automatically selected ones. 2451ac_site_file1=NONE 2452ac_site_file2=NONE 2453if test -n "$CONFIG_SITE"; then 2454 # We do not want a PATH search for config.site. 2455 case $CONFIG_SITE in #(( 2456 -*) ac_site_file1=./$CONFIG_SITE;; 2457 */*) ac_site_file1=$CONFIG_SITE;; 2458 *) ac_site_file1=./$CONFIG_SITE;; 2459 esac 2460elif test "x$prefix" != xNONE; then 2461 ac_site_file1=$prefix/share/config.site 2462 ac_site_file2=$prefix/etc/config.site 2463else 2464 ac_site_file1=$ac_default_prefix/share/config.site 2465 ac_site_file2=$ac_default_prefix/etc/config.site 2466fi 2467for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2468do 2469 test "x$ac_site_file" = xNONE && continue 2470 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2472$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2473 sed 's/^/| /' "$ac_site_file" >&5 2474 . "$ac_site_file" \ 2475 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2477as_fn_error $? "failed to load site script $ac_site_file 2478See \`config.log' for more details" "$LINENO" 5; } 2479 fi 2480done 2481 2482if test -r "$cache_file"; then 2483 # Some versions of bash will fail to source /dev/null (special files 2484 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2485 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2487$as_echo "$as_me: loading cache $cache_file" >&6;} 2488 case $cache_file in 2489 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2490 *) . "./$cache_file";; 2491 esac 2492 fi 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2495$as_echo "$as_me: creating cache $cache_file" >&6;} 2496 >$cache_file 2497fi 2498 2499# Check that the precious variables saved in the cache have kept the same 2500# value. 2501ac_cache_corrupted=false 2502for ac_var in $ac_precious_vars; do 2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2504 eval ac_new_set=\$ac_env_${ac_var}_set 2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2506 eval ac_new_val=\$ac_env_${ac_var}_value 2507 case $ac_old_set,$ac_new_set in 2508 set,) 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2510$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2511 ac_cache_corrupted=: ;; 2512 ,set) 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2514$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2515 ac_cache_corrupted=: ;; 2516 ,);; 2517 *) 2518 if test "x$ac_old_val" != "x$ac_new_val"; then 2519 # differences in whitespace do not lead to failure. 2520 ac_old_val_w=`echo x $ac_old_val` 2521 ac_new_val_w=`echo x $ac_new_val` 2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2524$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2525 ac_cache_corrupted=: 2526 else 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2528$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2529 eval $ac_var=\$ac_old_val 2530 fi 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2532$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2534$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2535 fi;; 2536 esac 2537 # Pass precious variables to config.status. 2538 if test "$ac_new_set" = set; then 2539 case $ac_new_val in 2540 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2541 *) ac_arg=$ac_var=$ac_new_val ;; 2542 esac 2543 case " $ac_configure_args " in 2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2546 esac 2547 fi 2548done 2549if $ac_cache_corrupted; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2553$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2554 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2555fi 2556## -------------------- ## 2557## Main body of script. ## 2558## -------------------- ## 2559 2560ac_ext=c 2561ac_cpp='$CPP $CPPFLAGS' 2562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2564ac_compiler_gnu=$ac_cv_c_compiler_gnu 2565 2566 2567 2568 2569 2570ac_config_headers="$ac_config_headers apache2/modsecurity_config_auto.h" 2571 2572ac_aux_dir= 2573for ac_dir in build "$srcdir"/build; do 2574 if test -f "$ac_dir/install-sh"; then 2575 ac_aux_dir=$ac_dir 2576 ac_install_sh="$ac_aux_dir/install-sh -c" 2577 break 2578 elif test -f "$ac_dir/install.sh"; then 2579 ac_aux_dir=$ac_dir 2580 ac_install_sh="$ac_aux_dir/install.sh -c" 2581 break 2582 elif test -f "$ac_dir/shtool"; then 2583 ac_aux_dir=$ac_dir 2584 ac_install_sh="$ac_aux_dir/shtool install -c" 2585 break 2586 fi 2587done 2588if test -z "$ac_aux_dir"; then 2589 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2590fi 2591 2592# These three variables are undocumented and unsupported, 2593# and are intended to be withdrawn in a future Autoconf release. 2594# They can cause serious problems if a builder's source tree is in a directory 2595# whose full name contains unusual characters. 2596ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2597ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2598ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2599 2600 2601 2602 2603am__api_version='1.15' 2604 2605# Find a good install program. We prefer a C program (faster), 2606# so one script is as good as another. But avoid the broken or 2607# incompatible versions: 2608# SysV /etc/install, /usr/sbin/install 2609# SunOS /usr/etc/install 2610# IRIX /sbin/install 2611# AIX /bin/install 2612# AmigaOS /C/install, which installs bootblocks on floppy discs 2613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2614# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2616# OS/2's system install, which has a completely different semantic 2617# ./install, which can be erroneously created by make from ./install.sh. 2618# Reject install programs that cannot install multiple files. 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2620$as_echo_n "checking for a BSD-compatible install... " >&6; } 2621if test -z "$INSTALL"; then 2622if ${ac_cv_path_install+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 # Account for people who put trailing slashes in PATH elements. 2631case $as_dir/ in #(( 2632 ./ | .// | /[cC]/* | \ 2633 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2634 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2635 /usr/ucb/* ) ;; 2636 *) 2637 # OSF1 and SCO ODT 3.0 have their own names for install. 2638 # Don't use installbsd from OSF since it installs stuff as root 2639 # by default. 2640 for ac_prog in ginstall scoinst install; do 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2643 if test $ac_prog = install && 2644 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2645 # AIX install. It has an incompatible calling convention. 2646 : 2647 elif test $ac_prog = install && 2648 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2649 # program-specific install script used by HP pwplus--don't use. 2650 : 2651 else 2652 rm -rf conftest.one conftest.two conftest.dir 2653 echo one > conftest.one 2654 echo two > conftest.two 2655 mkdir conftest.dir 2656 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2657 test -s conftest.one && test -s conftest.two && 2658 test -s conftest.dir/conftest.one && 2659 test -s conftest.dir/conftest.two 2660 then 2661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2662 break 3 2663 fi 2664 fi 2665 fi 2666 done 2667 done 2668 ;; 2669esac 2670 2671 done 2672IFS=$as_save_IFS 2673 2674rm -rf conftest.one conftest.two conftest.dir 2675 2676fi 2677 if test "${ac_cv_path_install+set}" = set; then 2678 INSTALL=$ac_cv_path_install 2679 else 2680 # As a last resort, use the slow shell script. Don't cache a 2681 # value for INSTALL within a source directory, because that will 2682 # break other packages using the cache if that directory is 2683 # removed, or if the value is a relative name. 2684 INSTALL=$ac_install_sh 2685 fi 2686fi 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2688$as_echo "$INSTALL" >&6; } 2689 2690# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2691# It thinks the first close brace ends the variable substitution. 2692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2693 2694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2695 2696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2697 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2699$as_echo_n "checking whether build environment is sane... " >&6; } 2700# Reject unsafe characters in $srcdir or the absolute working directory 2701# name. Accept space and tab only in the latter. 2702am_lf=' 2703' 2704case `pwd` in 2705 *[\\\"\#\$\&\'\`$am_lf]*) 2706 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2707esac 2708case $srcdir in 2709 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2710 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2711esac 2712 2713# Do 'set' in a subshell so we don't clobber the current shell's 2714# arguments. Must try -L first in case configure is actually a 2715# symlink; some systems play weird games with the mod time of symlinks 2716# (eg FreeBSD returns the mod time of the symlink's containing 2717# directory). 2718if ( 2719 am_has_slept=no 2720 for am_try in 1 2; do 2721 echo "timestamp, slept: $am_has_slept" > conftest.file 2722 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2723 if test "$*" = "X"; then 2724 # -L didn't work. 2725 set X `ls -t "$srcdir/configure" conftest.file` 2726 fi 2727 if test "$*" != "X $srcdir/configure conftest.file" \ 2728 && test "$*" != "X conftest.file $srcdir/configure"; then 2729 2730 # If neither matched, then we have a broken ls. This can happen 2731 # if, for instance, CONFIG_SHELL is bash and it inherits a 2732 # broken ls alias from the environment. This has actually 2733 # happened. Such a system could not be considered "sane". 2734 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2735 alias in your environment" "$LINENO" 5 2736 fi 2737 if test "$2" = conftest.file || test $am_try -eq 2; then 2738 break 2739 fi 2740 # Just in case. 2741 sleep 1 2742 am_has_slept=yes 2743 done 2744 test "$2" = conftest.file 2745 ) 2746then 2747 # Ok. 2748 : 2749else 2750 as_fn_error $? "newly created file is older than distributed files! 2751Check your system clock" "$LINENO" 5 2752fi 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2754$as_echo "yes" >&6; } 2755# If we didn't sleep, we still need to ensure time stamps of config.status and 2756# generated files are strictly newer. 2757am_sleep_pid= 2758if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2759 ( sleep 1 ) & 2760 am_sleep_pid=$! 2761fi 2762 2763rm -f conftest.file 2764 2765test "$program_prefix" != NONE && 2766 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2767# Use a double $ so make ignores it. 2768test "$program_suffix" != NONE && 2769 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2770# Double any \ or $. 2771# By default was `s,x,x', remove it if useless. 2772ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2773program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2774 2775# Expand $ac_aux_dir to an absolute path. 2776am_aux_dir=`cd "$ac_aux_dir" && pwd` 2777 2778if test x"${MISSING+set}" != xset; then 2779 case $am_aux_dir in 2780 *\ * | *\ *) 2781 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2782 *) 2783 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2784 esac 2785fi 2786# Use eval to expand $SHELL 2787if eval "$MISSING --is-lightweight"; then 2788 am_missing_run="$MISSING " 2789else 2790 am_missing_run= 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2792$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2793fi 2794 2795if test x"${install_sh+set}" != xset; then 2796 case $am_aux_dir in 2797 *\ * | *\ *) 2798 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2799 *) 2800 install_sh="\${SHELL} $am_aux_dir/install-sh" 2801 esac 2802fi 2803 2804# Installed binaries are usually stripped using 'strip' when the user 2805# run "make install-strip". However 'strip' might not be the right 2806# tool to use in cross-compilation environments, therefore Automake 2807# will honor the 'STRIP' environment variable to overrule this program. 2808if test "$cross_compiling" != no; then 2809 if test -n "$ac_tool_prefix"; then 2810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2811set dummy ${ac_tool_prefix}strip; ac_word=$2 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813$as_echo_n "checking for $ac_word... " >&6; } 2814if ${ac_cv_prog_STRIP+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 if test -n "$STRIP"; then 2818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2819else 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 test -z "$as_dir" && as_dir=. 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2827 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2829 break 2 2830 fi 2831done 2832 done 2833IFS=$as_save_IFS 2834 2835fi 2836fi 2837STRIP=$ac_cv_prog_STRIP 2838if test -n "$STRIP"; then 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2840$as_echo "$STRIP" >&6; } 2841else 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2843$as_echo "no" >&6; } 2844fi 2845 2846 2847fi 2848if test -z "$ac_cv_prog_STRIP"; then 2849 ac_ct_STRIP=$STRIP 2850 # Extract the first word of "strip", so it can be a program name with args. 2851set dummy strip; ac_word=$2 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2853$as_echo_n "checking for $ac_word... " >&6; } 2854if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2855 $as_echo_n "(cached) " >&6 2856else 2857 if test -n "$ac_ct_STRIP"; then 2858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2859else 2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861for as_dir in $PATH 2862do 2863 IFS=$as_save_IFS 2864 test -z "$as_dir" && as_dir=. 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2867 ac_cv_prog_ac_ct_STRIP="strip" 2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2869 break 2 2870 fi 2871done 2872 done 2873IFS=$as_save_IFS 2874 2875fi 2876fi 2877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2878if test -n "$ac_ct_STRIP"; then 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2880$as_echo "$ac_ct_STRIP" >&6; } 2881else 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2883$as_echo "no" >&6; } 2884fi 2885 2886 if test "x$ac_ct_STRIP" = x; then 2887 STRIP=":" 2888 else 2889 case $cross_compiling:$ac_tool_warned in 2890yes:) 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2893ac_tool_warned=yes ;; 2894esac 2895 STRIP=$ac_ct_STRIP 2896 fi 2897else 2898 STRIP="$ac_cv_prog_STRIP" 2899fi 2900 2901fi 2902INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2903 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2905$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2906if test -z "$MKDIR_P"; then 2907 if ${ac_cv_path_mkdir+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_prog in mkdir gmkdir; do 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2918 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2919 'mkdir (GNU coreutils) '* | \ 2920 'mkdir (coreutils) '* | \ 2921 'mkdir (fileutils) '4.1*) 2922 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2923 break 3;; 2924 esac 2925 done 2926 done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931 2932 test -d ./--version && rmdir ./--version 2933 if test "${ac_cv_path_mkdir+set}" = set; then 2934 MKDIR_P="$ac_cv_path_mkdir -p" 2935 else 2936 # As a last resort, use the slow shell script. Don't cache a 2937 # value for MKDIR_P within a source directory, because that will 2938 # break other packages using the cache if that directory is 2939 # removed, or if the value is a relative name. 2940 MKDIR_P="$ac_install_sh -d" 2941 fi 2942fi 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2944$as_echo "$MKDIR_P" >&6; } 2945 2946for ac_prog in gawk mawk nawk awk 2947do 2948 # Extract the first word of "$ac_prog", so it can be a program name with args. 2949set dummy $ac_prog; ac_word=$2 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951$as_echo_n "checking for $ac_word... " >&6; } 2952if ${ac_cv_prog_AWK+:} false; then : 2953 $as_echo_n "(cached) " >&6 2954else 2955 if test -n "$AWK"; then 2956 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2957else 2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2965 ac_cv_prog_AWK="$ac_prog" 2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969done 2970 done 2971IFS=$as_save_IFS 2972 2973fi 2974fi 2975AWK=$ac_cv_prog_AWK 2976if test -n "$AWK"; then 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2978$as_echo "$AWK" >&6; } 2979else 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981$as_echo "no" >&6; } 2982fi 2983 2984 2985 test -n "$AWK" && break 2986done 2987 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2989$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2990set x ${MAKE-make} 2991ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2992if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2993 $as_echo_n "(cached) " >&6 2994else 2995 cat >conftest.make <<\_ACEOF 2996SHELL = /bin/sh 2997all: 2998 @echo '@@@%%%=$(MAKE)=@@@%%%' 2999_ACEOF 3000# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3001case `${MAKE-make} -f conftest.make 2>/dev/null` in 3002 *@@@%%%=?*=@@@%%%*) 3003 eval ac_cv_prog_make_${ac_make}_set=yes;; 3004 *) 3005 eval ac_cv_prog_make_${ac_make}_set=no;; 3006esac 3007rm -f conftest.make 3008fi 3009if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3011$as_echo "yes" >&6; } 3012 SET_MAKE= 3013else 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015$as_echo "no" >&6; } 3016 SET_MAKE="MAKE=${MAKE-make}" 3017fi 3018 3019rm -rf .tst 2>/dev/null 3020mkdir .tst 2>/dev/null 3021if test -d .tst; then 3022 am__leading_dot=. 3023else 3024 am__leading_dot=_ 3025fi 3026rmdir .tst 2>/dev/null 3027 3028# Check whether --enable-silent-rules was given. 3029if test "${enable_silent_rules+set}" = set; then : 3030 enableval=$enable_silent_rules; 3031fi 3032 3033case $enable_silent_rules in # ((( 3034 yes) AM_DEFAULT_VERBOSITY=0;; 3035 no) AM_DEFAULT_VERBOSITY=1;; 3036 *) AM_DEFAULT_VERBOSITY=1;; 3037esac 3038am_make=${MAKE-make} 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3040$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3041if ${am_cv_make_support_nested_variables+:} false; then : 3042 $as_echo_n "(cached) " >&6 3043else 3044 if $as_echo 'TRUE=$(BAR$(V)) 3045BAR0=false 3046BAR1=true 3047V=1 3048am__doit: 3049 @$(TRUE) 3050.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3051 am_cv_make_support_nested_variables=yes 3052else 3053 am_cv_make_support_nested_variables=no 3054fi 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3057$as_echo "$am_cv_make_support_nested_variables" >&6; } 3058if test $am_cv_make_support_nested_variables = yes; then 3059 AM_V='$(V)' 3060 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3061else 3062 AM_V=$AM_DEFAULT_VERBOSITY 3063 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3064fi 3065AM_BACKSLASH='\' 3066 3067if test "`cd $srcdir && pwd`" != "`pwd`"; then 3068 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3069 # is not polluted with repeated "-I." 3070 am__isrc=' -I$(srcdir)' 3071 # test to see if srcdir already configured 3072 if test -f $srcdir/config.status; then 3073 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3074 fi 3075fi 3076 3077# test whether we have cygpath 3078if test -z "$CYGPATH_W"; then 3079 if (cygpath --version) >/dev/null 2>/dev/null; then 3080 CYGPATH_W='cygpath -w' 3081 else 3082 CYGPATH_W=echo 3083 fi 3084fi 3085 3086 3087# Define the identity of the package. 3088 PACKAGE='modsecurity' 3089 VERSION='2.9' 3090 3091 3092cat >>confdefs.h <<_ACEOF 3093#define PACKAGE "$PACKAGE" 3094_ACEOF 3095 3096 3097cat >>confdefs.h <<_ACEOF 3098#define VERSION "$VERSION" 3099_ACEOF 3100 3101# Some tools Automake needs. 3102 3103ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3104 3105 3106AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3107 3108 3109AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3110 3111 3112AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3113 3114 3115MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3116 3117# For better backward compatibility. To be removed once Automake 1.9.x 3118# dies out for good. For more background, see: 3119# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3120# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3121mkdir_p='$(MKDIR_P)' 3122 3123# We need awk for the "check" target (and possibly the TAP driver). The 3124# system "awk" is bad on some platforms. 3125# Always define AMTAR for backward compatibility. Yes, it's still used 3126# in the wild :-( We should find a proper way to deprecate it ... 3127AMTAR='$${TAR-tar}' 3128 3129 3130# We'll loop over all known methods to create a tar archive until one works. 3131_am_tools='gnutar pax cpio none' 3132 3133am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3134 3135 3136 3137 3138 3139 3140# POSIX will say in a future version that running "rm -f" with no argument 3141# is OK; and we want to be able to make that assumption in our Makefile 3142# recipes. So use an aggressive probe to check that the usage we want is 3143# actually supported "in the wild" to an acceptable degree. 3144# See automake bug#10828. 3145# To make any issue more visible, cause the running configure to be aborted 3146# by default if the 'rm' program in use doesn't match our expectations; the 3147# user can still override this though. 3148if rm -f && rm -fr && rm -rf; then : OK; else 3149 cat >&2 <<'END' 3150Oops! 3151 3152Your 'rm' program seems unable to run without file operands specified 3153on the command line, even when the '-f' option is present. This is contrary 3154to the behaviour of most rm programs out there, and not conforming with 3155the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3156 3157Please tell bug-automake@gnu.org about your system, including the value 3158of your $PATH and any error possibly output before this message. This 3159can help us improve future automake versions. 3160 3161END 3162 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3163 echo 'Configuration will proceed anyway, since you have set the' >&2 3164 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3165 echo >&2 3166 else 3167 cat >&2 <<'END' 3168Aborting the configuration process, to ensure you take notice of the issue. 3169 3170You can download and install GNU coreutils to get an 'rm' implementation 3171that behaves properly: <http://www.gnu.org/software/coreutils/>. 3172 3173If you want to complete the configuration process using your problematic 3174'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3175to "yes", and re-run configure. 3176 3177END 3178 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3179 fi 3180fi 3181 3182DEPDIR="${am__leading_dot}deps" 3183 3184ac_config_commands="$ac_config_commands depfiles" 3185 3186 3187am_make=${MAKE-make} 3188cat > confinc << 'END' 3189am__doit: 3190 @echo this is the am__doit target 3191.PHONY: am__doit 3192END 3193# If we don't find an include directive, just comment out the code. 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3195$as_echo_n "checking for style of include used by $am_make... " >&6; } 3196am__include="#" 3197am__quote= 3198_am_result=none 3199# First try GNU make style include. 3200echo "include confinc" > confmf 3201# Ignore all kinds of additional output from 'make'. 3202case `$am_make -s -f confmf 2> /dev/null` in #( 3203*the\ am__doit\ target*) 3204 am__include=include 3205 am__quote= 3206 _am_result=GNU 3207 ;; 3208esac 3209# Now try BSD make style include. 3210if test "$am__include" = "#"; then 3211 echo '.include "confinc"' > confmf 3212 case `$am_make -s -f confmf 2> /dev/null` in #( 3213 *the\ am__doit\ target*) 3214 am__include=.include 3215 am__quote="\"" 3216 _am_result=BSD 3217 ;; 3218 esac 3219fi 3220 3221 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3223$as_echo "$_am_result" >&6; } 3224rm -f confinc confmf 3225 3226# Check whether --enable-dependency-tracking was given. 3227if test "${enable_dependency_tracking+set}" = set; then : 3228 enableval=$enable_dependency_tracking; 3229fi 3230 3231if test "x$enable_dependency_tracking" != xno; then 3232 am_depcomp="$ac_aux_dir/depcomp" 3233 AMDEPBACKSLASH='\' 3234 am__nodep='_no' 3235fi 3236 if test "x$enable_dependency_tracking" != xno; then 3237 AMDEP_TRUE= 3238 AMDEP_FALSE='#' 3239else 3240 AMDEP_TRUE='#' 3241 AMDEP_FALSE= 3242fi 3243 3244 3245ac_ext=c 3246ac_cpp='$CPP $CPPFLAGS' 3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3249ac_compiler_gnu=$ac_cv_c_compiler_gnu 3250if test -n "$ac_tool_prefix"; then 3251 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3252set dummy ${ac_tool_prefix}gcc; ac_word=$2 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3254$as_echo_n "checking for $ac_word... " >&6; } 3255if ${ac_cv_prog_CC+:} false; then : 3256 $as_echo_n "(cached) " >&6 3257else 3258 if test -n "$CC"; then 3259 ac_cv_prog_CC="$CC" # Let the user override the test. 3260else 3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3262for as_dir in $PATH 3263do 3264 IFS=$as_save_IFS 3265 test -z "$as_dir" && as_dir=. 3266 for ac_exec_ext in '' $ac_executable_extensions; do 3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3268 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3270 break 2 3271 fi 3272done 3273 done 3274IFS=$as_save_IFS 3275 3276fi 3277fi 3278CC=$ac_cv_prog_CC 3279if test -n "$CC"; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3281$as_echo "$CC" >&6; } 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285fi 3286 3287 3288fi 3289if test -z "$ac_cv_prog_CC"; then 3290 ac_ct_CC=$CC 3291 # Extract the first word of "gcc", so it can be a program name with args. 3292set dummy gcc; ac_word=$2 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3294$as_echo_n "checking for $ac_word... " >&6; } 3295if ${ac_cv_prog_ac_ct_CC+:} false; then : 3296 $as_echo_n "(cached) " >&6 3297else 3298 if test -n "$ac_ct_CC"; then 3299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3300else 3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3302for as_dir in $PATH 3303do 3304 IFS=$as_save_IFS 3305 test -z "$as_dir" && as_dir=. 3306 for ac_exec_ext in '' $ac_executable_extensions; do 3307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3308 ac_cv_prog_ac_ct_CC="gcc" 3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3310 break 2 3311 fi 3312done 3313 done 3314IFS=$as_save_IFS 3315 3316fi 3317fi 3318ac_ct_CC=$ac_cv_prog_ac_ct_CC 3319if test -n "$ac_ct_CC"; then 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3321$as_echo "$ac_ct_CC" >&6; } 3322else 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3324$as_echo "no" >&6; } 3325fi 3326 3327 if test "x$ac_ct_CC" = x; then 3328 CC="" 3329 else 3330 case $cross_compiling:$ac_tool_warned in 3331yes:) 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3334ac_tool_warned=yes ;; 3335esac 3336 CC=$ac_ct_CC 3337 fi 3338else 3339 CC="$ac_cv_prog_CC" 3340fi 3341 3342if test -z "$CC"; then 3343 if test -n "$ac_tool_prefix"; then 3344 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3345set dummy ${ac_tool_prefix}cc; ac_word=$2 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3347$as_echo_n "checking for $ac_word... " >&6; } 3348if ${ac_cv_prog_CC+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 if test -n "$CC"; then 3352 ac_cv_prog_CC="$CC" # Let the user override the test. 3353else 3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3355for as_dir in $PATH 3356do 3357 IFS=$as_save_IFS 3358 test -z "$as_dir" && as_dir=. 3359 for ac_exec_ext in '' $ac_executable_extensions; do 3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3361 ac_cv_prog_CC="${ac_tool_prefix}cc" 3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3363 break 2 3364 fi 3365done 3366 done 3367IFS=$as_save_IFS 3368 3369fi 3370fi 3371CC=$ac_cv_prog_CC 3372if test -n "$CC"; then 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3374$as_echo "$CC" >&6; } 3375else 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3377$as_echo "no" >&6; } 3378fi 3379 3380 3381 fi 3382fi 3383if test -z "$CC"; then 3384 # Extract the first word of "cc", so it can be a program name with args. 3385set dummy cc; ac_word=$2 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3387$as_echo_n "checking for $ac_word... " >&6; } 3388if ${ac_cv_prog_CC+:} false; then : 3389 $as_echo_n "(cached) " >&6 3390else 3391 if test -n "$CC"; then 3392 ac_cv_prog_CC="$CC" # Let the user override the test. 3393else 3394 ac_prog_rejected=no 3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3396for as_dir in $PATH 3397do 3398 IFS=$as_save_IFS 3399 test -z "$as_dir" && as_dir=. 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3402 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3403 ac_prog_rejected=yes 3404 continue 3405 fi 3406 ac_cv_prog_CC="cc" 3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3408 break 2 3409 fi 3410done 3411 done 3412IFS=$as_save_IFS 3413 3414if test $ac_prog_rejected = yes; then 3415 # We found a bogon in the path, so make sure we never use it. 3416 set dummy $ac_cv_prog_CC 3417 shift 3418 if test $# != 0; then 3419 # We chose a different compiler from the bogus one. 3420 # However, it has the same basename, so the bogon will be chosen 3421 # first if we set CC to just the basename; use the full file name. 3422 shift 3423 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3424 fi 3425fi 3426fi 3427fi 3428CC=$ac_cv_prog_CC 3429if test -n "$CC"; then 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3431$as_echo "$CC" >&6; } 3432else 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3434$as_echo "no" >&6; } 3435fi 3436 3437 3438fi 3439if test -z "$CC"; then 3440 if test -n "$ac_tool_prefix"; then 3441 for ac_prog in cl.exe 3442 do 3443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3444set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3446$as_echo_n "checking for $ac_word... " >&6; } 3447if ${ac_cv_prog_CC+:} false; then : 3448 $as_echo_n "(cached) " >&6 3449else 3450 if test -n "$CC"; then 3451 ac_cv_prog_CC="$CC" # Let the user override the test. 3452else 3453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3454for as_dir in $PATH 3455do 3456 IFS=$as_save_IFS 3457 test -z "$as_dir" && as_dir=. 3458 for ac_exec_ext in '' $ac_executable_extensions; do 3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3460 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3462 break 2 3463 fi 3464done 3465 done 3466IFS=$as_save_IFS 3467 3468fi 3469fi 3470CC=$ac_cv_prog_CC 3471if test -n "$CC"; then 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3473$as_echo "$CC" >&6; } 3474else 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476$as_echo "no" >&6; } 3477fi 3478 3479 3480 test -n "$CC" && break 3481 done 3482fi 3483if test -z "$CC"; then 3484 ac_ct_CC=$CC 3485 for ac_prog in cl.exe 3486do 3487 # Extract the first word of "$ac_prog", so it can be a program name with args. 3488set dummy $ac_prog; ac_word=$2 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3490$as_echo_n "checking for $ac_word... " >&6; } 3491if ${ac_cv_prog_ac_ct_CC+:} false; then : 3492 $as_echo_n "(cached) " >&6 3493else 3494 if test -n "$ac_ct_CC"; then 3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3496else 3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498for as_dir in $PATH 3499do 3500 IFS=$as_save_IFS 3501 test -z "$as_dir" && as_dir=. 3502 for ac_exec_ext in '' $ac_executable_extensions; do 3503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3504 ac_cv_prog_ac_ct_CC="$ac_prog" 3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3506 break 2 3507 fi 3508done 3509 done 3510IFS=$as_save_IFS 3511 3512fi 3513fi 3514ac_ct_CC=$ac_cv_prog_ac_ct_CC 3515if test -n "$ac_ct_CC"; then 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3517$as_echo "$ac_ct_CC" >&6; } 3518else 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3520$as_echo "no" >&6; } 3521fi 3522 3523 3524 test -n "$ac_ct_CC" && break 3525done 3526 3527 if test "x$ac_ct_CC" = x; then 3528 CC="" 3529 else 3530 case $cross_compiling:$ac_tool_warned in 3531yes:) 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3534ac_tool_warned=yes ;; 3535esac 3536 CC=$ac_ct_CC 3537 fi 3538fi 3539 3540fi 3541 3542 3543test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3545as_fn_error $? "no acceptable C compiler found in \$PATH 3546See \`config.log' for more details" "$LINENO" 5; } 3547 3548# Provide some information about the compiler. 3549$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3550set X $ac_compile 3551ac_compiler=$2 3552for ac_option in --version -v -V -qversion; do 3553 { { ac_try="$ac_compiler $ac_option >&5" 3554case "(($ac_try" in 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *) ac_try_echo=$ac_try;; 3557esac 3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3559$as_echo "$ac_try_echo"; } >&5 3560 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3561 ac_status=$? 3562 if test -s conftest.err; then 3563 sed '10a\ 3564... rest of stderr output deleted ... 3565 10q' conftest.err >conftest.er1 3566 cat conftest.er1 >&5 3567 fi 3568 rm -f conftest.er1 conftest.err 3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3570 test $ac_status = 0; } 3571done 3572 3573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574/* end confdefs.h. */ 3575 3576int 3577main () 3578{ 3579 3580 ; 3581 return 0; 3582} 3583_ACEOF 3584ac_clean_files_save=$ac_clean_files 3585ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3586# Try to create an executable without -o first, disregard a.out. 3587# It will help us diagnose broken compilers, and finding out an intuition 3588# of exeext. 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3590$as_echo_n "checking whether the C compiler works... " >&6; } 3591ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3592 3593# The possible output files: 3594ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3595 3596ac_rmfiles= 3597for ac_file in $ac_files 3598do 3599 case $ac_file in 3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3601 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3602 esac 3603done 3604rm -f $ac_rmfiles 3605 3606if { { ac_try="$ac_link_default" 3607case "(($ac_try" in 3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3609 *) ac_try_echo=$ac_try;; 3610esac 3611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3612$as_echo "$ac_try_echo"; } >&5 3613 (eval "$ac_link_default") 2>&5 3614 ac_status=$? 3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3616 test $ac_status = 0; }; then : 3617 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3618# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3619# in a Makefile. We should not override ac_cv_exeext if it was cached, 3620# so that the user can short-circuit this test for compilers unknown to 3621# Autoconf. 3622for ac_file in $ac_files '' 3623do 3624 test -f "$ac_file" || continue 3625 case $ac_file in 3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3627 ;; 3628 [ab].out ) 3629 # We found the default executable, but exeext='' is most 3630 # certainly right. 3631 break;; 3632 *.* ) 3633 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3634 then :; else 3635 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3636 fi 3637 # We set ac_cv_exeext here because the later test for it is not 3638 # safe: cross compilers may not add the suffix if given an `-o' 3639 # argument, so we may need to know it at that point already. 3640 # Even if this section looks crufty: it has the advantage of 3641 # actually working. 3642 break;; 3643 * ) 3644 break;; 3645 esac 3646done 3647test "$ac_cv_exeext" = no && ac_cv_exeext= 3648 3649else 3650 ac_file='' 3651fi 3652if test -z "$ac_file"; then : 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3654$as_echo "no" >&6; } 3655$as_echo "$as_me: failed program was:" >&5 3656sed 's/^/| /' conftest.$ac_ext >&5 3657 3658{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3660as_fn_error 77 "C compiler cannot create executables 3661See \`config.log' for more details" "$LINENO" 5; } 3662else 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3664$as_echo "yes" >&6; } 3665fi 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3667$as_echo_n "checking for C compiler default output file name... " >&6; } 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3669$as_echo "$ac_file" >&6; } 3670ac_exeext=$ac_cv_exeext 3671 3672rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3673ac_clean_files=$ac_clean_files_save 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3675$as_echo_n "checking for suffix of executables... " >&6; } 3676if { { ac_try="$ac_link" 3677case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3682$as_echo "$ac_try_echo"; } >&5 3683 (eval "$ac_link") 2>&5 3684 ac_status=$? 3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3686 test $ac_status = 0; }; then : 3687 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3688# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3689# work properly (i.e., refer to `conftest.exe'), while it won't with 3690# `rm'. 3691for ac_file in conftest.exe conftest conftest.*; do 3692 test -f "$ac_file" || continue 3693 case $ac_file in 3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3695 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3696 break;; 3697 * ) break;; 3698 esac 3699done 3700else 3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3703as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3704See \`config.log' for more details" "$LINENO" 5; } 3705fi 3706rm -f conftest conftest$ac_cv_exeext 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3708$as_echo "$ac_cv_exeext" >&6; } 3709 3710rm -f conftest.$ac_ext 3711EXEEXT=$ac_cv_exeext 3712ac_exeext=$EXEEXT 3713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715#include <stdio.h> 3716int 3717main () 3718{ 3719FILE *f = fopen ("conftest.out", "w"); 3720 return ferror (f) || fclose (f) != 0; 3721 3722 ; 3723 return 0; 3724} 3725_ACEOF 3726ac_clean_files="$ac_clean_files conftest.out" 3727# Check that the compiler produces executables we can run. If not, either 3728# the compiler is broken, or we cross compile. 3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3730$as_echo_n "checking whether we are cross compiling... " >&6; } 3731if test "$cross_compiling" != yes; then 3732 { { ac_try="$ac_link" 3733case "(($ac_try" in 3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3735 *) ac_try_echo=$ac_try;; 3736esac 3737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3738$as_echo "$ac_try_echo"; } >&5 3739 (eval "$ac_link") 2>&5 3740 ac_status=$? 3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3742 test $ac_status = 0; } 3743 if { ac_try='./conftest$ac_cv_exeext' 3744 { { case "(($ac_try" in 3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3746 *) ac_try_echo=$ac_try;; 3747esac 3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3749$as_echo "$ac_try_echo"; } >&5 3750 (eval "$ac_try") 2>&5 3751 ac_status=$? 3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3753 test $ac_status = 0; }; }; then 3754 cross_compiling=no 3755 else 3756 if test "$cross_compiling" = maybe; then 3757 cross_compiling=yes 3758 else 3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3761as_fn_error $? "cannot run C compiled programs. 3762If you meant to cross compile, use \`--host'. 3763See \`config.log' for more details" "$LINENO" 5; } 3764 fi 3765 fi 3766fi 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3768$as_echo "$cross_compiling" >&6; } 3769 3770rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3771ac_clean_files=$ac_clean_files_save 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3773$as_echo_n "checking for suffix of object files... " >&6; } 3774if ${ac_cv_objext+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3778/* end confdefs.h. */ 3779 3780int 3781main () 3782{ 3783 3784 ; 3785 return 0; 3786} 3787_ACEOF 3788rm -f conftest.o conftest.obj 3789if { { ac_try="$ac_compile" 3790case "(($ac_try" in 3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3792 *) ac_try_echo=$ac_try;; 3793esac 3794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3795$as_echo "$ac_try_echo"; } >&5 3796 (eval "$ac_compile") 2>&5 3797 ac_status=$? 3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3799 test $ac_status = 0; }; then : 3800 for ac_file in conftest.o conftest.obj conftest.*; do 3801 test -f "$ac_file" || continue; 3802 case $ac_file in 3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3805 break;; 3806 esac 3807done 3808else 3809 $as_echo "$as_me: failed program was:" >&5 3810sed 's/^/| /' conftest.$ac_ext >&5 3811 3812{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3814as_fn_error $? "cannot compute suffix of object files: cannot compile 3815See \`config.log' for more details" "$LINENO" 5; } 3816fi 3817rm -f conftest.$ac_cv_objext conftest.$ac_ext 3818fi 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3820$as_echo "$ac_cv_objext" >&6; } 3821OBJEXT=$ac_cv_objext 3822ac_objext=$OBJEXT 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3824$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3825if ${ac_cv_c_compiler_gnu+:} false; then : 3826 $as_echo_n "(cached) " >&6 3827else 3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3829/* end confdefs.h. */ 3830 3831int 3832main () 3833{ 3834#ifndef __GNUC__ 3835 choke me 3836#endif 3837 3838 ; 3839 return 0; 3840} 3841_ACEOF 3842if ac_fn_c_try_compile "$LINENO"; then : 3843 ac_compiler_gnu=yes 3844else 3845 ac_compiler_gnu=no 3846fi 3847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3848ac_cv_c_compiler_gnu=$ac_compiler_gnu 3849 3850fi 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3852$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3853if test $ac_compiler_gnu = yes; then 3854 GCC=yes 3855else 3856 GCC= 3857fi 3858ac_test_CFLAGS=${CFLAGS+set} 3859ac_save_CFLAGS=$CFLAGS 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3861$as_echo_n "checking whether $CC accepts -g... " >&6; } 3862if ${ac_cv_prog_cc_g+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 ac_save_c_werror_flag=$ac_c_werror_flag 3866 ac_c_werror_flag=yes 3867 ac_cv_prog_cc_g=no 3868 CFLAGS="-g" 3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3870/* end confdefs.h. */ 3871 3872int 3873main () 3874{ 3875 3876 ; 3877 return 0; 3878} 3879_ACEOF 3880if ac_fn_c_try_compile "$LINENO"; then : 3881 ac_cv_prog_cc_g=yes 3882else 3883 CFLAGS="" 3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886 3887int 3888main () 3889{ 3890 3891 ; 3892 return 0; 3893} 3894_ACEOF 3895if ac_fn_c_try_compile "$LINENO"; then : 3896 3897else 3898 ac_c_werror_flag=$ac_save_c_werror_flag 3899 CFLAGS="-g" 3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3901/* end confdefs.h. */ 3902 3903int 3904main () 3905{ 3906 3907 ; 3908 return 0; 3909} 3910_ACEOF 3911if ac_fn_c_try_compile "$LINENO"; then : 3912 ac_cv_prog_cc_g=yes 3913fi 3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3915fi 3916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3917fi 3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3919 ac_c_werror_flag=$ac_save_c_werror_flag 3920fi 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3922$as_echo "$ac_cv_prog_cc_g" >&6; } 3923if test "$ac_test_CFLAGS" = set; then 3924 CFLAGS=$ac_save_CFLAGS 3925elif test $ac_cv_prog_cc_g = yes; then 3926 if test "$GCC" = yes; then 3927 CFLAGS="-g -O2" 3928 else 3929 CFLAGS="-g" 3930 fi 3931else 3932 if test "$GCC" = yes; then 3933 CFLAGS="-O2" 3934 else 3935 CFLAGS= 3936 fi 3937fi 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3939$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3940if ${ac_cv_prog_cc_c89+:} false; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 ac_cv_prog_cc_c89=no 3944ac_save_CC=$CC 3945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3946/* end confdefs.h. */ 3947#include <stdarg.h> 3948#include <stdio.h> 3949struct stat; 3950/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3951struct buf { int x; }; 3952FILE * (*rcsopen) (struct buf *, struct stat *, int); 3953static char *e (p, i) 3954 char **p; 3955 int i; 3956{ 3957 return p[i]; 3958} 3959static char *f (char * (*g) (char **, int), char **p, ...) 3960{ 3961 char *s; 3962 va_list v; 3963 va_start (v,p); 3964 s = g (p, va_arg (v,int)); 3965 va_end (v); 3966 return s; 3967} 3968 3969/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3970 function prototypes and stuff, but not '\xHH' hex character constants. 3971 These don't provoke an error unfortunately, instead are silently treated 3972 as 'x'. The following induces an error, until -std is added to get 3973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3974 array size at least. It's necessary to write '\x00'==0 to get something 3975 that's true only with -std. */ 3976int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3977 3978/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3979 inside strings and character constants. */ 3980#define FOO(x) 'x' 3981int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3982 3983int test (int i, double x); 3984struct s1 {int (*f) (int a);}; 3985struct s2 {int (*f) (double a);}; 3986int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3987int argc; 3988char **argv; 3989int 3990main () 3991{ 3992return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3993 ; 3994 return 0; 3995} 3996_ACEOF 3997for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3999do 4000 CC="$ac_save_CC $ac_arg" 4001 if ac_fn_c_try_compile "$LINENO"; then : 4002 ac_cv_prog_cc_c89=$ac_arg 4003fi 4004rm -f core conftest.err conftest.$ac_objext 4005 test "x$ac_cv_prog_cc_c89" != "xno" && break 4006done 4007rm -f conftest.$ac_ext 4008CC=$ac_save_CC 4009 4010fi 4011# AC_CACHE_VAL 4012case "x$ac_cv_prog_cc_c89" in 4013 x) 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4015$as_echo "none needed" >&6; } ;; 4016 xno) 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4018$as_echo "unsupported" >&6; } ;; 4019 *) 4020 CC="$CC $ac_cv_prog_cc_c89" 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4022$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4023esac 4024if test "x$ac_cv_prog_cc_c89" != xno; then : 4025 4026fi 4027 4028ac_ext=c 4029ac_cpp='$CPP $CPPFLAGS' 4030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4032ac_compiler_gnu=$ac_cv_c_compiler_gnu 4033 4034ac_ext=c 4035ac_cpp='$CPP $CPPFLAGS' 4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4038ac_compiler_gnu=$ac_cv_c_compiler_gnu 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4040$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4041if ${am_cv_prog_cc_c_o+:} false; then : 4042 $as_echo_n "(cached) " >&6 4043else 4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045/* end confdefs.h. */ 4046 4047int 4048main () 4049{ 4050 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055 # Make sure it works both with $CC and with simple cc. 4056 # Following AC_PROG_CC_C_O, we do the test twice because some 4057 # compilers refuse to overwrite an existing .o file with -o, 4058 # though they will create one. 4059 am_cv_prog_cc_c_o=yes 4060 for am_i in 1 2; do 4061 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4062 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4063 ac_status=$? 4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4065 (exit $ac_status); } \ 4066 && test -f conftest2.$ac_objext; then 4067 : OK 4068 else 4069 am_cv_prog_cc_c_o=no 4070 break 4071 fi 4072 done 4073 rm -f core conftest* 4074 unset am_i 4075fi 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4077$as_echo "$am_cv_prog_cc_c_o" >&6; } 4078if test "$am_cv_prog_cc_c_o" != yes; then 4079 # Losing compiler, so override with the script. 4080 # FIXME: It is wrong to rewrite CC. 4081 # But if we don't then we get into trouble of one sort or another. 4082 # A longer-term fix would be to have automake use am__CC in this case, 4083 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4084 CC="$am_aux_dir/compile $CC" 4085fi 4086ac_ext=c 4087ac_cpp='$CPP $CPPFLAGS' 4088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4090ac_compiler_gnu=$ac_cv_c_compiler_gnu 4091 4092 4093depcc="$CC" am_compiler_list= 4094 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4096$as_echo_n "checking dependency style of $depcc... " >&6; } 4097if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4101 # We make a subdir and do the tests there. Otherwise we can end up 4102 # making bogus files that we don't know about and never remove. For 4103 # instance it was reported that on HP-UX the gcc test will end up 4104 # making a dummy file named 'D' -- because '-MD' means "put the output 4105 # in D". 4106 rm -rf conftest.dir 4107 mkdir conftest.dir 4108 # Copy depcomp to subdir because otherwise we won't find it if we're 4109 # using a relative directory. 4110 cp "$am_depcomp" conftest.dir 4111 cd conftest.dir 4112 # We will build objects and dependencies in a subdirectory because 4113 # it helps to detect inapplicable dependency modes. For instance 4114 # both Tru64's cc and ICC support -MD to output dependencies as a 4115 # side effect of compilation, but ICC will put the dependencies in 4116 # the current directory while Tru64 will put them in the object 4117 # directory. 4118 mkdir sub 4119 4120 am_cv_CC_dependencies_compiler_type=none 4121 if test "$am_compiler_list" = ""; then 4122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4123 fi 4124 am__universal=false 4125 case " $depcc " in #( 4126 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4127 esac 4128 4129 for depmode in $am_compiler_list; do 4130 # Setup a source with many dependencies, because some compilers 4131 # like to wrap large dependency lists on column 80 (with \), and 4132 # we should not choose a depcomp mode which is confused by this. 4133 # 4134 # We need to recreate these files for each test, as the compiler may 4135 # overwrite some of them when testing with obscure command lines. 4136 # This happens at least with the AIX C compiler. 4137 : > sub/conftest.c 4138 for i in 1 2 3 4 5 6; do 4139 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4140 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4141 # Solaris 10 /bin/sh. 4142 echo '/* dummy */' > sub/conftst$i.h 4143 done 4144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4145 4146 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4147 # mode. It turns out that the SunPro C++ compiler does not properly 4148 # handle '-M -o', and we need to detect this. Also, some Intel 4149 # versions had trouble with output in subdirs. 4150 am__obj=sub/conftest.${OBJEXT-o} 4151 am__minus_obj="-o $am__obj" 4152 case $depmode in 4153 gcc) 4154 # This depmode causes a compiler race in universal mode. 4155 test "$am__universal" = false || continue 4156 ;; 4157 nosideeffect) 4158 # After this tag, mechanisms are not by side-effect, so they'll 4159 # only be used when explicitly requested. 4160 if test "x$enable_dependency_tracking" = xyes; then 4161 continue 4162 else 4163 break 4164 fi 4165 ;; 4166 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4167 # This compiler won't grok '-c -o', but also, the minuso test has 4168 # not run yet. These depmodes are late enough in the game, and 4169 # so weak that their functioning should not be impacted. 4170 am__obj=conftest.${OBJEXT-o} 4171 am__minus_obj= 4172 ;; 4173 none) break ;; 4174 esac 4175 if depmode=$depmode \ 4176 source=sub/conftest.c object=$am__obj \ 4177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4178 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4179 >/dev/null 2>conftest.err && 4180 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4182 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4184 # icc doesn't choke on unknown options, it will just issue warnings 4185 # or remarks (even with -Werror). So we grep stderr for any message 4186 # that says an option was ignored or not supported. 4187 # When given -MP, icc 7.0 and 7.1 complain thusly: 4188 # icc: Command line warning: ignoring option '-M'; no argument required 4189 # The diagnosis changed in icc 8.0: 4190 # icc: Command line remark: option '-MP' not supported 4191 if (grep 'ignoring option' conftest.err || 4192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4193 am_cv_CC_dependencies_compiler_type=$depmode 4194 break 4195 fi 4196 fi 4197 done 4198 4199 cd .. 4200 rm -rf conftest.dir 4201else 4202 am_cv_CC_dependencies_compiler_type=none 4203fi 4204 4205fi 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4207$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4208CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4209 4210 if 4211 test "x$enable_dependency_tracking" != xno \ 4212 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4213 am__fastdepCC_TRUE= 4214 am__fastdepCC_FALSE='#' 4215else 4216 am__fastdepCC_TRUE='#' 4217 am__fastdepCC_FALSE= 4218fi 4219 4220 4221 4222if test -n "$ac_tool_prefix"; then 4223 for ac_prog in ar lib "link -lib" 4224 do 4225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4226set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4228$as_echo_n "checking for $ac_word... " >&6; } 4229if ${ac_cv_prog_AR+:} false; then : 4230 $as_echo_n "(cached) " >&6 4231else 4232 if test -n "$AR"; then 4233 ac_cv_prog_AR="$AR" # Let the user override the test. 4234else 4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4236for as_dir in $PATH 4237do 4238 IFS=$as_save_IFS 4239 test -z "$as_dir" && as_dir=. 4240 for ac_exec_ext in '' $ac_executable_extensions; do 4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4242 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4244 break 2 4245 fi 4246done 4247 done 4248IFS=$as_save_IFS 4249 4250fi 4251fi 4252AR=$ac_cv_prog_AR 4253if test -n "$AR"; then 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4255$as_echo "$AR" >&6; } 4256else 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4258$as_echo "no" >&6; } 4259fi 4260 4261 4262 test -n "$AR" && break 4263 done 4264fi 4265if test -z "$AR"; then 4266 ac_ct_AR=$AR 4267 for ac_prog in ar lib "link -lib" 4268do 4269 # Extract the first word of "$ac_prog", so it can be a program name with args. 4270set dummy $ac_prog; ac_word=$2 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4272$as_echo_n "checking for $ac_word... " >&6; } 4273if ${ac_cv_prog_ac_ct_AR+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 if test -n "$ac_ct_AR"; then 4277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4278else 4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4280for as_dir in $PATH 4281do 4282 IFS=$as_save_IFS 4283 test -z "$as_dir" && as_dir=. 4284 for ac_exec_ext in '' $ac_executable_extensions; do 4285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4286 ac_cv_prog_ac_ct_AR="$ac_prog" 4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4288 break 2 4289 fi 4290done 4291 done 4292IFS=$as_save_IFS 4293 4294fi 4295fi 4296ac_ct_AR=$ac_cv_prog_ac_ct_AR 4297if test -n "$ac_ct_AR"; then 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4299$as_echo "$ac_ct_AR" >&6; } 4300else 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4302$as_echo "no" >&6; } 4303fi 4304 4305 4306 test -n "$ac_ct_AR" && break 4307done 4308 4309 if test "x$ac_ct_AR" = x; then 4310 AR="false" 4311 else 4312 case $cross_compiling:$ac_tool_warned in 4313yes:) 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4316ac_tool_warned=yes ;; 4317esac 4318 AR=$ac_ct_AR 4319 fi 4320fi 4321 4322: ${AR=ar} 4323 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4325$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4326if ${am_cv_ar_interface+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 ac_ext=c 4330ac_cpp='$CPP $CPPFLAGS' 4331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4333ac_compiler_gnu=$ac_cv_c_compiler_gnu 4334 4335 am_cv_ar_interface=ar 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338int some_variable = 0; 4339_ACEOF 4340if ac_fn_c_try_compile "$LINENO"; then : 4341 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4343 (eval $am_ar_try) 2>&5 4344 ac_status=$? 4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4346 test $ac_status = 0; } 4347 if test "$ac_status" -eq 0; then 4348 am_cv_ar_interface=ar 4349 else 4350 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4352 (eval $am_ar_try) 2>&5 4353 ac_status=$? 4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4355 test $ac_status = 0; } 4356 if test "$ac_status" -eq 0; then 4357 am_cv_ar_interface=lib 4358 else 4359 am_cv_ar_interface=unknown 4360 fi 4361 fi 4362 rm -f conftest.lib libconftest.a 4363 4364fi 4365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4366 ac_ext=c 4367ac_cpp='$CPP $CPPFLAGS' 4368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4370ac_compiler_gnu=$ac_cv_c_compiler_gnu 4371 4372fi 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4374$as_echo "$am_cv_ar_interface" >&6; } 4375 4376case $am_cv_ar_interface in 4377ar) 4378 ;; 4379lib) 4380 # Microsoft lib, so override with the ar-lib wrapper script. 4381 # FIXME: It is wrong to rewrite AR. 4382 # But if we don't then we get into trouble of one sort or another. 4383 # A longer-term fix would be to have automake use am__AR in this case, 4384 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4385 # similar. 4386 AR="$am_aux_dir/ar-lib $AR" 4387 ;; 4388unknown) 4389 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4390 ;; 4391esac 4392 4393 4394 4395case `pwd` in 4396 *\ * | *\ *) 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4398$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4399esac 4400 4401 4402 4403macro_version='2.4.6' 4404macro_revision='2.4.6' 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418ltmain=$ac_aux_dir/ltmain.sh 4419 4420# Make sure we can run config.sub. 4421$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4422 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4423 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4425$as_echo_n "checking build system type... " >&6; } 4426if ${ac_cv_build+:} false; then : 4427 $as_echo_n "(cached) " >&6 4428else 4429 ac_build_alias=$build_alias 4430test "x$ac_build_alias" = x && 4431 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4432test "x$ac_build_alias" = x && 4433 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4434ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4436 4437fi 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4439$as_echo "$ac_cv_build" >&6; } 4440case $ac_cv_build in 4441*-*-*) ;; 4442*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4443esac 4444build=$ac_cv_build 4445ac_save_IFS=$IFS; IFS='-' 4446set x $ac_cv_build 4447shift 4448build_cpu=$1 4449build_vendor=$2 4450shift; shift 4451# Remember, the first character of IFS is used to create $*, 4452# except with old shells: 4453build_os=$* 4454IFS=$ac_save_IFS 4455case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4456 4457 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4459$as_echo_n "checking host system type... " >&6; } 4460if ${ac_cv_host+:} false; then : 4461 $as_echo_n "(cached) " >&6 4462else 4463 if test "x$host_alias" = x; then 4464 ac_cv_host=$ac_cv_build 4465else 4466 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4468fi 4469 4470fi 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4472$as_echo "$ac_cv_host" >&6; } 4473case $ac_cv_host in 4474*-*-*) ;; 4475*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4476esac 4477host=$ac_cv_host 4478ac_save_IFS=$IFS; IFS='-' 4479set x $ac_cv_host 4480shift 4481host_cpu=$1 4482host_vendor=$2 4483shift; shift 4484# Remember, the first character of IFS is used to create $*, 4485# except with old shells: 4486host_os=$* 4487IFS=$ac_save_IFS 4488case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4489 4490 4491# Backslashify metacharacters that are still active within 4492# double-quoted strings. 4493sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4494 4495# Same as above, but do not quote variable references. 4496double_quote_subst='s/\(["`\\]\)/\\\1/g' 4497 4498# Sed substitution to delay expansion of an escaped shell variable in a 4499# double_quote_subst'ed string. 4500delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4501 4502# Sed substitution to delay expansion of an escaped single quote. 4503delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4504 4505# Sed substitution to avoid accidental globbing in evaled expressions 4506no_glob_subst='s/\*/\\\*/g' 4507 4508ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4509ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4510ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4511 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4513$as_echo_n "checking how to print strings... " >&6; } 4514# Test print first, because it will be a builtin if present. 4515if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4516 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4517 ECHO='print -r --' 4518elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4519 ECHO='printf %s\n' 4520else 4521 # Use this function as a fallback that always works. 4522 func_fallback_echo () 4523 { 4524 eval 'cat <<_LTECHO_EOF 4525$1 4526_LTECHO_EOF' 4527 } 4528 ECHO='func_fallback_echo' 4529fi 4530 4531# func_echo_all arg... 4532# Invoke $ECHO with all args, space-separated. 4533func_echo_all () 4534{ 4535 $ECHO "" 4536} 4537 4538case $ECHO in 4539 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4540$as_echo "printf" >&6; } ;; 4541 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4542$as_echo "print -r" >&6; } ;; 4543 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4544$as_echo "cat" >&6; } ;; 4545esac 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4561$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4562if ${ac_cv_path_SED+:} false; then : 4563 $as_echo_n "(cached) " >&6 4564else 4565 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4566 for ac_i in 1 2 3 4 5 6 7; do 4567 ac_script="$ac_script$as_nl$ac_script" 4568 done 4569 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4570 { ac_script=; unset ac_script;} 4571 if test -z "$SED"; then 4572 ac_path_SED_found=false 4573 # Loop through the user's path and test for each of PROGNAME-LIST 4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4575for as_dir in $PATH 4576do 4577 IFS=$as_save_IFS 4578 test -z "$as_dir" && as_dir=. 4579 for ac_prog in sed gsed; do 4580 for ac_exec_ext in '' $ac_executable_extensions; do 4581 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4582 as_fn_executable_p "$ac_path_SED" || continue 4583# Check for GNU ac_path_SED and select it if it is found. 4584 # Check for GNU $ac_path_SED 4585case `"$ac_path_SED" --version 2>&1` in 4586*GNU*) 4587 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4588*) 4589 ac_count=0 4590 $as_echo_n 0123456789 >"conftest.in" 4591 while : 4592 do 4593 cat "conftest.in" "conftest.in" >"conftest.tmp" 4594 mv "conftest.tmp" "conftest.in" 4595 cp "conftest.in" "conftest.nl" 4596 $as_echo '' >> "conftest.nl" 4597 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4599 as_fn_arith $ac_count + 1 && ac_count=$as_val 4600 if test $ac_count -gt ${ac_path_SED_max-0}; then 4601 # Best one so far, save it but keep looking for a better one 4602 ac_cv_path_SED="$ac_path_SED" 4603 ac_path_SED_max=$ac_count 4604 fi 4605 # 10*(2^10) chars as input seems more than enough 4606 test $ac_count -gt 10 && break 4607 done 4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4609esac 4610 4611 $ac_path_SED_found && break 3 4612 done 4613 done 4614 done 4615IFS=$as_save_IFS 4616 if test -z "$ac_cv_path_SED"; then 4617 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4618 fi 4619else 4620 ac_cv_path_SED=$SED 4621fi 4622 4623fi 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4625$as_echo "$ac_cv_path_SED" >&6; } 4626 SED="$ac_cv_path_SED" 4627 rm -f conftest.sed 4628 4629test -z "$SED" && SED=sed 4630Xsed="$SED -e 1s/^X//" 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4643$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4644if ${ac_cv_path_GREP+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 if test -z "$GREP"; then 4648 ac_path_GREP_found=false 4649 # Loop through the user's path and test for each of PROGNAME-LIST 4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4651for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4652do 4653 IFS=$as_save_IFS 4654 test -z "$as_dir" && as_dir=. 4655 for ac_prog in grep ggrep; do 4656 for ac_exec_ext in '' $ac_executable_extensions; do 4657 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4658 as_fn_executable_p "$ac_path_GREP" || continue 4659# Check for GNU ac_path_GREP and select it if it is found. 4660 # Check for GNU $ac_path_GREP 4661case `"$ac_path_GREP" --version 2>&1` in 4662*GNU*) 4663 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4664*) 4665 ac_count=0 4666 $as_echo_n 0123456789 >"conftest.in" 4667 while : 4668 do 4669 cat "conftest.in" "conftest.in" >"conftest.tmp" 4670 mv "conftest.tmp" "conftest.in" 4671 cp "conftest.in" "conftest.nl" 4672 $as_echo 'GREP' >> "conftest.nl" 4673 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4675 as_fn_arith $ac_count + 1 && ac_count=$as_val 4676 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4677 # Best one so far, save it but keep looking for a better one 4678 ac_cv_path_GREP="$ac_path_GREP" 4679 ac_path_GREP_max=$ac_count 4680 fi 4681 # 10*(2^10) chars as input seems more than enough 4682 test $ac_count -gt 10 && break 4683 done 4684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4685esac 4686 4687 $ac_path_GREP_found && break 3 4688 done 4689 done 4690 done 4691IFS=$as_save_IFS 4692 if test -z "$ac_cv_path_GREP"; then 4693 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4694 fi 4695else 4696 ac_cv_path_GREP=$GREP 4697fi 4698 4699fi 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4701$as_echo "$ac_cv_path_GREP" >&6; } 4702 GREP="$ac_cv_path_GREP" 4703 4704 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4706$as_echo_n "checking for egrep... " >&6; } 4707if ${ac_cv_path_EGREP+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4711 then ac_cv_path_EGREP="$GREP -E" 4712 else 4713 if test -z "$EGREP"; then 4714 ac_path_EGREP_found=false 4715 # Loop through the user's path and test for each of PROGNAME-LIST 4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4717for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4718do 4719 IFS=$as_save_IFS 4720 test -z "$as_dir" && as_dir=. 4721 for ac_prog in egrep; do 4722 for ac_exec_ext in '' $ac_executable_extensions; do 4723 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4724 as_fn_executable_p "$ac_path_EGREP" || continue 4725# Check for GNU ac_path_EGREP and select it if it is found. 4726 # Check for GNU $ac_path_EGREP 4727case `"$ac_path_EGREP" --version 2>&1` in 4728*GNU*) 4729 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4730*) 4731 ac_count=0 4732 $as_echo_n 0123456789 >"conftest.in" 4733 while : 4734 do 4735 cat "conftest.in" "conftest.in" >"conftest.tmp" 4736 mv "conftest.tmp" "conftest.in" 4737 cp "conftest.in" "conftest.nl" 4738 $as_echo 'EGREP' >> "conftest.nl" 4739 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4741 as_fn_arith $ac_count + 1 && ac_count=$as_val 4742 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4743 # Best one so far, save it but keep looking for a better one 4744 ac_cv_path_EGREP="$ac_path_EGREP" 4745 ac_path_EGREP_max=$ac_count 4746 fi 4747 # 10*(2^10) chars as input seems more than enough 4748 test $ac_count -gt 10 && break 4749 done 4750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4751esac 4752 4753 $ac_path_EGREP_found && break 3 4754 done 4755 done 4756 done 4757IFS=$as_save_IFS 4758 if test -z "$ac_cv_path_EGREP"; then 4759 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4760 fi 4761else 4762 ac_cv_path_EGREP=$EGREP 4763fi 4764 4765 fi 4766fi 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4768$as_echo "$ac_cv_path_EGREP" >&6; } 4769 EGREP="$ac_cv_path_EGREP" 4770 4771 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4773$as_echo_n "checking for fgrep... " >&6; } 4774if ${ac_cv_path_FGREP+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4778 then ac_cv_path_FGREP="$GREP -F" 4779 else 4780 if test -z "$FGREP"; then 4781 ac_path_FGREP_found=false 4782 # Loop through the user's path and test for each of PROGNAME-LIST 4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4784for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4785do 4786 IFS=$as_save_IFS 4787 test -z "$as_dir" && as_dir=. 4788 for ac_prog in fgrep; do 4789 for ac_exec_ext in '' $ac_executable_extensions; do 4790 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4791 as_fn_executable_p "$ac_path_FGREP" || continue 4792# Check for GNU ac_path_FGREP and select it if it is found. 4793 # Check for GNU $ac_path_FGREP 4794case `"$ac_path_FGREP" --version 2>&1` in 4795*GNU*) 4796 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4797*) 4798 ac_count=0 4799 $as_echo_n 0123456789 >"conftest.in" 4800 while : 4801 do 4802 cat "conftest.in" "conftest.in" >"conftest.tmp" 4803 mv "conftest.tmp" "conftest.in" 4804 cp "conftest.in" "conftest.nl" 4805 $as_echo 'FGREP' >> "conftest.nl" 4806 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4808 as_fn_arith $ac_count + 1 && ac_count=$as_val 4809 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4810 # Best one so far, save it but keep looking for a better one 4811 ac_cv_path_FGREP="$ac_path_FGREP" 4812 ac_path_FGREP_max=$ac_count 4813 fi 4814 # 10*(2^10) chars as input seems more than enough 4815 test $ac_count -gt 10 && break 4816 done 4817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4818esac 4819 4820 $ac_path_FGREP_found && break 3 4821 done 4822 done 4823 done 4824IFS=$as_save_IFS 4825 if test -z "$ac_cv_path_FGREP"; then 4826 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4827 fi 4828else 4829 ac_cv_path_FGREP=$FGREP 4830fi 4831 4832 fi 4833fi 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4835$as_echo "$ac_cv_path_FGREP" >&6; } 4836 FGREP="$ac_cv_path_FGREP" 4837 4838 4839test -z "$GREP" && GREP=grep 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859# Check whether --with-gnu-ld was given. 4860if test "${with_gnu_ld+set}" = set; then : 4861 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4862else 4863 with_gnu_ld=no 4864fi 4865 4866ac_prog=ld 4867if test yes = "$GCC"; then 4868 # Check if gcc -print-prog-name=ld gives a path. 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4870$as_echo_n "checking for ld used by $CC... " >&6; } 4871 case $host in 4872 *-*-mingw*) 4873 # gcc leaves a trailing carriage return, which upsets mingw 4874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4875 *) 4876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4877 esac 4878 case $ac_prog in 4879 # Accept absolute paths. 4880 [\\/]* | ?:[\\/]*) 4881 re_direlt='/[^/][^/]*/\.\./' 4882 # Canonicalize the pathname of ld 4883 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4884 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4885 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4886 done 4887 test -z "$LD" && LD=$ac_prog 4888 ;; 4889 "") 4890 # If it fails, then pretend we aren't using GCC. 4891 ac_prog=ld 4892 ;; 4893 *) 4894 # If it is relative, then search for the first ld in PATH. 4895 with_gnu_ld=unknown 4896 ;; 4897 esac 4898elif test yes = "$with_gnu_ld"; then 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4900$as_echo_n "checking for GNU ld... " >&6; } 4901else 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4903$as_echo_n "checking for non-GNU ld... " >&6; } 4904fi 4905if ${lt_cv_path_LD+:} false; then : 4906 $as_echo_n "(cached) " >&6 4907else 4908 if test -z "$LD"; then 4909 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4910 for ac_dir in $PATH; do 4911 IFS=$lt_save_ifs 4912 test -z "$ac_dir" && ac_dir=. 4913 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4914 lt_cv_path_LD=$ac_dir/$ac_prog 4915 # Check to see if the program is GNU ld. I'd rather use --version, 4916 # but apparently some variants of GNU ld only accept -v. 4917 # Break only if it was the GNU/non-GNU ld that we prefer. 4918 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4919 *GNU* | *'with BFD'*) 4920 test no != "$with_gnu_ld" && break 4921 ;; 4922 *) 4923 test yes != "$with_gnu_ld" && break 4924 ;; 4925 esac 4926 fi 4927 done 4928 IFS=$lt_save_ifs 4929else 4930 lt_cv_path_LD=$LD # Let the user override the test with a path. 4931fi 4932fi 4933 4934LD=$lt_cv_path_LD 4935if test -n "$LD"; then 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4937$as_echo "$LD" >&6; } 4938else 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4940$as_echo "no" >&6; } 4941fi 4942test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4944$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4945if ${lt_cv_prog_gnu_ld+:} false; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4949case `$LD -v 2>&1 </dev/null` in 4950*GNU* | *'with BFD'*) 4951 lt_cv_prog_gnu_ld=yes 4952 ;; 4953*) 4954 lt_cv_prog_gnu_ld=no 4955 ;; 4956esac 4957fi 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4959$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4960with_gnu_ld=$lt_cv_prog_gnu_ld 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4971$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4972if ${lt_cv_path_NM+:} false; then : 4973 $as_echo_n "(cached) " >&6 4974else 4975 if test -n "$NM"; then 4976 # Let the user override the test. 4977 lt_cv_path_NM=$NM 4978else 4979 lt_nm_to_check=${ac_tool_prefix}nm 4980 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4981 lt_nm_to_check="$lt_nm_to_check nm" 4982 fi 4983 for lt_tmp_nm in $lt_nm_to_check; do 4984 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4985 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4986 IFS=$lt_save_ifs 4987 test -z "$ac_dir" && ac_dir=. 4988 tmp_nm=$ac_dir/$lt_tmp_nm 4989 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4990 # Check to see if the nm accepts a BSD-compat flag. 4991 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4992 # nm: unknown option "B" ignored 4993 # Tru64's nm complains that /dev/null is an invalid object file 4994 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4995 case $build_os in 4996 mingw*) lt_bad_file=conftest.nm/nofile ;; 4997 *) lt_bad_file=/dev/null ;; 4998 esac 4999 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5000 *$lt_bad_file* | *'Invalid file or object type'*) 5001 lt_cv_path_NM="$tmp_nm -B" 5002 break 2 5003 ;; 5004 *) 5005 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5006 */dev/null*) 5007 lt_cv_path_NM="$tmp_nm -p" 5008 break 2 5009 ;; 5010 *) 5011 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5012 continue # so that we can try to find one that supports BSD flags 5013 ;; 5014 esac 5015 ;; 5016 esac 5017 fi 5018 done 5019 IFS=$lt_save_ifs 5020 done 5021 : ${lt_cv_path_NM=no} 5022fi 5023fi 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5025$as_echo "$lt_cv_path_NM" >&6; } 5026if test no != "$lt_cv_path_NM"; then 5027 NM=$lt_cv_path_NM 5028else 5029 # Didn't find any BSD compatible name lister, look for dumpbin. 5030 if test -n "$DUMPBIN"; then : 5031 # Let the user override the test. 5032 else 5033 if test -n "$ac_tool_prefix"; then 5034 for ac_prog in dumpbin "link -dump" 5035 do 5036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5037set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5039$as_echo_n "checking for $ac_word... " >&6; } 5040if ${ac_cv_prog_DUMPBIN+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 if test -n "$DUMPBIN"; then 5044 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5045else 5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5047for as_dir in $PATH 5048do 5049 IFS=$as_save_IFS 5050 test -z "$as_dir" && as_dir=. 5051 for ac_exec_ext in '' $ac_executable_extensions; do 5052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5053 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5055 break 2 5056 fi 5057done 5058 done 5059IFS=$as_save_IFS 5060 5061fi 5062fi 5063DUMPBIN=$ac_cv_prog_DUMPBIN 5064if test -n "$DUMPBIN"; then 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5066$as_echo "$DUMPBIN" >&6; } 5067else 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5069$as_echo "no" >&6; } 5070fi 5071 5072 5073 test -n "$DUMPBIN" && break 5074 done 5075fi 5076if test -z "$DUMPBIN"; then 5077 ac_ct_DUMPBIN=$DUMPBIN 5078 for ac_prog in dumpbin "link -dump" 5079do 5080 # Extract the first word of "$ac_prog", so it can be a program name with args. 5081set dummy $ac_prog; ac_word=$2 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5083$as_echo_n "checking for $ac_word... " >&6; } 5084if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 if test -n "$ac_ct_DUMPBIN"; then 5088 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5089else 5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5091for as_dir in $PATH 5092do 5093 IFS=$as_save_IFS 5094 test -z "$as_dir" && as_dir=. 5095 for ac_exec_ext in '' $ac_executable_extensions; do 5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5097 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5099 break 2 5100 fi 5101done 5102 done 5103IFS=$as_save_IFS 5104 5105fi 5106fi 5107ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5108if test -n "$ac_ct_DUMPBIN"; then 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5110$as_echo "$ac_ct_DUMPBIN" >&6; } 5111else 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5113$as_echo "no" >&6; } 5114fi 5115 5116 5117 test -n "$ac_ct_DUMPBIN" && break 5118done 5119 5120 if test "x$ac_ct_DUMPBIN" = x; then 5121 DUMPBIN=":" 5122 else 5123 case $cross_compiling:$ac_tool_warned in 5124yes:) 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5127ac_tool_warned=yes ;; 5128esac 5129 DUMPBIN=$ac_ct_DUMPBIN 5130 fi 5131fi 5132 5133 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5134 *COFF*) 5135 DUMPBIN="$DUMPBIN -symbols -headers" 5136 ;; 5137 *) 5138 DUMPBIN=: 5139 ;; 5140 esac 5141 fi 5142 5143 if test : != "$DUMPBIN"; then 5144 NM=$DUMPBIN 5145 fi 5146fi 5147test -z "$NM" && NM=nm 5148 5149 5150 5151 5152 5153 5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5155$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5156if ${lt_cv_nm_interface+:} false; then : 5157 $as_echo_n "(cached) " >&6 5158else 5159 lt_cv_nm_interface="BSD nm" 5160 echo "int some_variable = 0;" > conftest.$ac_ext 5161 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5162 (eval "$ac_compile" 2>conftest.err) 5163 cat conftest.err >&5 5164 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5165 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5166 cat conftest.err >&5 5167 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5168 cat conftest.out >&5 5169 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5170 lt_cv_nm_interface="MS dumpbin" 5171 fi 5172 rm -f conftest* 5173fi 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5175$as_echo "$lt_cv_nm_interface" >&6; } 5176 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5178$as_echo_n "checking whether ln -s works... " >&6; } 5179LN_S=$as_ln_s 5180if test "$LN_S" = "ln -s"; then 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5182$as_echo "yes" >&6; } 5183else 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5185$as_echo "no, using $LN_S" >&6; } 5186fi 5187 5188# find the maximum length of command line arguments 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5190$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5191if ${lt_cv_sys_max_cmd_len+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 i=0 5195 teststring=ABCD 5196 5197 case $build_os in 5198 msdosdjgpp*) 5199 # On DJGPP, this test can blow up pretty badly due to problems in libc 5200 # (any single argument exceeding 2000 bytes causes a buffer overrun 5201 # during glob expansion). Even if it were fixed, the result of this 5202 # check would be larger than it should be. 5203 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5204 ;; 5205 5206 gnu*) 5207 # Under GNU Hurd, this test is not required because there is 5208 # no limit to the length of command line arguments. 5209 # Libtool will interpret -1 as no limit whatsoever 5210 lt_cv_sys_max_cmd_len=-1; 5211 ;; 5212 5213 cygwin* | mingw* | cegcc*) 5214 # On Win9x/ME, this test blows up -- it succeeds, but takes 5215 # about 5 minutes as the teststring grows exponentially. 5216 # Worse, since 9x/ME are not pre-emptively multitasking, 5217 # you end up with a "frozen" computer, even though with patience 5218 # the test eventually succeeds (with a max line length of 256k). 5219 # Instead, let's just punt: use the minimum linelength reported by 5220 # all of the supported platforms: 8192 (on NT/2K/XP). 5221 lt_cv_sys_max_cmd_len=8192; 5222 ;; 5223 5224 mint*) 5225 # On MiNT this can take a long time and run out of memory. 5226 lt_cv_sys_max_cmd_len=8192; 5227 ;; 5228 5229 amigaos*) 5230 # On AmigaOS with pdksh, this test takes hours, literally. 5231 # So we just punt and use a minimum line length of 8192. 5232 lt_cv_sys_max_cmd_len=8192; 5233 ;; 5234 5235 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5236 # This has been around since 386BSD, at least. Likely further. 5237 if test -x /sbin/sysctl; then 5238 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5239 elif test -x /usr/sbin/sysctl; then 5240 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5241 else 5242 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5243 fi 5244 # And add a safety zone 5245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5247 ;; 5248 5249 interix*) 5250 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5251 lt_cv_sys_max_cmd_len=196608 5252 ;; 5253 5254 os2*) 5255 # The test takes a long time on OS/2. 5256 lt_cv_sys_max_cmd_len=8192 5257 ;; 5258 5259 osf*) 5260 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5261 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5262 # nice to cause kernel panics so lets avoid the loop below. 5263 # First set a reasonable default. 5264 lt_cv_sys_max_cmd_len=16384 5265 # 5266 if test -x /sbin/sysconfig; then 5267 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5268 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5269 esac 5270 fi 5271 ;; 5272 sco3.2v5*) 5273 lt_cv_sys_max_cmd_len=102400 5274 ;; 5275 sysv5* | sco5v6* | sysv4.2uw2*) 5276 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5277 if test -n "$kargmax"; then 5278 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5279 else 5280 lt_cv_sys_max_cmd_len=32768 5281 fi 5282 ;; 5283 *) 5284 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5285 if test -n "$lt_cv_sys_max_cmd_len" && \ 5286 test undefined != "$lt_cv_sys_max_cmd_len"; then 5287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5289 else 5290 # Make teststring a little bigger before we do anything with it. 5291 # a 1K string should be a reasonable start. 5292 for i in 1 2 3 4 5 6 7 8; do 5293 teststring=$teststring$teststring 5294 done 5295 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5296 # If test is not a shell built-in, we'll probably end up computing a 5297 # maximum length that is only half of the actual maximum length, but 5298 # we can't tell. 5299 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5300 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5301 test 17 != "$i" # 1/2 MB should be enough 5302 do 5303 i=`expr $i + 1` 5304 teststring=$teststring$teststring 5305 done 5306 # Only check the string length outside the loop. 5307 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5308 teststring= 5309 # Add a significant safety factor because C++ compilers can tack on 5310 # massive amounts of additional arguments before passing them to the 5311 # linker. It appears as though 1/2 is a usable value. 5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5313 fi 5314 ;; 5315 esac 5316 5317fi 5318 5319if test -n "$lt_cv_sys_max_cmd_len"; then 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5321$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5322else 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5324$as_echo "none" >&6; } 5325fi 5326max_cmd_len=$lt_cv_sys_max_cmd_len 5327 5328 5329 5330 5331 5332 5333: ${CP="cp -f"} 5334: ${MV="mv -f"} 5335: ${RM="rm -f"} 5336 5337if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5338 lt_unset=unset 5339else 5340 lt_unset=false 5341fi 5342 5343 5344 5345 5346 5347# test EBCDIC or ASCII 5348case `echo X|tr X '\101'` in 5349 A) # ASCII based system 5350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5351 lt_SP2NL='tr \040 \012' 5352 lt_NL2SP='tr \015\012 \040\040' 5353 ;; 5354 *) # EBCDIC based system 5355 lt_SP2NL='tr \100 \n' 5356 lt_NL2SP='tr \r\n \100\100' 5357 ;; 5358esac 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5369$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5370if ${lt_cv_to_host_file_cmd+:} false; then : 5371 $as_echo_n "(cached) " >&6 5372else 5373 case $host in 5374 *-*-mingw* ) 5375 case $build in 5376 *-*-mingw* ) # actually msys 5377 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5378 ;; 5379 *-*-cygwin* ) 5380 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5381 ;; 5382 * ) # otherwise, assume *nix 5383 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5384 ;; 5385 esac 5386 ;; 5387 *-*-cygwin* ) 5388 case $build in 5389 *-*-mingw* ) # actually msys 5390 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5391 ;; 5392 *-*-cygwin* ) 5393 lt_cv_to_host_file_cmd=func_convert_file_noop 5394 ;; 5395 * ) # otherwise, assume *nix 5396 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5397 ;; 5398 esac 5399 ;; 5400 * ) # unhandled hosts (and "normal" native builds) 5401 lt_cv_to_host_file_cmd=func_convert_file_noop 5402 ;; 5403esac 5404 5405fi 5406 5407to_host_file_cmd=$lt_cv_to_host_file_cmd 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5409$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5410 5411 5412 5413 5414 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5416$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5417if ${lt_cv_to_tool_file_cmd+:} false; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 #assume ordinary cross tools, or native build. 5421lt_cv_to_tool_file_cmd=func_convert_file_noop 5422case $host in 5423 *-*-mingw* ) 5424 case $build in 5425 *-*-mingw* ) # actually msys 5426 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5427 ;; 5428 esac 5429 ;; 5430esac 5431 5432fi 5433 5434to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5436$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5437 5438 5439 5440 5441 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5443$as_echo_n "checking for $LD option to reload object files... " >&6; } 5444if ${lt_cv_ld_reload_flag+:} false; then : 5445 $as_echo_n "(cached) " >&6 5446else 5447 lt_cv_ld_reload_flag='-r' 5448fi 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5450$as_echo "$lt_cv_ld_reload_flag" >&6; } 5451reload_flag=$lt_cv_ld_reload_flag 5452case $reload_flag in 5453"" | " "*) ;; 5454*) reload_flag=" $reload_flag" ;; 5455esac 5456reload_cmds='$LD$reload_flag -o $output$reload_objs' 5457case $host_os in 5458 cygwin* | mingw* | pw32* | cegcc*) 5459 if test yes != "$GCC"; then 5460 reload_cmds=false 5461 fi 5462 ;; 5463 darwin*) 5464 if test yes = "$GCC"; then 5465 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5466 else 5467 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5468 fi 5469 ;; 5470esac 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480if test -n "$ac_tool_prefix"; then 5481 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5482set dummy ${ac_tool_prefix}objdump; ac_word=$2 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5484$as_echo_n "checking for $ac_word... " >&6; } 5485if ${ac_cv_prog_OBJDUMP+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 if test -n "$OBJDUMP"; then 5489 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5490else 5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492for as_dir in $PATH 5493do 5494 IFS=$as_save_IFS 5495 test -z "$as_dir" && as_dir=. 5496 for ac_exec_ext in '' $ac_executable_extensions; do 5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5498 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5500 break 2 5501 fi 5502done 5503 done 5504IFS=$as_save_IFS 5505 5506fi 5507fi 5508OBJDUMP=$ac_cv_prog_OBJDUMP 5509if test -n "$OBJDUMP"; then 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5511$as_echo "$OBJDUMP" >&6; } 5512else 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5514$as_echo "no" >&6; } 5515fi 5516 5517 5518fi 5519if test -z "$ac_cv_prog_OBJDUMP"; then 5520 ac_ct_OBJDUMP=$OBJDUMP 5521 # Extract the first word of "objdump", so it can be a program name with args. 5522set dummy objdump; ac_word=$2 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5524$as_echo_n "checking for $ac_word... " >&6; } 5525if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5526 $as_echo_n "(cached) " >&6 5527else 5528 if test -n "$ac_ct_OBJDUMP"; then 5529 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5530else 5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5532for as_dir in $PATH 5533do 5534 IFS=$as_save_IFS 5535 test -z "$as_dir" && as_dir=. 5536 for ac_exec_ext in '' $ac_executable_extensions; do 5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5538 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5540 break 2 5541 fi 5542done 5543 done 5544IFS=$as_save_IFS 5545 5546fi 5547fi 5548ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5549if test -n "$ac_ct_OBJDUMP"; then 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5551$as_echo "$ac_ct_OBJDUMP" >&6; } 5552else 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5554$as_echo "no" >&6; } 5555fi 5556 5557 if test "x$ac_ct_OBJDUMP" = x; then 5558 OBJDUMP="false" 5559 else 5560 case $cross_compiling:$ac_tool_warned in 5561yes:) 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5564ac_tool_warned=yes ;; 5565esac 5566 OBJDUMP=$ac_ct_OBJDUMP 5567 fi 5568else 5569 OBJDUMP="$ac_cv_prog_OBJDUMP" 5570fi 5571 5572test -z "$OBJDUMP" && OBJDUMP=objdump 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5583$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5584if ${lt_cv_deplibs_check_method+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 lt_cv_file_magic_cmd='$MAGIC_CMD' 5588lt_cv_file_magic_test_file= 5589lt_cv_deplibs_check_method='unknown' 5590# Need to set the preceding variable on all platforms that support 5591# interlibrary dependencies. 5592# 'none' -- dependencies not supported. 5593# 'unknown' -- same as none, but documents that we really don't know. 5594# 'pass_all' -- all dependencies passed with no checks. 5595# 'test_compile' -- check by making test program. 5596# 'file_magic [[regex]]' -- check by looking for files in library path 5597# that responds to the $file_magic_cmd with a given extended regex. 5598# If you have 'file' or equivalent on your system and you're not sure 5599# whether 'pass_all' will *always* work, you probably want this one. 5600 5601case $host_os in 5602aix[4-9]*) 5603 lt_cv_deplibs_check_method=pass_all 5604 ;; 5605 5606beos*) 5607 lt_cv_deplibs_check_method=pass_all 5608 ;; 5609 5610bsdi[45]*) 5611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5612 lt_cv_file_magic_cmd='/usr/bin/file -L' 5613 lt_cv_file_magic_test_file=/shlib/libc.so 5614 ;; 5615 5616cygwin*) 5617 # func_win32_libid is a shell function defined in ltmain.sh 5618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5619 lt_cv_file_magic_cmd='func_win32_libid' 5620 ;; 5621 5622mingw* | pw32*) 5623 # Base MSYS/MinGW do not provide the 'file' command needed by 5624 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5625 # unless we find 'file', for example because we are cross-compiling. 5626 if ( file / ) >/dev/null 2>&1; then 5627 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5628 lt_cv_file_magic_cmd='func_win32_libid' 5629 else 5630 # Keep this pattern in sync with the one in func_win32_libid. 5631 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5632 lt_cv_file_magic_cmd='$OBJDUMP -f' 5633 fi 5634 ;; 5635 5636cegcc*) 5637 # use the weaker test based on 'objdump'. See mingw*. 5638 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5639 lt_cv_file_magic_cmd='$OBJDUMP -f' 5640 ;; 5641 5642darwin* | rhapsody*) 5643 lt_cv_deplibs_check_method=pass_all 5644 ;; 5645 5646freebsd* | dragonfly*) 5647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5648 case $host_cpu in 5649 i*86 ) 5650 # Not sure whether the presence of OpenBSD here was a mistake. 5651 # Let's accept both of them until this is cleared up. 5652 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5653 lt_cv_file_magic_cmd=/usr/bin/file 5654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5655 ;; 5656 esac 5657 else 5658 lt_cv_deplibs_check_method=pass_all 5659 fi 5660 ;; 5661 5662haiku*) 5663 lt_cv_deplibs_check_method=pass_all 5664 ;; 5665 5666hpux10.20* | hpux11*) 5667 lt_cv_file_magic_cmd=/usr/bin/file 5668 case $host_cpu in 5669 ia64*) 5670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5671 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5672 ;; 5673 hppa*64*) 5674 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]' 5675 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5676 ;; 5677 *) 5678 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5679 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5680 ;; 5681 esac 5682 ;; 5683 5684interix[3-9]*) 5685 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5687 ;; 5688 5689irix5* | irix6* | nonstopux*) 5690 case $LD in 5691 *-32|*"-32 ") libmagic=32-bit;; 5692 *-n32|*"-n32 ") libmagic=N32;; 5693 *-64|*"-64 ") libmagic=64-bit;; 5694 *) libmagic=never-match;; 5695 esac 5696 lt_cv_deplibs_check_method=pass_all 5697 ;; 5698 5699# This must be glibc/ELF. 5700linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5701 lt_cv_deplibs_check_method=pass_all 5702 ;; 5703 5704netbsd* | netbsdelf*-gnu) 5705 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5707 else 5708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5709 fi 5710 ;; 5711 5712newos6*) 5713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5714 lt_cv_file_magic_cmd=/usr/bin/file 5715 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5716 ;; 5717 5718*nto* | *qnx*) 5719 lt_cv_deplibs_check_method=pass_all 5720 ;; 5721 5722openbsd* | bitrig*) 5723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5725 else 5726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5727 fi 5728 ;; 5729 5730osf3* | osf4* | osf5*) 5731 lt_cv_deplibs_check_method=pass_all 5732 ;; 5733 5734rdos*) 5735 lt_cv_deplibs_check_method=pass_all 5736 ;; 5737 5738solaris*) 5739 lt_cv_deplibs_check_method=pass_all 5740 ;; 5741 5742sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5743 lt_cv_deplibs_check_method=pass_all 5744 ;; 5745 5746sysv4 | sysv4.3*) 5747 case $host_vendor in 5748 motorola) 5749 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]' 5750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5751 ;; 5752 ncr) 5753 lt_cv_deplibs_check_method=pass_all 5754 ;; 5755 sequent) 5756 lt_cv_file_magic_cmd='/bin/file' 5757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5758 ;; 5759 sni) 5760 lt_cv_file_magic_cmd='/bin/file' 5761 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5762 lt_cv_file_magic_test_file=/lib/libc.so 5763 ;; 5764 siemens) 5765 lt_cv_deplibs_check_method=pass_all 5766 ;; 5767 pc) 5768 lt_cv_deplibs_check_method=pass_all 5769 ;; 5770 esac 5771 ;; 5772 5773tpf*) 5774 lt_cv_deplibs_check_method=pass_all 5775 ;; 5776os2*) 5777 lt_cv_deplibs_check_method=pass_all 5778 ;; 5779esac 5780 5781fi 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5783$as_echo "$lt_cv_deplibs_check_method" >&6; } 5784 5785file_magic_glob= 5786want_nocaseglob=no 5787if test "$build" = "$host"; then 5788 case $host_os in 5789 mingw* | pw32*) 5790 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5791 want_nocaseglob=yes 5792 else 5793 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5794 fi 5795 ;; 5796 esac 5797fi 5798 5799file_magic_cmd=$lt_cv_file_magic_cmd 5800deplibs_check_method=$lt_cv_deplibs_check_method 5801test -z "$deplibs_check_method" && deplibs_check_method=unknown 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824if test -n "$ac_tool_prefix"; then 5825 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5826set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5828$as_echo_n "checking for $ac_word... " >&6; } 5829if ${ac_cv_prog_DLLTOOL+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 if test -n "$DLLTOOL"; then 5833 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5834else 5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5836for as_dir in $PATH 5837do 5838 IFS=$as_save_IFS 5839 test -z "$as_dir" && as_dir=. 5840 for ac_exec_ext in '' $ac_executable_extensions; do 5841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5842 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5844 break 2 5845 fi 5846done 5847 done 5848IFS=$as_save_IFS 5849 5850fi 5851fi 5852DLLTOOL=$ac_cv_prog_DLLTOOL 5853if test -n "$DLLTOOL"; then 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5855$as_echo "$DLLTOOL" >&6; } 5856else 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5858$as_echo "no" >&6; } 5859fi 5860 5861 5862fi 5863if test -z "$ac_cv_prog_DLLTOOL"; then 5864 ac_ct_DLLTOOL=$DLLTOOL 5865 # Extract the first word of "dlltool", so it can be a program name with args. 5866set dummy dlltool; ac_word=$2 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5868$as_echo_n "checking for $ac_word... " >&6; } 5869if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 if test -n "$ac_ct_DLLTOOL"; then 5873 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5874else 5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876for as_dir in $PATH 5877do 5878 IFS=$as_save_IFS 5879 test -z "$as_dir" && as_dir=. 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5882 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886done 5887 done 5888IFS=$as_save_IFS 5889 5890fi 5891fi 5892ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5893if test -n "$ac_ct_DLLTOOL"; then 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5895$as_echo "$ac_ct_DLLTOOL" >&6; } 5896else 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898$as_echo "no" >&6; } 5899fi 5900 5901 if test "x$ac_ct_DLLTOOL" = x; then 5902 DLLTOOL="false" 5903 else 5904 case $cross_compiling:$ac_tool_warned in 5905yes:) 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5908ac_tool_warned=yes ;; 5909esac 5910 DLLTOOL=$ac_ct_DLLTOOL 5911 fi 5912else 5913 DLLTOOL="$ac_cv_prog_DLLTOOL" 5914fi 5915 5916test -z "$DLLTOOL" && DLLTOOL=dlltool 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5928$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5929if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 lt_cv_sharedlib_from_linklib_cmd='unknown' 5933 5934case $host_os in 5935cygwin* | mingw* | pw32* | cegcc*) 5936 # two different shell functions defined in ltmain.sh; 5937 # decide which one to use based on capabilities of $DLLTOOL 5938 case `$DLLTOOL --help 2>&1` in 5939 *--identify-strict*) 5940 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5941 ;; 5942 *) 5943 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5944 ;; 5945 esac 5946 ;; 5947*) 5948 # fallback: assume linklib IS sharedlib 5949 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5950 ;; 5951esac 5952 5953fi 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5955$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5956sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5957test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5958 5959 5960 5961 5962 5963 5964 5965if test -n "$ac_tool_prefix"; then 5966 for ac_prog in ar 5967 do 5968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5969set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5971$as_echo_n "checking for $ac_word... " >&6; } 5972if ${ac_cv_prog_AR+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 if test -n "$AR"; then 5976 ac_cv_prog_AR="$AR" # Let the user override the test. 5977else 5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5979for as_dir in $PATH 5980do 5981 IFS=$as_save_IFS 5982 test -z "$as_dir" && as_dir=. 5983 for ac_exec_ext in '' $ac_executable_extensions; do 5984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5985 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5987 break 2 5988 fi 5989done 5990 done 5991IFS=$as_save_IFS 5992 5993fi 5994fi 5995AR=$ac_cv_prog_AR 5996if test -n "$AR"; then 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5998$as_echo "$AR" >&6; } 5999else 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6001$as_echo "no" >&6; } 6002fi 6003 6004 6005 test -n "$AR" && break 6006 done 6007fi 6008if test -z "$AR"; then 6009 ac_ct_AR=$AR 6010 for ac_prog in ar 6011do 6012 # Extract the first word of "$ac_prog", so it can be a program name with args. 6013set dummy $ac_prog; ac_word=$2 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6015$as_echo_n "checking for $ac_word... " >&6; } 6016if ${ac_cv_prog_ac_ct_AR+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 if test -n "$ac_ct_AR"; then 6020 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6021else 6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6023for as_dir in $PATH 6024do 6025 IFS=$as_save_IFS 6026 test -z "$as_dir" && as_dir=. 6027 for ac_exec_ext in '' $ac_executable_extensions; do 6028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6029 ac_cv_prog_ac_ct_AR="$ac_prog" 6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6031 break 2 6032 fi 6033done 6034 done 6035IFS=$as_save_IFS 6036 6037fi 6038fi 6039ac_ct_AR=$ac_cv_prog_ac_ct_AR 6040if test -n "$ac_ct_AR"; then 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6042$as_echo "$ac_ct_AR" >&6; } 6043else 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6045$as_echo "no" >&6; } 6046fi 6047 6048 6049 test -n "$ac_ct_AR" && break 6050done 6051 6052 if test "x$ac_ct_AR" = x; then 6053 AR="false" 6054 else 6055 case $cross_compiling:$ac_tool_warned in 6056yes:) 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6059ac_tool_warned=yes ;; 6060esac 6061 AR=$ac_ct_AR 6062 fi 6063fi 6064 6065: ${AR=ar} 6066: ${AR_FLAGS=cru} 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6079$as_echo_n "checking for archiver @FILE support... " >&6; } 6080if ${lt_cv_ar_at_file+:} false; then : 6081 $as_echo_n "(cached) " >&6 6082else 6083 lt_cv_ar_at_file=no 6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085/* end confdefs.h. */ 6086 6087int 6088main () 6089{ 6090 6091 ; 6092 return 0; 6093} 6094_ACEOF 6095if ac_fn_c_try_compile "$LINENO"; then : 6096 echo conftest.$ac_objext > conftest.lst 6097 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6099 (eval $lt_ar_try) 2>&5 6100 ac_status=$? 6101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6102 test $ac_status = 0; } 6103 if test 0 -eq "$ac_status"; then 6104 # Ensure the archiver fails upon bogus file names. 6105 rm -f conftest.$ac_objext libconftest.a 6106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6107 (eval $lt_ar_try) 2>&5 6108 ac_status=$? 6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6110 test $ac_status = 0; } 6111 if test 0 -ne "$ac_status"; then 6112 lt_cv_ar_at_file=@ 6113 fi 6114 fi 6115 rm -f conftest.* libconftest.a 6116 6117fi 6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6119 6120fi 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6122$as_echo "$lt_cv_ar_at_file" >&6; } 6123 6124if test no = "$lt_cv_ar_at_file"; then 6125 archiver_list_spec= 6126else 6127 archiver_list_spec=$lt_cv_ar_at_file 6128fi 6129 6130 6131 6132 6133 6134 6135 6136if test -n "$ac_tool_prefix"; then 6137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6138set dummy ${ac_tool_prefix}strip; ac_word=$2 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6140$as_echo_n "checking for $ac_word... " >&6; } 6141if ${ac_cv_prog_STRIP+:} false; then : 6142 $as_echo_n "(cached) " >&6 6143else 6144 if test -n "$STRIP"; then 6145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6146else 6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6148for as_dir in $PATH 6149do 6150 IFS=$as_save_IFS 6151 test -z "$as_dir" && as_dir=. 6152 for ac_exec_ext in '' $ac_executable_extensions; do 6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6154 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6156 break 2 6157 fi 6158done 6159 done 6160IFS=$as_save_IFS 6161 6162fi 6163fi 6164STRIP=$ac_cv_prog_STRIP 6165if test -n "$STRIP"; then 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6167$as_echo "$STRIP" >&6; } 6168else 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6170$as_echo "no" >&6; } 6171fi 6172 6173 6174fi 6175if test -z "$ac_cv_prog_STRIP"; then 6176 ac_ct_STRIP=$STRIP 6177 # Extract the first word of "strip", so it can be a program name with args. 6178set dummy strip; ac_word=$2 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6180$as_echo_n "checking for $ac_word... " >&6; } 6181if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 if test -n "$ac_ct_STRIP"; then 6185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6186else 6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6188for as_dir in $PATH 6189do 6190 IFS=$as_save_IFS 6191 test -z "$as_dir" && as_dir=. 6192 for ac_exec_ext in '' $ac_executable_extensions; do 6193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6194 ac_cv_prog_ac_ct_STRIP="strip" 6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6196 break 2 6197 fi 6198done 6199 done 6200IFS=$as_save_IFS 6201 6202fi 6203fi 6204ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6205if test -n "$ac_ct_STRIP"; then 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6207$as_echo "$ac_ct_STRIP" >&6; } 6208else 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6210$as_echo "no" >&6; } 6211fi 6212 6213 if test "x$ac_ct_STRIP" = x; then 6214 STRIP=":" 6215 else 6216 case $cross_compiling:$ac_tool_warned in 6217yes:) 6218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6220ac_tool_warned=yes ;; 6221esac 6222 STRIP=$ac_ct_STRIP 6223 fi 6224else 6225 STRIP="$ac_cv_prog_STRIP" 6226fi 6227 6228test -z "$STRIP" && STRIP=: 6229 6230 6231 6232 6233 6234 6235if test -n "$ac_tool_prefix"; then 6236 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6237set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6239$as_echo_n "checking for $ac_word... " >&6; } 6240if ${ac_cv_prog_RANLIB+:} false; then : 6241 $as_echo_n "(cached) " >&6 6242else 6243 if test -n "$RANLIB"; then 6244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6245else 6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247for as_dir in $PATH 6248do 6249 IFS=$as_save_IFS 6250 test -z "$as_dir" && as_dir=. 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6253 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257done 6258 done 6259IFS=$as_save_IFS 6260 6261fi 6262fi 6263RANLIB=$ac_cv_prog_RANLIB 6264if test -n "$RANLIB"; then 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6266$as_echo "$RANLIB" >&6; } 6267else 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6269$as_echo "no" >&6; } 6270fi 6271 6272 6273fi 6274if test -z "$ac_cv_prog_RANLIB"; then 6275 ac_ct_RANLIB=$RANLIB 6276 # Extract the first word of "ranlib", so it can be a program name with args. 6277set dummy ranlib; ac_word=$2 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6279$as_echo_n "checking for $ac_word... " >&6; } 6280if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282else 6283 if test -n "$ac_ct_RANLIB"; then 6284 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6285else 6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6287for as_dir in $PATH 6288do 6289 IFS=$as_save_IFS 6290 test -z "$as_dir" && as_dir=. 6291 for ac_exec_ext in '' $ac_executable_extensions; do 6292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6293 ac_cv_prog_ac_ct_RANLIB="ranlib" 6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6295 break 2 6296 fi 6297done 6298 done 6299IFS=$as_save_IFS 6300 6301fi 6302fi 6303ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6304if test -n "$ac_ct_RANLIB"; then 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6306$as_echo "$ac_ct_RANLIB" >&6; } 6307else 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6309$as_echo "no" >&6; } 6310fi 6311 6312 if test "x$ac_ct_RANLIB" = x; then 6313 RANLIB=":" 6314 else 6315 case $cross_compiling:$ac_tool_warned in 6316yes:) 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6319ac_tool_warned=yes ;; 6320esac 6321 RANLIB=$ac_ct_RANLIB 6322 fi 6323else 6324 RANLIB="$ac_cv_prog_RANLIB" 6325fi 6326 6327test -z "$RANLIB" && RANLIB=: 6328 6329 6330 6331 6332 6333 6334# Determine commands to create old-style static archives. 6335old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6336old_postinstall_cmds='chmod 644 $oldlib' 6337old_postuninstall_cmds= 6338 6339if test -n "$RANLIB"; then 6340 case $host_os in 6341 bitrig* | openbsd*) 6342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6343 ;; 6344 *) 6345 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6346 ;; 6347 esac 6348 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6349fi 6350 6351case $host_os in 6352 darwin*) 6353 lock_old_archive_extraction=yes ;; 6354 *) 6355 lock_old_archive_extraction=no ;; 6356esac 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396# If no C compiler was specified, use CC. 6397LTCC=${LTCC-"$CC"} 6398 6399# If no C compiler flags were specified, use CFLAGS. 6400LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6401 6402# Allow CC to be a program name with arguments. 6403compiler=$CC 6404 6405 6406# Check for command to grab the raw symbol name followed by C symbol from nm. 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6408$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6409if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 6413# These are sane defaults that work on at least a few old systems. 6414# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6415 6416# Character class describing NM global symbol codes. 6417symcode='[BCDEGRST]' 6418 6419# Regexp to match symbols that can be accessed directly from C. 6420sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6421 6422# Define system-specific variables. 6423case $host_os in 6424aix*) 6425 symcode='[BCDT]' 6426 ;; 6427cygwin* | mingw* | pw32* | cegcc*) 6428 symcode='[ABCDGISTW]' 6429 ;; 6430hpux*) 6431 if test ia64 = "$host_cpu"; then 6432 symcode='[ABCDEGRST]' 6433 fi 6434 ;; 6435irix* | nonstopux*) 6436 symcode='[BCDEGRST]' 6437 ;; 6438osf*) 6439 symcode='[BCDEGQRST]' 6440 ;; 6441solaris*) 6442 symcode='[BDRT]' 6443 ;; 6444sco3.2v5*) 6445 symcode='[DT]' 6446 ;; 6447sysv4.2uw2*) 6448 symcode='[DT]' 6449 ;; 6450sysv5* | sco5v6* | unixware* | OpenUNIX*) 6451 symcode='[ABDT]' 6452 ;; 6453sysv4) 6454 symcode='[DFNSTU]' 6455 ;; 6456esac 6457 6458# If we're using GNU nm, then use its standard symbol codes. 6459case `$NM -V 2>&1` in 6460*GNU* | *'with BFD'*) 6461 symcode='[ABCDGIRSTW]' ;; 6462esac 6463 6464if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6465 # Gets list of data symbols to import. 6466 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6467 # Adjust the below global symbol transforms to fixup imported variables. 6468 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6469 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6470 lt_c_name_lib_hook="\ 6471 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6472 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6473else 6474 # Disable hooks by default. 6475 lt_cv_sys_global_symbol_to_import= 6476 lt_cdecl_hook= 6477 lt_c_name_hook= 6478 lt_c_name_lib_hook= 6479fi 6480 6481# Transform an extracted symbol line into a proper C declaration. 6482# Some systems (esp. on ia64) link data and code symbols differently, 6483# so use this general approach. 6484lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6485$lt_cdecl_hook\ 6486" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6487" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6488 6489# Transform an extracted symbol line into symbol name and symbol address 6490lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6491$lt_c_name_hook\ 6492" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6493" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6494 6495# Transform an extracted symbol line into symbol name with lib prefix and 6496# symbol address. 6497lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6498$lt_c_name_lib_hook\ 6499" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6500" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6501" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6502 6503# Handle CRLF in mingw tool chain 6504opt_cr= 6505case $build_os in 6506mingw*) 6507 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6508 ;; 6509esac 6510 6511# Try without a prefix underscore, then with it. 6512for ac_symprfx in "" "_"; do 6513 6514 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6515 symxfrm="\\1 $ac_symprfx\\2 \\2" 6516 6517 # Write the raw and C identifiers. 6518 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6519 # Fake it for dumpbin and say T for any non-static function, 6520 # D for any global variable and I for any imported variable. 6521 # Also find C++ and __fastcall symbols from MSVC++, 6522 # which start with @ or ?. 6523 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6524" {last_section=section; section=\$ 3};"\ 6525" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6526" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6527" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6528" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6529" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6530" \$ 0!~/External *\|/{next};"\ 6531" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6532" {if(hide[section]) next};"\ 6533" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6534" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6535" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6536" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6537" ' prfx=^$ac_symprfx" 6538 else 6539 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6540 fi 6541 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6542 6543 # Check to see that the pipe works correctly. 6544 pipe_works=no 6545 6546 rm -f conftest* 6547 cat > conftest.$ac_ext <<_LT_EOF 6548#ifdef __cplusplus 6549extern "C" { 6550#endif 6551char nm_test_var; 6552void nm_test_func(void); 6553void nm_test_func(void){} 6554#ifdef __cplusplus 6555} 6556#endif 6557int main(){nm_test_var='a';nm_test_func();return(0);} 6558_LT_EOF 6559 6560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6561 (eval $ac_compile) 2>&5 6562 ac_status=$? 6563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6564 test $ac_status = 0; }; then 6565 # Now try to grab the symbols. 6566 nlist=conftest.nm 6567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6568 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6569 ac_status=$? 6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6571 test $ac_status = 0; } && test -s "$nlist"; then 6572 # Try sorting and uniquifying the output. 6573 if sort "$nlist" | uniq > "$nlist"T; then 6574 mv -f "$nlist"T "$nlist" 6575 else 6576 rm -f "$nlist"T 6577 fi 6578 6579 # Make sure that we snagged all the symbols we need. 6580 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6581 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6582 cat <<_LT_EOF > conftest.$ac_ext 6583/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6584#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6585/* DATA imports from DLLs on WIN32 can't be const, because runtime 6586 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6587# define LT_DLSYM_CONST 6588#elif defined __osf__ 6589/* This system does not cope well with relocations in const data. */ 6590# define LT_DLSYM_CONST 6591#else 6592# define LT_DLSYM_CONST const 6593#endif 6594 6595#ifdef __cplusplus 6596extern "C" { 6597#endif 6598 6599_LT_EOF 6600 # Now generate the symbol file. 6601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6602 6603 cat <<_LT_EOF >> conftest.$ac_ext 6604 6605/* The mapping between symbol names and symbols. */ 6606LT_DLSYM_CONST struct { 6607 const char *name; 6608 void *address; 6609} 6610lt__PROGRAM__LTX_preloaded_symbols[] = 6611{ 6612 { "@PROGRAM@", (void *) 0 }, 6613_LT_EOF 6614 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6615 cat <<\_LT_EOF >> conftest.$ac_ext 6616 {0, (void *) 0} 6617}; 6618 6619/* This works around a problem in FreeBSD linker */ 6620#ifdef FREEBSD_WORKAROUND 6621static const void *lt_preloaded_setup() { 6622 return lt__PROGRAM__LTX_preloaded_symbols; 6623} 6624#endif 6625 6626#ifdef __cplusplus 6627} 6628#endif 6629_LT_EOF 6630 # Now try linking the two files. 6631 mv conftest.$ac_objext conftstm.$ac_objext 6632 lt_globsym_save_LIBS=$LIBS 6633 lt_globsym_save_CFLAGS=$CFLAGS 6634 LIBS=conftstm.$ac_objext 6635 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6637 (eval $ac_link) 2>&5 6638 ac_status=$? 6639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6640 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6641 pipe_works=yes 6642 fi 6643 LIBS=$lt_globsym_save_LIBS 6644 CFLAGS=$lt_globsym_save_CFLAGS 6645 else 6646 echo "cannot find nm_test_func in $nlist" >&5 6647 fi 6648 else 6649 echo "cannot find nm_test_var in $nlist" >&5 6650 fi 6651 else 6652 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6653 fi 6654 else 6655 echo "$progname: failed program was:" >&5 6656 cat conftest.$ac_ext >&5 6657 fi 6658 rm -rf conftest* conftst* 6659 6660 # Do not use the global_symbol_pipe unless it works. 6661 if test yes = "$pipe_works"; then 6662 break 6663 else 6664 lt_cv_sys_global_symbol_pipe= 6665 fi 6666done 6667 6668fi 6669 6670if test -z "$lt_cv_sys_global_symbol_pipe"; then 6671 lt_cv_sys_global_symbol_to_cdecl= 6672fi 6673if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6675$as_echo "failed" >&6; } 6676else 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6678$as_echo "ok" >&6; } 6679fi 6680 6681# Response file support. 6682if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6683 nm_file_list_spec='@' 6684elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6685 nm_file_list_spec='@' 6686fi 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6725$as_echo_n "checking for sysroot... " >&6; } 6726 6727# Check whether --with-sysroot was given. 6728if test "${with_sysroot+set}" = set; then : 6729 withval=$with_sysroot; 6730else 6731 with_sysroot=no 6732fi 6733 6734 6735lt_sysroot= 6736case $with_sysroot in #( 6737 yes) 6738 if test yes = "$GCC"; then 6739 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6740 fi 6741 ;; #( 6742 /*) 6743 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6744 ;; #( 6745 no|'') 6746 ;; #( 6747 *) 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6749$as_echo "$with_sysroot" >&6; } 6750 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6751 ;; 6752esac 6753 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6755$as_echo "${lt_sysroot:-no}" >&6; } 6756 6757 6758 6759 6760 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6762$as_echo_n "checking for a working dd... " >&6; } 6763if ${ac_cv_path_lt_DD+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 printf 0123456789abcdef0123456789abcdef >conftest.i 6767cat conftest.i conftest.i >conftest2.i 6768: ${lt_DD:=$DD} 6769if test -z "$lt_DD"; then 6770 ac_path_lt_DD_found=false 6771 # Loop through the user's path and test for each of PROGNAME-LIST 6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_prog in dd; do 6778 for ac_exec_ext in '' $ac_executable_extensions; do 6779 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6780 as_fn_executable_p "$ac_path_lt_DD" || continue 6781if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6782 cmp -s conftest.i conftest.out \ 6783 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6784fi 6785 $ac_path_lt_DD_found && break 3 6786 done 6787 done 6788 done 6789IFS=$as_save_IFS 6790 if test -z "$ac_cv_path_lt_DD"; then 6791 : 6792 fi 6793else 6794 ac_cv_path_lt_DD=$lt_DD 6795fi 6796 6797rm -f conftest.i conftest2.i conftest.out 6798fi 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6800$as_echo "$ac_cv_path_lt_DD" >&6; } 6801 6802 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6804$as_echo_n "checking how to truncate binary pipes... " >&6; } 6805if ${lt_cv_truncate_bin+:} false; then : 6806 $as_echo_n "(cached) " >&6 6807else 6808 printf 0123456789abcdef0123456789abcdef >conftest.i 6809cat conftest.i conftest.i >conftest2.i 6810lt_cv_truncate_bin= 6811if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6812 cmp -s conftest.i conftest.out \ 6813 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6814fi 6815rm -f conftest.i conftest2.i conftest.out 6816test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6817fi 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6819$as_echo "$lt_cv_truncate_bin" >&6; } 6820 6821 6822 6823 6824 6825 6826 6827# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6828func_cc_basename () 6829{ 6830 for cc_temp in $*""; do 6831 case $cc_temp in 6832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6834 \-*) ;; 6835 *) break;; 6836 esac 6837 done 6838 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6839} 6840 6841# Check whether --enable-libtool-lock was given. 6842if test "${enable_libtool_lock+set}" = set; then : 6843 enableval=$enable_libtool_lock; 6844fi 6845 6846test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6847 6848# Some flags need to be propagated to the compiler or linker for good 6849# libtool support. 6850case $host in 6851ia64-*-hpux*) 6852 # Find out what ABI is being produced by ac_compile, and set mode 6853 # options accordingly. 6854 echo 'int i;' > conftest.$ac_ext 6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6856 (eval $ac_compile) 2>&5 6857 ac_status=$? 6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6859 test $ac_status = 0; }; then 6860 case `/usr/bin/file conftest.$ac_objext` in 6861 *ELF-32*) 6862 HPUX_IA64_MODE=32 6863 ;; 6864 *ELF-64*) 6865 HPUX_IA64_MODE=64 6866 ;; 6867 esac 6868 fi 6869 rm -rf conftest* 6870 ;; 6871*-*-irix6*) 6872 # Find out what ABI is being produced by ac_compile, and set linker 6873 # options accordingly. 6874 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6876 (eval $ac_compile) 2>&5 6877 ac_status=$? 6878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6879 test $ac_status = 0; }; then 6880 if test yes = "$lt_cv_prog_gnu_ld"; then 6881 case `/usr/bin/file conftest.$ac_objext` in 6882 *32-bit*) 6883 LD="${LD-ld} -melf32bsmip" 6884 ;; 6885 *N32*) 6886 LD="${LD-ld} -melf32bmipn32" 6887 ;; 6888 *64-bit*) 6889 LD="${LD-ld} -melf64bmip" 6890 ;; 6891 esac 6892 else 6893 case `/usr/bin/file conftest.$ac_objext` in 6894 *32-bit*) 6895 LD="${LD-ld} -32" 6896 ;; 6897 *N32*) 6898 LD="${LD-ld} -n32" 6899 ;; 6900 *64-bit*) 6901 LD="${LD-ld} -64" 6902 ;; 6903 esac 6904 fi 6905 fi 6906 rm -rf conftest* 6907 ;; 6908 6909mips64*-*linux*) 6910 # Find out what ABI is being produced by ac_compile, and set linker 6911 # options accordingly. 6912 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6914 (eval $ac_compile) 2>&5 6915 ac_status=$? 6916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6917 test $ac_status = 0; }; then 6918 emul=elf 6919 case `/usr/bin/file conftest.$ac_objext` in 6920 *32-bit*) 6921 emul="${emul}32" 6922 ;; 6923 *64-bit*) 6924 emul="${emul}64" 6925 ;; 6926 esac 6927 case `/usr/bin/file conftest.$ac_objext` in 6928 *MSB*) 6929 emul="${emul}btsmip" 6930 ;; 6931 *LSB*) 6932 emul="${emul}ltsmip" 6933 ;; 6934 esac 6935 case `/usr/bin/file conftest.$ac_objext` in 6936 *N32*) 6937 emul="${emul}n32" 6938 ;; 6939 esac 6940 LD="${LD-ld} -m $emul" 6941 fi 6942 rm -rf conftest* 6943 ;; 6944 6945x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6946s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6947 # Find out what ABI is being produced by ac_compile, and set linker 6948 # options accordingly. Note that the listed cases only cover the 6949 # situations where additional linker options are needed (such as when 6950 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6951 # vice versa); the common cases where no linker options are needed do 6952 # not appear in the list. 6953 echo 'int i;' > conftest.$ac_ext 6954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6955 (eval $ac_compile) 2>&5 6956 ac_status=$? 6957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6958 test $ac_status = 0; }; then 6959 case `/usr/bin/file conftest.o` in 6960 *32-bit*) 6961 case $host in 6962 x86_64-*kfreebsd*-gnu) 6963 LD="${LD-ld} -m elf_i386_fbsd" 6964 ;; 6965 x86_64-*linux*) 6966 case `/usr/bin/file conftest.o` in 6967 *x86-64*) 6968 LD="${LD-ld} -m elf32_x86_64" 6969 ;; 6970 *) 6971 LD="${LD-ld} -m elf_i386" 6972 ;; 6973 esac 6974 ;; 6975 powerpc64le-*linux*) 6976 LD="${LD-ld} -m elf32lppclinux" 6977 ;; 6978 powerpc64-*linux*) 6979 LD="${LD-ld} -m elf32ppclinux" 6980 ;; 6981 s390x-*linux*) 6982 LD="${LD-ld} -m elf_s390" 6983 ;; 6984 sparc64-*linux*) 6985 LD="${LD-ld} -m elf32_sparc" 6986 ;; 6987 esac 6988 ;; 6989 *64-bit*) 6990 case $host in 6991 x86_64-*kfreebsd*-gnu) 6992 LD="${LD-ld} -m elf_x86_64_fbsd" 6993 ;; 6994 x86_64-*linux*) 6995 LD="${LD-ld} -m elf_x86_64" 6996 ;; 6997 powerpcle-*linux*) 6998 LD="${LD-ld} -m elf64lppc" 6999 ;; 7000 powerpc-*linux*) 7001 LD="${LD-ld} -m elf64ppc" 7002 ;; 7003 s390*-*linux*|s390*-*tpf*) 7004 LD="${LD-ld} -m elf64_s390" 7005 ;; 7006 sparc*-*linux*) 7007 LD="${LD-ld} -m elf64_sparc" 7008 ;; 7009 esac 7010 ;; 7011 esac 7012 fi 7013 rm -rf conftest* 7014 ;; 7015 7016*-*-sco3.2v5*) 7017 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7018 SAVE_CFLAGS=$CFLAGS 7019 CFLAGS="$CFLAGS -belf" 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7021$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7022if ${lt_cv_cc_needs_belf+:} false; then : 7023 $as_echo_n "(cached) " >&6 7024else 7025 ac_ext=c 7026ac_cpp='$CPP $CPPFLAGS' 7027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7029ac_compiler_gnu=$ac_cv_c_compiler_gnu 7030 7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7032/* end confdefs.h. */ 7033 7034int 7035main () 7036{ 7037 7038 ; 7039 return 0; 7040} 7041_ACEOF 7042if ac_fn_c_try_link "$LINENO"; then : 7043 lt_cv_cc_needs_belf=yes 7044else 7045 lt_cv_cc_needs_belf=no 7046fi 7047rm -f core conftest.err conftest.$ac_objext \ 7048 conftest$ac_exeext conftest.$ac_ext 7049 ac_ext=c 7050ac_cpp='$CPP $CPPFLAGS' 7051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7053ac_compiler_gnu=$ac_cv_c_compiler_gnu 7054 7055fi 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7057$as_echo "$lt_cv_cc_needs_belf" >&6; } 7058 if test yes != "$lt_cv_cc_needs_belf"; then 7059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7060 CFLAGS=$SAVE_CFLAGS 7061 fi 7062 ;; 7063*-*solaris*) 7064 # Find out what ABI is being produced by ac_compile, and set linker 7065 # options accordingly. 7066 echo 'int i;' > conftest.$ac_ext 7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7068 (eval $ac_compile) 2>&5 7069 ac_status=$? 7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7071 test $ac_status = 0; }; then 7072 case `/usr/bin/file conftest.o` in 7073 *64-bit*) 7074 case $lt_cv_prog_gnu_ld in 7075 yes*) 7076 case $host in 7077 i?86-*-solaris*|x86_64-*-solaris*) 7078 LD="${LD-ld} -m elf_x86_64" 7079 ;; 7080 sparc*-*-solaris*) 7081 LD="${LD-ld} -m elf64_sparc" 7082 ;; 7083 esac 7084 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7085 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7086 LD=${LD-ld}_sol2 7087 fi 7088 ;; 7089 *) 7090 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7091 LD="${LD-ld} -64" 7092 fi 7093 ;; 7094 esac 7095 ;; 7096 esac 7097 fi 7098 rm -rf conftest* 7099 ;; 7100esac 7101 7102need_locks=$enable_libtool_lock 7103 7104if test -n "$ac_tool_prefix"; then 7105 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7106set dummy ${ac_tool_prefix}mt; ac_word=$2 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7108$as_echo_n "checking for $ac_word... " >&6; } 7109if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7110 $as_echo_n "(cached) " >&6 7111else 7112 if test -n "$MANIFEST_TOOL"; then 7113 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7114else 7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7116for as_dir in $PATH 7117do 7118 IFS=$as_save_IFS 7119 test -z "$as_dir" && as_dir=. 7120 for ac_exec_ext in '' $ac_executable_extensions; do 7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7122 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7124 break 2 7125 fi 7126done 7127 done 7128IFS=$as_save_IFS 7129 7130fi 7131fi 7132MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7133if test -n "$MANIFEST_TOOL"; then 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7135$as_echo "$MANIFEST_TOOL" >&6; } 7136else 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7138$as_echo "no" >&6; } 7139fi 7140 7141 7142fi 7143if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7144 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7145 # Extract the first word of "mt", so it can be a program name with args. 7146set dummy mt; ac_word=$2 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7148$as_echo_n "checking for $ac_word... " >&6; } 7149if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7150 $as_echo_n "(cached) " >&6 7151else 7152 if test -n "$ac_ct_MANIFEST_TOOL"; then 7153 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7154else 7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7156for as_dir in $PATH 7157do 7158 IFS=$as_save_IFS 7159 test -z "$as_dir" && as_dir=. 7160 for ac_exec_ext in '' $ac_executable_extensions; do 7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7162 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7164 break 2 7165 fi 7166done 7167 done 7168IFS=$as_save_IFS 7169 7170fi 7171fi 7172ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7173if test -n "$ac_ct_MANIFEST_TOOL"; then 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7175$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7176else 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7178$as_echo "no" >&6; } 7179fi 7180 7181 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7182 MANIFEST_TOOL=":" 7183 else 7184 case $cross_compiling:$ac_tool_warned in 7185yes:) 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7188ac_tool_warned=yes ;; 7189esac 7190 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7191 fi 7192else 7193 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7194fi 7195 7196test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7198$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7199if ${lt_cv_path_mainfest_tool+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 lt_cv_path_mainfest_tool=no 7203 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7204 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7205 cat conftest.err >&5 7206 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7207 lt_cv_path_mainfest_tool=yes 7208 fi 7209 rm -f conftest* 7210fi 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7212$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7213if test yes != "$lt_cv_path_mainfest_tool"; then 7214 MANIFEST_TOOL=: 7215fi 7216 7217 7218 7219 7220 7221 7222 case $host_os in 7223 rhapsody* | darwin*) 7224 if test -n "$ac_tool_prefix"; then 7225 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7226set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7228$as_echo_n "checking for $ac_word... " >&6; } 7229if ${ac_cv_prog_DSYMUTIL+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 if test -n "$DSYMUTIL"; then 7233 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7234else 7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7236for as_dir in $PATH 7237do 7238 IFS=$as_save_IFS 7239 test -z "$as_dir" && as_dir=. 7240 for ac_exec_ext in '' $ac_executable_extensions; do 7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7242 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7244 break 2 7245 fi 7246done 7247 done 7248IFS=$as_save_IFS 7249 7250fi 7251fi 7252DSYMUTIL=$ac_cv_prog_DSYMUTIL 7253if test -n "$DSYMUTIL"; then 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7255$as_echo "$DSYMUTIL" >&6; } 7256else 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7258$as_echo "no" >&6; } 7259fi 7260 7261 7262fi 7263if test -z "$ac_cv_prog_DSYMUTIL"; then 7264 ac_ct_DSYMUTIL=$DSYMUTIL 7265 # Extract the first word of "dsymutil", so it can be a program name with args. 7266set dummy dsymutil; ac_word=$2 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7268$as_echo_n "checking for $ac_word... " >&6; } 7269if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7270 $as_echo_n "(cached) " >&6 7271else 7272 if test -n "$ac_ct_DSYMUTIL"; then 7273 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7274else 7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7276for as_dir in $PATH 7277do 7278 IFS=$as_save_IFS 7279 test -z "$as_dir" && as_dir=. 7280 for ac_exec_ext in '' $ac_executable_extensions; do 7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7282 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7284 break 2 7285 fi 7286done 7287 done 7288IFS=$as_save_IFS 7289 7290fi 7291fi 7292ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7293if test -n "$ac_ct_DSYMUTIL"; then 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7295$as_echo "$ac_ct_DSYMUTIL" >&6; } 7296else 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7298$as_echo "no" >&6; } 7299fi 7300 7301 if test "x$ac_ct_DSYMUTIL" = x; then 7302 DSYMUTIL=":" 7303 else 7304 case $cross_compiling:$ac_tool_warned in 7305yes:) 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7308ac_tool_warned=yes ;; 7309esac 7310 DSYMUTIL=$ac_ct_DSYMUTIL 7311 fi 7312else 7313 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7314fi 7315 7316 if test -n "$ac_tool_prefix"; then 7317 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7318set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7320$as_echo_n "checking for $ac_word... " >&6; } 7321if ${ac_cv_prog_NMEDIT+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 if test -n "$NMEDIT"; then 7325 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7326else 7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7328for as_dir in $PATH 7329do 7330 IFS=$as_save_IFS 7331 test -z "$as_dir" && as_dir=. 7332 for ac_exec_ext in '' $ac_executable_extensions; do 7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7334 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7336 break 2 7337 fi 7338done 7339 done 7340IFS=$as_save_IFS 7341 7342fi 7343fi 7344NMEDIT=$ac_cv_prog_NMEDIT 7345if test -n "$NMEDIT"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7347$as_echo "$NMEDIT" >&6; } 7348else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7350$as_echo "no" >&6; } 7351fi 7352 7353 7354fi 7355if test -z "$ac_cv_prog_NMEDIT"; then 7356 ac_ct_NMEDIT=$NMEDIT 7357 # Extract the first word of "nmedit", so it can be a program name with args. 7358set dummy nmedit; ac_word=$2 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7360$as_echo_n "checking for $ac_word... " >&6; } 7361if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 if test -n "$ac_ct_NMEDIT"; then 7365 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7366else 7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7368for as_dir in $PATH 7369do 7370 IFS=$as_save_IFS 7371 test -z "$as_dir" && as_dir=. 7372 for ac_exec_ext in '' $ac_executable_extensions; do 7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7374 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7376 break 2 7377 fi 7378done 7379 done 7380IFS=$as_save_IFS 7381 7382fi 7383fi 7384ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7385if test -n "$ac_ct_NMEDIT"; then 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7387$as_echo "$ac_ct_NMEDIT" >&6; } 7388else 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7390$as_echo "no" >&6; } 7391fi 7392 7393 if test "x$ac_ct_NMEDIT" = x; then 7394 NMEDIT=":" 7395 else 7396 case $cross_compiling:$ac_tool_warned in 7397yes:) 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7400ac_tool_warned=yes ;; 7401esac 7402 NMEDIT=$ac_ct_NMEDIT 7403 fi 7404else 7405 NMEDIT="$ac_cv_prog_NMEDIT" 7406fi 7407 7408 if test -n "$ac_tool_prefix"; then 7409 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7410set dummy ${ac_tool_prefix}lipo; ac_word=$2 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7412$as_echo_n "checking for $ac_word... " >&6; } 7413if ${ac_cv_prog_LIPO+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 if test -n "$LIPO"; then 7417 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7418else 7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7420for as_dir in $PATH 7421do 7422 IFS=$as_save_IFS 7423 test -z "$as_dir" && as_dir=. 7424 for ac_exec_ext in '' $ac_executable_extensions; do 7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7426 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7428 break 2 7429 fi 7430done 7431 done 7432IFS=$as_save_IFS 7433 7434fi 7435fi 7436LIPO=$ac_cv_prog_LIPO 7437if test -n "$LIPO"; then 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7439$as_echo "$LIPO" >&6; } 7440else 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7442$as_echo "no" >&6; } 7443fi 7444 7445 7446fi 7447if test -z "$ac_cv_prog_LIPO"; then 7448 ac_ct_LIPO=$LIPO 7449 # Extract the first word of "lipo", so it can be a program name with args. 7450set dummy lipo; ac_word=$2 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7452$as_echo_n "checking for $ac_word... " >&6; } 7453if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455else 7456 if test -n "$ac_ct_LIPO"; then 7457 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7458else 7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7460for as_dir in $PATH 7461do 7462 IFS=$as_save_IFS 7463 test -z "$as_dir" && as_dir=. 7464 for ac_exec_ext in '' $ac_executable_extensions; do 7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7466 ac_cv_prog_ac_ct_LIPO="lipo" 7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7468 break 2 7469 fi 7470done 7471 done 7472IFS=$as_save_IFS 7473 7474fi 7475fi 7476ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7477if test -n "$ac_ct_LIPO"; then 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7479$as_echo "$ac_ct_LIPO" >&6; } 7480else 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7482$as_echo "no" >&6; } 7483fi 7484 7485 if test "x$ac_ct_LIPO" = x; then 7486 LIPO=":" 7487 else 7488 case $cross_compiling:$ac_tool_warned in 7489yes:) 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7492ac_tool_warned=yes ;; 7493esac 7494 LIPO=$ac_ct_LIPO 7495 fi 7496else 7497 LIPO="$ac_cv_prog_LIPO" 7498fi 7499 7500 if test -n "$ac_tool_prefix"; then 7501 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7502set dummy ${ac_tool_prefix}otool; ac_word=$2 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7504$as_echo_n "checking for $ac_word... " >&6; } 7505if ${ac_cv_prog_OTOOL+:} false; then : 7506 $as_echo_n "(cached) " >&6 7507else 7508 if test -n "$OTOOL"; then 7509 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7510else 7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7512for as_dir in $PATH 7513do 7514 IFS=$as_save_IFS 7515 test -z "$as_dir" && as_dir=. 7516 for ac_exec_ext in '' $ac_executable_extensions; do 7517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7518 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7520 break 2 7521 fi 7522done 7523 done 7524IFS=$as_save_IFS 7525 7526fi 7527fi 7528OTOOL=$ac_cv_prog_OTOOL 7529if test -n "$OTOOL"; then 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7531$as_echo "$OTOOL" >&6; } 7532else 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7534$as_echo "no" >&6; } 7535fi 7536 7537 7538fi 7539if test -z "$ac_cv_prog_OTOOL"; then 7540 ac_ct_OTOOL=$OTOOL 7541 # Extract the first word of "otool", so it can be a program name with args. 7542set dummy otool; ac_word=$2 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7544$as_echo_n "checking for $ac_word... " >&6; } 7545if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7546 $as_echo_n "(cached) " >&6 7547else 7548 if test -n "$ac_ct_OTOOL"; then 7549 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7550else 7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7552for as_dir in $PATH 7553do 7554 IFS=$as_save_IFS 7555 test -z "$as_dir" && as_dir=. 7556 for ac_exec_ext in '' $ac_executable_extensions; do 7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7558 ac_cv_prog_ac_ct_OTOOL="otool" 7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7560 break 2 7561 fi 7562done 7563 done 7564IFS=$as_save_IFS 7565 7566fi 7567fi 7568ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7569if test -n "$ac_ct_OTOOL"; then 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7571$as_echo "$ac_ct_OTOOL" >&6; } 7572else 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7574$as_echo "no" >&6; } 7575fi 7576 7577 if test "x$ac_ct_OTOOL" = x; then 7578 OTOOL=":" 7579 else 7580 case $cross_compiling:$ac_tool_warned in 7581yes:) 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7584ac_tool_warned=yes ;; 7585esac 7586 OTOOL=$ac_ct_OTOOL 7587 fi 7588else 7589 OTOOL="$ac_cv_prog_OTOOL" 7590fi 7591 7592 if test -n "$ac_tool_prefix"; then 7593 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7594set dummy ${ac_tool_prefix}otool64; ac_word=$2 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7596$as_echo_n "checking for $ac_word... " >&6; } 7597if ${ac_cv_prog_OTOOL64+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599else 7600 if test -n "$OTOOL64"; then 7601 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7602else 7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7604for as_dir in $PATH 7605do 7606 IFS=$as_save_IFS 7607 test -z "$as_dir" && as_dir=. 7608 for ac_exec_ext in '' $ac_executable_extensions; do 7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7610 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7612 break 2 7613 fi 7614done 7615 done 7616IFS=$as_save_IFS 7617 7618fi 7619fi 7620OTOOL64=$ac_cv_prog_OTOOL64 7621if test -n "$OTOOL64"; then 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7623$as_echo "$OTOOL64" >&6; } 7624else 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7626$as_echo "no" >&6; } 7627fi 7628 7629 7630fi 7631if test -z "$ac_cv_prog_OTOOL64"; then 7632 ac_ct_OTOOL64=$OTOOL64 7633 # Extract the first word of "otool64", so it can be a program name with args. 7634set dummy otool64; ac_word=$2 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7636$as_echo_n "checking for $ac_word... " >&6; } 7637if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7638 $as_echo_n "(cached) " >&6 7639else 7640 if test -n "$ac_ct_OTOOL64"; then 7641 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7642else 7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7644for as_dir in $PATH 7645do 7646 IFS=$as_save_IFS 7647 test -z "$as_dir" && as_dir=. 7648 for ac_exec_ext in '' $ac_executable_extensions; do 7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7650 ac_cv_prog_ac_ct_OTOOL64="otool64" 7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7652 break 2 7653 fi 7654done 7655 done 7656IFS=$as_save_IFS 7657 7658fi 7659fi 7660ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7661if test -n "$ac_ct_OTOOL64"; then 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7663$as_echo "$ac_ct_OTOOL64" >&6; } 7664else 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7666$as_echo "no" >&6; } 7667fi 7668 7669 if test "x$ac_ct_OTOOL64" = x; then 7670 OTOOL64=":" 7671 else 7672 case $cross_compiling:$ac_tool_warned in 7673yes:) 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7676ac_tool_warned=yes ;; 7677esac 7678 OTOOL64=$ac_ct_OTOOL64 7679 fi 7680else 7681 OTOOL64="$ac_cv_prog_OTOOL64" 7682fi 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7711$as_echo_n "checking for -single_module linker flag... " >&6; } 7712if ${lt_cv_apple_cc_single_mod+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714else 7715 lt_cv_apple_cc_single_mod=no 7716 if test -z "$LT_MULTI_MODULE"; then 7717 # By default we will add the -single_module flag. You can override 7718 # by either setting the environment variable LT_MULTI_MODULE 7719 # non-empty at configure time, or by adding -multi_module to the 7720 # link flags. 7721 rm -rf libconftest.dylib* 7722 echo "int foo(void){return 1;}" > conftest.c 7723 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7724-dynamiclib -Wl,-single_module conftest.c" >&5 7725 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7726 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7727 _lt_result=$? 7728 # If there is a non-empty error log, and "single_module" 7729 # appears in it, assume the flag caused a linker warning 7730 if test -s conftest.err && $GREP single_module conftest.err; then 7731 cat conftest.err >&5 7732 # Otherwise, if the output was created with a 0 exit code from 7733 # the compiler, it worked. 7734 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7735 lt_cv_apple_cc_single_mod=yes 7736 else 7737 cat conftest.err >&5 7738 fi 7739 rm -rf libconftest.dylib* 7740 rm -f conftest.* 7741 fi 7742fi 7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7744$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7745 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7747$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7748if ${lt_cv_ld_exported_symbols_list+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750else 7751 lt_cv_ld_exported_symbols_list=no 7752 save_LDFLAGS=$LDFLAGS 7753 echo "_main" > conftest.sym 7754 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7756/* end confdefs.h. */ 7757 7758int 7759main () 7760{ 7761 7762 ; 7763 return 0; 7764} 7765_ACEOF 7766if ac_fn_c_try_link "$LINENO"; then : 7767 lt_cv_ld_exported_symbols_list=yes 7768else 7769 lt_cv_ld_exported_symbols_list=no 7770fi 7771rm -f core conftest.err conftest.$ac_objext \ 7772 conftest$ac_exeext conftest.$ac_ext 7773 LDFLAGS=$save_LDFLAGS 7774 7775fi 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7777$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7778 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7780$as_echo_n "checking for -force_load linker flag... " >&6; } 7781if ${lt_cv_ld_force_load+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 lt_cv_ld_force_load=no 7785 cat > conftest.c << _LT_EOF 7786int forced_loaded() { return 2;} 7787_LT_EOF 7788 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7789 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7790 echo "$AR cru libconftest.a conftest.o" >&5 7791 $AR cru libconftest.a conftest.o 2>&5 7792 echo "$RANLIB libconftest.a" >&5 7793 $RANLIB libconftest.a 2>&5 7794 cat > conftest.c << _LT_EOF 7795int main() { return 0;} 7796_LT_EOF 7797 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7798 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7799 _lt_result=$? 7800 if test -s conftest.err && $GREP force_load conftest.err; then 7801 cat conftest.err >&5 7802 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7803 lt_cv_ld_force_load=yes 7804 else 7805 cat conftest.err >&5 7806 fi 7807 rm -f conftest.err libconftest.a conftest conftest.c 7808 rm -rf conftest.dSYM 7809 7810fi 7811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7812$as_echo "$lt_cv_ld_force_load" >&6; } 7813 case $host_os in 7814 rhapsody* | darwin1.[012]) 7815 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7816 darwin1.*) 7817 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7818 darwin*) # darwin 5.x on 7819 # if running on 10.5 or later, the deployment target defaults 7820 # to the OS version, if on x86, and 10.4, the deployment 7821 # target defaults to 10.4. Don't you love it? 7822 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7823 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7824 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7825 10.[012][,.]*) 7826 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7827 10.*) 7828 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7829 esac 7830 ;; 7831 esac 7832 if test yes = "$lt_cv_apple_cc_single_mod"; then 7833 _lt_dar_single_mod='$single_module' 7834 fi 7835 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7836 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7837 else 7838 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7839 fi 7840 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7841 _lt_dsymutil='~$DSYMUTIL $lib || :' 7842 else 7843 _lt_dsymutil= 7844 fi 7845 ;; 7846 esac 7847 7848# func_munge_path_list VARIABLE PATH 7849# ----------------------------------- 7850# VARIABLE is name of variable containing _space_ separated list of 7851# directories to be munged by the contents of PATH, which is string 7852# having a format: 7853# "DIR[:DIR]:" 7854# string "DIR[ DIR]" will be prepended to VARIABLE 7855# ":DIR[:DIR]" 7856# string "DIR[ DIR]" will be appended to VARIABLE 7857# "DIRP[:DIRP]::[DIRA:]DIRA" 7858# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7859# "DIRA[ DIRA]" will be appended to VARIABLE 7860# "DIR[:DIR]" 7861# VARIABLE will be replaced by "DIR[ DIR]" 7862func_munge_path_list () 7863{ 7864 case x$2 in 7865 x) 7866 ;; 7867 *:) 7868 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7869 ;; 7870 x:*) 7871 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7872 ;; 7873 *::*) 7874 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7875 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7876 ;; 7877 *) 7878 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7879 ;; 7880 esac 7881} 7882 7883ac_ext=c 7884ac_cpp='$CPP $CPPFLAGS' 7885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7887ac_compiler_gnu=$ac_cv_c_compiler_gnu 7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7889$as_echo_n "checking how to run the C preprocessor... " >&6; } 7890# On Suns, sometimes $CPP names a directory. 7891if test -n "$CPP" && test -d "$CPP"; then 7892 CPP= 7893fi 7894if test -z "$CPP"; then 7895 if ${ac_cv_prog_CPP+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897else 7898 # Double quotes because CPP needs to be expanded 7899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7900 do 7901 ac_preproc_ok=false 7902for ac_c_preproc_warn_flag in '' yes 7903do 7904 # Use a header file that comes with gcc, so configuring glibc 7905 # with a fresh cross-compiler works. 7906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7907 # <limits.h> exists even on freestanding compilers. 7908 # On the NeXT, cc -E runs the code through the compiler's parser, 7909 # not just through cpp. "Syntax error" is here to catch this case. 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912#ifdef __STDC__ 7913# include <limits.h> 7914#else 7915# include <assert.h> 7916#endif 7917 Syntax error 7918_ACEOF 7919if ac_fn_c_try_cpp "$LINENO"; then : 7920 7921else 7922 # Broken: fails on valid input. 7923continue 7924fi 7925rm -f conftest.err conftest.i conftest.$ac_ext 7926 7927 # OK, works on sane cases. Now check whether nonexistent headers 7928 # can be detected and how. 7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7930/* end confdefs.h. */ 7931#include <ac_nonexistent.h> 7932_ACEOF 7933if ac_fn_c_try_cpp "$LINENO"; then : 7934 # Broken: success on invalid input. 7935continue 7936else 7937 # Passes both tests. 7938ac_preproc_ok=: 7939break 7940fi 7941rm -f conftest.err conftest.i conftest.$ac_ext 7942 7943done 7944# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7945rm -f conftest.i conftest.err conftest.$ac_ext 7946if $ac_preproc_ok; then : 7947 break 7948fi 7949 7950 done 7951 ac_cv_prog_CPP=$CPP 7952 7953fi 7954 CPP=$ac_cv_prog_CPP 7955else 7956 ac_cv_prog_CPP=$CPP 7957fi 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7959$as_echo "$CPP" >&6; } 7960ac_preproc_ok=false 7961for ac_c_preproc_warn_flag in '' yes 7962do 7963 # Use a header file that comes with gcc, so configuring glibc 7964 # with a fresh cross-compiler works. 7965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7966 # <limits.h> exists even on freestanding compilers. 7967 # On the NeXT, cc -E runs the code through the compiler's parser, 7968 # not just through cpp. "Syntax error" is here to catch this case. 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970/* end confdefs.h. */ 7971#ifdef __STDC__ 7972# include <limits.h> 7973#else 7974# include <assert.h> 7975#endif 7976 Syntax error 7977_ACEOF 7978if ac_fn_c_try_cpp "$LINENO"; then : 7979 7980else 7981 # Broken: fails on valid input. 7982continue 7983fi 7984rm -f conftest.err conftest.i conftest.$ac_ext 7985 7986 # OK, works on sane cases. Now check whether nonexistent headers 7987 # can be detected and how. 7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7989/* end confdefs.h. */ 7990#include <ac_nonexistent.h> 7991_ACEOF 7992if ac_fn_c_try_cpp "$LINENO"; then : 7993 # Broken: success on invalid input. 7994continue 7995else 7996 # Passes both tests. 7997ac_preproc_ok=: 7998break 7999fi 8000rm -f conftest.err conftest.i conftest.$ac_ext 8001 8002done 8003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8004rm -f conftest.i conftest.err conftest.$ac_ext 8005if $ac_preproc_ok; then : 8006 8007else 8008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8010as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8011See \`config.log' for more details" "$LINENO" 5; } 8012fi 8013 8014ac_ext=c 8015ac_cpp='$CPP $CPPFLAGS' 8016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8018ac_compiler_gnu=$ac_cv_c_compiler_gnu 8019 8020 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8022$as_echo_n "checking for ANSI C header files... " >&6; } 8023if ${ac_cv_header_stdc+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8027/* end confdefs.h. */ 8028#include <stdlib.h> 8029#include <stdarg.h> 8030#include <string.h> 8031#include <float.h> 8032 8033int 8034main () 8035{ 8036 8037 ; 8038 return 0; 8039} 8040_ACEOF 8041if ac_fn_c_try_compile "$LINENO"; then : 8042 ac_cv_header_stdc=yes 8043else 8044 ac_cv_header_stdc=no 8045fi 8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8047 8048if test $ac_cv_header_stdc = yes; then 8049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8051/* end confdefs.h. */ 8052#include <string.h> 8053 8054_ACEOF 8055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8056 $EGREP "memchr" >/dev/null 2>&1; then : 8057 8058else 8059 ac_cv_header_stdc=no 8060fi 8061rm -f conftest* 8062 8063fi 8064 8065if test $ac_cv_header_stdc = yes; then 8066 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8068/* end confdefs.h. */ 8069#include <stdlib.h> 8070 8071_ACEOF 8072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8073 $EGREP "free" >/dev/null 2>&1; then : 8074 8075else 8076 ac_cv_header_stdc=no 8077fi 8078rm -f conftest* 8079 8080fi 8081 8082if test $ac_cv_header_stdc = yes; then 8083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8084 if test "$cross_compiling" = yes; then : 8085 : 8086else 8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8088/* end confdefs.h. */ 8089#include <ctype.h> 8090#include <stdlib.h> 8091#if ((' ' & 0x0FF) == 0x020) 8092# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8093# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8094#else 8095# define ISLOWER(c) \ 8096 (('a' <= (c) && (c) <= 'i') \ 8097 || ('j' <= (c) && (c) <= 'r') \ 8098 || ('s' <= (c) && (c) <= 'z')) 8099# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8100#endif 8101 8102#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8103int 8104main () 8105{ 8106 int i; 8107 for (i = 0; i < 256; i++) 8108 if (XOR (islower (i), ISLOWER (i)) 8109 || toupper (i) != TOUPPER (i)) 8110 return 2; 8111 return 0; 8112} 8113_ACEOF 8114if ac_fn_c_try_run "$LINENO"; then : 8115 8116else 8117 ac_cv_header_stdc=no 8118fi 8119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8120 conftest.$ac_objext conftest.beam conftest.$ac_ext 8121fi 8122 8123fi 8124fi 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8126$as_echo "$ac_cv_header_stdc" >&6; } 8127if test $ac_cv_header_stdc = yes; then 8128 8129$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8130 8131fi 8132 8133# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8135 inttypes.h stdint.h unistd.h 8136do : 8137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8138ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8139" 8140if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8141 cat >>confdefs.h <<_ACEOF 8142#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8143_ACEOF 8144 8145fi 8146 8147done 8148 8149 8150for ac_header in dlfcn.h 8151do : 8152 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8153" 8154if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8155 cat >>confdefs.h <<_ACEOF 8156#define HAVE_DLFCN_H 1 8157_ACEOF 8158 8159fi 8160 8161done 8162 8163 8164 8165 8166 8167# Set options 8168enable_dlopen=yes 8169 8170 8171 8172 8173 enable_win32_dll=no 8174 8175 8176 # Check whether --enable-shared was given. 8177if test "${enable_shared+set}" = set; then : 8178 enableval=$enable_shared; p=${PACKAGE-default} 8179 case $enableval in 8180 yes) enable_shared=yes ;; 8181 no) enable_shared=no ;; 8182 *) 8183 enable_shared=no 8184 # Look at the argument we got. We use all the common list separators. 8185 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8186 for pkg in $enableval; do 8187 IFS=$lt_save_ifs 8188 if test "X$pkg" = "X$p"; then 8189 enable_shared=yes 8190 fi 8191 done 8192 IFS=$lt_save_ifs 8193 ;; 8194 esac 8195else 8196 enable_shared=yes 8197fi 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 # Check whether --enable-static was given. 8208if test "${enable_static+set}" = set; then : 8209 enableval=$enable_static; p=${PACKAGE-default} 8210 case $enableval in 8211 yes) enable_static=yes ;; 8212 no) enable_static=no ;; 8213 *) 8214 enable_static=no 8215 # Look at the argument we got. We use all the common list separators. 8216 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8217 for pkg in $enableval; do 8218 IFS=$lt_save_ifs 8219 if test "X$pkg" = "X$p"; then 8220 enable_static=yes 8221 fi 8222 done 8223 IFS=$lt_save_ifs 8224 ;; 8225 esac 8226else 8227 enable_static=yes 8228fi 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239# Check whether --with-pic was given. 8240if test "${with_pic+set}" = set; then : 8241 withval=$with_pic; lt_p=${PACKAGE-default} 8242 case $withval in 8243 yes|no) pic_mode=$withval ;; 8244 *) 8245 pic_mode=default 8246 # Look at the argument we got. We use all the common list separators. 8247 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8248 for lt_pkg in $withval; do 8249 IFS=$lt_save_ifs 8250 if test "X$lt_pkg" = "X$lt_p"; then 8251 pic_mode=yes 8252 fi 8253 done 8254 IFS=$lt_save_ifs 8255 ;; 8256 esac 8257else 8258 pic_mode=default 8259fi 8260 8261 8262 8263 8264 8265 8266 8267 8268 # Check whether --enable-fast-install was given. 8269if test "${enable_fast_install+set}" = set; then : 8270 enableval=$enable_fast_install; p=${PACKAGE-default} 8271 case $enableval in 8272 yes) enable_fast_install=yes ;; 8273 no) enable_fast_install=no ;; 8274 *) 8275 enable_fast_install=no 8276 # Look at the argument we got. We use all the common list separators. 8277 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8278 for pkg in $enableval; do 8279 IFS=$lt_save_ifs 8280 if test "X$pkg" = "X$p"; then 8281 enable_fast_install=yes 8282 fi 8283 done 8284 IFS=$lt_save_ifs 8285 ;; 8286 esac 8287else 8288 enable_fast_install=yes 8289fi 8290 8291 8292 8293 8294 8295 8296 8297 8298 shared_archive_member_spec= 8299case $host,$enable_shared in 8300power*-*-aix[5-9]*,yes) 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8302$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8303 8304# Check whether --with-aix-soname was given. 8305if test "${with_aix_soname+set}" = set; then : 8306 withval=$with_aix_soname; case $withval in 8307 aix|svr4|both) 8308 ;; 8309 *) 8310 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8311 ;; 8312 esac 8313 lt_cv_with_aix_soname=$with_aix_soname 8314else 8315 if ${lt_cv_with_aix_soname+:} false; then : 8316 $as_echo_n "(cached) " >&6 8317else 8318 lt_cv_with_aix_soname=aix 8319fi 8320 8321 with_aix_soname=$lt_cv_with_aix_soname 8322fi 8323 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8325$as_echo "$with_aix_soname" >&6; } 8326 if test aix != "$with_aix_soname"; then 8327 # For the AIX way of multilib, we name the shared archive member 8328 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8329 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8330 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8331 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8332 if test 64 = "${OBJECT_MODE-32}"; then 8333 shared_archive_member_spec=shr_64 8334 else 8335 shared_archive_member_spec=shr 8336 fi 8337 fi 8338 ;; 8339*) 8340 with_aix_soname=aix 8341 ;; 8342esac 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353# This can be used to rebuild libtool when needed 8354LIBTOOL_DEPS=$ltmain 8355 8356# Always use our own libtool. 8357LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388test -z "$LN_S" && LN_S="ln -s" 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403if test -n "${ZSH_VERSION+set}"; then 8404 setopt NO_GLOB_SUBST 8405fi 8406 8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8408$as_echo_n "checking for objdir... " >&6; } 8409if ${lt_cv_objdir+:} false; then : 8410 $as_echo_n "(cached) " >&6 8411else 8412 rm -f .libs 2>/dev/null 8413mkdir .libs 2>/dev/null 8414if test -d .libs; then 8415 lt_cv_objdir=.libs 8416else 8417 # MS-DOS does not allow filenames that begin with a dot. 8418 lt_cv_objdir=_libs 8419fi 8420rmdir .libs 2>/dev/null 8421fi 8422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8423$as_echo "$lt_cv_objdir" >&6; } 8424objdir=$lt_cv_objdir 8425 8426 8427 8428 8429 8430cat >>confdefs.h <<_ACEOF 8431#define LT_OBJDIR "$lt_cv_objdir/" 8432_ACEOF 8433 8434 8435 8436 8437case $host_os in 8438aix3*) 8439 # AIX sometimes has problems with the GCC collect2 program. For some 8440 # reason, if we set the COLLECT_NAMES environment variable, the problems 8441 # vanish in a puff of smoke. 8442 if test set != "${COLLECT_NAMES+set}"; then 8443 COLLECT_NAMES= 8444 export COLLECT_NAMES 8445 fi 8446 ;; 8447esac 8448 8449# Global variables: 8450ofile=libtool 8451can_build_shared=yes 8452 8453# All known linkers require a '.a' archive for static linking (except MSVC, 8454# which needs '.lib'). 8455libext=a 8456 8457with_gnu_ld=$lt_cv_prog_gnu_ld 8458 8459old_CC=$CC 8460old_CFLAGS=$CFLAGS 8461 8462# Set sane defaults for various variables 8463test -z "$CC" && CC=cc 8464test -z "$LTCC" && LTCC=$CC 8465test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8466test -z "$LD" && LD=ld 8467test -z "$ac_objext" && ac_objext=o 8468 8469func_cc_basename $compiler 8470cc_basename=$func_cc_basename_result 8471 8472 8473# Only perform the check for file, if the check method requires it 8474test -z "$MAGIC_CMD" && MAGIC_CMD=file 8475case $deplibs_check_method in 8476file_magic*) 8477 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8479$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8480if ${lt_cv_path_MAGIC_CMD+:} false; then : 8481 $as_echo_n "(cached) " >&6 8482else 8483 case $MAGIC_CMD in 8484[\\/*] | ?:[\\/]*) 8485 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8486 ;; 8487*) 8488 lt_save_MAGIC_CMD=$MAGIC_CMD 8489 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8491 for ac_dir in $ac_dummy; do 8492 IFS=$lt_save_ifs 8493 test -z "$ac_dir" && ac_dir=. 8494 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8495 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8496 if test -n "$file_magic_test_file"; then 8497 case $deplibs_check_method in 8498 "file_magic "*) 8499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8500 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8502 $EGREP "$file_magic_regex" > /dev/null; then 8503 : 8504 else 8505 cat <<_LT_EOF 1>&2 8506 8507*** Warning: the command libtool uses to detect shared libraries, 8508*** $file_magic_cmd, produces output that libtool cannot recognize. 8509*** The result is that libtool may fail to recognize shared libraries 8510*** as such. This will affect the creation of libtool libraries that 8511*** depend on shared libraries, but programs linked with such libtool 8512*** libraries will work regardless of this problem. Nevertheless, you 8513*** may want to report the problem to your system manager and/or to 8514*** bug-libtool@gnu.org 8515 8516_LT_EOF 8517 fi ;; 8518 esac 8519 fi 8520 break 8521 fi 8522 done 8523 IFS=$lt_save_ifs 8524 MAGIC_CMD=$lt_save_MAGIC_CMD 8525 ;; 8526esac 8527fi 8528 8529MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8530if test -n "$MAGIC_CMD"; then 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8532$as_echo "$MAGIC_CMD" >&6; } 8533else 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8535$as_echo "no" >&6; } 8536fi 8537 8538 8539 8540 8541 8542if test -z "$lt_cv_path_MAGIC_CMD"; then 8543 if test -n "$ac_tool_prefix"; then 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8545$as_echo_n "checking for file... " >&6; } 8546if ${lt_cv_path_MAGIC_CMD+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 case $MAGIC_CMD in 8550[\\/*] | ?:[\\/]*) 8551 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8552 ;; 8553*) 8554 lt_save_MAGIC_CMD=$MAGIC_CMD 8555 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8557 for ac_dir in $ac_dummy; do 8558 IFS=$lt_save_ifs 8559 test -z "$ac_dir" && ac_dir=. 8560 if test -f "$ac_dir/file"; then 8561 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8562 if test -n "$file_magic_test_file"; then 8563 case $deplibs_check_method in 8564 "file_magic "*) 8565 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8566 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8568 $EGREP "$file_magic_regex" > /dev/null; then 8569 : 8570 else 8571 cat <<_LT_EOF 1>&2 8572 8573*** Warning: the command libtool uses to detect shared libraries, 8574*** $file_magic_cmd, produces output that libtool cannot recognize. 8575*** The result is that libtool may fail to recognize shared libraries 8576*** as such. This will affect the creation of libtool libraries that 8577*** depend on shared libraries, but programs linked with such libtool 8578*** libraries will work regardless of this problem. Nevertheless, you 8579*** may want to report the problem to your system manager and/or to 8580*** bug-libtool@gnu.org 8581 8582_LT_EOF 8583 fi ;; 8584 esac 8585 fi 8586 break 8587 fi 8588 done 8589 IFS=$lt_save_ifs 8590 MAGIC_CMD=$lt_save_MAGIC_CMD 8591 ;; 8592esac 8593fi 8594 8595MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8596if test -n "$MAGIC_CMD"; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8598$as_echo "$MAGIC_CMD" >&6; } 8599else 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8601$as_echo "no" >&6; } 8602fi 8603 8604 8605 else 8606 MAGIC_CMD=: 8607 fi 8608fi 8609 8610 fi 8611 ;; 8612esac 8613 8614# Use C for the default configuration in the libtool script 8615 8616lt_save_CC=$CC 8617ac_ext=c 8618ac_cpp='$CPP $CPPFLAGS' 8619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8621ac_compiler_gnu=$ac_cv_c_compiler_gnu 8622 8623 8624# Source file extension for C test sources. 8625ac_ext=c 8626 8627# Object file extension for compiled C test sources. 8628objext=o 8629objext=$objext 8630 8631# Code to be used in simple compile tests 8632lt_simple_compile_test_code="int some_variable = 0;" 8633 8634# Code to be used in simple link tests 8635lt_simple_link_test_code='int main(){return(0);}' 8636 8637 8638 8639 8640 8641 8642 8643# If no C compiler was specified, use CC. 8644LTCC=${LTCC-"$CC"} 8645 8646# If no C compiler flags were specified, use CFLAGS. 8647LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8648 8649# Allow CC to be a program name with arguments. 8650compiler=$CC 8651 8652# Save the default compiler, since it gets overwritten when the other 8653# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8654compiler_DEFAULT=$CC 8655 8656# save warnings/boilerplate of simple test code 8657ac_outfile=conftest.$ac_objext 8658echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8659eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8660_lt_compiler_boilerplate=`cat conftest.err` 8661$RM conftest* 8662 8663ac_outfile=conftest.$ac_objext 8664echo "$lt_simple_link_test_code" >conftest.$ac_ext 8665eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8666_lt_linker_boilerplate=`cat conftest.err` 8667$RM -r conftest* 8668 8669 8670## CAVEAT EMPTOR: 8671## There is no encapsulation within the following macros, do not change 8672## the running order or otherwise move them around unless you know exactly 8673## what you are doing... 8674if test -n "$compiler"; then 8675 8676lt_prog_compiler_no_builtin_flag= 8677 8678if test yes = "$GCC"; then 8679 case $cc_basename in 8680 nvcc*) 8681 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8682 *) 8683 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8684 esac 8685 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8687$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8688if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8689 $as_echo_n "(cached) " >&6 8690else 8691 lt_cv_prog_compiler_rtti_exceptions=no 8692 ac_outfile=conftest.$ac_objext 8693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8694 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8695 # Insert the option either (1) after the last *FLAGS variable, or 8696 # (2) before a word containing "conftest.", or (3) at the end. 8697 # Note that $ac_compile itself does not contain backslashes and begins 8698 # with a dollar sign (not a hyphen), so the echo should work correctly. 8699 # The option is referenced via a variable to avoid confusing sed. 8700 lt_compile=`echo "$ac_compile" | $SED \ 8701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8703 -e 's:$: $lt_compiler_flag:'` 8704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8705 (eval "$lt_compile" 2>conftest.err) 8706 ac_status=$? 8707 cat conftest.err >&5 8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8709 if (exit $ac_status) && test -s "$ac_outfile"; then 8710 # The compiler can only warn and ignore the option if not recognized 8711 # So say no if there are warnings other than the usual output. 8712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8715 lt_cv_prog_compiler_rtti_exceptions=yes 8716 fi 8717 fi 8718 $RM conftest* 8719 8720fi 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8722$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8723 8724if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8725 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8726else 8727 : 8728fi 8729 8730fi 8731 8732 8733 8734 8735 8736 8737 lt_prog_compiler_wl= 8738lt_prog_compiler_pic= 8739lt_prog_compiler_static= 8740 8741 8742 if test yes = "$GCC"; then 8743 lt_prog_compiler_wl='-Wl,' 8744 lt_prog_compiler_static='-static' 8745 8746 case $host_os in 8747 aix*) 8748 # All AIX code is PIC. 8749 if test ia64 = "$host_cpu"; then 8750 # AIX 5 now supports IA64 processor 8751 lt_prog_compiler_static='-Bstatic' 8752 fi 8753 lt_prog_compiler_pic='-fPIC' 8754 ;; 8755 8756 amigaos*) 8757 case $host_cpu in 8758 powerpc) 8759 # see comment about AmigaOS4 .so support 8760 lt_prog_compiler_pic='-fPIC' 8761 ;; 8762 m68k) 8763 # FIXME: we need at least 68020 code to build shared libraries, but 8764 # adding the '-m68020' flag to GCC prevents building anything better, 8765 # like '-m68040'. 8766 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8767 ;; 8768 esac 8769 ;; 8770 8771 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8772 # PIC is the default for these OSes. 8773 ;; 8774 8775 mingw* | cygwin* | pw32* | os2* | cegcc*) 8776 # This hack is so that the source file can tell whether it is being 8777 # built for inclusion in a dll (and should export symbols for example). 8778 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8779 # (--disable-auto-import) libraries 8780 lt_prog_compiler_pic='-DDLL_EXPORT' 8781 case $host_os in 8782 os2*) 8783 lt_prog_compiler_static='$wl-static' 8784 ;; 8785 esac 8786 ;; 8787 8788 darwin* | rhapsody*) 8789 # PIC is the default on this platform 8790 # Common symbols not allowed in MH_DYLIB files 8791 lt_prog_compiler_pic='-fno-common' 8792 ;; 8793 8794 haiku*) 8795 # PIC is the default for Haiku. 8796 # The "-static" flag exists, but is broken. 8797 lt_prog_compiler_static= 8798 ;; 8799 8800 hpux*) 8801 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8802 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8803 # sets the default TLS model and affects inlining. 8804 case $host_cpu in 8805 hppa*64*) 8806 # +Z the default 8807 ;; 8808 *) 8809 lt_prog_compiler_pic='-fPIC' 8810 ;; 8811 esac 8812 ;; 8813 8814 interix[3-9]*) 8815 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8816 # Instead, we relocate shared libraries at runtime. 8817 ;; 8818 8819 msdosdjgpp*) 8820 # Just because we use GCC doesn't mean we suddenly get shared libraries 8821 # on systems that don't support them. 8822 lt_prog_compiler_can_build_shared=no 8823 enable_shared=no 8824 ;; 8825 8826 *nto* | *qnx*) 8827 # QNX uses GNU C++, but need to define -shared option too, otherwise 8828 # it will coredump. 8829 lt_prog_compiler_pic='-fPIC -shared' 8830 ;; 8831 8832 sysv4*MP*) 8833 if test -d /usr/nec; then 8834 lt_prog_compiler_pic=-Kconform_pic 8835 fi 8836 ;; 8837 8838 *) 8839 lt_prog_compiler_pic='-fPIC' 8840 ;; 8841 esac 8842 8843 case $cc_basename in 8844 nvcc*) # Cuda Compiler Driver 2.2 8845 lt_prog_compiler_wl='-Xlinker ' 8846 if test -n "$lt_prog_compiler_pic"; then 8847 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8848 fi 8849 ;; 8850 esac 8851 else 8852 # PORTME Check for flag to pass linker flags through the system compiler. 8853 case $host_os in 8854 aix*) 8855 lt_prog_compiler_wl='-Wl,' 8856 if test ia64 = "$host_cpu"; then 8857 # AIX 5 now supports IA64 processor 8858 lt_prog_compiler_static='-Bstatic' 8859 else 8860 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8861 fi 8862 ;; 8863 8864 darwin* | rhapsody*) 8865 # PIC is the default on this platform 8866 # Common symbols not allowed in MH_DYLIB files 8867 lt_prog_compiler_pic='-fno-common' 8868 case $cc_basename in 8869 nagfor*) 8870 # NAG Fortran compiler 8871 lt_prog_compiler_wl='-Wl,-Wl,,' 8872 lt_prog_compiler_pic='-PIC' 8873 lt_prog_compiler_static='-Bstatic' 8874 ;; 8875 esac 8876 ;; 8877 8878 mingw* | cygwin* | pw32* | os2* | cegcc*) 8879 # This hack is so that the source file can tell whether it is being 8880 # built for inclusion in a dll (and should export symbols for example). 8881 lt_prog_compiler_pic='-DDLL_EXPORT' 8882 case $host_os in 8883 os2*) 8884 lt_prog_compiler_static='$wl-static' 8885 ;; 8886 esac 8887 ;; 8888 8889 hpux9* | hpux10* | hpux11*) 8890 lt_prog_compiler_wl='-Wl,' 8891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8892 # not for PA HP-UX. 8893 case $host_cpu in 8894 hppa*64*|ia64*) 8895 # +Z the default 8896 ;; 8897 *) 8898 lt_prog_compiler_pic='+Z' 8899 ;; 8900 esac 8901 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8902 lt_prog_compiler_static='$wl-a ${wl}archive' 8903 ;; 8904 8905 irix5* | irix6* | nonstopux*) 8906 lt_prog_compiler_wl='-Wl,' 8907 # PIC (with -KPIC) is the default. 8908 lt_prog_compiler_static='-non_shared' 8909 ;; 8910 8911 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8912 case $cc_basename in 8913 # old Intel for x86_64, which still supported -KPIC. 8914 ecc*) 8915 lt_prog_compiler_wl='-Wl,' 8916 lt_prog_compiler_pic='-KPIC' 8917 lt_prog_compiler_static='-static' 8918 ;; 8919 # icc used to be incompatible with GCC. 8920 # ICC 10 doesn't accept -KPIC any more. 8921 icc* | ifort*) 8922 lt_prog_compiler_wl='-Wl,' 8923 lt_prog_compiler_pic='-fPIC' 8924 lt_prog_compiler_static='-static' 8925 ;; 8926 # Lahey Fortran 8.1. 8927 lf95*) 8928 lt_prog_compiler_wl='-Wl,' 8929 lt_prog_compiler_pic='--shared' 8930 lt_prog_compiler_static='--static' 8931 ;; 8932 nagfor*) 8933 # NAG Fortran compiler 8934 lt_prog_compiler_wl='-Wl,-Wl,,' 8935 lt_prog_compiler_pic='-PIC' 8936 lt_prog_compiler_static='-Bstatic' 8937 ;; 8938 tcc*) 8939 # Fabrice Bellard et al's Tiny C Compiler 8940 lt_prog_compiler_wl='-Wl,' 8941 lt_prog_compiler_pic='-fPIC' 8942 lt_prog_compiler_static='-static' 8943 ;; 8944 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8945 # Portland Group compilers (*not* the Pentium gcc compiler, 8946 # which looks to be a dead project) 8947 lt_prog_compiler_wl='-Wl,' 8948 lt_prog_compiler_pic='-fpic' 8949 lt_prog_compiler_static='-Bstatic' 8950 ;; 8951 ccc*) 8952 lt_prog_compiler_wl='-Wl,' 8953 # All Alpha code is PIC. 8954 lt_prog_compiler_static='-non_shared' 8955 ;; 8956 xl* | bgxl* | bgf* | mpixl*) 8957 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8958 lt_prog_compiler_wl='-Wl,' 8959 lt_prog_compiler_pic='-qpic' 8960 lt_prog_compiler_static='-qstaticlink' 8961 ;; 8962 *) 8963 case `$CC -V 2>&1 | sed 5q` in 8964 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8965 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8966 lt_prog_compiler_pic='-KPIC' 8967 lt_prog_compiler_static='-Bstatic' 8968 lt_prog_compiler_wl='' 8969 ;; 8970 *Sun\ F* | *Sun*Fortran*) 8971 lt_prog_compiler_pic='-KPIC' 8972 lt_prog_compiler_static='-Bstatic' 8973 lt_prog_compiler_wl='-Qoption ld ' 8974 ;; 8975 *Sun\ C*) 8976 # Sun C 5.9 8977 lt_prog_compiler_pic='-KPIC' 8978 lt_prog_compiler_static='-Bstatic' 8979 lt_prog_compiler_wl='-Wl,' 8980 ;; 8981 *Intel*\ [CF]*Compiler*) 8982 lt_prog_compiler_wl='-Wl,' 8983 lt_prog_compiler_pic='-fPIC' 8984 lt_prog_compiler_static='-static' 8985 ;; 8986 *Portland\ Group*) 8987 lt_prog_compiler_wl='-Wl,' 8988 lt_prog_compiler_pic='-fpic' 8989 lt_prog_compiler_static='-Bstatic' 8990 ;; 8991 esac 8992 ;; 8993 esac 8994 ;; 8995 8996 newsos6) 8997 lt_prog_compiler_pic='-KPIC' 8998 lt_prog_compiler_static='-Bstatic' 8999 ;; 9000 9001 *nto* | *qnx*) 9002 # QNX uses GNU C++, but need to define -shared option too, otherwise 9003 # it will coredump. 9004 lt_prog_compiler_pic='-fPIC -shared' 9005 ;; 9006 9007 osf3* | osf4* | osf5*) 9008 lt_prog_compiler_wl='-Wl,' 9009 # All OSF/1 code is PIC. 9010 lt_prog_compiler_static='-non_shared' 9011 ;; 9012 9013 rdos*) 9014 lt_prog_compiler_static='-non_shared' 9015 ;; 9016 9017 solaris*) 9018 lt_prog_compiler_pic='-KPIC' 9019 lt_prog_compiler_static='-Bstatic' 9020 case $cc_basename in 9021 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9022 lt_prog_compiler_wl='-Qoption ld ';; 9023 *) 9024 lt_prog_compiler_wl='-Wl,';; 9025 esac 9026 ;; 9027 9028 sunos4*) 9029 lt_prog_compiler_wl='-Qoption ld ' 9030 lt_prog_compiler_pic='-PIC' 9031 lt_prog_compiler_static='-Bstatic' 9032 ;; 9033 9034 sysv4 | sysv4.2uw2* | sysv4.3*) 9035 lt_prog_compiler_wl='-Wl,' 9036 lt_prog_compiler_pic='-KPIC' 9037 lt_prog_compiler_static='-Bstatic' 9038 ;; 9039 9040 sysv4*MP*) 9041 if test -d /usr/nec; then 9042 lt_prog_compiler_pic='-Kconform_pic' 9043 lt_prog_compiler_static='-Bstatic' 9044 fi 9045 ;; 9046 9047 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9048 lt_prog_compiler_wl='-Wl,' 9049 lt_prog_compiler_pic='-KPIC' 9050 lt_prog_compiler_static='-Bstatic' 9051 ;; 9052 9053 unicos*) 9054 lt_prog_compiler_wl='-Wl,' 9055 lt_prog_compiler_can_build_shared=no 9056 ;; 9057 9058 uts4*) 9059 lt_prog_compiler_pic='-pic' 9060 lt_prog_compiler_static='-Bstatic' 9061 ;; 9062 9063 *) 9064 lt_prog_compiler_can_build_shared=no 9065 ;; 9066 esac 9067 fi 9068 9069case $host_os in 9070 # For platforms that do not support PIC, -DPIC is meaningless: 9071 *djgpp*) 9072 lt_prog_compiler_pic= 9073 ;; 9074 *) 9075 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9076 ;; 9077esac 9078 9079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9080$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9081if ${lt_cv_prog_compiler_pic+:} false; then : 9082 $as_echo_n "(cached) " >&6 9083else 9084 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9085fi 9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9087$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9088lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9089 9090# 9091# Check to make sure the PIC flag actually works. 9092# 9093if test -n "$lt_prog_compiler_pic"; then 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9095$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9096if ${lt_cv_prog_compiler_pic_works+:} false; then : 9097 $as_echo_n "(cached) " >&6 9098else 9099 lt_cv_prog_compiler_pic_works=no 9100 ac_outfile=conftest.$ac_objext 9101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9102 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9103 # Insert the option either (1) after the last *FLAGS variable, or 9104 # (2) before a word containing "conftest.", or (3) at the end. 9105 # Note that $ac_compile itself does not contain backslashes and begins 9106 # with a dollar sign (not a hyphen), so the echo should work correctly. 9107 # The option is referenced via a variable to avoid confusing sed. 9108 lt_compile=`echo "$ac_compile" | $SED \ 9109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9111 -e 's:$: $lt_compiler_flag:'` 9112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9113 (eval "$lt_compile" 2>conftest.err) 9114 ac_status=$? 9115 cat conftest.err >&5 9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9117 if (exit $ac_status) && test -s "$ac_outfile"; then 9118 # The compiler can only warn and ignore the option if not recognized 9119 # So say no if there are warnings other than the usual output. 9120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9123 lt_cv_prog_compiler_pic_works=yes 9124 fi 9125 fi 9126 $RM conftest* 9127 9128fi 9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9130$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9131 9132if test yes = "$lt_cv_prog_compiler_pic_works"; then 9133 case $lt_prog_compiler_pic in 9134 "" | " "*) ;; 9135 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9136 esac 9137else 9138 lt_prog_compiler_pic= 9139 lt_prog_compiler_can_build_shared=no 9140fi 9141 9142fi 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154# 9155# Check to make sure the static flag actually works. 9156# 9157wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9159$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9160if ${lt_cv_prog_compiler_static_works+:} false; then : 9161 $as_echo_n "(cached) " >&6 9162else 9163 lt_cv_prog_compiler_static_works=no 9164 save_LDFLAGS=$LDFLAGS 9165 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9166 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9168 # The linker can only warn and ignore the option if not recognized 9169 # So say no if there are warnings 9170 if test -s conftest.err; then 9171 # Append any errors to the config.log. 9172 cat conftest.err 1>&5 9173 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9175 if diff conftest.exp conftest.er2 >/dev/null; then 9176 lt_cv_prog_compiler_static_works=yes 9177 fi 9178 else 9179 lt_cv_prog_compiler_static_works=yes 9180 fi 9181 fi 9182 $RM -r conftest* 9183 LDFLAGS=$save_LDFLAGS 9184 9185fi 9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9187$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9188 9189if test yes = "$lt_cv_prog_compiler_static_works"; then 9190 : 9191else 9192 lt_prog_compiler_static= 9193fi 9194 9195 9196 9197 9198 9199 9200 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9202$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9203if ${lt_cv_prog_compiler_c_o+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 lt_cv_prog_compiler_c_o=no 9207 $RM -r conftest 2>/dev/null 9208 mkdir conftest 9209 cd conftest 9210 mkdir out 9211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9212 9213 lt_compiler_flag="-o out/conftest2.$ac_objext" 9214 # Insert the option either (1) after the last *FLAGS variable, or 9215 # (2) before a word containing "conftest.", or (3) at the end. 9216 # Note that $ac_compile itself does not contain backslashes and begins 9217 # with a dollar sign (not a hyphen), so the echo should work correctly. 9218 lt_compile=`echo "$ac_compile" | $SED \ 9219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9221 -e 's:$: $lt_compiler_flag:'` 9222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9223 (eval "$lt_compile" 2>out/conftest.err) 9224 ac_status=$? 9225 cat out/conftest.err >&5 9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9227 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9228 then 9229 # The compiler can only warn and ignore the option if not recognized 9230 # So say no if there are warnings 9231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9234 lt_cv_prog_compiler_c_o=yes 9235 fi 9236 fi 9237 chmod u+w . 2>&5 9238 $RM conftest* 9239 # SGI C++ compiler will create directory out/ii_files/ for 9240 # template instantiation 9241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9242 $RM out/* && rmdir out 9243 cd .. 9244 $RM -r conftest 9245 $RM conftest* 9246 9247fi 9248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9249$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9250 9251 9252 9253 9254 9255 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9257$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9258if ${lt_cv_prog_compiler_c_o+:} false; then : 9259 $as_echo_n "(cached) " >&6 9260else 9261 lt_cv_prog_compiler_c_o=no 9262 $RM -r conftest 2>/dev/null 9263 mkdir conftest 9264 cd conftest 9265 mkdir out 9266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9267 9268 lt_compiler_flag="-o out/conftest2.$ac_objext" 9269 # Insert the option either (1) after the last *FLAGS variable, or 9270 # (2) before a word containing "conftest.", or (3) at the end. 9271 # Note that $ac_compile itself does not contain backslashes and begins 9272 # with a dollar sign (not a hyphen), so the echo should work correctly. 9273 lt_compile=`echo "$ac_compile" | $SED \ 9274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9276 -e 's:$: $lt_compiler_flag:'` 9277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9278 (eval "$lt_compile" 2>out/conftest.err) 9279 ac_status=$? 9280 cat out/conftest.err >&5 9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9282 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9283 then 9284 # The compiler can only warn and ignore the option if not recognized 9285 # So say no if there are warnings 9286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9289 lt_cv_prog_compiler_c_o=yes 9290 fi 9291 fi 9292 chmod u+w . 2>&5 9293 $RM conftest* 9294 # SGI C++ compiler will create directory out/ii_files/ for 9295 # template instantiation 9296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9297 $RM out/* && rmdir out 9298 cd .. 9299 $RM -r conftest 9300 $RM conftest* 9301 9302fi 9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9304$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9305 9306 9307 9308 9309hard_links=nottested 9310if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9311 # do not overwrite the value of need_locks provided by the user 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9313$as_echo_n "checking if we can lock with hard links... " >&6; } 9314 hard_links=yes 9315 $RM conftest* 9316 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9317 touch conftest.a 9318 ln conftest.a conftest.b 2>&5 || hard_links=no 9319 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9321$as_echo "$hard_links" >&6; } 9322 if test no = "$hard_links"; then 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9324$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9325 need_locks=warn 9326 fi 9327else 9328 need_locks=no 9329fi 9330 9331 9332 9333 9334 9335 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9337$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9338 9339 runpath_var= 9340 allow_undefined_flag= 9341 always_export_symbols=no 9342 archive_cmds= 9343 archive_expsym_cmds= 9344 compiler_needs_object=no 9345 enable_shared_with_static_runtimes=no 9346 export_dynamic_flag_spec= 9347 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9348 hardcode_automatic=no 9349 hardcode_direct=no 9350 hardcode_direct_absolute=no 9351 hardcode_libdir_flag_spec= 9352 hardcode_libdir_separator= 9353 hardcode_minus_L=no 9354 hardcode_shlibpath_var=unsupported 9355 inherit_rpath=no 9356 link_all_deplibs=unknown 9357 module_cmds= 9358 module_expsym_cmds= 9359 old_archive_from_new_cmds= 9360 old_archive_from_expsyms_cmds= 9361 thread_safe_flag_spec= 9362 whole_archive_flag_spec= 9363 # include_expsyms should be a list of space-separated symbols to be *always* 9364 # included in the symbol list 9365 include_expsyms= 9366 # exclude_expsyms can be an extended regexp of symbols to exclude 9367 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9368 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9369 # as well as any symbol that contains 'd'. 9370 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9372 # platforms (ab)use it in PIC code, but their linkers get confused if 9373 # the symbol is explicitly referenced. Since portable code cannot 9374 # rely on this symbol name, it's probably fine to never include it in 9375 # preloaded symbol tables. 9376 # Exclude shared library initialization/finalization symbols. 9377 extract_expsyms_cmds= 9378 9379 case $host_os in 9380 cygwin* | mingw* | pw32* | cegcc*) 9381 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9382 # When not using gcc, we currently assume that we are using 9383 # Microsoft Visual C++. 9384 if test yes != "$GCC"; then 9385 with_gnu_ld=no 9386 fi 9387 ;; 9388 interix*) 9389 # we just hope/assume this is gcc and not c89 (= MSVC++) 9390 with_gnu_ld=yes 9391 ;; 9392 openbsd* | bitrig*) 9393 with_gnu_ld=no 9394 ;; 9395 linux* | k*bsd*-gnu | gnu*) 9396 link_all_deplibs=no 9397 ;; 9398 esac 9399 9400 ld_shlibs=yes 9401 9402 # On some targets, GNU ld is compatible enough with the native linker 9403 # that we're better off using the native interface for both. 9404 lt_use_gnu_ld_interface=no 9405 if test yes = "$with_gnu_ld"; then 9406 case $host_os in 9407 aix*) 9408 # The AIX port of GNU ld has always aspired to compatibility 9409 # with the native linker. However, as the warning in the GNU ld 9410 # block says, versions before 2.19.5* couldn't really create working 9411 # shared libraries, regardless of the interface used. 9412 case `$LD -v 2>&1` in 9413 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9414 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9415 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9416 *) 9417 lt_use_gnu_ld_interface=yes 9418 ;; 9419 esac 9420 ;; 9421 *) 9422 lt_use_gnu_ld_interface=yes 9423 ;; 9424 esac 9425 fi 9426 9427 if test yes = "$lt_use_gnu_ld_interface"; then 9428 # If archive_cmds runs LD, not CC, wlarc should be empty 9429 wlarc='$wl' 9430 9431 # Set some defaults for GNU ld with shared library support. These 9432 # are reset later if shared libraries are not supported. Putting them 9433 # here allows them to be overridden if necessary. 9434 runpath_var=LD_RUN_PATH 9435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9436 export_dynamic_flag_spec='$wl--export-dynamic' 9437 # ancient GNU ld didn't support --whole-archive et. al. 9438 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9439 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9440 else 9441 whole_archive_flag_spec= 9442 fi 9443 supports_anon_versioning=no 9444 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9445 *GNU\ gold*) supports_anon_versioning=yes ;; 9446 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9447 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9448 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9449 *\ 2.11.*) ;; # other 2.11 versions 9450 *) supports_anon_versioning=yes ;; 9451 esac 9452 9453 # See if GNU ld supports shared libraries. 9454 case $host_os in 9455 aix[3-9]*) 9456 # On AIX/PPC, the GNU linker is very broken 9457 if test ia64 != "$host_cpu"; then 9458 ld_shlibs=no 9459 cat <<_LT_EOF 1>&2 9460 9461*** Warning: the GNU linker, at least up to release 2.19, is reported 9462*** to be unable to reliably create shared libraries on AIX. 9463*** Therefore, libtool is disabling shared libraries support. If you 9464*** really care for shared libraries, you may want to install binutils 9465*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9466*** You will then need to restart the configuration process. 9467 9468_LT_EOF 9469 fi 9470 ;; 9471 9472 amigaos*) 9473 case $host_cpu in 9474 powerpc) 9475 # see comment about AmigaOS4 .so support 9476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9477 archive_expsym_cmds='' 9478 ;; 9479 m68k) 9480 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)' 9481 hardcode_libdir_flag_spec='-L$libdir' 9482 hardcode_minus_L=yes 9483 ;; 9484 esac 9485 ;; 9486 9487 beos*) 9488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9489 allow_undefined_flag=unsupported 9490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9491 # support --undefined. This deserves some investigation. FIXME 9492 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9493 else 9494 ld_shlibs=no 9495 fi 9496 ;; 9497 9498 cygwin* | mingw* | pw32* | cegcc*) 9499 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9500 # as there is no search path for DLLs. 9501 hardcode_libdir_flag_spec='-L$libdir' 9502 export_dynamic_flag_spec='$wl--export-all-symbols' 9503 allow_undefined_flag=unsupported 9504 always_export_symbols=no 9505 enable_shared_with_static_runtimes=yes 9506 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' 9507 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9508 9509 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9511 # If the export-symbols file already is a .def file, use it as 9512 # is; otherwise, prepend EXPORTS... 9513 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9514 cp $export_symbols $output_objdir/$soname.def; 9515 else 9516 echo EXPORTS > $output_objdir/$soname.def; 9517 cat $export_symbols >> $output_objdir/$soname.def; 9518 fi~ 9519 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9520 else 9521 ld_shlibs=no 9522 fi 9523 ;; 9524 9525 haiku*) 9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9527 link_all_deplibs=yes 9528 ;; 9529 9530 os2*) 9531 hardcode_libdir_flag_spec='-L$libdir' 9532 hardcode_minus_L=yes 9533 allow_undefined_flag=unsupported 9534 shrext_cmds=.dll 9535 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9538 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9539 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9540 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9541 emximp -o $lib $output_objdir/$libname.def' 9542 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9545 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9546 prefix_cmds="$SED"~ 9547 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9548 prefix_cmds="$prefix_cmds -e 1d"; 9549 fi~ 9550 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9551 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9552 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9553 emximp -o $lib $output_objdir/$libname.def' 9554 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9555 enable_shared_with_static_runtimes=yes 9556 ;; 9557 9558 interix[3-9]*) 9559 hardcode_direct=no 9560 hardcode_shlibpath_var=no 9561 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9562 export_dynamic_flag_spec='$wl-E' 9563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9564 # Instead, shared libraries are loaded at an image base (0x10000000 by 9565 # default) and relocated if they conflict, which is a slow very memory 9566 # consuming and fragmenting process. To avoid this, we pick a random, 9567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9568 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9570 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' 9571 ;; 9572 9573 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9574 tmp_diet=no 9575 if test linux-dietlibc = "$host_os"; then 9576 case $cc_basename in 9577 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9578 esac 9579 fi 9580 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9581 && test no = "$tmp_diet" 9582 then 9583 tmp_addflag=' $pic_flag' 9584 tmp_sharedflag='-shared' 9585 case $cc_basename,$host_cpu in 9586 pgcc*) # Portland Group C compiler 9587 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' 9588 tmp_addflag=' $pic_flag' 9589 ;; 9590 pgf77* | pgf90* | pgf95* | pgfortran*) 9591 # Portland Group f77 and f90 compilers 9592 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' 9593 tmp_addflag=' $pic_flag -Mnomain' ;; 9594 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9595 tmp_addflag=' -i_dynamic' ;; 9596 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9597 tmp_addflag=' -i_dynamic -nofor_main' ;; 9598 ifc* | ifort*) # Intel Fortran compiler 9599 tmp_addflag=' -nofor_main' ;; 9600 lf95*) # Lahey Fortran 8.1 9601 whole_archive_flag_spec= 9602 tmp_sharedflag='--shared' ;; 9603 nagfor*) # NAGFOR 5.3 9604 tmp_sharedflag='-Wl,-shared' ;; 9605 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9606 tmp_sharedflag='-qmkshrobj' 9607 tmp_addflag= ;; 9608 nvcc*) # Cuda Compiler Driver 2.2 9609 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' 9610 compiler_needs_object=yes 9611 ;; 9612 esac 9613 case `$CC -V 2>&1 | sed 5q` in 9614 *Sun\ C*) # Sun C 5.9 9615 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' 9616 compiler_needs_object=yes 9617 tmp_sharedflag='-G' ;; 9618 *Sun\ F*) # Sun Fortran 8.3 9619 tmp_sharedflag='-G' ;; 9620 esac 9621 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9622 9623 if test yes = "$supports_anon_versioning"; then 9624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9626 echo "local: *; };" >> $output_objdir/$libname.ver~ 9627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9628 fi 9629 9630 case $cc_basename in 9631 tcc*) 9632 export_dynamic_flag_spec='-rdynamic' 9633 ;; 9634 xlf* | bgf* | bgxlf* | mpixlf*) 9635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9638 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9639 if test yes = "$supports_anon_versioning"; then 9640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9642 echo "local: *; };" >> $output_objdir/$libname.ver~ 9643 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9644 fi 9645 ;; 9646 esac 9647 else 9648 ld_shlibs=no 9649 fi 9650 ;; 9651 9652 netbsd* | netbsdelf*-gnu) 9653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9654 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9655 wlarc= 9656 else 9657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9659 fi 9660 ;; 9661 9662 solaris*) 9663 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9664 ld_shlibs=no 9665 cat <<_LT_EOF 1>&2 9666 9667*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9668*** create shared libraries on Solaris systems. Therefore, libtool 9669*** is disabling shared libraries support. We urge you to upgrade GNU 9670*** binutils to release 2.9.1 or newer. Another option is to modify 9671*** your PATH or compiler configuration so that the native linker is 9672*** used, and then restart. 9673 9674_LT_EOF 9675 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9677 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9678 else 9679 ld_shlibs=no 9680 fi 9681 ;; 9682 9683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9684 case `$LD -v 2>&1` in 9685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9686 ld_shlibs=no 9687 cat <<_LT_EOF 1>&2 9688 9689*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9690*** reliably create shared libraries on SCO systems. Therefore, libtool 9691*** is disabling shared libraries support. We urge you to upgrade GNU 9692*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9693*** your PATH or compiler configuration so that the native linker is 9694*** used, and then restart. 9695 9696_LT_EOF 9697 ;; 9698 *) 9699 # For security reasons, it is highly recommended that you always 9700 # use absolute paths for naming shared libraries, and exclude the 9701 # DT_RUNPATH tag from executables and libraries. But doing so 9702 # requires that you compile everything twice, which is a pain. 9703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9707 else 9708 ld_shlibs=no 9709 fi 9710 ;; 9711 esac 9712 ;; 9713 9714 sunos4*) 9715 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9716 wlarc= 9717 hardcode_direct=yes 9718 hardcode_shlibpath_var=no 9719 ;; 9720 9721 *) 9722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9724 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9725 else 9726 ld_shlibs=no 9727 fi 9728 ;; 9729 esac 9730 9731 if test no = "$ld_shlibs"; then 9732 runpath_var= 9733 hardcode_libdir_flag_spec= 9734 export_dynamic_flag_spec= 9735 whole_archive_flag_spec= 9736 fi 9737 else 9738 # PORTME fill in a description of your system's linker (not GNU ld) 9739 case $host_os in 9740 aix3*) 9741 allow_undefined_flag=unsupported 9742 always_export_symbols=yes 9743 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' 9744 # Note: this linker hardcodes the directories in LIBPATH if there 9745 # are no directories specified by -L. 9746 hardcode_minus_L=yes 9747 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9748 # Neither direct hardcoding nor static linking is supported with a 9749 # broken collect2. 9750 hardcode_direct=unsupported 9751 fi 9752 ;; 9753 9754 aix[4-9]*) 9755 if test ia64 = "$host_cpu"; then 9756 # On IA64, the linker does run time linking by default, so we don't 9757 # have to do anything special. 9758 aix_use_runtimelinking=no 9759 exp_sym_flag='-Bexport' 9760 no_entry_flag= 9761 else 9762 # If we're using GNU nm, then we don't want the "-C" option. 9763 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9764 # Without the "-l" option, or with the "-B" option, AIX nm treats 9765 # weak defined symbols like other global defined symbols, whereas 9766 # GNU nm marks them as "W". 9767 # While the 'weak' keyword is ignored in the Export File, we need 9768 # it in the Import File for the 'aix-soname' feature, so we have 9769 # to replace the "-B" option with "-P" for AIX nm. 9770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9771 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' 9772 else 9773 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' 9774 fi 9775 aix_use_runtimelinking=no 9776 9777 # Test if we are trying to use run time linking or normal 9778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9779 # have runtime linking enabled, and use it for executables. 9780 # For shared libraries, we enable/disable runtime linking 9781 # depending on the kind of the shared library created - 9782 # when "with_aix_soname,aix_use_runtimelinking" is: 9783 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9784 # "aix,yes" lib.so shared, rtl:yes, for executables 9785 # lib.a static archive 9786 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9787 # lib.a(lib.so.V) shared, rtl:no, for executables 9788 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9789 # lib.a(lib.so.V) shared, rtl:no 9790 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9791 # lib.a static archive 9792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9793 for ld_flag in $LDFLAGS; do 9794 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9795 aix_use_runtimelinking=yes 9796 break 9797 fi 9798 done 9799 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9800 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9801 # so we don't have lib.a shared libs to link our executables. 9802 # We have to force runtime linking in this case. 9803 aix_use_runtimelinking=yes 9804 LDFLAGS="$LDFLAGS -Wl,-brtl" 9805 fi 9806 ;; 9807 esac 9808 9809 exp_sym_flag='-bexport' 9810 no_entry_flag='-bnoentry' 9811 fi 9812 9813 # When large executables or shared objects are built, AIX ld can 9814 # have problems creating the table of contents. If linking a library 9815 # or program results in "error TOC overflow" add -mminimal-toc to 9816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9818 9819 archive_cmds='' 9820 hardcode_direct=yes 9821 hardcode_direct_absolute=yes 9822 hardcode_libdir_separator=':' 9823 link_all_deplibs=yes 9824 file_list_spec='$wl-f,' 9825 case $with_aix_soname,$aix_use_runtimelinking in 9826 aix,*) ;; # traditional, no import file 9827 svr4,* | *,yes) # use import file 9828 # The Import File defines what to hardcode. 9829 hardcode_direct=no 9830 hardcode_direct_absolute=no 9831 ;; 9832 esac 9833 9834 if test yes = "$GCC"; then 9835 case $host_os in aix4.[012]|aix4.[012].*) 9836 # We only want to do this on AIX 4.2 and lower, the check 9837 # below for broken collect2 doesn't work under 4.3+ 9838 collect2name=`$CC -print-prog-name=collect2` 9839 if test -f "$collect2name" && 9840 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9841 then 9842 # We have reworked collect2 9843 : 9844 else 9845 # We have old collect2 9846 hardcode_direct=unsupported 9847 # It fails to find uninstalled libraries when the uninstalled 9848 # path is not listed in the libpath. Setting hardcode_minus_L 9849 # to unsupported forces relinking 9850 hardcode_minus_L=yes 9851 hardcode_libdir_flag_spec='-L$libdir' 9852 hardcode_libdir_separator= 9853 fi 9854 ;; 9855 esac 9856 shared_flag='-shared' 9857 if test yes = "$aix_use_runtimelinking"; then 9858 shared_flag="$shared_flag "'$wl-G' 9859 fi 9860 # Need to ensure runtime linking is disabled for the traditional 9861 # shared library, or the linker may eventually find shared libraries 9862 # /with/ Import File - we do not want to mix them. 9863 shared_flag_aix='-shared' 9864 shared_flag_svr4='-shared $wl-G' 9865 else 9866 # not using gcc 9867 if test ia64 = "$host_cpu"; then 9868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9869 # chokes on -Wl,-G. The following line is correct: 9870 shared_flag='-G' 9871 else 9872 if test yes = "$aix_use_runtimelinking"; then 9873 shared_flag='$wl-G' 9874 else 9875 shared_flag='$wl-bM:SRE' 9876 fi 9877 shared_flag_aix='$wl-bM:SRE' 9878 shared_flag_svr4='$wl-G' 9879 fi 9880 fi 9881 9882 export_dynamic_flag_spec='$wl-bexpall' 9883 # It seems that -bexpall does not export symbols beginning with 9884 # underscore (_), so it is better to generate a list of symbols to export. 9885 always_export_symbols=yes 9886 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9887 # Warning - without using the other runtime loading flags (-brtl), 9888 # -berok will link without error, but may produce a broken library. 9889 allow_undefined_flag='-berok' 9890 # Determine the default libpath from the value encoded in an 9891 # empty executable. 9892 if test set = "${lt_cv_aix_libpath+set}"; then 9893 aix_libpath=$lt_cv_aix_libpath 9894else 9895 if ${lt_cv_aix_libpath_+:} false; then : 9896 $as_echo_n "(cached) " >&6 9897else 9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9899/* end confdefs.h. */ 9900 9901int 9902main () 9903{ 9904 9905 ; 9906 return 0; 9907} 9908_ACEOF 9909if ac_fn_c_try_link "$LINENO"; then : 9910 9911 lt_aix_libpath_sed=' 9912 /Import File Strings/,/^$/ { 9913 /^0/ { 9914 s/^0 *\([^ ]*\) *$/\1/ 9915 p 9916 } 9917 }' 9918 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9919 # Check for a 64-bit object if we didn't find anything. 9920 if test -z "$lt_cv_aix_libpath_"; then 9921 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9922 fi 9923fi 9924rm -f core conftest.err conftest.$ac_objext \ 9925 conftest$ac_exeext conftest.$ac_ext 9926 if test -z "$lt_cv_aix_libpath_"; then 9927 lt_cv_aix_libpath_=/usr/lib:/lib 9928 fi 9929 9930fi 9931 9932 aix_libpath=$lt_cv_aix_libpath_ 9933fi 9934 9935 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9936 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 9937 else 9938 if test ia64 = "$host_cpu"; then 9939 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9940 allow_undefined_flag="-z nodefs" 9941 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" 9942 else 9943 # Determine the default libpath from the value encoded in an 9944 # empty executable. 9945 if test set = "${lt_cv_aix_libpath+set}"; then 9946 aix_libpath=$lt_cv_aix_libpath 9947else 9948 if ${lt_cv_aix_libpath_+:} false; then : 9949 $as_echo_n "(cached) " >&6 9950else 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953 9954int 9955main () 9956{ 9957 9958 ; 9959 return 0; 9960} 9961_ACEOF 9962if ac_fn_c_try_link "$LINENO"; then : 9963 9964 lt_aix_libpath_sed=' 9965 /Import File Strings/,/^$/ { 9966 /^0/ { 9967 s/^0 *\([^ ]*\) *$/\1/ 9968 p 9969 } 9970 }' 9971 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9972 # Check for a 64-bit object if we didn't find anything. 9973 if test -z "$lt_cv_aix_libpath_"; then 9974 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9975 fi 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979 if test -z "$lt_cv_aix_libpath_"; then 9980 lt_cv_aix_libpath_=/usr/lib:/lib 9981 fi 9982 9983fi 9984 9985 aix_libpath=$lt_cv_aix_libpath_ 9986fi 9987 9988 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9989 # Warning - without using the other run time loading flags, 9990 # -berok will link without error, but may produce a broken library. 9991 no_undefined_flag=' $wl-bernotok' 9992 allow_undefined_flag=' $wl-berok' 9993 if test yes = "$with_gnu_ld"; then 9994 # We only use this code for GNU lds that support --whole-archive. 9995 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9996 else 9997 # Exported symbols can be pulled into shared objects from archives 9998 whole_archive_flag_spec='$convenience' 9999 fi 10000 archive_cmds_need_lc=yes 10001 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10002 # -brtl affects multiple linker settings, -berok does not and is overridden later 10003 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10004 if test svr4 != "$with_aix_soname"; then 10005 # This is similar to how AIX traditionally builds its shared libraries. 10006 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' 10007 fi 10008 if test aix != "$with_aix_soname"; then 10009 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' 10010 else 10011 # used by -dlpreopen to get the symbols 10012 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10013 fi 10014 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10015 fi 10016 fi 10017 ;; 10018 10019 amigaos*) 10020 case $host_cpu in 10021 powerpc) 10022 # see comment about AmigaOS4 .so support 10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10024 archive_expsym_cmds='' 10025 ;; 10026 m68k) 10027 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)' 10028 hardcode_libdir_flag_spec='-L$libdir' 10029 hardcode_minus_L=yes 10030 ;; 10031 esac 10032 ;; 10033 10034 bsdi[45]*) 10035 export_dynamic_flag_spec=-rdynamic 10036 ;; 10037 10038 cygwin* | mingw* | pw32* | cegcc*) 10039 # When not using gcc, we currently assume that we are using 10040 # Microsoft Visual C++. 10041 # hardcode_libdir_flag_spec is actually meaningless, as there is 10042 # no search path for DLLs. 10043 case $cc_basename in 10044 cl*) 10045 # Native MSVC 10046 hardcode_libdir_flag_spec=' ' 10047 allow_undefined_flag=unsupported 10048 always_export_symbols=yes 10049 file_list_spec='@' 10050 # Tell ltmain to make .lib files, not .a files. 10051 libext=lib 10052 # Tell ltmain to make .dll files, not .so files. 10053 shrext_cmds=.dll 10054 # FIXME: Setting linknames here is a bad hack. 10055 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10056 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10057 cp "$export_symbols" "$output_objdir/$soname.def"; 10058 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10059 else 10060 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10061 fi~ 10062 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10063 linknames=' 10064 # The linker will not automatically build a static lib if we build a DLL. 10065 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10066 enable_shared_with_static_runtimes=yes 10067 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10069 # Don't use ranlib 10070 old_postinstall_cmds='chmod 644 $oldlib' 10071 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10072 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10073 case $lt_outputfile in 10074 *.exe|*.EXE) ;; 10075 *) 10076 lt_outputfile=$lt_outputfile.exe 10077 lt_tool_outputfile=$lt_tool_outputfile.exe 10078 ;; 10079 esac~ 10080 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10081 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10082 $RM "$lt_outputfile.manifest"; 10083 fi' 10084 ;; 10085 *) 10086 # Assume MSVC wrapper 10087 hardcode_libdir_flag_spec=' ' 10088 allow_undefined_flag=unsupported 10089 # Tell ltmain to make .lib files, not .a files. 10090 libext=lib 10091 # Tell ltmain to make .dll files, not .so files. 10092 shrext_cmds=.dll 10093 # FIXME: Setting linknames here is a bad hack. 10094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10095 # The linker will automatically build a .lib file if we build a DLL. 10096 old_archive_from_new_cmds='true' 10097 # FIXME: Should let the user specify the lib program. 10098 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10099 enable_shared_with_static_runtimes=yes 10100 ;; 10101 esac 10102 ;; 10103 10104 darwin* | rhapsody*) 10105 10106 10107 archive_cmds_need_lc=no 10108 hardcode_direct=no 10109 hardcode_automatic=yes 10110 hardcode_shlibpath_var=unsupported 10111 if test yes = "$lt_cv_ld_force_load"; then 10112 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\"`' 10113 10114 else 10115 whole_archive_flag_spec='' 10116 fi 10117 link_all_deplibs=yes 10118 allow_undefined_flag=$_lt_dar_allow_undefined 10119 case $cc_basename in 10120 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10121 *) _lt_dar_can_shared=$GCC ;; 10122 esac 10123 if test yes = "$_lt_dar_can_shared"; then 10124 output_verbose_link_cmd=func_echo_all 10125 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10126 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10127 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" 10128 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" 10129 10130 else 10131 ld_shlibs=no 10132 fi 10133 10134 ;; 10135 10136 dgux*) 10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10138 hardcode_libdir_flag_spec='-L$libdir' 10139 hardcode_shlibpath_var=no 10140 ;; 10141 10142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10143 # support. Future versions do this automatically, but an explicit c++rt0.o 10144 # does not break anything, and helps significantly (at the cost of a little 10145 # extra space). 10146 freebsd2.2*) 10147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10148 hardcode_libdir_flag_spec='-R$libdir' 10149 hardcode_direct=yes 10150 hardcode_shlibpath_var=no 10151 ;; 10152 10153 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10154 freebsd2.*) 10155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10156 hardcode_direct=yes 10157 hardcode_minus_L=yes 10158 hardcode_shlibpath_var=no 10159 ;; 10160 10161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10162 freebsd* | dragonfly*) 10163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10164 hardcode_libdir_flag_spec='-R$libdir' 10165 hardcode_direct=yes 10166 hardcode_shlibpath_var=no 10167 ;; 10168 10169 hpux9*) 10170 if test yes = "$GCC"; then 10171 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' 10172 else 10173 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' 10174 fi 10175 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10176 hardcode_libdir_separator=: 10177 hardcode_direct=yes 10178 10179 # hardcode_minus_L: Not really in the search PATH, 10180 # but as the default location of the library. 10181 hardcode_minus_L=yes 10182 export_dynamic_flag_spec='$wl-E' 10183 ;; 10184 10185 hpux10*) 10186 if test yes,no = "$GCC,$with_gnu_ld"; then 10187 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10188 else 10189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10190 fi 10191 if test no = "$with_gnu_ld"; then 10192 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10193 hardcode_libdir_separator=: 10194 hardcode_direct=yes 10195 hardcode_direct_absolute=yes 10196 export_dynamic_flag_spec='$wl-E' 10197 # hardcode_minus_L: Not really in the search PATH, 10198 # but as the default location of the library. 10199 hardcode_minus_L=yes 10200 fi 10201 ;; 10202 10203 hpux11*) 10204 if test yes,no = "$GCC,$with_gnu_ld"; then 10205 case $host_cpu in 10206 hppa*64*) 10207 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10208 ;; 10209 ia64*) 10210 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10211 ;; 10212 *) 10213 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10214 ;; 10215 esac 10216 else 10217 case $host_cpu in 10218 hppa*64*) 10219 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10220 ;; 10221 ia64*) 10222 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10223 ;; 10224 *) 10225 10226 # Older versions of the 11.00 compiler do not understand -b yet 10227 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10229$as_echo_n "checking if $CC understands -b... " >&6; } 10230if ${lt_cv_prog_compiler__b+:} false; then : 10231 $as_echo_n "(cached) " >&6 10232else 10233 lt_cv_prog_compiler__b=no 10234 save_LDFLAGS=$LDFLAGS 10235 LDFLAGS="$LDFLAGS -b" 10236 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10238 # The linker can only warn and ignore the option if not recognized 10239 # So say no if there are warnings 10240 if test -s conftest.err; then 10241 # Append any errors to the config.log. 10242 cat conftest.err 1>&5 10243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10245 if diff conftest.exp conftest.er2 >/dev/null; then 10246 lt_cv_prog_compiler__b=yes 10247 fi 10248 else 10249 lt_cv_prog_compiler__b=yes 10250 fi 10251 fi 10252 $RM -r conftest* 10253 LDFLAGS=$save_LDFLAGS 10254 10255fi 10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10257$as_echo "$lt_cv_prog_compiler__b" >&6; } 10258 10259if test yes = "$lt_cv_prog_compiler__b"; then 10260 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10261else 10262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10263fi 10264 10265 ;; 10266 esac 10267 fi 10268 if test no = "$with_gnu_ld"; then 10269 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10270 hardcode_libdir_separator=: 10271 10272 case $host_cpu in 10273 hppa*64*|ia64*) 10274 hardcode_direct=no 10275 hardcode_shlibpath_var=no 10276 ;; 10277 *) 10278 hardcode_direct=yes 10279 hardcode_direct_absolute=yes 10280 export_dynamic_flag_spec='$wl-E' 10281 10282 # hardcode_minus_L: Not really in the search PATH, 10283 # but as the default location of the library. 10284 hardcode_minus_L=yes 10285 ;; 10286 esac 10287 fi 10288 ;; 10289 10290 irix5* | irix6* | nonstopux*) 10291 if test yes = "$GCC"; then 10292 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' 10293 # Try to use the -exported_symbol ld option, if it does not 10294 # work, assume that -exports_file does not work either and 10295 # implicitly export all symbols. 10296 # This should be the same for all languages, so no per-tag cache variable. 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10298$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10299if ${lt_cv_irix_exported_symbol+:} false; then : 10300 $as_echo_n "(cached) " >&6 10301else 10302 save_LDFLAGS=$LDFLAGS 10303 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10305/* end confdefs.h. */ 10306int foo (void) { return 0; } 10307_ACEOF 10308if ac_fn_c_try_link "$LINENO"; then : 10309 lt_cv_irix_exported_symbol=yes 10310else 10311 lt_cv_irix_exported_symbol=no 10312fi 10313rm -f core conftest.err conftest.$ac_objext \ 10314 conftest$ac_exeext conftest.$ac_ext 10315 LDFLAGS=$save_LDFLAGS 10316fi 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10318$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10319 if test yes = "$lt_cv_irix_exported_symbol"; then 10320 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' 10321 fi 10322 link_all_deplibs=no 10323 else 10324 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' 10325 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' 10326 fi 10327 archive_cmds_need_lc='no' 10328 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10329 hardcode_libdir_separator=: 10330 inherit_rpath=yes 10331 link_all_deplibs=yes 10332 ;; 10333 10334 linux*) 10335 case $cc_basename in 10336 tcc*) 10337 # Fabrice Bellard et al's Tiny C Compiler 10338 ld_shlibs=yes 10339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10340 ;; 10341 esac 10342 ;; 10343 10344 netbsd* | netbsdelf*-gnu) 10345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10347 else 10348 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10349 fi 10350 hardcode_libdir_flag_spec='-R$libdir' 10351 hardcode_direct=yes 10352 hardcode_shlibpath_var=no 10353 ;; 10354 10355 newsos6) 10356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10357 hardcode_direct=yes 10358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10359 hardcode_libdir_separator=: 10360 hardcode_shlibpath_var=no 10361 ;; 10362 10363 *nto* | *qnx*) 10364 ;; 10365 10366 openbsd* | bitrig*) 10367 if test -f /usr/libexec/ld.so; then 10368 hardcode_direct=yes 10369 hardcode_shlibpath_var=no 10370 hardcode_direct_absolute=yes 10371 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10373 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10374 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10375 export_dynamic_flag_spec='$wl-E' 10376 else 10377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10378 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10379 fi 10380 else 10381 ld_shlibs=no 10382 fi 10383 ;; 10384 10385 os2*) 10386 hardcode_libdir_flag_spec='-L$libdir' 10387 hardcode_minus_L=yes 10388 allow_undefined_flag=unsupported 10389 shrext_cmds=.dll 10390 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10391 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10392 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10393 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10394 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10395 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10396 emximp -o $lib $output_objdir/$libname.def' 10397 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10398 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10399 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10400 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10401 prefix_cmds="$SED"~ 10402 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10403 prefix_cmds="$prefix_cmds -e 1d"; 10404 fi~ 10405 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10406 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10407 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10408 emximp -o $lib $output_objdir/$libname.def' 10409 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10410 enable_shared_with_static_runtimes=yes 10411 ;; 10412 10413 osf3*) 10414 if test yes = "$GCC"; then 10415 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10416 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' 10417 else 10418 allow_undefined_flag=' -expect_unresolved \*' 10419 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' 10420 fi 10421 archive_cmds_need_lc='no' 10422 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10423 hardcode_libdir_separator=: 10424 ;; 10425 10426 osf4* | osf5*) # as osf3* with the addition of -msym flag 10427 if test yes = "$GCC"; then 10428 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10429 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' 10430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10431 else 10432 allow_undefined_flag=' -expect_unresolved \*' 10433 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' 10434 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~ 10435 $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' 10436 10437 # Both c and cxx compiler support -rpath directly 10438 hardcode_libdir_flag_spec='-rpath $libdir' 10439 fi 10440 archive_cmds_need_lc='no' 10441 hardcode_libdir_separator=: 10442 ;; 10443 10444 solaris*) 10445 no_undefined_flag=' -z defs' 10446 if test yes = "$GCC"; then 10447 wlarc='$wl' 10448 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10450 $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' 10451 else 10452 case `$CC -V 2>&1` in 10453 *"Compilers 5.0"*) 10454 wlarc='' 10455 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10456 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10457 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10458 ;; 10459 *) 10460 wlarc='$wl' 10461 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10463 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10464 ;; 10465 esac 10466 fi 10467 hardcode_libdir_flag_spec='-R$libdir' 10468 hardcode_shlibpath_var=no 10469 case $host_os in 10470 solaris2.[0-5] | solaris2.[0-5].*) ;; 10471 *) 10472 # The compiler driver will combine and reorder linker options, 10473 # but understands '-z linker_flag'. GCC discards it without '$wl', 10474 # but is careful enough not to reorder. 10475 # Supported since Solaris 2.6 (maybe 2.5.1?) 10476 if test yes = "$GCC"; then 10477 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10478 else 10479 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10480 fi 10481 ;; 10482 esac 10483 link_all_deplibs=yes 10484 ;; 10485 10486 sunos4*) 10487 if test sequent = "$host_vendor"; then 10488 # Use $CC to link under sequent, because it throws in some extra .o 10489 # files that make .init and .fini sections work. 10490 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10491 else 10492 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10493 fi 10494 hardcode_libdir_flag_spec='-L$libdir' 10495 hardcode_direct=yes 10496 hardcode_minus_L=yes 10497 hardcode_shlibpath_var=no 10498 ;; 10499 10500 sysv4) 10501 case $host_vendor in 10502 sni) 10503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10504 hardcode_direct=yes # is this really true??? 10505 ;; 10506 siemens) 10507 ## LD is ld it makes a PLAMLIB 10508 ## CC just makes a GrossModule. 10509 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10510 reload_cmds='$CC -r -o $output$reload_objs' 10511 hardcode_direct=no 10512 ;; 10513 motorola) 10514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10515 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10516 ;; 10517 esac 10518 runpath_var='LD_RUN_PATH' 10519 hardcode_shlibpath_var=no 10520 ;; 10521 10522 sysv4.3*) 10523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10524 hardcode_shlibpath_var=no 10525 export_dynamic_flag_spec='-Bexport' 10526 ;; 10527 10528 sysv4*MP*) 10529 if test -d /usr/nec; then 10530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10531 hardcode_shlibpath_var=no 10532 runpath_var=LD_RUN_PATH 10533 hardcode_runpath_var=yes 10534 ld_shlibs=yes 10535 fi 10536 ;; 10537 10538 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10539 no_undefined_flag='$wl-z,text' 10540 archive_cmds_need_lc=no 10541 hardcode_shlibpath_var=no 10542 runpath_var='LD_RUN_PATH' 10543 10544 if test yes = "$GCC"; then 10545 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10546 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10547 else 10548 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10549 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10550 fi 10551 ;; 10552 10553 sysv5* | sco3.2v5* | sco5v6*) 10554 # Note: We CANNOT use -z defs as we might desire, because we do not 10555 # link with -lc, and that would cause any symbols used from libc to 10556 # always be unresolved, which means just about no library would 10557 # ever link correctly. If we're not using GNU ld we use -z text 10558 # though, which does catch some bad symbols but isn't as heavy-handed 10559 # as -z defs. 10560 no_undefined_flag='$wl-z,text' 10561 allow_undefined_flag='$wl-z,nodefs' 10562 archive_cmds_need_lc=no 10563 hardcode_shlibpath_var=no 10564 hardcode_libdir_flag_spec='$wl-R,$libdir' 10565 hardcode_libdir_separator=':' 10566 link_all_deplibs=yes 10567 export_dynamic_flag_spec='$wl-Bexport' 10568 runpath_var='LD_RUN_PATH' 10569 10570 if test yes = "$GCC"; then 10571 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10572 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10573 else 10574 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10575 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10576 fi 10577 ;; 10578 10579 uts4*) 10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10581 hardcode_libdir_flag_spec='-L$libdir' 10582 hardcode_shlibpath_var=no 10583 ;; 10584 10585 *) 10586 ld_shlibs=no 10587 ;; 10588 esac 10589 10590 if test sni = "$host_vendor"; then 10591 case $host in 10592 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10593 export_dynamic_flag_spec='$wl-Blargedynsym' 10594 ;; 10595 esac 10596 fi 10597 fi 10598 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10600$as_echo "$ld_shlibs" >&6; } 10601test no = "$ld_shlibs" && can_build_shared=no 10602 10603with_gnu_ld=$with_gnu_ld 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619# 10620# Do we need to explicitly link libc? 10621# 10622case "x$archive_cmds_need_lc" in 10623x|xyes) 10624 # Assume -lc should be added 10625 archive_cmds_need_lc=yes 10626 10627 if test yes,yes = "$GCC,$enable_shared"; then 10628 case $archive_cmds in 10629 *'~'*) 10630 # FIXME: we may have to deal with multi-command sequences. 10631 ;; 10632 '$CC '*) 10633 # Test whether the compiler implicitly links with -lc since on some 10634 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10635 # to ld, don't add -lc before -lgcc. 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10637$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10638if ${lt_cv_archive_cmds_need_lc+:} false; then : 10639 $as_echo_n "(cached) " >&6 10640else 10641 $RM conftest* 10642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10643 10644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10645 (eval $ac_compile) 2>&5 10646 ac_status=$? 10647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10648 test $ac_status = 0; } 2>conftest.err; then 10649 soname=conftest 10650 lib=conftest 10651 libobjs=conftest.$ac_objext 10652 deplibs= 10653 wl=$lt_prog_compiler_wl 10654 pic_flag=$lt_prog_compiler_pic 10655 compiler_flags=-v 10656 linker_flags=-v 10657 verstring= 10658 output_objdir=. 10659 libname=conftest 10660 lt_save_allow_undefined_flag=$allow_undefined_flag 10661 allow_undefined_flag= 10662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10663 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10664 ac_status=$? 10665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10666 test $ac_status = 0; } 10667 then 10668 lt_cv_archive_cmds_need_lc=no 10669 else 10670 lt_cv_archive_cmds_need_lc=yes 10671 fi 10672 allow_undefined_flag=$lt_save_allow_undefined_flag 10673 else 10674 cat conftest.err 1>&5 10675 fi 10676 $RM conftest* 10677 10678fi 10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10680$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10681 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10682 ;; 10683 esac 10684 fi 10685 ;; 10686esac 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10840$as_echo_n "checking dynamic linker characteristics... " >&6; } 10841 10842if test yes = "$GCC"; then 10843 case $host_os in 10844 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10845 *) lt_awk_arg='/^libraries:/' ;; 10846 esac 10847 case $host_os in 10848 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10849 *) lt_sed_strip_eq='s|=/|/|g' ;; 10850 esac 10851 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10852 case $lt_search_path_spec in 10853 *\;*) 10854 # if the path contains ";" then we assume it to be the separator 10855 # otherwise default to the standard path separator (i.e. ":") - it is 10856 # assumed that no part of a normal pathname contains ";" but that should 10857 # okay in the real world where ";" in dirpaths is itself problematic. 10858 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10859 ;; 10860 *) 10861 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10862 ;; 10863 esac 10864 # Ok, now we have the path, separated by spaces, we can step through it 10865 # and add multilib dir if necessary... 10866 lt_tmp_lt_search_path_spec= 10867 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10868 # ...but if some path component already ends with the multilib dir we assume 10869 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10870 case "$lt_multi_os_dir; $lt_search_path_spec " in 10871 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10872 lt_multi_os_dir= 10873 ;; 10874 esac 10875 for lt_sys_path in $lt_search_path_spec; do 10876 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10878 elif test -n "$lt_multi_os_dir"; then 10879 test -d "$lt_sys_path" && \ 10880 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10881 fi 10882 done 10883 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10884BEGIN {RS = " "; FS = "/|\n";} { 10885 lt_foo = ""; 10886 lt_count = 0; 10887 for (lt_i = NF; lt_i > 0; lt_i--) { 10888 if ($lt_i != "" && $lt_i != ".") { 10889 if ($lt_i == "..") { 10890 lt_count++; 10891 } else { 10892 if (lt_count == 0) { 10893 lt_foo = "/" $lt_i lt_foo; 10894 } else { 10895 lt_count--; 10896 } 10897 } 10898 } 10899 } 10900 if (lt_foo != "") { lt_freq[lt_foo]++; } 10901 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10902}'` 10903 # AWK program above erroneously prepends '/' to C:/dos/paths 10904 # for these hosts. 10905 case $host_os in 10906 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10907 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10908 esac 10909 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10910else 10911 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10912fi 10913library_names_spec= 10914libname_spec='lib$name' 10915soname_spec= 10916shrext_cmds=.so 10917postinstall_cmds= 10918postuninstall_cmds= 10919finish_cmds= 10920finish_eval= 10921shlibpath_var= 10922shlibpath_overrides_runpath=unknown 10923version_type=none 10924dynamic_linker="$host_os ld.so" 10925sys_lib_dlsearch_path_spec="/lib /usr/lib" 10926need_lib_prefix=unknown 10927hardcode_into_libs=no 10928 10929# when you set need_version to no, make sure it does not cause -set_version 10930# flags to be left without arguments 10931need_version=unknown 10932 10933 10934 10935case $host_os in 10936aix3*) 10937 version_type=linux # correct to gnu/linux during the next big refactor 10938 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10939 shlibpath_var=LIBPATH 10940 10941 # AIX 3 has no versioning support, so we append a major version to the name. 10942 soname_spec='$libname$release$shared_ext$major' 10943 ;; 10944 10945aix[4-9]*) 10946 version_type=linux # correct to gnu/linux during the next big refactor 10947 need_lib_prefix=no 10948 need_version=no 10949 hardcode_into_libs=yes 10950 if test ia64 = "$host_cpu"; then 10951 # AIX 5 supports IA64 10952 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10953 shlibpath_var=LD_LIBRARY_PATH 10954 else 10955 # With GCC up to 2.95.x, collect2 would create an import file 10956 # for dependence libraries. The import file would start with 10957 # the line '#! .'. This would cause the generated library to 10958 # depend on '.', always an invalid library. This was fixed in 10959 # development snapshots of GCC prior to 3.0. 10960 case $host_os in 10961 aix4 | aix4.[01] | aix4.[01].*) 10962 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10963 echo ' yes ' 10964 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10965 : 10966 else 10967 can_build_shared=no 10968 fi 10969 ;; 10970 esac 10971 # Using Import Files as archive members, it is possible to support 10972 # filename-based versioning of shared library archives on AIX. While 10973 # this would work for both with and without runtime linking, it will 10974 # prevent static linking of such archives. So we do filename-based 10975 # shared library versioning with .so extension only, which is used 10976 # when both runtime linking and shared linking is enabled. 10977 # Unfortunately, runtime linking may impact performance, so we do 10978 # not want this to be the default eventually. Also, we use the 10979 # versioned .so libs for executables only if there is the -brtl 10980 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10981 # To allow for filename-based versioning support, we need to create 10982 # libNAME.so.V as an archive file, containing: 10983 # *) an Import File, referring to the versioned filename of the 10984 # archive as well as the shared archive member, telling the 10985 # bitwidth (32 or 64) of that shared object, and providing the 10986 # list of exported symbols of that shared object, eventually 10987 # decorated with the 'weak' keyword 10988 # *) the shared object with the F_LOADONLY flag set, to really avoid 10989 # it being seen by the linker. 10990 # At run time we better use the real file rather than another symlink, 10991 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10992 10993 case $with_aix_soname,$aix_use_runtimelinking in 10994 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10995 # soname into executable. Probably we can add versioning support to 10996 # collect2, so additional links can be useful in future. 10997 aix,yes) # traditional libtool 10998 dynamic_linker='AIX unversionable lib.so' 10999 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11000 # instead of lib<name>.a to let people know that these are not 11001 # typical AIX shared libraries. 11002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11003 ;; 11004 aix,no) # traditional AIX only 11005 dynamic_linker='AIX lib.a(lib.so.V)' 11006 # We preserve .a as extension for shared libraries through AIX4.2 11007 # and later when we are not doing run time linking. 11008 library_names_spec='$libname$release.a $libname.a' 11009 soname_spec='$libname$release$shared_ext$major' 11010 ;; 11011 svr4,*) # full svr4 only 11012 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11013 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11014 # We do not specify a path in Import Files, so LIBPATH fires. 11015 shlibpath_overrides_runpath=yes 11016 ;; 11017 *,yes) # both, prefer svr4 11018 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11019 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11020 # unpreferred sharedlib libNAME.a needs extra handling 11021 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"' 11022 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"' 11023 # We do not specify a path in Import Files, so LIBPATH fires. 11024 shlibpath_overrides_runpath=yes 11025 ;; 11026 *,no) # both, prefer aix 11027 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11028 library_names_spec='$libname$release.a $libname.a' 11029 soname_spec='$libname$release$shared_ext$major' 11030 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11031 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)' 11032 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"' 11033 ;; 11034 esac 11035 shlibpath_var=LIBPATH 11036 fi 11037 ;; 11038 11039amigaos*) 11040 case $host_cpu in 11041 powerpc) 11042 # Since July 2007 AmigaOS4 officially supports .so libraries. 11043 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11045 ;; 11046 m68k) 11047 library_names_spec='$libname.ixlibrary $libname.a' 11048 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11049 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' 11050 ;; 11051 esac 11052 ;; 11053 11054beos*) 11055 library_names_spec='$libname$shared_ext' 11056 dynamic_linker="$host_os ld.so" 11057 shlibpath_var=LIBRARY_PATH 11058 ;; 11059 11060bsdi[45]*) 11061 version_type=linux # correct to gnu/linux during the next big refactor 11062 need_version=no 11063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11064 soname_spec='$libname$release$shared_ext$major' 11065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11066 shlibpath_var=LD_LIBRARY_PATH 11067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11069 # the default ld.so.conf also contains /usr/contrib/lib and 11070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11071 # libtool to hard-code these into programs 11072 ;; 11073 11074cygwin* | mingw* | pw32* | cegcc*) 11075 version_type=windows 11076 shrext_cmds=.dll 11077 need_version=no 11078 need_lib_prefix=no 11079 11080 case $GCC,$cc_basename in 11081 yes,*) 11082 # gcc 11083 library_names_spec='$libname.dll.a' 11084 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11085 postinstall_cmds='base_file=`basename \$file`~ 11086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11087 dldir=$destdir/`dirname \$dlpath`~ 11088 test -d \$dldir || mkdir -p \$dldir~ 11089 $install_prog $dir/$dlname \$dldir/$dlname~ 11090 chmod a+x \$dldir/$dlname~ 11091 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11092 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11093 fi' 11094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11095 dlpath=$dir/\$dldll~ 11096 $RM \$dlpath' 11097 shlibpath_overrides_runpath=yes 11098 11099 case $host_os in 11100 cygwin*) 11101 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11102 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11103 11104 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11105 ;; 11106 mingw* | cegcc*) 11107 # MinGW DLLs use traditional 'lib' prefix 11108 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11109 ;; 11110 pw32*) 11111 # pw32 DLLs use 'pw' prefix rather than 'lib' 11112 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11113 ;; 11114 esac 11115 dynamic_linker='Win32 ld.exe' 11116 ;; 11117 11118 *,cl*) 11119 # Native MSVC 11120 libname_spec='$name' 11121 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11122 library_names_spec='$libname.dll.lib' 11123 11124 case $build_os in 11125 mingw*) 11126 sys_lib_search_path_spec= 11127 lt_save_ifs=$IFS 11128 IFS=';' 11129 for lt_path in $LIB 11130 do 11131 IFS=$lt_save_ifs 11132 # Let DOS variable expansion print the short 8.3 style file name. 11133 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11134 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11135 done 11136 IFS=$lt_save_ifs 11137 # Convert to MSYS style. 11138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11139 ;; 11140 cygwin*) 11141 # Convert to unix form, then to dos form, then back to unix form 11142 # but this time dos style (no spaces!) so that the unix form looks 11143 # like /cygdrive/c/PROGRA~1:/cygdr... 11144 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11145 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11146 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11147 ;; 11148 *) 11149 sys_lib_search_path_spec=$LIB 11150 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11151 # It is most probably a Windows format PATH. 11152 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11153 else 11154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11155 fi 11156 # FIXME: find the short name or the path components, as spaces are 11157 # common. (e.g. "Program Files" -> "PROGRA~1") 11158 ;; 11159 esac 11160 11161 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11162 postinstall_cmds='base_file=`basename \$file`~ 11163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11164 dldir=$destdir/`dirname \$dlpath`~ 11165 test -d \$dldir || mkdir -p \$dldir~ 11166 $install_prog $dir/$dlname \$dldir/$dlname' 11167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11168 dlpath=$dir/\$dldll~ 11169 $RM \$dlpath' 11170 shlibpath_overrides_runpath=yes 11171 dynamic_linker='Win32 link.exe' 11172 ;; 11173 11174 *) 11175 # Assume MSVC wrapper 11176 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11177 dynamic_linker='Win32 ld.exe' 11178 ;; 11179 esac 11180 # FIXME: first we should search . and the directory the executable is in 11181 shlibpath_var=PATH 11182 ;; 11183 11184darwin* | rhapsody*) 11185 dynamic_linker="$host_os dyld" 11186 version_type=darwin 11187 need_lib_prefix=no 11188 need_version=no 11189 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11190 soname_spec='$libname$release$major$shared_ext' 11191 shlibpath_overrides_runpath=yes 11192 shlibpath_var=DYLD_LIBRARY_PATH 11193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11194 11195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11197 ;; 11198 11199dgux*) 11200 version_type=linux # correct to gnu/linux during the next big refactor 11201 need_lib_prefix=no 11202 need_version=no 11203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11204 soname_spec='$libname$release$shared_ext$major' 11205 shlibpath_var=LD_LIBRARY_PATH 11206 ;; 11207 11208freebsd* | dragonfly*) 11209 # DragonFly does not have aout. When/if they implement a new 11210 # versioning mechanism, adjust this. 11211 if test -x /usr/bin/objformat; then 11212 objformat=`/usr/bin/objformat` 11213 else 11214 case $host_os in 11215 freebsd[23].*) objformat=aout ;; 11216 *) objformat=elf ;; 11217 esac 11218 fi 11219 version_type=freebsd-$objformat 11220 case $version_type in 11221 freebsd-elf*) 11222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11223 soname_spec='$libname$release$shared_ext$major' 11224 need_version=no 11225 need_lib_prefix=no 11226 ;; 11227 freebsd-*) 11228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11229 need_version=yes 11230 ;; 11231 esac 11232 shlibpath_var=LD_LIBRARY_PATH 11233 case $host_os in 11234 freebsd2.*) 11235 shlibpath_overrides_runpath=yes 11236 ;; 11237 freebsd3.[01]* | freebsdelf3.[01]*) 11238 shlibpath_overrides_runpath=yes 11239 hardcode_into_libs=yes 11240 ;; 11241 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11242 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11243 shlibpath_overrides_runpath=no 11244 hardcode_into_libs=yes 11245 ;; 11246 *) # from 4.6 on, and DragonFly 11247 shlibpath_overrides_runpath=yes 11248 hardcode_into_libs=yes 11249 ;; 11250 esac 11251 ;; 11252 11253haiku*) 11254 version_type=linux # correct to gnu/linux during the next big refactor 11255 need_lib_prefix=no 11256 need_version=no 11257 dynamic_linker="$host_os runtime_loader" 11258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11259 soname_spec='$libname$release$shared_ext$major' 11260 shlibpath_var=LIBRARY_PATH 11261 shlibpath_overrides_runpath=no 11262 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11263 hardcode_into_libs=yes 11264 ;; 11265 11266hpux9* | hpux10* | hpux11*) 11267 # Give a soname corresponding to the major version so that dld.sl refuses to 11268 # link against other versions. 11269 version_type=sunos 11270 need_lib_prefix=no 11271 need_version=no 11272 case $host_cpu in 11273 ia64*) 11274 shrext_cmds='.so' 11275 hardcode_into_libs=yes 11276 dynamic_linker="$host_os dld.so" 11277 shlibpath_var=LD_LIBRARY_PATH 11278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11280 soname_spec='$libname$release$shared_ext$major' 11281 if test 32 = "$HPUX_IA64_MODE"; then 11282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11283 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11284 else 11285 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11286 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11287 fi 11288 ;; 11289 hppa*64*) 11290 shrext_cmds='.sl' 11291 hardcode_into_libs=yes 11292 dynamic_linker="$host_os dld.sl" 11293 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11296 soname_spec='$libname$release$shared_ext$major' 11297 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11299 ;; 11300 *) 11301 shrext_cmds='.sl' 11302 dynamic_linker="$host_os dld.sl" 11303 shlibpath_var=SHLIB_PATH 11304 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11306 soname_spec='$libname$release$shared_ext$major' 11307 ;; 11308 esac 11309 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11310 postinstall_cmds='chmod 555 $lib' 11311 # or fails outright, so override atomically: 11312 install_override_mode=555 11313 ;; 11314 11315interix[3-9]*) 11316 version_type=linux # correct to gnu/linux during the next big refactor 11317 need_lib_prefix=no 11318 need_version=no 11319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11320 soname_spec='$libname$release$shared_ext$major' 11321 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11322 shlibpath_var=LD_LIBRARY_PATH 11323 shlibpath_overrides_runpath=no 11324 hardcode_into_libs=yes 11325 ;; 11326 11327irix5* | irix6* | nonstopux*) 11328 case $host_os in 11329 nonstopux*) version_type=nonstopux ;; 11330 *) 11331 if test yes = "$lt_cv_prog_gnu_ld"; then 11332 version_type=linux # correct to gnu/linux during the next big refactor 11333 else 11334 version_type=irix 11335 fi ;; 11336 esac 11337 need_lib_prefix=no 11338 need_version=no 11339 soname_spec='$libname$release$shared_ext$major' 11340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11341 case $host_os in 11342 irix5* | nonstopux*) 11343 libsuff= shlibsuff= 11344 ;; 11345 *) 11346 case $LD in # libtool.m4 will add one of these switches to LD 11347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11348 libsuff= shlibsuff= libmagic=32-bit;; 11349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11350 libsuff=32 shlibsuff=N32 libmagic=N32;; 11351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11352 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11353 *) libsuff= shlibsuff= libmagic=never-match;; 11354 esac 11355 ;; 11356 esac 11357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11358 shlibpath_overrides_runpath=no 11359 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11360 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11361 hardcode_into_libs=yes 11362 ;; 11363 11364# No shared lib support for Linux oldld, aout, or coff. 11365linux*oldld* | linux*aout* | linux*coff*) 11366 dynamic_linker=no 11367 ;; 11368 11369linux*android*) 11370 version_type=none # Android doesn't support versioned libraries. 11371 need_lib_prefix=no 11372 need_version=no 11373 library_names_spec='$libname$release$shared_ext' 11374 soname_spec='$libname$release$shared_ext' 11375 finish_cmds= 11376 shlibpath_var=LD_LIBRARY_PATH 11377 shlibpath_overrides_runpath=yes 11378 11379 # This implies no fast_install, which is unacceptable. 11380 # Some rework will be needed to allow for fast_install 11381 # before this can be enabled. 11382 hardcode_into_libs=yes 11383 11384 dynamic_linker='Android linker' 11385 # Don't embed -rpath directories since the linker doesn't support them. 11386 hardcode_libdir_flag_spec='-L$libdir' 11387 ;; 11388 11389# This must be glibc/ELF. 11390linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11391 version_type=linux # correct to gnu/linux during the next big refactor 11392 need_lib_prefix=no 11393 need_version=no 11394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11395 soname_spec='$libname$release$shared_ext$major' 11396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11397 shlibpath_var=LD_LIBRARY_PATH 11398 shlibpath_overrides_runpath=no 11399 11400 # Some binutils ld are patched to set DT_RUNPATH 11401 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11402 $as_echo_n "(cached) " >&6 11403else 11404 lt_cv_shlibpath_overrides_runpath=no 11405 save_LDFLAGS=$LDFLAGS 11406 save_libdir=$libdir 11407 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11408 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11410/* end confdefs.h. */ 11411 11412int 11413main () 11414{ 11415 11416 ; 11417 return 0; 11418} 11419_ACEOF 11420if ac_fn_c_try_link "$LINENO"; then : 11421 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11422 lt_cv_shlibpath_overrides_runpath=yes 11423fi 11424fi 11425rm -f core conftest.err conftest.$ac_objext \ 11426 conftest$ac_exeext conftest.$ac_ext 11427 LDFLAGS=$save_LDFLAGS 11428 libdir=$save_libdir 11429 11430fi 11431 11432 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11433 11434 # This implies no fast_install, which is unacceptable. 11435 # Some rework will be needed to allow for fast_install 11436 # before this can be enabled. 11437 hardcode_into_libs=yes 11438 11439 # Ideally, we could use ldconfig to report *all* directores which are 11440 # searched for libraries, however this is still not possible. Aside from not 11441 # being certain /sbin/ldconfig is available, command 11442 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11443 # even though it is searched at run-time. Try to do the best guess by 11444 # appending ld.so.conf contents (and includes) to the search path. 11445 if test -f /etc/ld.so.conf; then 11446 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' ' '` 11447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11448 fi 11449 11450 # We used to test for /lib/ld.so.1 and disable shared libraries on 11451 # powerpc, because MkLinux only supported shared libraries with the 11452 # GNU dynamic linker. Since this was broken with cross compilers, 11453 # most powerpc-linux boxes support dynamic linking these days and 11454 # people can always --disable-shared, the test was removed, and we 11455 # assume the GNU/Linux dynamic linker is in use. 11456 dynamic_linker='GNU/Linux ld.so' 11457 ;; 11458 11459netbsdelf*-gnu) 11460 version_type=linux 11461 need_lib_prefix=no 11462 need_version=no 11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11464 soname_spec='${libname}${release}${shared_ext}$major' 11465 shlibpath_var=LD_LIBRARY_PATH 11466 shlibpath_overrides_runpath=no 11467 hardcode_into_libs=yes 11468 dynamic_linker='NetBSD ld.elf_so' 11469 ;; 11470 11471netbsd*) 11472 version_type=sunos 11473 need_lib_prefix=no 11474 need_version=no 11475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11478 dynamic_linker='NetBSD (a.out) ld.so' 11479 else 11480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11481 soname_spec='$libname$release$shared_ext$major' 11482 dynamic_linker='NetBSD ld.elf_so' 11483 fi 11484 shlibpath_var=LD_LIBRARY_PATH 11485 shlibpath_overrides_runpath=yes 11486 hardcode_into_libs=yes 11487 ;; 11488 11489newsos6) 11490 version_type=linux # correct to gnu/linux during the next big refactor 11491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11492 shlibpath_var=LD_LIBRARY_PATH 11493 shlibpath_overrides_runpath=yes 11494 ;; 11495 11496*nto* | *qnx*) 11497 version_type=qnx 11498 need_lib_prefix=no 11499 need_version=no 11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11501 soname_spec='$libname$release$shared_ext$major' 11502 shlibpath_var=LD_LIBRARY_PATH 11503 shlibpath_overrides_runpath=no 11504 hardcode_into_libs=yes 11505 dynamic_linker='ldqnx.so' 11506 ;; 11507 11508openbsd* | bitrig*) 11509 version_type=sunos 11510 sys_lib_dlsearch_path_spec=/usr/lib 11511 need_lib_prefix=no 11512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11513 need_version=no 11514 else 11515 need_version=yes 11516 fi 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11519 shlibpath_var=LD_LIBRARY_PATH 11520 shlibpath_overrides_runpath=yes 11521 ;; 11522 11523os2*) 11524 libname_spec='$name' 11525 version_type=windows 11526 shrext_cmds=.dll 11527 need_version=no 11528 need_lib_prefix=no 11529 # OS/2 can only load a DLL with a base name of 8 characters or less. 11530 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11531 v=$($ECHO $release$versuffix | tr -d .-); 11532 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11533 $ECHO $n$v`$shared_ext' 11534 library_names_spec='${libname}_dll.$libext' 11535 dynamic_linker='OS/2 ld.exe' 11536 shlibpath_var=BEGINLIBPATH 11537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11539 postinstall_cmds='base_file=`basename \$file`~ 11540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11541 dldir=$destdir/`dirname \$dlpath`~ 11542 test -d \$dldir || mkdir -p \$dldir~ 11543 $install_prog $dir/$dlname \$dldir/$dlname~ 11544 chmod a+x \$dldir/$dlname~ 11545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11547 fi' 11548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11549 dlpath=$dir/\$dldll~ 11550 $RM \$dlpath' 11551 ;; 11552 11553osf3* | osf4* | osf5*) 11554 version_type=osf 11555 need_lib_prefix=no 11556 need_version=no 11557 soname_spec='$libname$release$shared_ext$major' 11558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11562 ;; 11563 11564rdos*) 11565 dynamic_linker=no 11566 ;; 11567 11568solaris*) 11569 version_type=linux # correct to gnu/linux during the next big refactor 11570 need_lib_prefix=no 11571 need_version=no 11572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11573 soname_spec='$libname$release$shared_ext$major' 11574 shlibpath_var=LD_LIBRARY_PATH 11575 shlibpath_overrides_runpath=yes 11576 hardcode_into_libs=yes 11577 # ldd complains unless libraries are executable 11578 postinstall_cmds='chmod +x $lib' 11579 ;; 11580 11581sunos4*) 11582 version_type=sunos 11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11585 shlibpath_var=LD_LIBRARY_PATH 11586 shlibpath_overrides_runpath=yes 11587 if test yes = "$with_gnu_ld"; then 11588 need_lib_prefix=no 11589 fi 11590 need_version=yes 11591 ;; 11592 11593sysv4 | sysv4.3*) 11594 version_type=linux # correct to gnu/linux during the next big refactor 11595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11596 soname_spec='$libname$release$shared_ext$major' 11597 shlibpath_var=LD_LIBRARY_PATH 11598 case $host_vendor in 11599 sni) 11600 shlibpath_overrides_runpath=no 11601 need_lib_prefix=no 11602 runpath_var=LD_RUN_PATH 11603 ;; 11604 siemens) 11605 need_lib_prefix=no 11606 ;; 11607 motorola) 11608 need_lib_prefix=no 11609 need_version=no 11610 shlibpath_overrides_runpath=no 11611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11612 ;; 11613 esac 11614 ;; 11615 11616sysv4*MP*) 11617 if test -d /usr/nec; then 11618 version_type=linux # correct to gnu/linux during the next big refactor 11619 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11620 soname_spec='$libname$shared_ext.$major' 11621 shlibpath_var=LD_LIBRARY_PATH 11622 fi 11623 ;; 11624 11625sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11626 version_type=sco 11627 need_lib_prefix=no 11628 need_version=no 11629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11630 soname_spec='$libname$release$shared_ext$major' 11631 shlibpath_var=LD_LIBRARY_PATH 11632 shlibpath_overrides_runpath=yes 11633 hardcode_into_libs=yes 11634 if test yes = "$with_gnu_ld"; then 11635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11636 else 11637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11638 case $host_os in 11639 sco3.2v5*) 11640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11641 ;; 11642 esac 11643 fi 11644 sys_lib_dlsearch_path_spec='/usr/lib' 11645 ;; 11646 11647tpf*) 11648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11649 version_type=linux # correct to gnu/linux during the next big refactor 11650 need_lib_prefix=no 11651 need_version=no 11652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11653 shlibpath_var=LD_LIBRARY_PATH 11654 shlibpath_overrides_runpath=no 11655 hardcode_into_libs=yes 11656 ;; 11657 11658uts4*) 11659 version_type=linux # correct to gnu/linux during the next big refactor 11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11661 soname_spec='$libname$release$shared_ext$major' 11662 shlibpath_var=LD_LIBRARY_PATH 11663 ;; 11664 11665*) 11666 dynamic_linker=no 11667 ;; 11668esac 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11670$as_echo "$dynamic_linker" >&6; } 11671test no = "$dynamic_linker" && can_build_shared=no 11672 11673variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11674if test yes = "$GCC"; then 11675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11676fi 11677 11678if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11679 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11680fi 11681 11682if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11683 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11684fi 11685 11686# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11687configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11688 11689# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11690func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11691 11692# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11693configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11792$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11793hardcode_action= 11794if test -n "$hardcode_libdir_flag_spec" || 11795 test -n "$runpath_var" || 11796 test yes = "$hardcode_automatic"; then 11797 11798 # We can hardcode non-existent directories. 11799 if test no != "$hardcode_direct" && 11800 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11801 # have to relink, otherwise we might link with an installed library 11802 # when we should be linking with a yet-to-be-installed one 11803 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11804 test no != "$hardcode_minus_L"; then 11805 # Linking always hardcodes the temporary library directory. 11806 hardcode_action=relink 11807 else 11808 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11809 hardcode_action=immediate 11810 fi 11811else 11812 # We cannot hardcode anything, or else we can only hardcode existing 11813 # directories. 11814 hardcode_action=unsupported 11815fi 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11817$as_echo "$hardcode_action" >&6; } 11818 11819if test relink = "$hardcode_action" || 11820 test yes = "$inherit_rpath"; then 11821 # Fast installation is not supported 11822 enable_fast_install=no 11823elif test yes = "$shlibpath_overrides_runpath" || 11824 test no = "$enable_shared"; then 11825 # Fast installation is not necessary 11826 enable_fast_install=needless 11827fi 11828 11829 11830 11831 11832 11833 11834 if test yes != "$enable_dlopen"; then 11835 enable_dlopen=unknown 11836 enable_dlopen_self=unknown 11837 enable_dlopen_self_static=unknown 11838else 11839 lt_cv_dlopen=no 11840 lt_cv_dlopen_libs= 11841 11842 case $host_os in 11843 beos*) 11844 lt_cv_dlopen=load_add_on 11845 lt_cv_dlopen_libs= 11846 lt_cv_dlopen_self=yes 11847 ;; 11848 11849 mingw* | pw32* | cegcc*) 11850 lt_cv_dlopen=LoadLibrary 11851 lt_cv_dlopen_libs= 11852 ;; 11853 11854 cygwin*) 11855 lt_cv_dlopen=dlopen 11856 lt_cv_dlopen_libs= 11857 ;; 11858 11859 darwin*) 11860 # if libdl is installed we need to link against it 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11862$as_echo_n "checking for dlopen in -ldl... " >&6; } 11863if ${ac_cv_lib_dl_dlopen+:} false; then : 11864 $as_echo_n "(cached) " >&6 11865else 11866 ac_check_lib_save_LIBS=$LIBS 11867LIBS="-ldl $LIBS" 11868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11869/* end confdefs.h. */ 11870 11871/* Override any GCC internal prototype to avoid an error. 11872 Use char because int might match the return type of a GCC 11873 builtin and then its argument prototype would still apply. */ 11874#ifdef __cplusplus 11875extern "C" 11876#endif 11877char dlopen (); 11878int 11879main () 11880{ 11881return dlopen (); 11882 ; 11883 return 0; 11884} 11885_ACEOF 11886if ac_fn_c_try_link "$LINENO"; then : 11887 ac_cv_lib_dl_dlopen=yes 11888else 11889 ac_cv_lib_dl_dlopen=no 11890fi 11891rm -f core conftest.err conftest.$ac_objext \ 11892 conftest$ac_exeext conftest.$ac_ext 11893LIBS=$ac_check_lib_save_LIBS 11894fi 11895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11896$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11897if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11898 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11899else 11900 11901 lt_cv_dlopen=dyld 11902 lt_cv_dlopen_libs= 11903 lt_cv_dlopen_self=yes 11904 11905fi 11906 11907 ;; 11908 11909 tpf*) 11910 # Don't try to run any link tests for TPF. We know it's impossible 11911 # because TPF is a cross-compiler, and we know how we open DSOs. 11912 lt_cv_dlopen=dlopen 11913 lt_cv_dlopen_libs= 11914 lt_cv_dlopen_self=no 11915 ;; 11916 11917 *) 11918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11919if test "x$ac_cv_func_shl_load" = xyes; then : 11920 lt_cv_dlopen=shl_load 11921else 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11923$as_echo_n "checking for shl_load in -ldld... " >&6; } 11924if ${ac_cv_lib_dld_shl_load+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 ac_check_lib_save_LIBS=$LIBS 11928LIBS="-ldld $LIBS" 11929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11930/* end confdefs.h. */ 11931 11932/* Override any GCC internal prototype to avoid an error. 11933 Use char because int might match the return type of a GCC 11934 builtin and then its argument prototype would still apply. */ 11935#ifdef __cplusplus 11936extern "C" 11937#endif 11938char shl_load (); 11939int 11940main () 11941{ 11942return shl_load (); 11943 ; 11944 return 0; 11945} 11946_ACEOF 11947if ac_fn_c_try_link "$LINENO"; then : 11948 ac_cv_lib_dld_shl_load=yes 11949else 11950 ac_cv_lib_dld_shl_load=no 11951fi 11952rm -f core conftest.err conftest.$ac_objext \ 11953 conftest$ac_exeext conftest.$ac_ext 11954LIBS=$ac_check_lib_save_LIBS 11955fi 11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11957$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11958if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11959 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11960else 11961 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11962if test "x$ac_cv_func_dlopen" = xyes; then : 11963 lt_cv_dlopen=dlopen 11964else 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11966$as_echo_n "checking for dlopen in -ldl... " >&6; } 11967if ${ac_cv_lib_dl_dlopen+:} false; then : 11968 $as_echo_n "(cached) " >&6 11969else 11970 ac_check_lib_save_LIBS=$LIBS 11971LIBS="-ldl $LIBS" 11972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11973/* end confdefs.h. */ 11974 11975/* Override any GCC internal prototype to avoid an error. 11976 Use char because int might match the return type of a GCC 11977 builtin and then its argument prototype would still apply. */ 11978#ifdef __cplusplus 11979extern "C" 11980#endif 11981char dlopen (); 11982int 11983main () 11984{ 11985return dlopen (); 11986 ; 11987 return 0; 11988} 11989_ACEOF 11990if ac_fn_c_try_link "$LINENO"; then : 11991 ac_cv_lib_dl_dlopen=yes 11992else 11993 ac_cv_lib_dl_dlopen=no 11994fi 11995rm -f core conftest.err conftest.$ac_objext \ 11996 conftest$ac_exeext conftest.$ac_ext 11997LIBS=$ac_check_lib_save_LIBS 11998fi 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12000$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12001if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12002 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12003else 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12005$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12006if ${ac_cv_lib_svld_dlopen+:} false; then : 12007 $as_echo_n "(cached) " >&6 12008else 12009 ac_check_lib_save_LIBS=$LIBS 12010LIBS="-lsvld $LIBS" 12011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12012/* end confdefs.h. */ 12013 12014/* Override any GCC internal prototype to avoid an error. 12015 Use char because int might match the return type of a GCC 12016 builtin and then its argument prototype would still apply. */ 12017#ifdef __cplusplus 12018extern "C" 12019#endif 12020char dlopen (); 12021int 12022main () 12023{ 12024return dlopen (); 12025 ; 12026 return 0; 12027} 12028_ACEOF 12029if ac_fn_c_try_link "$LINENO"; then : 12030 ac_cv_lib_svld_dlopen=yes 12031else 12032 ac_cv_lib_svld_dlopen=no 12033fi 12034rm -f core conftest.err conftest.$ac_objext \ 12035 conftest$ac_exeext conftest.$ac_ext 12036LIBS=$ac_check_lib_save_LIBS 12037fi 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12039$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12040if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12041 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12042else 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12044$as_echo_n "checking for dld_link in -ldld... " >&6; } 12045if ${ac_cv_lib_dld_dld_link+:} false; then : 12046 $as_echo_n "(cached) " >&6 12047else 12048 ac_check_lib_save_LIBS=$LIBS 12049LIBS="-ldld $LIBS" 12050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12051/* end confdefs.h. */ 12052 12053/* Override any GCC internal prototype to avoid an error. 12054 Use char because int might match the return type of a GCC 12055 builtin and then its argument prototype would still apply. */ 12056#ifdef __cplusplus 12057extern "C" 12058#endif 12059char dld_link (); 12060int 12061main () 12062{ 12063return dld_link (); 12064 ; 12065 return 0; 12066} 12067_ACEOF 12068if ac_fn_c_try_link "$LINENO"; then : 12069 ac_cv_lib_dld_dld_link=yes 12070else 12071 ac_cv_lib_dld_dld_link=no 12072fi 12073rm -f core conftest.err conftest.$ac_objext \ 12074 conftest$ac_exeext conftest.$ac_ext 12075LIBS=$ac_check_lib_save_LIBS 12076fi 12077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12078$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12079if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12080 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12081fi 12082 12083 12084fi 12085 12086 12087fi 12088 12089 12090fi 12091 12092 12093fi 12094 12095 12096fi 12097 12098 ;; 12099 esac 12100 12101 if test no = "$lt_cv_dlopen"; then 12102 enable_dlopen=no 12103 else 12104 enable_dlopen=yes 12105 fi 12106 12107 case $lt_cv_dlopen in 12108 dlopen) 12109 save_CPPFLAGS=$CPPFLAGS 12110 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12111 12112 save_LDFLAGS=$LDFLAGS 12113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12114 12115 save_LIBS=$LIBS 12116 LIBS="$lt_cv_dlopen_libs $LIBS" 12117 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12119$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12120if ${lt_cv_dlopen_self+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122else 12123 if test yes = "$cross_compiling"; then : 12124 lt_cv_dlopen_self=cross 12125else 12126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12127 lt_status=$lt_dlunknown 12128 cat > conftest.$ac_ext <<_LT_EOF 12129#line $LINENO "configure" 12130#include "confdefs.h" 12131 12132#if HAVE_DLFCN_H 12133#include <dlfcn.h> 12134#endif 12135 12136#include <stdio.h> 12137 12138#ifdef RTLD_GLOBAL 12139# define LT_DLGLOBAL RTLD_GLOBAL 12140#else 12141# ifdef DL_GLOBAL 12142# define LT_DLGLOBAL DL_GLOBAL 12143# else 12144# define LT_DLGLOBAL 0 12145# endif 12146#endif 12147 12148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12149 find out it does not work in some platform. */ 12150#ifndef LT_DLLAZY_OR_NOW 12151# ifdef RTLD_LAZY 12152# define LT_DLLAZY_OR_NOW RTLD_LAZY 12153# else 12154# ifdef DL_LAZY 12155# define LT_DLLAZY_OR_NOW DL_LAZY 12156# else 12157# ifdef RTLD_NOW 12158# define LT_DLLAZY_OR_NOW RTLD_NOW 12159# else 12160# ifdef DL_NOW 12161# define LT_DLLAZY_OR_NOW DL_NOW 12162# else 12163# define LT_DLLAZY_OR_NOW 0 12164# endif 12165# endif 12166# endif 12167# endif 12168#endif 12169 12170/* When -fvisibility=hidden is used, assume the code has been annotated 12171 correspondingly for the symbols needed. */ 12172#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12173int fnord () __attribute__((visibility("default"))); 12174#endif 12175 12176int fnord () { return 42; } 12177int main () 12178{ 12179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12180 int status = $lt_dlunknown; 12181 12182 if (self) 12183 { 12184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12185 else 12186 { 12187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12188 else puts (dlerror ()); 12189 } 12190 /* dlclose (self); */ 12191 } 12192 else 12193 puts (dlerror ()); 12194 12195 return status; 12196} 12197_LT_EOF 12198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12199 (eval $ac_link) 2>&5 12200 ac_status=$? 12201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12202 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12203 (./conftest; exit; ) >&5 2>/dev/null 12204 lt_status=$? 12205 case x$lt_status in 12206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12209 esac 12210 else : 12211 # compilation failed 12212 lt_cv_dlopen_self=no 12213 fi 12214fi 12215rm -fr conftest* 12216 12217 12218fi 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12220$as_echo "$lt_cv_dlopen_self" >&6; } 12221 12222 if test yes = "$lt_cv_dlopen_self"; then 12223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12225$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12226if ${lt_cv_dlopen_self_static+:} false; then : 12227 $as_echo_n "(cached) " >&6 12228else 12229 if test yes = "$cross_compiling"; then : 12230 lt_cv_dlopen_self_static=cross 12231else 12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12233 lt_status=$lt_dlunknown 12234 cat > conftest.$ac_ext <<_LT_EOF 12235#line $LINENO "configure" 12236#include "confdefs.h" 12237 12238#if HAVE_DLFCN_H 12239#include <dlfcn.h> 12240#endif 12241 12242#include <stdio.h> 12243 12244#ifdef RTLD_GLOBAL 12245# define LT_DLGLOBAL RTLD_GLOBAL 12246#else 12247# ifdef DL_GLOBAL 12248# define LT_DLGLOBAL DL_GLOBAL 12249# else 12250# define LT_DLGLOBAL 0 12251# endif 12252#endif 12253 12254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12255 find out it does not work in some platform. */ 12256#ifndef LT_DLLAZY_OR_NOW 12257# ifdef RTLD_LAZY 12258# define LT_DLLAZY_OR_NOW RTLD_LAZY 12259# else 12260# ifdef DL_LAZY 12261# define LT_DLLAZY_OR_NOW DL_LAZY 12262# else 12263# ifdef RTLD_NOW 12264# define LT_DLLAZY_OR_NOW RTLD_NOW 12265# else 12266# ifdef DL_NOW 12267# define LT_DLLAZY_OR_NOW DL_NOW 12268# else 12269# define LT_DLLAZY_OR_NOW 0 12270# endif 12271# endif 12272# endif 12273# endif 12274#endif 12275 12276/* When -fvisibility=hidden is used, assume the code has been annotated 12277 correspondingly for the symbols needed. */ 12278#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12279int fnord () __attribute__((visibility("default"))); 12280#endif 12281 12282int fnord () { return 42; } 12283int main () 12284{ 12285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12286 int status = $lt_dlunknown; 12287 12288 if (self) 12289 { 12290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12291 else 12292 { 12293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12294 else puts (dlerror ()); 12295 } 12296 /* dlclose (self); */ 12297 } 12298 else 12299 puts (dlerror ()); 12300 12301 return status; 12302} 12303_LT_EOF 12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12305 (eval $ac_link) 2>&5 12306 ac_status=$? 12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12308 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12309 (./conftest; exit; ) >&5 2>/dev/null 12310 lt_status=$? 12311 case x$lt_status in 12312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12314 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12315 esac 12316 else : 12317 # compilation failed 12318 lt_cv_dlopen_self_static=no 12319 fi 12320fi 12321rm -fr conftest* 12322 12323 12324fi 12325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12326$as_echo "$lt_cv_dlopen_self_static" >&6; } 12327 fi 12328 12329 CPPFLAGS=$save_CPPFLAGS 12330 LDFLAGS=$save_LDFLAGS 12331 LIBS=$save_LIBS 12332 ;; 12333 esac 12334 12335 case $lt_cv_dlopen_self in 12336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12337 *) enable_dlopen_self=unknown ;; 12338 esac 12339 12340 case $lt_cv_dlopen_self_static in 12341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12342 *) enable_dlopen_self_static=unknown ;; 12343 esac 12344fi 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362striplib= 12363old_striplib= 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12365$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12366if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12368 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12370$as_echo "yes" >&6; } 12371else 12372# FIXME - insert some real tests, host_os isn't really good enough 12373 case $host_os in 12374 darwin*) 12375 if test -n "$STRIP"; then 12376 striplib="$STRIP -x" 12377 old_striplib="$STRIP -S" 12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12379$as_echo "yes" >&6; } 12380 else 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12382$as_echo "no" >&6; } 12383 fi 12384 ;; 12385 *) 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12387$as_echo "no" >&6; } 12388 ;; 12389 esac 12390fi 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 # Report what library types will actually be built 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12405$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12407$as_echo "$can_build_shared" >&6; } 12408 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12410$as_echo_n "checking whether to build shared libraries... " >&6; } 12411 test no = "$can_build_shared" && enable_shared=no 12412 12413 # On AIX, shared libraries and static libraries use the same namespace, and 12414 # are all built from PIC. 12415 case $host_os in 12416 aix3*) 12417 test yes = "$enable_shared" && enable_static=no 12418 if test -n "$RANLIB"; then 12419 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12420 postinstall_cmds='$RANLIB $lib' 12421 fi 12422 ;; 12423 12424 aix[4-9]*) 12425 if test ia64 != "$host_cpu"; then 12426 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12427 yes,aix,yes) ;; # shared object as lib.so file only 12428 yes,svr4,*) ;; # shared object as lib.so archive member only 12429 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12430 esac 12431 fi 12432 ;; 12433 esac 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12435$as_echo "$enable_shared" >&6; } 12436 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12438$as_echo_n "checking whether to build static libraries... " >&6; } 12439 # Make sure either enable_shared or enable_static is yes. 12440 test yes = "$enable_shared" || enable_static=yes 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12442$as_echo "$enable_static" >&6; } 12443 12444 12445 12446 12447fi 12448ac_ext=c 12449ac_cpp='$CPP $CPPFLAGS' 12450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12452ac_compiler_gnu=$ac_cv_c_compiler_gnu 12453 12454CC=$lt_save_CC 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 ac_config_commands="$ac_config_commands libtool" 12471 12472 12473 12474 12475# Only expand once: 12476 12477 12478 12479# Checks for programs. 12480for ac_prog in gawk mawk nawk awk 12481do 12482 # Extract the first word of "$ac_prog", so it can be a program name with args. 12483set dummy $ac_prog; ac_word=$2 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12485$as_echo_n "checking for $ac_word... " >&6; } 12486if ${ac_cv_prog_AWK+:} false; then : 12487 $as_echo_n "(cached) " >&6 12488else 12489 if test -n "$AWK"; then 12490 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12491else 12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12493for as_dir in $PATH 12494do 12495 IFS=$as_save_IFS 12496 test -z "$as_dir" && as_dir=. 12497 for ac_exec_ext in '' $ac_executable_extensions; do 12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12499 ac_cv_prog_AWK="$ac_prog" 12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12501 break 2 12502 fi 12503done 12504 done 12505IFS=$as_save_IFS 12506 12507fi 12508fi 12509AWK=$ac_cv_prog_AWK 12510if test -n "$AWK"; then 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12512$as_echo "$AWK" >&6; } 12513else 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12515$as_echo "no" >&6; } 12516fi 12517 12518 12519 test -n "$AWK" && break 12520done 12521 12522ac_ext=c 12523ac_cpp='$CPP $CPPFLAGS' 12524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12526ac_compiler_gnu=$ac_cv_c_compiler_gnu 12527if test -n "$ac_tool_prefix"; then 12528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12529set dummy ${ac_tool_prefix}gcc; ac_word=$2 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12531$as_echo_n "checking for $ac_word... " >&6; } 12532if ${ac_cv_prog_CC+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 if test -n "$CC"; then 12536 ac_cv_prog_CC="$CC" # Let the user override the test. 12537else 12538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12539for as_dir in $PATH 12540do 12541 IFS=$as_save_IFS 12542 test -z "$as_dir" && as_dir=. 12543 for ac_exec_ext in '' $ac_executable_extensions; do 12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12545 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12547 break 2 12548 fi 12549done 12550 done 12551IFS=$as_save_IFS 12552 12553fi 12554fi 12555CC=$ac_cv_prog_CC 12556if test -n "$CC"; then 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12558$as_echo "$CC" >&6; } 12559else 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12561$as_echo "no" >&6; } 12562fi 12563 12564 12565fi 12566if test -z "$ac_cv_prog_CC"; then 12567 ac_ct_CC=$CC 12568 # Extract the first word of "gcc", so it can be a program name with args. 12569set dummy gcc; ac_word=$2 12570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12571$as_echo_n "checking for $ac_word... " >&6; } 12572if ${ac_cv_prog_ac_ct_CC+:} false; then : 12573 $as_echo_n "(cached) " >&6 12574else 12575 if test -n "$ac_ct_CC"; then 12576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12577else 12578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12579for as_dir in $PATH 12580do 12581 IFS=$as_save_IFS 12582 test -z "$as_dir" && as_dir=. 12583 for ac_exec_ext in '' $ac_executable_extensions; do 12584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12585 ac_cv_prog_ac_ct_CC="gcc" 12586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12587 break 2 12588 fi 12589done 12590 done 12591IFS=$as_save_IFS 12592 12593fi 12594fi 12595ac_ct_CC=$ac_cv_prog_ac_ct_CC 12596if test -n "$ac_ct_CC"; then 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12598$as_echo "$ac_ct_CC" >&6; } 12599else 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12601$as_echo "no" >&6; } 12602fi 12603 12604 if test "x$ac_ct_CC" = x; then 12605 CC="" 12606 else 12607 case $cross_compiling:$ac_tool_warned in 12608yes:) 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12611ac_tool_warned=yes ;; 12612esac 12613 CC=$ac_ct_CC 12614 fi 12615else 12616 CC="$ac_cv_prog_CC" 12617fi 12618 12619if test -z "$CC"; then 12620 if test -n "$ac_tool_prefix"; then 12621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12622set dummy ${ac_tool_prefix}cc; ac_word=$2 12623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12624$as_echo_n "checking for $ac_word... " >&6; } 12625if ${ac_cv_prog_CC+:} false; then : 12626 $as_echo_n "(cached) " >&6 12627else 12628 if test -n "$CC"; then 12629 ac_cv_prog_CC="$CC" # Let the user override the test. 12630else 12631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12632for as_dir in $PATH 12633do 12634 IFS=$as_save_IFS 12635 test -z "$as_dir" && as_dir=. 12636 for ac_exec_ext in '' $ac_executable_extensions; do 12637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12638 ac_cv_prog_CC="${ac_tool_prefix}cc" 12639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12640 break 2 12641 fi 12642done 12643 done 12644IFS=$as_save_IFS 12645 12646fi 12647fi 12648CC=$ac_cv_prog_CC 12649if test -n "$CC"; then 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12651$as_echo "$CC" >&6; } 12652else 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12654$as_echo "no" >&6; } 12655fi 12656 12657 12658 fi 12659fi 12660if test -z "$CC"; then 12661 # Extract the first word of "cc", so it can be a program name with args. 12662set dummy cc; ac_word=$2 12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12664$as_echo_n "checking for $ac_word... " >&6; } 12665if ${ac_cv_prog_CC+:} false; then : 12666 $as_echo_n "(cached) " >&6 12667else 12668 if test -n "$CC"; then 12669 ac_cv_prog_CC="$CC" # Let the user override the test. 12670else 12671 ac_prog_rejected=no 12672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12673for as_dir in $PATH 12674do 12675 IFS=$as_save_IFS 12676 test -z "$as_dir" && as_dir=. 12677 for ac_exec_ext in '' $ac_executable_extensions; do 12678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12680 ac_prog_rejected=yes 12681 continue 12682 fi 12683 ac_cv_prog_CC="cc" 12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12685 break 2 12686 fi 12687done 12688 done 12689IFS=$as_save_IFS 12690 12691if test $ac_prog_rejected = yes; then 12692 # We found a bogon in the path, so make sure we never use it. 12693 set dummy $ac_cv_prog_CC 12694 shift 12695 if test $# != 0; then 12696 # We chose a different compiler from the bogus one. 12697 # However, it has the same basename, so the bogon will be chosen 12698 # first if we set CC to just the basename; use the full file name. 12699 shift 12700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12701 fi 12702fi 12703fi 12704fi 12705CC=$ac_cv_prog_CC 12706if test -n "$CC"; then 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12708$as_echo "$CC" >&6; } 12709else 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12711$as_echo "no" >&6; } 12712fi 12713 12714 12715fi 12716if test -z "$CC"; then 12717 if test -n "$ac_tool_prefix"; then 12718 for ac_prog in cl.exe 12719 do 12720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12721set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12723$as_echo_n "checking for $ac_word... " >&6; } 12724if ${ac_cv_prog_CC+:} false; then : 12725 $as_echo_n "(cached) " >&6 12726else 12727 if test -n "$CC"; then 12728 ac_cv_prog_CC="$CC" # Let the user override the test. 12729else 12730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12731for as_dir in $PATH 12732do 12733 IFS=$as_save_IFS 12734 test -z "$as_dir" && as_dir=. 12735 for ac_exec_ext in '' $ac_executable_extensions; do 12736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12739 break 2 12740 fi 12741done 12742 done 12743IFS=$as_save_IFS 12744 12745fi 12746fi 12747CC=$ac_cv_prog_CC 12748if test -n "$CC"; then 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12750$as_echo "$CC" >&6; } 12751else 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12753$as_echo "no" >&6; } 12754fi 12755 12756 12757 test -n "$CC" && break 12758 done 12759fi 12760if test -z "$CC"; then 12761 ac_ct_CC=$CC 12762 for ac_prog in cl.exe 12763do 12764 # Extract the first word of "$ac_prog", so it can be a program name with args. 12765set dummy $ac_prog; ac_word=$2 12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12767$as_echo_n "checking for $ac_word... " >&6; } 12768if ${ac_cv_prog_ac_ct_CC+:} false; then : 12769 $as_echo_n "(cached) " >&6 12770else 12771 if test -n "$ac_ct_CC"; then 12772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12773else 12774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12775for as_dir in $PATH 12776do 12777 IFS=$as_save_IFS 12778 test -z "$as_dir" && as_dir=. 12779 for ac_exec_ext in '' $ac_executable_extensions; do 12780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12781 ac_cv_prog_ac_ct_CC="$ac_prog" 12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12783 break 2 12784 fi 12785done 12786 done 12787IFS=$as_save_IFS 12788 12789fi 12790fi 12791ac_ct_CC=$ac_cv_prog_ac_ct_CC 12792if test -n "$ac_ct_CC"; then 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12794$as_echo "$ac_ct_CC" >&6; } 12795else 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12797$as_echo "no" >&6; } 12798fi 12799 12800 12801 test -n "$ac_ct_CC" && break 12802done 12803 12804 if test "x$ac_ct_CC" = x; then 12805 CC="" 12806 else 12807 case $cross_compiling:$ac_tool_warned in 12808yes:) 12809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12811ac_tool_warned=yes ;; 12812esac 12813 CC=$ac_ct_CC 12814 fi 12815fi 12816 12817fi 12818 12819 12820test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12822as_fn_error $? "no acceptable C compiler found in \$PATH 12823See \`config.log' for more details" "$LINENO" 5; } 12824 12825# Provide some information about the compiler. 12826$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12827set X $ac_compile 12828ac_compiler=$2 12829for ac_option in --version -v -V -qversion; do 12830 { { ac_try="$ac_compiler $ac_option >&5" 12831case "(($ac_try" in 12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12833 *) ac_try_echo=$ac_try;; 12834esac 12835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12836$as_echo "$ac_try_echo"; } >&5 12837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12838 ac_status=$? 12839 if test -s conftest.err; then 12840 sed '10a\ 12841... rest of stderr output deleted ... 12842 10q' conftest.err >conftest.er1 12843 cat conftest.er1 >&5 12844 fi 12845 rm -f conftest.er1 conftest.err 12846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12847 test $ac_status = 0; } 12848done 12849 12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12851$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12852if ${ac_cv_c_compiler_gnu+:} false; then : 12853 $as_echo_n "(cached) " >&6 12854else 12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12856/* end confdefs.h. */ 12857 12858int 12859main () 12860{ 12861#ifndef __GNUC__ 12862 choke me 12863#endif 12864 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869if ac_fn_c_try_compile "$LINENO"; then : 12870 ac_compiler_gnu=yes 12871else 12872 ac_compiler_gnu=no 12873fi 12874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12875ac_cv_c_compiler_gnu=$ac_compiler_gnu 12876 12877fi 12878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12879$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12880if test $ac_compiler_gnu = yes; then 12881 GCC=yes 12882else 12883 GCC= 12884fi 12885ac_test_CFLAGS=${CFLAGS+set} 12886ac_save_CFLAGS=$CFLAGS 12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12888$as_echo_n "checking whether $CC accepts -g... " >&6; } 12889if ${ac_cv_prog_cc_g+:} false; then : 12890 $as_echo_n "(cached) " >&6 12891else 12892 ac_save_c_werror_flag=$ac_c_werror_flag 12893 ac_c_werror_flag=yes 12894 ac_cv_prog_cc_g=no 12895 CFLAGS="-g" 12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12897/* end confdefs.h. */ 12898 12899int 12900main () 12901{ 12902 12903 ; 12904 return 0; 12905} 12906_ACEOF 12907if ac_fn_c_try_compile "$LINENO"; then : 12908 ac_cv_prog_cc_g=yes 12909else 12910 CFLAGS="" 12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12912/* end confdefs.h. */ 12913 12914int 12915main () 12916{ 12917 12918 ; 12919 return 0; 12920} 12921_ACEOF 12922if ac_fn_c_try_compile "$LINENO"; then : 12923 12924else 12925 ac_c_werror_flag=$ac_save_c_werror_flag 12926 CFLAGS="-g" 12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12928/* end confdefs.h. */ 12929 12930int 12931main () 12932{ 12933 12934 ; 12935 return 0; 12936} 12937_ACEOF 12938if ac_fn_c_try_compile "$LINENO"; then : 12939 ac_cv_prog_cc_g=yes 12940fi 12941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12942fi 12943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12944fi 12945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12946 ac_c_werror_flag=$ac_save_c_werror_flag 12947fi 12948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12949$as_echo "$ac_cv_prog_cc_g" >&6; } 12950if test "$ac_test_CFLAGS" = set; then 12951 CFLAGS=$ac_save_CFLAGS 12952elif test $ac_cv_prog_cc_g = yes; then 12953 if test "$GCC" = yes; then 12954 CFLAGS="-g -O2" 12955 else 12956 CFLAGS="-g" 12957 fi 12958else 12959 if test "$GCC" = yes; then 12960 CFLAGS="-O2" 12961 else 12962 CFLAGS= 12963 fi 12964fi 12965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12966$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12967if ${ac_cv_prog_cc_c89+:} false; then : 12968 $as_echo_n "(cached) " >&6 12969else 12970 ac_cv_prog_cc_c89=no 12971ac_save_CC=$CC 12972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12973/* end confdefs.h. */ 12974#include <stdarg.h> 12975#include <stdio.h> 12976struct stat; 12977/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12978struct buf { int x; }; 12979FILE * (*rcsopen) (struct buf *, struct stat *, int); 12980static char *e (p, i) 12981 char **p; 12982 int i; 12983{ 12984 return p[i]; 12985} 12986static char *f (char * (*g) (char **, int), char **p, ...) 12987{ 12988 char *s; 12989 va_list v; 12990 va_start (v,p); 12991 s = g (p, va_arg (v,int)); 12992 va_end (v); 12993 return s; 12994} 12995 12996/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12997 function prototypes and stuff, but not '\xHH' hex character constants. 12998 These don't provoke an error unfortunately, instead are silently treated 12999 as 'x'. The following induces an error, until -std is added to get 13000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13001 array size at least. It's necessary to write '\x00'==0 to get something 13002 that's true only with -std. */ 13003int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13004 13005/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13006 inside strings and character constants. */ 13007#define FOO(x) 'x' 13008int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13009 13010int test (int i, double x); 13011struct s1 {int (*f) (int a);}; 13012struct s2 {int (*f) (double a);}; 13013int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13014int argc; 13015char **argv; 13016int 13017main () 13018{ 13019return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13020 ; 13021 return 0; 13022} 13023_ACEOF 13024for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13025 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13026do 13027 CC="$ac_save_CC $ac_arg" 13028 if ac_fn_c_try_compile "$LINENO"; then : 13029 ac_cv_prog_cc_c89=$ac_arg 13030fi 13031rm -f core conftest.err conftest.$ac_objext 13032 test "x$ac_cv_prog_cc_c89" != "xno" && break 13033done 13034rm -f conftest.$ac_ext 13035CC=$ac_save_CC 13036 13037fi 13038# AC_CACHE_VAL 13039case "x$ac_cv_prog_cc_c89" in 13040 x) 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13042$as_echo "none needed" >&6; } ;; 13043 xno) 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13045$as_echo "unsupported" >&6; } ;; 13046 *) 13047 CC="$CC $ac_cv_prog_cc_c89" 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13049$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13050esac 13051if test "x$ac_cv_prog_cc_c89" != xno; then : 13052 13053fi 13054 13055ac_ext=c 13056ac_cpp='$CPP $CPPFLAGS' 13057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13059ac_compiler_gnu=$ac_cv_c_compiler_gnu 13060 13061ac_ext=c 13062ac_cpp='$CPP $CPPFLAGS' 13063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13065ac_compiler_gnu=$ac_cv_c_compiler_gnu 13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13067$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13068if ${am_cv_prog_cc_c_o+:} false; then : 13069 $as_echo_n "(cached) " >&6 13070else 13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13072/* end confdefs.h. */ 13073 13074int 13075main () 13076{ 13077 13078 ; 13079 return 0; 13080} 13081_ACEOF 13082 # Make sure it works both with $CC and with simple cc. 13083 # Following AC_PROG_CC_C_O, we do the test twice because some 13084 # compilers refuse to overwrite an existing .o file with -o, 13085 # though they will create one. 13086 am_cv_prog_cc_c_o=yes 13087 for am_i in 1 2; do 13088 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13089 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13090 ac_status=$? 13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13092 (exit $ac_status); } \ 13093 && test -f conftest2.$ac_objext; then 13094 : OK 13095 else 13096 am_cv_prog_cc_c_o=no 13097 break 13098 fi 13099 done 13100 rm -f core conftest* 13101 unset am_i 13102fi 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13104$as_echo "$am_cv_prog_cc_c_o" >&6; } 13105if test "$am_cv_prog_cc_c_o" != yes; then 13106 # Losing compiler, so override with the script. 13107 # FIXME: It is wrong to rewrite CC. 13108 # But if we don't then we get into trouble of one sort or another. 13109 # A longer-term fix would be to have automake use am__CC in this case, 13110 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13111 CC="$am_aux_dir/compile $CC" 13112fi 13113ac_ext=c 13114ac_cpp='$CPP $CPPFLAGS' 13115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13117ac_compiler_gnu=$ac_cv_c_compiler_gnu 13118 13119 13120depcc="$CC" am_compiler_list= 13121 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13123$as_echo_n "checking dependency style of $depcc... " >&6; } 13124if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13128 # We make a subdir and do the tests there. Otherwise we can end up 13129 # making bogus files that we don't know about and never remove. For 13130 # instance it was reported that on HP-UX the gcc test will end up 13131 # making a dummy file named 'D' -- because '-MD' means "put the output 13132 # in D". 13133 rm -rf conftest.dir 13134 mkdir conftest.dir 13135 # Copy depcomp to subdir because otherwise we won't find it if we're 13136 # using a relative directory. 13137 cp "$am_depcomp" conftest.dir 13138 cd conftest.dir 13139 # We will build objects and dependencies in a subdirectory because 13140 # it helps to detect inapplicable dependency modes. For instance 13141 # both Tru64's cc and ICC support -MD to output dependencies as a 13142 # side effect of compilation, but ICC will put the dependencies in 13143 # the current directory while Tru64 will put them in the object 13144 # directory. 13145 mkdir sub 13146 13147 am_cv_CC_dependencies_compiler_type=none 13148 if test "$am_compiler_list" = ""; then 13149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13150 fi 13151 am__universal=false 13152 case " $depcc " in #( 13153 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13154 esac 13155 13156 for depmode in $am_compiler_list; do 13157 # Setup a source with many dependencies, because some compilers 13158 # like to wrap large dependency lists on column 80 (with \), and 13159 # we should not choose a depcomp mode which is confused by this. 13160 # 13161 # We need to recreate these files for each test, as the compiler may 13162 # overwrite some of them when testing with obscure command lines. 13163 # This happens at least with the AIX C compiler. 13164 : > sub/conftest.c 13165 for i in 1 2 3 4 5 6; do 13166 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13168 # Solaris 10 /bin/sh. 13169 echo '/* dummy */' > sub/conftst$i.h 13170 done 13171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13172 13173 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13174 # mode. It turns out that the SunPro C++ compiler does not properly 13175 # handle '-M -o', and we need to detect this. Also, some Intel 13176 # versions had trouble with output in subdirs. 13177 am__obj=sub/conftest.${OBJEXT-o} 13178 am__minus_obj="-o $am__obj" 13179 case $depmode in 13180 gcc) 13181 # This depmode causes a compiler race in universal mode. 13182 test "$am__universal" = false || continue 13183 ;; 13184 nosideeffect) 13185 # After this tag, mechanisms are not by side-effect, so they'll 13186 # only be used when explicitly requested. 13187 if test "x$enable_dependency_tracking" = xyes; then 13188 continue 13189 else 13190 break 13191 fi 13192 ;; 13193 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13194 # This compiler won't grok '-c -o', but also, the minuso test has 13195 # not run yet. These depmodes are late enough in the game, and 13196 # so weak that their functioning should not be impacted. 13197 am__obj=conftest.${OBJEXT-o} 13198 am__minus_obj= 13199 ;; 13200 none) break ;; 13201 esac 13202 if depmode=$depmode \ 13203 source=sub/conftest.c object=$am__obj \ 13204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13206 >/dev/null 2>conftest.err && 13207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13211 # icc doesn't choke on unknown options, it will just issue warnings 13212 # or remarks (even with -Werror). So we grep stderr for any message 13213 # that says an option was ignored or not supported. 13214 # When given -MP, icc 7.0 and 7.1 complain thusly: 13215 # icc: Command line warning: ignoring option '-M'; no argument required 13216 # The diagnosis changed in icc 8.0: 13217 # icc: Command line remark: option '-MP' not supported 13218 if (grep 'ignoring option' conftest.err || 13219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13220 am_cv_CC_dependencies_compiler_type=$depmode 13221 break 13222 fi 13223 fi 13224 done 13225 13226 cd .. 13227 rm -rf conftest.dir 13228else 13229 am_cv_CC_dependencies_compiler_type=none 13230fi 13231 13232fi 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13234$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13235CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13236 13237 if 13238 test "x$enable_dependency_tracking" != xno \ 13239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13240 am__fastdepCC_TRUE= 13241 am__fastdepCC_FALSE='#' 13242else 13243 am__fastdepCC_TRUE='#' 13244 am__fastdepCC_FALSE= 13245fi 13246 13247 13248ac_ext=c 13249ac_cpp='$CPP $CPPFLAGS' 13250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13252ac_compiler_gnu=$ac_cv_c_compiler_gnu 13253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 13254$as_echo_n "checking how to run the C preprocessor... " >&6; } 13255# On Suns, sometimes $CPP names a directory. 13256if test -n "$CPP" && test -d "$CPP"; then 13257 CPP= 13258fi 13259if test -z "$CPP"; then 13260 if ${ac_cv_prog_CPP+:} false; then : 13261 $as_echo_n "(cached) " >&6 13262else 13263 # Double quotes because CPP needs to be expanded 13264 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 13265 do 13266 ac_preproc_ok=false 13267for ac_c_preproc_warn_flag in '' yes 13268do 13269 # Use a header file that comes with gcc, so configuring glibc 13270 # with a fresh cross-compiler works. 13271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13272 # <limits.h> exists even on freestanding compilers. 13273 # On the NeXT, cc -E runs the code through the compiler's parser, 13274 # not just through cpp. "Syntax error" is here to catch this case. 13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13276/* end confdefs.h. */ 13277#ifdef __STDC__ 13278# include <limits.h> 13279#else 13280# include <assert.h> 13281#endif 13282 Syntax error 13283_ACEOF 13284if ac_fn_c_try_cpp "$LINENO"; then : 13285 13286else 13287 # Broken: fails on valid input. 13288continue 13289fi 13290rm -f conftest.err conftest.i conftest.$ac_ext 13291 13292 # OK, works on sane cases. Now check whether nonexistent headers 13293 # can be detected and how. 13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13295/* end confdefs.h. */ 13296#include <ac_nonexistent.h> 13297_ACEOF 13298if ac_fn_c_try_cpp "$LINENO"; then : 13299 # Broken: success on invalid input. 13300continue 13301else 13302 # Passes both tests. 13303ac_preproc_ok=: 13304break 13305fi 13306rm -f conftest.err conftest.i conftest.$ac_ext 13307 13308done 13309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13310rm -f conftest.i conftest.err conftest.$ac_ext 13311if $ac_preproc_ok; then : 13312 break 13313fi 13314 13315 done 13316 ac_cv_prog_CPP=$CPP 13317 13318fi 13319 CPP=$ac_cv_prog_CPP 13320else 13321 ac_cv_prog_CPP=$CPP 13322fi 13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 13324$as_echo "$CPP" >&6; } 13325ac_preproc_ok=false 13326for ac_c_preproc_warn_flag in '' yes 13327do 13328 # Use a header file that comes with gcc, so configuring glibc 13329 # with a fresh cross-compiler works. 13330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13331 # <limits.h> exists even on freestanding compilers. 13332 # On the NeXT, cc -E runs the code through the compiler's parser, 13333 # not just through cpp. "Syntax error" is here to catch this case. 13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336#ifdef __STDC__ 13337# include <limits.h> 13338#else 13339# include <assert.h> 13340#endif 13341 Syntax error 13342_ACEOF 13343if ac_fn_c_try_cpp "$LINENO"; then : 13344 13345else 13346 # Broken: fails on valid input. 13347continue 13348fi 13349rm -f conftest.err conftest.i conftest.$ac_ext 13350 13351 # OK, works on sane cases. Now check whether nonexistent headers 13352 # can be detected and how. 13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13354/* end confdefs.h. */ 13355#include <ac_nonexistent.h> 13356_ACEOF 13357if ac_fn_c_try_cpp "$LINENO"; then : 13358 # Broken: success on invalid input. 13359continue 13360else 13361 # Passes both tests. 13362ac_preproc_ok=: 13363break 13364fi 13365rm -f conftest.err conftest.i conftest.$ac_ext 13366 13367done 13368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13369rm -f conftest.i conftest.err conftest.$ac_ext 13370if $ac_preproc_ok; then : 13371 13372else 13373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13375as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 13376See \`config.log' for more details" "$LINENO" 5; } 13377fi 13378 13379ac_ext=c 13380ac_cpp='$CPP $CPPFLAGS' 13381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13383ac_compiler_gnu=$ac_cv_c_compiler_gnu 13384 13385 13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13387$as_echo_n "checking whether ln -s works... " >&6; } 13388LN_S=$as_ln_s 13389if test "$LN_S" = "ln -s"; then 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13391$as_echo "yes" >&6; } 13392else 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13394$as_echo "no, using $LN_S" >&6; } 13395fi 13396 13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 13398$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 13399set x ${MAKE-make} 13400ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 13401if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 13402 $as_echo_n "(cached) " >&6 13403else 13404 cat >conftest.make <<\_ACEOF 13405SHELL = /bin/sh 13406all: 13407 @echo '@@@%%%=$(MAKE)=@@@%%%' 13408_ACEOF 13409# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 13410case `${MAKE-make} -f conftest.make 2>/dev/null` in 13411 *@@@%%%=?*=@@@%%%*) 13412 eval ac_cv_prog_make_${ac_make}_set=yes;; 13413 *) 13414 eval ac_cv_prog_make_${ac_make}_set=no;; 13415esac 13416rm -f conftest.make 13417fi 13418if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13420$as_echo "yes" >&6; } 13421 SET_MAKE= 13422else 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13424$as_echo "no" >&6; } 13425 SET_MAKE="MAKE=${MAKE-make}" 13426fi 13427 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13429$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13430if ${ac_cv_path_GREP+:} false; then : 13431 $as_echo_n "(cached) " >&6 13432else 13433 if test -z "$GREP"; then 13434 ac_path_GREP_found=false 13435 # Loop through the user's path and test for each of PROGNAME-LIST 13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13437for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13438do 13439 IFS=$as_save_IFS 13440 test -z "$as_dir" && as_dir=. 13441 for ac_prog in grep ggrep; do 13442 for ac_exec_ext in '' $ac_executable_extensions; do 13443 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13444 as_fn_executable_p "$ac_path_GREP" || continue 13445# Check for GNU ac_path_GREP and select it if it is found. 13446 # Check for GNU $ac_path_GREP 13447case `"$ac_path_GREP" --version 2>&1` in 13448*GNU*) 13449 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13450*) 13451 ac_count=0 13452 $as_echo_n 0123456789 >"conftest.in" 13453 while : 13454 do 13455 cat "conftest.in" "conftest.in" >"conftest.tmp" 13456 mv "conftest.tmp" "conftest.in" 13457 cp "conftest.in" "conftest.nl" 13458 $as_echo 'GREP' >> "conftest.nl" 13459 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13461 as_fn_arith $ac_count + 1 && ac_count=$as_val 13462 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13463 # Best one so far, save it but keep looking for a better one 13464 ac_cv_path_GREP="$ac_path_GREP" 13465 ac_path_GREP_max=$ac_count 13466 fi 13467 # 10*(2^10) chars as input seems more than enough 13468 test $ac_count -gt 10 && break 13469 done 13470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13471esac 13472 13473 $ac_path_GREP_found && break 3 13474 done 13475 done 13476 done 13477IFS=$as_save_IFS 13478 if test -z "$ac_cv_path_GREP"; then 13479 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13480 fi 13481else 13482 ac_cv_path_GREP=$GREP 13483fi 13484 13485fi 13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13487$as_echo "$ac_cv_path_GREP" >&6; } 13488 GREP="$ac_cv_path_GREP" 13489 13490 13491for ac_prog in perl perl5 13492do 13493 # Extract the first word of "$ac_prog", so it can be a program name with args. 13494set dummy $ac_prog; ac_word=$2 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13496$as_echo_n "checking for $ac_word... " >&6; } 13497if ${ac_cv_path_PERL+:} false; then : 13498 $as_echo_n "(cached) " >&6 13499else 13500 case $PERL in 13501 [\\/]* | ?:[\\/]*) 13502 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 13503 ;; 13504 *) 13505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13506for as_dir in $PATH 13507do 13508 IFS=$as_save_IFS 13509 test -z "$as_dir" && as_dir=. 13510 for ac_exec_ext in '' $ac_executable_extensions; do 13511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13512 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 13513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13514 break 2 13515 fi 13516done 13517 done 13518IFS=$as_save_IFS 13519 13520 ;; 13521esac 13522fi 13523PERL=$ac_cv_path_PERL 13524if test -n "$PERL"; then 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 13526$as_echo "$PERL" >&6; } 13527else 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13529$as_echo "no" >&6; } 13530fi 13531 13532 13533 test -n "$PERL" && break 13534done 13535 13536for ac_prog in env printenv 13537do 13538 # Extract the first word of "$ac_prog", so it can be a program name with args. 13539set dummy $ac_prog; ac_word=$2 13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13541$as_echo_n "checking for $ac_word... " >&6; } 13542if ${ac_cv_path_ENV_CMD+:} false; then : 13543 $as_echo_n "(cached) " >&6 13544else 13545 case $ENV_CMD in 13546 [\\/]* | ?:[\\/]*) 13547 ac_cv_path_ENV_CMD="$ENV_CMD" # Let the user override the test with a path. 13548 ;; 13549 *) 13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13551for as_dir in $PATH 13552do 13553 IFS=$as_save_IFS 13554 test -z "$as_dir" && as_dir=. 13555 for ac_exec_ext in '' $ac_executable_extensions; do 13556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13557 ac_cv_path_ENV_CMD="$as_dir/$ac_word$ac_exec_ext" 13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13559 break 2 13560 fi 13561done 13562 done 13563IFS=$as_save_IFS 13564 13565 ;; 13566esac 13567fi 13568ENV_CMD=$ac_cv_path_ENV_CMD 13569if test -n "$ENV_CMD"; then 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV_CMD" >&5 13571$as_echo "$ENV_CMD" >&6; } 13572else 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13574$as_echo "no" >&6; } 13575fi 13576 13577 13578 test -n "$ENV_CMD" && break 13579done 13580 13581 13582# Checks for header files. 13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13584$as_echo_n "checking for ANSI C header files... " >&6; } 13585if ${ac_cv_header_stdc+:} false; then : 13586 $as_echo_n "(cached) " >&6 13587else 13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13589/* end confdefs.h. */ 13590#include <stdlib.h> 13591#include <stdarg.h> 13592#include <string.h> 13593#include <float.h> 13594 13595int 13596main () 13597{ 13598 13599 ; 13600 return 0; 13601} 13602_ACEOF 13603if ac_fn_c_try_compile "$LINENO"; then : 13604 ac_cv_header_stdc=yes 13605else 13606 ac_cv_header_stdc=no 13607fi 13608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13609 13610if test $ac_cv_header_stdc = yes; then 13611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13613/* end confdefs.h. */ 13614#include <string.h> 13615 13616_ACEOF 13617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13618 $EGREP "memchr" >/dev/null 2>&1; then : 13619 13620else 13621 ac_cv_header_stdc=no 13622fi 13623rm -f conftest* 13624 13625fi 13626 13627if test $ac_cv_header_stdc = yes; then 13628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13630/* end confdefs.h. */ 13631#include <stdlib.h> 13632 13633_ACEOF 13634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13635 $EGREP "free" >/dev/null 2>&1; then : 13636 13637else 13638 ac_cv_header_stdc=no 13639fi 13640rm -f conftest* 13641 13642fi 13643 13644if test $ac_cv_header_stdc = yes; then 13645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13646 if test "$cross_compiling" = yes; then : 13647 : 13648else 13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13650/* end confdefs.h. */ 13651#include <ctype.h> 13652#include <stdlib.h> 13653#if ((' ' & 0x0FF) == 0x020) 13654# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13655# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13656#else 13657# define ISLOWER(c) \ 13658 (('a' <= (c) && (c) <= 'i') \ 13659 || ('j' <= (c) && (c) <= 'r') \ 13660 || ('s' <= (c) && (c) <= 'z')) 13661# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13662#endif 13663 13664#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13665int 13666main () 13667{ 13668 int i; 13669 for (i = 0; i < 256; i++) 13670 if (XOR (islower (i), ISLOWER (i)) 13671 || toupper (i) != TOUPPER (i)) 13672 return 2; 13673 return 0; 13674} 13675_ACEOF 13676if ac_fn_c_try_run "$LINENO"; then : 13677 13678else 13679 ac_cv_header_stdc=no 13680fi 13681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13682 conftest.$ac_objext conftest.beam conftest.$ac_ext 13683fi 13684 13685fi 13686fi 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13688$as_echo "$ac_cv_header_stdc" >&6; } 13689if test $ac_cv_header_stdc = yes; then 13690 13691$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13692 13693fi 13694 13695for ac_header in fcntl.h limits.h stdlib.h string.h unistd.h sys/types.h sys/stat.h sys/utsname.h 13696do : 13697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13698ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13700 cat >>confdefs.h <<_ACEOF 13701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13702_ACEOF 13703 13704fi 13705 13706done 13707 13708 13709# Checks for typedefs, structures, and compiler characteristics. 13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13711$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13712if ${ac_cv_c_const+:} false; then : 13713 $as_echo_n "(cached) " >&6 13714else 13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13716/* end confdefs.h. */ 13717 13718int 13719main () 13720{ 13721 13722#ifndef __cplusplus 13723 /* Ultrix mips cc rejects this sort of thing. */ 13724 typedef int charset[2]; 13725 const charset cs = { 0, 0 }; 13726 /* SunOS 4.1.1 cc rejects this. */ 13727 char const *const *pcpcc; 13728 char **ppc; 13729 /* NEC SVR4.0.2 mips cc rejects this. */ 13730 struct point {int x, y;}; 13731 static struct point const zero = {0,0}; 13732 /* AIX XL C 1.02.0.0 rejects this. 13733 It does not let you subtract one const X* pointer from another in 13734 an arm of an if-expression whose if-part is not a constant 13735 expression */ 13736 const char *g = "string"; 13737 pcpcc = &g + (g ? g-g : 0); 13738 /* HPUX 7.0 cc rejects these. */ 13739 ++pcpcc; 13740 ppc = (char**) pcpcc; 13741 pcpcc = (char const *const *) ppc; 13742 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13743 char tx; 13744 char *t = &tx; 13745 char const *s = 0 ? (char *) 0 : (char const *) 0; 13746 13747 *t++ = 0; 13748 if (s) return 0; 13749 } 13750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13751 int x[] = {25, 17}; 13752 const int *foo = &x[0]; 13753 ++foo; 13754 } 13755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13756 typedef const int *iptr; 13757 iptr p = 0; 13758 ++p; 13759 } 13760 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13762 struct s { int j; const int *ap[3]; } bx; 13763 struct s *b = &bx; b->j = 5; 13764 } 13765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13766 const int foo = 10; 13767 if (!foo) return 0; 13768 } 13769 return !cs[0] && !zero.x; 13770#endif 13771 13772 ; 13773 return 0; 13774} 13775_ACEOF 13776if ac_fn_c_try_compile "$LINENO"; then : 13777 ac_cv_c_const=yes 13778else 13779 ac_cv_c_const=no 13780fi 13781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13782fi 13783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13784$as_echo "$ac_cv_c_const" >&6; } 13785if test $ac_cv_c_const = no; then 13786 13787$as_echo "#define const /**/" >>confdefs.h 13788 13789fi 13790 13791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13792$as_echo_n "checking for inline... " >&6; } 13793if ${ac_cv_c_inline+:} false; then : 13794 $as_echo_n "(cached) " >&6 13795else 13796 ac_cv_c_inline=no 13797for ac_kw in inline __inline__ __inline; do 13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13799/* end confdefs.h. */ 13800#ifndef __cplusplus 13801typedef int foo_t; 13802static $ac_kw foo_t static_foo () {return 0; } 13803$ac_kw foo_t foo () {return 0; } 13804#endif 13805 13806_ACEOF 13807if ac_fn_c_try_compile "$LINENO"; then : 13808 ac_cv_c_inline=$ac_kw 13809fi 13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13811 test "$ac_cv_c_inline" != no && break 13812done 13813 13814fi 13815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13816$as_echo "$ac_cv_c_inline" >&6; } 13817 13818case $ac_cv_c_inline in 13819 inline | yes) ;; 13820 *) 13821 case $ac_cv_c_inline in 13822 no) ac_val=;; 13823 *) ac_val=$ac_cv_c_inline;; 13824 esac 13825 cat >>confdefs.h <<_ACEOF 13826#ifndef __cplusplus 13827#define inline $ac_val 13828#endif 13829_ACEOF 13830 ;; 13831esac 13832 13833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 13834$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 13835if ${ac_cv_c_restrict+:} false; then : 13836 $as_echo_n "(cached) " >&6 13837else 13838 ac_cv_c_restrict=no 13839 # The order here caters to the fact that C++ does not require restrict. 13840 for ac_kw in __restrict __restrict__ _Restrict restrict; do 13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13842/* end confdefs.h. */ 13843typedef int * int_ptr; 13844 int foo (int_ptr $ac_kw ip) { 13845 return ip[0]; 13846 } 13847int 13848main () 13849{ 13850int s[1]; 13851 int * $ac_kw t = s; 13852 t[0] = 0; 13853 return foo(t) 13854 ; 13855 return 0; 13856} 13857_ACEOF 13858if ac_fn_c_try_compile "$LINENO"; then : 13859 ac_cv_c_restrict=$ac_kw 13860fi 13861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13862 test "$ac_cv_c_restrict" != no && break 13863 done 13864 13865fi 13866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 13867$as_echo "$ac_cv_c_restrict" >&6; } 13868 13869 case $ac_cv_c_restrict in 13870 restrict) ;; 13871 no) $as_echo "#define restrict /**/" >>confdefs.h 13872 ;; 13873 *) cat >>confdefs.h <<_ACEOF 13874#define restrict $ac_cv_c_restrict 13875_ACEOF 13876 ;; 13877 esac 13878 13879ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13880if test "x$ac_cv_type_pid_t" = xyes; then : 13881 13882else 13883 13884cat >>confdefs.h <<_ACEOF 13885#define pid_t int 13886_ACEOF 13887 13888fi 13889 13890ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13891if test "x$ac_cv_type_size_t" = xyes; then : 13892 13893else 13894 13895cat >>confdefs.h <<_ACEOF 13896#define size_t unsigned int 13897_ACEOF 13898 13899fi 13900 13901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13902$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13903if ${ac_cv_struct_tm+:} false; then : 13904 $as_echo_n "(cached) " >&6 13905else 13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13907/* end confdefs.h. */ 13908#include <sys/types.h> 13909#include <time.h> 13910 13911int 13912main () 13913{ 13914struct tm tm; 13915 int *p = &tm.tm_sec; 13916 return !p; 13917 ; 13918 return 0; 13919} 13920_ACEOF 13921if ac_fn_c_try_compile "$LINENO"; then : 13922 ac_cv_struct_tm=time.h 13923else 13924 ac_cv_struct_tm=sys/time.h 13925fi 13926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13927fi 13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13929$as_echo "$ac_cv_struct_tm" >&6; } 13930if test $ac_cv_struct_tm = sys/time.h; then 13931 13932$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13933 13934fi 13935 13936ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 13937case $ac_cv_c_uint8_t in #( 13938 no|yes) ;; #( 13939 *) 13940 13941$as_echo "#define _UINT8_T 1" >>confdefs.h 13942 13943 13944cat >>confdefs.h <<_ACEOF 13945#define uint8_t $ac_cv_c_uint8_t 13946_ACEOF 13947;; 13948 esac 13949 13950 13951# Checks for library functions. 13952for ac_header in stdlib.h 13953do : 13954 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 13955if test "x$ac_cv_header_stdlib_h" = xyes; then : 13956 cat >>confdefs.h <<_ACEOF 13957#define HAVE_STDLIB_H 1 13958_ACEOF 13959 13960fi 13961 13962done 13963 13964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 13965$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 13966if ${ac_cv_func_malloc_0_nonnull+:} false; then : 13967 $as_echo_n "(cached) " >&6 13968else 13969 if test "$cross_compiling" = yes; then : 13970 ac_cv_func_malloc_0_nonnull=no 13971else 13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13973/* end confdefs.h. */ 13974#if defined STDC_HEADERS || defined HAVE_STDLIB_H 13975# include <stdlib.h> 13976#else 13977char *malloc (); 13978#endif 13979 13980int 13981main () 13982{ 13983return ! malloc (0); 13984 ; 13985 return 0; 13986} 13987_ACEOF 13988if ac_fn_c_try_run "$LINENO"; then : 13989 ac_cv_func_malloc_0_nonnull=yes 13990else 13991 ac_cv_func_malloc_0_nonnull=no 13992fi 13993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13994 conftest.$ac_objext conftest.beam conftest.$ac_ext 13995fi 13996 13997fi 13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 13999$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 14000if test $ac_cv_func_malloc_0_nonnull = yes; then : 14001 14002$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 14003 14004else 14005 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 14006 14007 case " $LIBOBJS " in 14008 *" malloc.$ac_objext "* ) ;; 14009 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 14010 ;; 14011esac 14012 14013 14014$as_echo "#define malloc rpl_malloc" >>confdefs.h 14015 14016fi 14017 14018 14019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 14020$as_echo_n "checking for working memcmp... " >&6; } 14021if ${ac_cv_func_memcmp_working+:} false; then : 14022 $as_echo_n "(cached) " >&6 14023else 14024 if test "$cross_compiling" = yes; then : 14025 ac_cv_func_memcmp_working=no 14026else 14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028/* end confdefs.h. */ 14029$ac_includes_default 14030int 14031main () 14032{ 14033 14034 /* Some versions of memcmp are not 8-bit clean. */ 14035 char c0 = '\100', c1 = '\200', c2 = '\201'; 14036 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 14037 return 1; 14038 14039 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 14040 or more and with at least one buffer not starting on a 4-byte boundary. 14041 William Lewis provided this test program. */ 14042 { 14043 char foo[21]; 14044 char bar[21]; 14045 int i; 14046 for (i = 0; i < 4; i++) 14047 { 14048 char *a = foo + i; 14049 char *b = bar + i; 14050 strcpy (a, "--------01111111"); 14051 strcpy (b, "--------10000000"); 14052 if (memcmp (a, b, 16) >= 0) 14053 return 1; 14054 } 14055 return 0; 14056 } 14057 14058 ; 14059 return 0; 14060} 14061_ACEOF 14062if ac_fn_c_try_run "$LINENO"; then : 14063 ac_cv_func_memcmp_working=yes 14064else 14065 ac_cv_func_memcmp_working=no 14066fi 14067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14068 conftest.$ac_objext conftest.beam conftest.$ac_ext 14069fi 14070 14071fi 14072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 14073$as_echo "$ac_cv_func_memcmp_working" >&6; } 14074test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 14075 *" memcmp.$ac_objext "* ) ;; 14076 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14077 ;; 14078esac 14079 14080 14081for ac_func in atexit getcwd memmove memset strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol fchmod strcasestr 14082do : 14083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14085if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14086 cat >>confdefs.h <<_ACEOF 14087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14088_ACEOF 14089 14090fi 14091done 14092 14093 14094# Some directories 14095MSC_BASE_DIR=`pwd` 14096MSC_PKGBASE_DIR="$MSC_BASE_DIR/.." 14097MSC_TEST_DIR="$MSC_BASE_DIR/tests" 14098MSC_REGRESSION_DIR="$MSC_TEST_DIR/regression" 14099MSC_REGRESSION_SERVERROOT_DIR="$MSC_REGRESSION_DIR/server_root" 14100MSC_REGRESSION_CONF_DIR="$MSC_REGRESSION_SERVERROOT_DIR/conf" 14101MSC_REGRESSION_LOGS_DIR="$MSC_REGRESSION_SERVERROOT_DIR/logs" 14102MSC_REGRESSION_DOCROOT_DIR="$MSC_REGRESSION_SERVERROOT_DIR/htdocs" 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113### Configure Options 14114 14115# Verbose output 14116# Check whether --enable-verbose-output was given. 14117if test "${enable_verbose_output+set}" = set; then : 14118 enableval=$enable_verbose_output; 14119 if test "$enableval" != "no"; then 14120 verbose_output=1 14121 else 14122 verbose_output=0 14123 fi 14124 14125else 14126 14127 verbose_output=0 14128 14129fi 14130 14131 14132 14133#OS type 14134 14135 14136CANONICAL_HOST=$host 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148case $host in 14149 *-*-aix*) 14150 echo "Checking platform... Identified as AIX" 14151 aixos=true 14152 ;; 14153 *-*-hpux*) 14154 echo "Checking platform... Identified as HPUX" 14155 hpuxos=true 14156 ;; 14157 *-*-darwin*) 14158 echo "Checking platform... Identified as Macintosh OS X" 14159 macos=true 14160 ;; 14161 *-*-linux*) 14162 echo "Checking platform... Identified as Linux" 14163 linuxos=true 14164 case "${host_cpu}" in 14165 s390x) 14166 cpu_type="-DLINUX_S390" 14167 ;; 14168 esac 14169 ;; 14170 *-*-solaris*) 14171 echo "Checking platform... Identified as Solaris" 14172 solarisos=true 14173 ;; 14174 *-*-freebsd*|*-*dragonfly*) 14175 echo "Checking platform... Identified as FreeBSD" 14176 freebsdos=true 14177 ;; 14178 *-*-netbsd*) 14179 echo "Checking platform... Identified as NetBSD" 14180 netbsdos=true 14181 ;; 14182 *-*-openbsd*) 14183 echo "Checking platform... Identified as OpenBSD" 14184 openbsdos=true 14185 ;; 14186 *-*-kfreebsd*) 14187 echo "Checking platform... Identified as kFreeBSD, treating as linux" 14188 linuxos=true 14189 ;; 14190 *-*-gnu*.*) 14191 echo "Checking platform... Identified as HURD, treating as linux" 14192 linuxos=true 14193 ;; 14194 *) 14195 echo "Unknown CANONICAL_HOST $host" 14196 exit 14197 ;; 14198esac 14199 14200 if test x$aixos = xtrue; then 14201 AIX_TRUE= 14202 AIX_FALSE='#' 14203else 14204 AIX_TRUE='#' 14205 AIX_FALSE= 14206fi 14207 14208 if test x$hpuxos = xtrue; then 14209 HPUX_TRUE= 14210 HPUX_FALSE='#' 14211else 14212 HPUX_TRUE='#' 14213 HPUX_FALSE= 14214fi 14215 14216 if test x$macos = xtrue; then 14217 MACOSX_TRUE= 14218 MACOSX_FALSE='#' 14219else 14220 MACOSX_TRUE='#' 14221 MACOSX_FALSE= 14222fi 14223 14224 if test x$linuxos = xtrue; then 14225 LINUX_TRUE= 14226 LINUX_FALSE='#' 14227else 14228 LINUX_TRUE='#' 14229 LINUX_FALSE= 14230fi 14231 14232 if test x$linuxos390 = xtrue; then 14233 LINUX390_TRUE= 14234 LINUX390_FALSE='#' 14235else 14236 LINUX390_TRUE='#' 14237 LINUX390_FALSE= 14238fi 14239 14240 if test x$solarisos = xtrue; then 14241 SOLARIS_TRUE= 14242 SOLARIS_FALSE='#' 14243else 14244 SOLARIS_TRUE='#' 14245 SOLARIS_FALSE= 14246fi 14247 14248 if test x$freebsdos = xtrue; then 14249 FREEBSD_TRUE= 14250 FREEBSD_FALSE='#' 14251else 14252 FREEBSD_TRUE='#' 14253 FREEBSD_FALSE= 14254fi 14255 14256 if test x$openbsdos = xtrue; then 14257 OPENBSD_TRUE= 14258 OPENBSD_FALSE='#' 14259else 14260 OPENBSD_TRUE='#' 14261 OPENBSD_FALSE= 14262fi 14263 14264 if test x$netbsdos = xtrue; then 14265 NETBSD_TRUE= 14266 NETBSD_FALSE='#' 14267else 14268 NETBSD_TRUE='#' 14269 NETBSD_FALSE= 14270fi 14271 14272 14273#Subdirs 14274TOPLEVEL_SUBDIRS="tools" 14275 14276# Apache2 Module 14277# Check whether --enable-apache2-module was given. 14278if test "${enable_apache2_module+set}" = set; then : 14279 enableval=$enable_apache2_module; 14280 if test "$enableval" != "no"; then 14281 build_apache2_module=1 14282 else 14283 build_apache2_module=0 14284 fi 14285 14286else 14287 14288 build_apache2_module=1 14289 14290fi 14291 14292 if test "$build_apache2_module" -eq 1; then 14293 BUILD_APACHE2_MODULE_TRUE= 14294 BUILD_APACHE2_MODULE_FALSE='#' 14295else 14296 BUILD_APACHE2_MODULE_TRUE='#' 14297 BUILD_APACHE2_MODULE_FALSE= 14298fi 14299 14300if test "$build_apache2_module" -eq 1; then 14301 TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS apache2" 14302fi 14303 14304 14305# Standalone Module 14306# Check whether --enable-standalone-module was given. 14307if test "${enable_standalone_module+set}" = set; then : 14308 enableval=$enable_standalone_module; 14309 if test "$enableval" != "no"; then 14310 build_standalone_module=1 14311 else 14312 build_standalone_module=0 14313 fi 14314 14315else 14316 14317 build_standalone_module=0 14318 14319fi 14320 14321 if test "$build_standalone_module" -eq 1; then 14322 BUILD_STANDALONE_MODULE_TRUE= 14323 BUILD_STANDALONE_MODULE_FALSE='#' 14324else 14325 BUILD_STANDALONE_MODULE_TRUE='#' 14326 BUILD_STANDALONE_MODULE_FALSE= 14327fi 14328 14329if test "$build_standalone_module" -eq 1; then 14330 TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS standalone" 14331fi 14332 14333 14334# Extensions 14335# Check whether --enable-extentions was given. 14336if test "${enable_extentions+set}" = set; then : 14337 enableval=$enable_extentions; 14338 if test "$enableval" != "no"; then 14339 build_extentions=1 14340 else 14341 build_extentions=0 14342 fi 14343 14344else 14345 14346 build_extentions=0 14347 14348fi 14349 14350 if test "$build_extentions" -eq 1; then 14351 BUILD_extentions_TRUE= 14352 BUILD_extentions_FALSE='#' 14353else 14354 BUILD_extentions_TRUE='#' 14355 BUILD_extentions_FALSE= 14356fi 14357 14358if test "$build_extentions" -eq 1; then 14359 TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS ext" 14360fi 14361 14362 14363# Mlogc 14364# Check whether --enable-mlogc was given. 14365if test "${enable_mlogc+set}" = set; then : 14366 enableval=$enable_mlogc; 14367 if test "$enableval" != "no"; then 14368 build_mlogc=1 14369 else 14370 build_mlogc=0 14371 fi 14372 14373else 14374 14375 build_mlogc=1 14376 14377fi 14378 14379 14380 14381 14382# Check whether --with-curl was given. 14383if test "${with_curl+set}" = set; then : 14384 withval=$with_curl; test_paths="${with_curl}" 14385else 14386 test_paths="/usr/local/libcurl /usr/local/curl /usr/local /opt/libcurl /opt/curl /opt /usr" 14387fi 14388 14389 14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl config script" >&5 14391$as_echo_n "checking for libcurl config script... " >&6; } 14392 14393for x in ${test_paths}; do 14394 if test ! -d "$x" -a -e "$x"; then 14395 CURL_CONFIG=$x 14396 curl_path="no" 14397 break 14398 fi 14399 14400 for CURL_CONFIG in curl-config; do 14401 if test -e "${x}/bin/${CURL_CONFIG}"; then 14402 curl_path="${x}/bin" 14403 break 14404 elif test -e "${x}/${CURL_CONFIG}"; then 14405 curl_path="${x}" 14406 break 14407 else 14408 curl_path="" 14409 fi 14410 done 14411 if test -n "$curl_path"; then 14412 break 14413 fi 14414done 14415 14416if test -n "${curl_path}"; then 14417 if test "${curl_path}" != "no"; then 14418 CURL_CONFIG="${curl_path}/${CURL_CONFIG}" 14419 fi 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CURL_CONFIG}" >&5 14421$as_echo "${CURL_CONFIG}" >&6; } 14422 CURL_VERSION=`${CURL_CONFIG} --version | sed 's/^[^0-9][^[:space:]][^[:space:]]*[[:space:]]*//' | tr '\r\n' ' '` 14423 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl VERSION: $CURL_VERSION" >&5 14424$as_echo "$as_me: curl VERSION: $CURL_VERSION" >&6;}; fi 14425 CURL_CFLAGS="`${CURL_CONFIG} --cflags`" 14426 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl CFLAGS: $CURL_CFLAGS" >&5 14427$as_echo "$as_me: curl CFLAGS: $CURL_CFLAGS" >&6;}; fi 14428 CURL_LIBS="`${CURL_CONFIG} --libs`" 14429 CURL_LDADD="${CURL_LIBS}" 14430 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: curl LDADD: $CURL_LIBS" >&5 14431$as_echo "$as_me: curl LDADD: $CURL_LIBS" >&6;}; fi 14432 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl is at least v${CURL_MIN_VERSION}" >&5 14434$as_echo_n "checking if libcurl is at least v${CURL_MIN_VERSION}... " >&6; } 14435 curl_min_ver=`echo ${CURL_MIN_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'` 14436 curl_ver=`echo ${CURL_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'` 14437 if test "$curl_min_ver" -le "$curl_ver"; then 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $CURL_VERSION" >&5 14439$as_echo "yes, $CURL_VERSION" >&6; } 14440 curl_tlsv2_ver=`echo 7.34.0 | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'` 14441 if test "$curl_tlsv2_ver" -le "$curl_ver"; then 14442 CURL_CFLAGS="${CURL_CFLAGS} -DWITH_CURL_SSLVERSION_TLSv1_2" 14443 fi 14444 CURL_CFLAGS="${CURL_CFLAGS} -DWITH_CURL" 14445 else 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $CURL_VERSION" >&5 14447$as_echo "no, $CURL_VERSION" >&6; } 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl library may be too old" >&5 14449$as_echo "$as_me: NOTE: curl library may be too old" >&6;} 14450 fi 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl is linked with gnutls" >&5 14453$as_echo_n "checking if libcurl is linked with gnutls... " >&6; } 14454 curl_uses_gnutls=`echo ${CURL_LIBS} | grep gnutls | wc -l` 14455 if test "$curl_uses_gnutls" -ne 0; then 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14457$as_echo "yes" >&6; } 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl linked with gnutls may be buggy, openssl recommended" >&5 14459$as_echo "$as_me: NOTE: curl linked with gnutls may be buggy, openssl recommended" >&6;} 14460 CURL_USES_GNUTLS=yes 14461 else 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14463$as_echo "no" >&6; } 14464 CURL_USES_GNUTLS=no 14465 fi 14466 14467else 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14469$as_echo "no" >&6; } 14470fi 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480if test -z "${CURL_VERSION}"; then 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: *** curl library not found." >&5 14482$as_echo "$as_me: *** curl library not found." >&6;} 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: curl library is only required for building mlogc" >&5 14484$as_echo "$as_me: NOTE: curl library is only required for building mlogc" >&6;} 14485else 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: using curl v${CURL_VERSION}" >&5 14487$as_echo "$as_me: using curl v${CURL_VERSION}" >&6;} 14488 14489fi 14490 14491 14492if test -z "${CURL_VERSION}"; then 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: mlgoc compilation was disabled." >&5 14494$as_echo "$as_me: NOTE: mlgoc compilation was disabled." >&6;} 14495 build_mlogc=0 14496fi 14497 14498 if test "$build_mlogc" -eq 1; then 14499 BUILD_MLOGC_TRUE= 14500 BUILD_MLOGC_FALSE='#' 14501else 14502 BUILD_MLOGC_TRUE='#' 14503 BUILD_MLOGC_FALSE= 14504fi 14505 14506if test "$build_mlogc" -eq 1; then 14507 TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS mlogc" 14508fi 14509 14510# Audit Log Parser v2 (ALP2) 14511# Check whether --enable-alp2 was given. 14512if test "${enable_alp2+set}" = set; then : 14513 enableval=$enable_alp2; 14514 if test "$enableval" != "no"; then 14515 build_alp2=1 14516 else 14517 build_alp2=0 14518 fi 14519 14520else 14521 14522 build_alp2=0 14523 14524fi 14525 14526 if test "$build_alp2" -eq 1; then 14527 BUILD_ALP2_TRUE= 14528 BUILD_ALP2_FALSE='#' 14529else 14530 BUILD_ALP2_TRUE='#' 14531 BUILD_ALP2_FALSE= 14532fi 14533 14534if test "$build_alp2" -eq 1; then 14535 TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS alp2" 14536fi 14537 14538# Documentation 14539# Check whether --enable-docs was given. 14540if test "${enable_docs+set}" = set; then : 14541 enableval=$enable_docs; 14542 if test "$enableval" != "no"; then 14543 build_docs=1 14544 else 14545 build_docs=0 14546 fi 14547 14548else 14549 14550 build_docs=0 14551 14552fi 14553 14554 if test "$build_docs" -eq 1; then 14555 BUILD_DOCS_TRUE= 14556 BUILD_DOCS_FALSE='#' 14557else 14558 BUILD_DOCS_TRUE='#' 14559 BUILD_DOCS_FALSE= 14560fi 14561 14562if test "$build_docs" -eq 1; then 14563 TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS doc" 14564 for ac_prog in doxygen 14565do 14566 # Extract the first word of "$ac_prog", so it can be a program name with args. 14567set dummy $ac_prog; ac_word=$2 14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14569$as_echo_n "checking for $ac_word... " >&6; } 14570if ${ac_cv_prog_DOXYGEN+:} false; then : 14571 $as_echo_n "(cached) " >&6 14572else 14573 if test -n "$DOXYGEN"; then 14574 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 14575else 14576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14577for as_dir in $PATH 14578do 14579 IFS=$as_save_IFS 14580 test -z "$as_dir" && as_dir=. 14581 for ac_exec_ext in '' $ac_executable_extensions; do 14582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14583 ac_cv_prog_DOXYGEN="$ac_prog" 14584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14585 break 2 14586 fi 14587done 14588 done 14589IFS=$as_save_IFS 14590 14591fi 14592fi 14593DOXYGEN=$ac_cv_prog_DOXYGEN 14594if test -n "$DOXYGEN"; then 14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 14596$as_echo "$DOXYGEN" >&6; } 14597else 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14599$as_echo "no" >&6; } 14600fi 14601 14602 14603 test -n "$DOXYGEN" && break 14604done 14605 14606 if test -z "$DOXYGEN"; then 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - continue without Doxygen support" >&5 14608$as_echo "$as_me: WARNING: Doxygen not found - continue without Doxygen support" >&2;} 14609 fi 14610 if test "$build_apache2_module" -eq 1; then 14611 ac_config_files="$ac_config_files doc/doxygen-apache" 14612 14613 fi 14614 if test "$build_standalone_module" -eq 1; then 14615 ac_config_files="$ac_config_files doc/doxygen-nginx" 14616 14617 ac_config_files="$ac_config_files doc/doxygen-iis" 14618 14619 ac_config_files="$ac_config_files doc/doxygen-standalone" 14620 14621 fi 14622 ac_config_files="$ac_config_files doc/Makefile" 14623 14624fi 14625 14626 14627# Add PCRE Studying 14628 14629# Check whether --enable-pcre-study was given. 14630if test "${enable_pcre_study+set}" = set; then : 14631 enableval=$enable_pcre_study; 14632 if test "$enableval" != "no"; then 14633 pcre_study='-DWITH_PCRE_STUDY' 14634 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $pcre_study" 14635 else 14636 pcre_study='' 14637 fi 14638 14639else 14640 14641 pcre_study='-DWITH_PCRE_STUDY' 14642 14643fi 14644 14645 14646# Add PCRE JIT 14647 14648# Check whether --enable-pcre-jit was given. 14649if test "${enable_pcre_jit+set}" = set; then : 14650 enableval=$enable_pcre_jit; 14651 if test "$enableval" != "no"; then 14652 pcre_jit='-DWITH_PCRE_JIT' 14653 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $pcre_jit" 14654 else 14655 pcre_jit='' 14656 fi 14657 14658else 14659 14660 pcre_jit='' 14661 14662fi 14663 14664 14665 14666# Limit PCRE matching 14667# Check whether --enable-pcre-match-limit was given. 14668if test "${enable_pcre_match_limit+set}" = set; then : 14669 enableval=$enable_pcre_match_limit; 14670 if test "$enableval" = "yes"; then 14671 as_fn_error $? "PCRE match limits require a numeric value" "$LINENO" 5 14672 elif test "$enableval" = "no"; then 14673 pcre_match_limit='' 14674 else 14675 pcre_match_limit="-DMODSEC_PCRE_MATCH_LIMIT=$enableval" 14676 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $pcre_match_limit" 14677 fi 14678 14679else 14680 14681 pcre_match_limit='-DMODSEC_PCRE_MATCH_LIMIT=1500' 14682 14683fi 14684 14685 14686# Limit PCRE matching recursion 14687# Check whether --enable-pcre-match-limit-recursion was given. 14688if test "${enable_pcre_match_limit_recursion+set}" = set; then : 14689 enableval=$enable_pcre_match_limit_recursion; 14690 if test "$enableval" = "yes"; then 14691 as_fn_error $? "PCRE match limits require a numeric value" "$LINENO" 5 14692 elif test "$enableval" = "no"; then 14693 pcre_match_limit_recursion='' 14694 else 14695 pcre_match_limit_recursion="-DMODSEC_PCRE_MATCH_LIMIT_RECURSION=$enableval" 14696 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $pcre_match_limit_recursion" 14697 fi 14698 14699else 14700 14701 pcre_match_limit_recursion='-DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500' 14702 14703fi 14704 14705 14706# Enable Lua per transaction cache 14707# Check whether --enable-lua-cache was given. 14708if test "${enable_lua_cache+set}" = set; then : 14709 enableval=$enable_lua_cache; 14710 if test "$enableval" != "no"; then 14711 lua_cache="-DCACHE_LUA" 14712 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $lua_cache" 14713 else 14714 lua_cache= 14715 fi 14716 14717else 14718 14719 lua_cache= 14720 14721fi 14722 14723 14724# Enable phase-1 in post_read_request 14725# Check whether --enable-htaccess-config was given. 14726if test "${enable_htaccess_config+set}" = set; then : 14727 enableval=$enable_htaccess_config; 14728 if test "$enableval" != "no"; then 14729 htaccess_config="-DHTACCESS_CONFIG" 14730 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $htaccess_config" 14731 else 14732 htaccess_config= 14733 fi 14734 14735else 14736 14737 htaccess_config= 14738 14739fi 14740 14741 14742# Enable phase-1 in post_read_request 14743# Check whether --enable-request-early was given. 14744if test "${enable_request_early+set}" = set; then : 14745 enableval=$enable_request_early; 14746 if test "$enableval" != "no"; then 14747 request_early="-DREQUEST_EARLY" 14748 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $request_early" 14749 else 14750 request_early= 14751 fi 14752 14753else 14754 14755 request_early='-DREQUEST_EARLY' 14756 14757fi 14758 14759 14760# Enable duplicate rules id 14761# Check whether --enable-rule-id-validation was given. 14762if test "${enable_rule_id_validation+set}" = set; then : 14763 enableval=$enable_rule_id_validation; 14764 if test "$enableval" != "no"; then 14765 unique_id= 14766 else 14767 unique_id="-DALLOW_ID_NOT_UNIQUE" 14768 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $unique_id" 14769 fi 14770 14771else 14772 14773 unique_id='' 14774 14775fi 14776 14777 14778# Disable logging of filename 14779# Check whether --enable-filename-logging was given. 14780if test "${enable_filename_logging+set}" = set; then : 14781 enableval=$enable_filename_logging; 14782 if test "$enableval" != "no"; then 14783 log_filename= 14784 else 14785 log_filename="-DLOG_NO_FILENAME" 14786 fi 14787 14788else 14789 14790 log_filename='' 14791 14792fi 14793 14794 14795# Disable logging of "Server" 14796# Check whether --enable-server-logging was given. 14797if test "${enable_server_logging+set}" = set; then : 14798 enableval=$enable_server_logging; 14799 if test "$enableval" != "no"; then 14800 log_server= 14801 else 14802 log_server="-DLOG_NO_SERVER" 14803 fi 14804 14805else 14806 14807 log_server='' 14808 14809fi 14810 14811 14812# Disable logging of problem when deleting collection 14813# Check whether --enable-collection-delete-problem-logging was given. 14814if test "${enable_collection_delete_problem_logging+set}" = set; then : 14815 enableval=$enable_collection_delete_problem_logging; 14816 if test "$enableval" != "no"; then 14817 log_collection_delete_problem= 14818 else 14819 log_collection_delete_problem="-DLOG_NO_COLL_DELET_PB" 14820 fi 14821 14822else 14823 14824 log_collection_delete_problem='' 14825 14826fi 14827 14828 14829# Disable logging of Apache handler 14830# Check whether --enable-handler-logging was given. 14831if test "${enable_handler_logging+set}" = set; then : 14832 enableval=$enable_handler_logging; 14833 if test "$enableval" != "no"; then 14834 log_handler= 14835 else 14836 log_handler="-DLOG_NO_HANDLER" 14837 fi 14838 14839else 14840 14841 log_handler='' 14842 14843fi 14844 14845 14846# Disable logging of dechunking 14847# Check whether --enable-dechunk-logging was given. 14848if test "${enable_dechunk_logging+set}" = set; then : 14849 enableval=$enable_dechunk_logging; 14850 if test "$enableval" != "no"; then 14851 log_dechunk= 14852 else 14853 log_dechunk="-DLOG_NO_DECHUNK" 14854 fi 14855 14856else 14857 14858 log_dechunk='' 14859 14860fi 14861 14862 14863# Disable logging of stopwatches 14864# Check whether --enable-stopwatch-logging was given. 14865if test "${enable_stopwatch_logging+set}" = set; then : 14866 enableval=$enable_stopwatch_logging; 14867 if test "$enableval" != "no"; then 14868 log_stopwatch= 14869 else 14870 log_stopwatch="-DLOG_NO_STOPWATCH" 14871 fi 14872 14873else 14874 14875 log_stopwatch='' 14876 14877fi 14878 14879 14880# Disable logging of server context 14881# Check whether --enable-server-context-logging was given. 14882if test "${enable_server_context_logging+set}" = set; then : 14883 enableval=$enable_server_context_logging; 14884 if test "$enableval" != "no"; then 14885 log_server_context= 14886 else 14887 log_server_context="-DLOG_NO_SERVER_CONTEXT" 14888 fi 14889 14890else 14891 14892 log_server_context='' 14893 14894fi 14895 14896 14897 14898# Enable collection's global lock 14899# Check whether --enable-collection-global-lock was given. 14900if test "${enable_collection_global_lock+set}" = set; then : 14901 enableval=$enable_collection_global_lock; 14902 if test "$enableval" != "yes"; then 14903 collection_global_lock="" 14904 else 14905 collection_global_lock="-DGLOBAL_COLLECTION_LOCK" 14906 fi 14907 14908else 14909 14910 collection_global_lock='' 14911 14912fi 14913 14914 14915 14916# Ignore configure errors 14917# Check whether --enable-errors was given. 14918if test "${enable_errors+set}" = set; then : 14919 enableval=$enable_errors; 14920 if test "$enableval" != "no"; then 14921 report_errors=1 14922 else 14923 report_errors=0 14924 fi 14925 14926else 14927 14928 report_errors=1 14929 14930fi 14931 14932 14933 14934# Strict Compile 14935# Check whether --enable-strict-compile was given. 14936if test "${enable_strict_compile+set}" = set; then : 14937 enableval=$enable_strict_compile; 14938 if test "$enableval" != "no"; then 14939 strict_compile="-std=c99 -Wstrict-overflow=1 -Wextra -Wno-missing-field-initializers -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-unused-parameter -Wformat -Wformat-security -Werror -fstack-protector -D_FORTIFY_SOURCE=2" 14940 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $strict_compile" 14941 else 14942 strict_compile= 14943 fi 14944 14945else 14946 14947 strict_compile= 14948 14949fi 14950 14951 14952# DEBUG_CONF 14953# Check whether --enable-debug-conf was given. 14954if test "${enable_debug_conf+set}" = set; then : 14955 enableval=$enable_debug_conf; 14956 if test "$enableval" != "no"; then 14957 debug_conf="-DDEBUG_CONF" 14958 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $debug_conf" 14959 else 14960 debug_conf= 14961 fi 14962 14963else 14964 14965 debug_conf= 14966 14967fi 14968 14969 14970# CACHE_DEBUG 14971# Check whether --enable-debug-cache was given. 14972if test "${enable_debug_cache+set}" = set; then : 14973 enableval=$enable_debug_cache; 14974 if test "$enableval" != "no"; then 14975 debug_cache="-DCACHE_DEBUG" 14976 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $debug_cache" 14977 else 14978 debug_cache= 14979 fi 14980 14981else 14982 14983 debug_cache= 14984 14985fi 14986 14987 14988# DEBUG_ACMP 14989# Check whether --enable-debug-acmp was given. 14990if test "${enable_debug_acmp+set}" = set; then : 14991 enableval=$enable_debug_acmp; 14992 if test "$enableval" != "no"; then 14993 debug_acmp="-DDEBUG_ACMP" 14994 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $debug_acmp" 14995 else 14996 debug_acmp= 14997 fi 14998 14999else 15000 15001 debug_acmp= 15002 15003fi 15004 15005 15006# DEBUG_MEM 15007# Check whether --enable-debug-mem was given. 15008if test "${enable_debug_mem+set}" = set; then : 15009 enableval=$enable_debug_mem; 15010 if test "$enableval" != "no"; then 15011 debug_mem="-DDEBUG_MEM" 15012 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $debug_mem" 15013 else 15014 debug_mem= 15015 fi 15016 15017else 15018 15019 debug_mem= 15020 15021fi 15022 15023 15024# PERFORMANCE_MEASUREMENT 15025# Check whether --enable-performance-measurement was given. 15026if test "${enable_performance_measurement+set}" = set; then : 15027 enableval=$enable_performance_measurement; 15028 if test "$enableval" != "no"; then 15029 perf_meas="-DPERFORMANCE_MEASUREMENT" 15030 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $perf_meas" 15031 else 15032 perf_meas= 15033 fi 15034 15035else 15036 15037 perf_meas= 15038 15039fi 15040 15041 15042# NO_MODSEC_API 15043# Check whether --enable-modsec-api was given. 15044if test "${enable_modsec_api+set}" = set; then : 15045 enableval=$enable_modsec_api; 15046 if test "$enableval" != "yes"; then 15047 modsec_api="-DNO_MODSEC_API" 15048 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $modsec_api" 15049 else 15050 modsec_api= 15051 fi 15052 15053else 15054 15055 modsec_api= 15056 15057fi 15058 15059 15060# MSC_LARGE_STREAM_INPUT 15061# Check whether --enable-large-stream-input was given. 15062if test "${enable_large_stream_input+set}" = set; then : 15063 enableval=$enable_large_stream_input; 15064 if test "$enableval" == "yes"; then 15065 large_stream_input="-DMSC_LARGE_STREAM_INPUT" 15066 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $large_stream_input" 15067 else 15068 large_stream_input= 15069 fi 15070 15071else 15072 15073 large_stream_input= 15074 15075fi 15076 15077 15078# Find apxs 15079{ $as_echo "$as_me:${as_lineno-$LINENO}: looking for Apache module support via DSO through APXS" >&5 15080$as_echo "$as_me: looking for Apache module support via DSO through APXS" >&6;} 15081 15082# Check whether --with-apxs was given. 15083if test "${with_apxs+set}" = set; then : 15084 withval=$with_apxs; 15085 if test "$withval" = "yes"; then 15086 APXS=apxs 15087 else 15088 APXS="$withval" 15089 fi 15090 15091fi 15092 15093 15094if test -z "$APXS"; then 15095 for i in /usr/local/apache22/bin \ 15096 /usr/local/apache2/bin \ 15097 /usr/local/apache/bin \ 15098 /usr/local/sbin \ 15099 /usr/local/bin \ 15100 /usr/sbin \ 15101 /usr/bin; 15102 do 15103 if test -f "$i/apxs2"; then 15104 APXS="$i/apxs2" 15105 break 15106 elif test -f "$i/apxs"; then 15107 APXS="$i/apxs" 15108 break 15109 fi 15110 done 15111fi 15112 15113# arbitrarily picking the same version subversion looks for, don't know how 15114# accurate this really is, but at least it'll force us to have apache2... 15115HTTPD_WANTED_MMN=20020903 15116 15117if test -n "$APXS" -a "$APXS" != "no" -a -x "$APXS" ; then 15118 APXS_INCLUDE="`$APXS -q INCLUDEDIR`" 15119 if test -r $APXS_INCLUDE/httpd.h; then 15120 { $as_echo "$as_me:${as_lineno-$LINENO}: found apxs at $APXS" >&5 15121$as_echo "$as_me: found apxs at $APXS" >&6;} 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5 15123$as_echo "$as_me: checking httpd version" >&6;} 15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15125/* end confdefs.h. */ 15126 15127#include "$APXS_INCLUDE/ap_mmn.h" 15128#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0) 15129VERSION_OK 15130#endif 15131_ACEOF 15132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15133 $EGREP "VERSION_OK" >/dev/null 2>&1; then : 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: httpd is recent enough" >&5 15135$as_echo "$as_me: httpd is recent enough" >&6;} 15136else 15137 15138 if test "$report_errors" -eq 1; then 15139 as_fn_error mmn must be at least $HTTPD_WANTED_MMN "apache is too old" "$LINENO" 5 15140 else 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: apache is too old" >&5 15142$as_echo "$as_me: apache is too old" >&mmn must be at least $HTTPD_WANTED_MMN;} 15143 fi 15144 15145fi 15146rm -f conftest* 15147 15148 fi 15149 APXS_INCLUDEDIR="`$APXS -q INCLUDEDIR`" 15150 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs INCLUDEDIR: $APXS_INCLUDEDIR" >&5 15151$as_echo "$as_me: apxs INCLUDEDIR: $APXS_INCLUDEDIR" >&6;}; fi 15152 # Make sure the include dir is used 15153 if test -n "$APXS_INCLUDEDIR"; then 15154 APXS_INCLUDES="-I${APXS_INCLUDEDIR} `$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`" 15155 else 15156 APXS_INCLUDES="`$APXS -q INCLUDES` `$APXS -q EXTRA_INCLUDES`" 15157 fi 15158 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs INCLUDES: $APXS_INCLUDES" >&5 15159$as_echo "$as_me: apxs INCLUDES: $APXS_INCLUDES" >&6;}; fi 15160 APXS_CFLAGS=-I`$APXS -q INCLUDEDIR` 15161 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs CFLAGS: $APXS_CFLAGS" >&5 15162$as_echo "$as_me: apxs CFLAGS: $APXS_CFLAGS" >&6;}; fi 15163 APXS_LDFLAGS= 15164 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LDFLAGS: $APXS_LDFLAGS" >&5 15165$as_echo "$as_me: apxs LDFLAGS: $APXS_LDFLAGS" >&6;}; fi 15166 APXS_LIBDIR="`$APXS -q LIBDIR`" 15167 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBDIR: $APXS_LIBDIR" >&5 15168$as_echo "$as_me: apxs LIBDIR: $APXS_LIBDIR" >&6;}; fi 15169 # Make sure the lib dir is used 15170 if test -n "$APXS_LIBDIR"; then 15171 APXS_LIBS="-L${APXS_LIBDIR} `$APXS -q LIBS` `$APXS -q EXTRA_LIBS`" 15172 else 15173 APXS_LIBS="`$APXS -q LIBS` `$APXS -q EXTRA_LIBS`" 15174 fi 15175 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBS: $APXS_LIBS" >&5 15176$as_echo "$as_me: apxs LIBS: $APXS_LIBS" >&6;}; fi 15177 APXS_LIBTOOL="`$APXS -q LIBTOOL`" 15178 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBTOOL: $APXS_LIBTOOL" >&5 15179$as_echo "$as_me: apxs LIBTOOL: $APXS_LIBTOOL" >&6;}; fi 15180 APXS_CC="`$APXS -q CC`" 15181 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs CC: $APXS_CC" >&5 15182$as_echo "$as_me: apxs CC: $APXS_CC" >&6;}; fi 15183 APXS_BINDIR="`$APXS -q BINDIR`" 15184 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs BINDIR: $APXS_BINDIR" >&5 15185$as_echo "$as_me: apxs BINDIR: $APXS_BINDIR" >&6;}; fi 15186 APXS_SBINDIR="`$APXS -q SBINDIR`" 15187 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs SBINDIR: $APXS_SBINDIR" >&5 15188$as_echo "$as_me: apxs SBINDIR: $APXS_SBINDIR" >&6;}; fi 15189 APXS_PROGNAME="`$APXS -q PROGNAME`" 15190 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs PROGNAME: $APXS_PROGNAME" >&5 15191$as_echo "$as_me: apxs PROGNAME: $APXS_PROGNAME" >&6;}; fi 15192 APXS_LIBEXECDIR="`$APXS -q LIBEXECDIR`" 15193 if test "xx$APXS_LIBEXECDIR" = "xx"; then APXS_LIBEXECDIR="`$APXS -q LIBDIR`/modules"; fi 15194 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs LIBEXECDIR: $APXS_LIBEXECDIR" >&5 15195$as_echo "$as_me: apxs LIBEXECDIR: $APXS_LIBEXECDIR" >&6;}; fi 15196 APXS_MODULES=$APXS_LIBEXECDIR 15197 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs MODULES: $APXS_MODULES" >&5 15198$as_echo "$as_me: apxs MODULES: $APXS_MODULES" >&6;}; fi 15199 if test "$APXS_SBINDIR" = "/"; then 15200 APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME" 15201 else 15202 APXS_HTTPD="$APXS_SBINDIR/$APXS_PROGNAME" 15203 fi 15204 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apxs HTTPD: $APXS_HTTPD" >&5 15205$as_echo "$as_me: apxs HTTPD: $APXS_HTTPD" >&6;}; fi 15206else 15207 if test "$report_errors" -eq 1; then 15208 as_fn_error $? "couldn't find APXS" "$LINENO" 5 15209 else 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: couldn't find APXS" >&5 15211$as_echo "$as_me: couldn't find APXS" >&6;} 15212 fi 15213fi 15214 15215### Build *EXTRA_CFLAGS vars 15216 15217# Allow overriding EXTRA_CFLAGS 15218if $ENV_CMD | $GREP "^EXTRA_CFLAGS" > /dev/null 2>&1; then 15219 if test -z "$debug_mem"; then 15220 EXTRA_CFLAGS="$EXTRA_CFLAGS $strict_compile" 15221 fi 15222else 15223 if test -n "$debug_mem"; then 15224 EXTRA_CFLAGS="-O0 -g -Wall" 15225 else 15226 EXTRA_CFLAGS="-O2 -g -Wall $strict_compile" 15227 fi 15228fi 15229 15230MODSEC_EXTRA_CFLAGS="$pcre_study $pcre_match_limit $pcre_match_limit_recursion $pcre_jit $request_early $htaccess_config $lua_cache $debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api $cpu_type $unique_id $log_filename $log_server $log_collection_delete_problem $log_dechunk $log_stopwatch $log_handler $log_server_context $collection_global_lock $large_stream_input" 15231 15232APXS_WRAPPER=build/apxs-wrapper 15233APXS_EXTRA_CFLAGS="" 15234for f in $EXTRA_CFLAGS; do 15235 APXS_EXTRA_CFLAGS="$APXS_EXTRA_CFLAGS -Wc,$f" 15236done; 15237MODSEC_APXS_EXTRA_CFLAGS="" 15238for f in $MODSEC_EXTRA_CFLAGS; do 15239 MODSEC_APXS_EXTRA_CFLAGS="$MODSEC_APXS_EXTRA_CFLAGS -Wc,$f" 15240done; 15241 15242### Substitute the vars 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268# Check whether --with-pcre was given. 15269if test "${with_pcre+set}" = set; then : 15270 withval=$with_pcre; test_paths="${with_pcre}" 15271else 15272 test_paths="/usr/local/libpcre /usr/local/pcre /usr/local /opt/libpcre /opt/pcre /opt /usr" 15273fi 15274 15275 15276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre config script" >&5 15277$as_echo_n "checking for libpcre config script... " >&6; } 15278 15279if test -z "${with_pcre}"; then 15280 test_paths="/usr/local/pcre /usr/local /usr" 15281else 15282 test_paths="${with_pcre}" 15283fi 15284 15285for x in ${test_paths}; do 15286 if test ! -d "$x" -a -e "$x"; then 15287 PCRE_CONFIG=$x 15288 pcre_path="no" 15289 break 15290 fi 15291 15292 for PCRE_CONFIG in pcre-config; do 15293 if test -e "${x}/bin/${PCRE_CONFIG}"; then 15294 pcre_path="${x}/bin" 15295 break 15296 elif test -e "${x}/${PCRE_CONFIG}"; then 15297 pcre_path="${x}" 15298 break 15299 else 15300 pcre_path="" 15301 fi 15302 done 15303 if test -n "$pcre_path"; then 15304 break 15305 fi 15306done 15307 15308if test -n "${pcre_path}"; then 15309 if test "${pcre_path}" != "no"; then 15310 PCRE_CONFIG="${pcre_path}/${PCRE_CONFIG}" 15311 fi 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PCRE_CONFIG}" >&5 15313$as_echo "${PCRE_CONFIG}" >&6; } 15314 PCRE_VERSION="`${PCRE_CONFIG} --version`" 15315 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: pcre VERSION: $PCRE_VERSION" >&5 15316$as_echo "$as_me: pcre VERSION: $PCRE_VERSION" >&6;}; fi 15317 PCRE_CFLAGS="`${PCRE_CONFIG} --cflags`" 15318 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: pcre CFLAGS: $PCRE_CFLAGS" >&5 15319$as_echo "$as_me: pcre CFLAGS: $PCRE_CFLAGS" >&6;}; fi 15320 PCRE_LDADD="`${PCRE_CONFIG} --libs`" 15321 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: pcre LDADD: $PCRE_LDADD" >&5 15322$as_echo "$as_me: pcre LDADD: $PCRE_LDADD" >&6;}; fi 15323 PCRE_LD_PATH="/`${PCRE_CONFIG} --libs | cut -d'/' -f2,3,4,5,6 | cut -d ' ' -f1`" 15324 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: pcre PCRE_LD_PATH: $PCRE_LD_PATH" >&5 15325$as_echo "$as_me: pcre PCRE_LD_PATH: $PCRE_LD_PATH" >&6;}; fi 15326else 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15328$as_echo "no" >&6; } 15329fi 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339if test -z "${PCRE_VERSION}"; then 15340 { $as_echo "$as_me:${as_lineno-$LINENO}: *** pcre library not found." >&5 15341$as_echo "$as_me: *** pcre library not found." >&6;} 15342 as_fn_error $? "pcre library is required" "$LINENO" 5 15343else 15344 { $as_echo "$as_me:${as_lineno-$LINENO}: using pcre v${PCRE_VERSION}" >&5 15345$as_echo "$as_me: using pcre v${PCRE_VERSION}" >&6;} 15346 15347fi 15348 15349if test "$build_apache2_module" -ne 0 -o "$build_mlogc" -ne 0; then 15350 15351 15352# Check whether --with-apr was given. 15353if test "${with_apr+set}" = set; then : 15354 withval=$with_apr; test_paths="${with_apr}" 15355else 15356 test_paths="/usr/local/libapr /usr/local/apr /usr/local /opt/libapr /opt/apr /opt /usr" 15357fi 15358 15359 15360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libapr config script" >&5 15361$as_echo_n "checking for libapr config script... " >&6; } 15362 15363for x in ${test_paths}; do 15364 if test ! -d "$x" -a -e "$x"; then 15365 APR_CONFIG=$x 15366 apr_path=no 15367 break 15368 fi 15369 15370 for APR_CONFIG in apr-1-mt-config apr-1-config apr-config-1 apr-mt-config-1 apr-mt-config apr-config; do 15371 if test -e "${x}/bin/${APR_CONFIG}"; then 15372 apr_path="${x}/bin" 15373 break 15374 elif test -e "${x}/${APR_CONFIG}"; then 15375 apr_path="${x}" 15376 break 15377 else 15378 apr_path="" 15379 fi 15380 done 15381 if test -n "$apr_path"; then 15382 break 15383 fi 15384done 15385 15386if test -n "${apr_path}"; then 15387 if test "${apr_path}" != "no"; then 15388 APR_CONFIG="${apr_path}/${APR_CONFIG}" 15389 fi 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${APR_CONFIG}" >&5 15391$as_echo "${APR_CONFIG}" >&6; } 15392 APR_VERSION="`${APR_CONFIG} --version`" 15393 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr VERSION: $APR_VERSION" >&5 15394$as_echo "$as_me: apr VERSION: $APR_VERSION" >&6;}; fi 15395 APR_CFLAGS="`${APR_CONFIG} --includes`" 15396 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr CFLAGS: $APR_CFLAGS" >&5 15397$as_echo "$as_me: apr CFLAGS: $APR_CFLAGS" >&6;}; fi 15398 APR_CPPFLAGS="`${APR_CONFIG} --cppflags`" 15399 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr CPPFLAGS: $APR_CPPFLAGS" >&5 15400$as_echo "$as_me: apr CPPFLAGS: $APR_CPPFLAGS" >&6;}; fi 15401 APR_LDFLAGS="`${APR_CONFIG} --libs`" 15402 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LDFLAGS: $APR_LDFLAGS" >&5 15403$as_echo "$as_me: apr LDFLAGS: $APR_LDFLAGS" >&6;}; fi 15404 APR_LDADD="`${APR_CONFIG} --link-libtool`" 15405 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LDADD: $APR_LDADD" >&5 15406$as_echo "$as_me: apr LDADD: $APR_LDADD" >&6;}; fi 15407 APR_INCLUDEDIR="`${APR_CONFIG} --includedir`" 15408 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr INCLUDEDIR: $APR_INCLUDEDIR" >&5 15409$as_echo "$as_me: apr INCLUDEDIR: $APR_INCLUDEDIR" >&6;}; fi 15410 APR_LINKLD="`${APR_CONFIG} --link-ld`" 15411 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apr LINKLD: $APR_LINKLD" >&5 15412$as_echo "$as_me: apr LINKLD: $APR_LINKLD" >&6;}; fi 15413else 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15415$as_echo "no" >&6; } 15416fi 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427if test -z "${APR_VERSION}"; then 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: *** apr library not found." >&5 15429$as_echo "$as_me: *** apr library not found." >&6;} 15430 as_fn_error $? "apr library is required" "$LINENO" 5 15431else 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: using apr v${APR_VERSION}" >&5 15433$as_echo "$as_me: using apr v${APR_VERSION}" >&6;} 15434 15435fi 15436 15437 15438 15439# Check whether --with-apu was given. 15440if test "${with_apu+set}" = set; then : 15441 withval=$with_apu; test_paths="${with_apu}" 15442else 15443 test_paths="/usr/local/libapr-util /usr/local/apr-util /usr/local/libapu /usr/local/apu /usr/local/apr /usr/local /opt/libapr-util /opt/apr-util /opt/libapu /opt/apu /opt /usr" 15444fi 15445 15446 15447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libapu config script" >&5 15448$as_echo_n "checking for libapu config script... " >&6; } 15449 15450for x in ${test_paths}; do 15451 if test ! -d "$x" -a -e "$x"; then 15452 APU_CONFIG=$x 15453 apu_path="no" 15454 break 15455 fi 15456 15457 for APU_CONFIG in apu-1-mt-config apu-1-config apu-config-1 apu-mt-config-1 apu-mt-config apu-config; do 15458 if test -e "${x}/bin/${APU_CONFIG}"; then 15459 apu_path="${x}/bin" 15460 break 15461 elif test -e "${x}/${APU_CONFIG}"; then 15462 apu_path="${x}" 15463 break 15464 else 15465 apu_path="" 15466 fi 15467 done 15468 if test -n "$apu_path"; then 15469 break 15470 fi 15471done 15472 15473if test -n "${apu_path}"; then 15474 if test "${apu_path}" != "no"; then 15475 APU_CONFIG="${apu_path}/${APU_CONFIG}" 15476 fi 15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${APU_CONFIG}" >&5 15478$as_echo "${APU_CONFIG}" >&6; } 15479 APU_VERSION="`${APU_CONFIG} --version`" 15480 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu VERSION: $APU_VERSION" >&5 15481$as_echo "$as_me: apu VERSION: $APU_VERSION" >&6;}; fi 15482 APU_CFLAGS="`${APU_CONFIG} --includes`" 15483 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu CFLAGS: $APU_CFLAGS" >&5 15484$as_echo "$as_me: apu CFLAGS: $APU_CFLAGS" >&6;}; fi 15485 APU_LDFLAGS="`${APU_CONFIG} --ldflags`" 15486 APU_LDFLAGS="$APU_LDFLAGS `${APU_CONFIG} --libs`" 15487 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LDFLAGS: $APU_LDFLAGS" >&5 15488$as_echo "$as_me: apu LDFLAGS: $APU_LDFLAGS" >&6;}; fi 15489 APU_LDADD="`${APU_CONFIG} --link-libtool`" 15490 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LDADD: $APU_LDADD" >&5 15491$as_echo "$as_me: apu LDADD: $APU_LDADD" >&6;}; fi 15492 APU_INCLUDEDIR="`${APU_CONFIG} --includedir`" 15493 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu INCLUDEDIR: $APU_INCLUDEDIR" >&5 15494$as_echo "$as_me: apu INCLUDEDIR: $APU_INCLUDEDIR" >&6;}; fi 15495 APU_LINKLD="`${APU_CONFIG} --link-ld`" 15496 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: apu LINKLD: $APU_LINKLD" >&5 15497$as_echo "$as_me: apu LINKLD: $APU_LINKLD" >&6;}; fi 15498else 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15500$as_echo "no" >&6; } 15501fi 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511if test -z "${APU_VERSION}"; then 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: *** apu library not found." >&5 15513$as_echo "$as_me: *** apu library not found." >&6;} 15514 as_fn_error $? "apu library is required" "$LINENO" 5 15515else 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: using apu v${APU_VERSION}" >&5 15517$as_echo "$as_me: using apu v${APU_VERSION}" >&6;} 15518 15519fi 15520 15521fi 15522 15523 15524# Check whether --with-libxml was given. 15525if test "${with_libxml+set}" = set; then : 15526 withval=$with_libxml; test_paths="${with_libxml}" 15527else 15528 test_paths="/usr/local/libxml2 /usr/local/xml2 /usr/local/xml /usr/local /opt/libxml2 /opt/libxml /opt/xml2 /opt/xml /opt /usr" 15529fi 15530 15531 15532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 config script" >&5 15533$as_echo_n "checking for libxml2 config script... " >&6; } 15534 15535for x in ${test_paths}; do 15536 if test ! -d "$x" -a -e "$x"; then 15537 LIBXML2_CONFIG=$x 15538 libxml2_path="no" 15539 break 15540 fi 15541 15542 for LIBXML2_CONFIG in xml2-config xml-2-config xml-config; do 15543 if test -e "${x}/bin/${LIBXML2_CONFIG}"; then 15544 libxml2_path="${x}/bin" 15545 break 15546 elif test -e "${x}/${LIBXML2_CONFIG}"; then 15547 libxml2_path="${x}" 15548 break 15549 else 15550 libxml2_path="" 15551 fi 15552 done 15553 if test -n "$libxml2_path"; then 15554 break 15555 fi 15556done 15557 15558if test -n "${libxml2_path}"; then 15559 if test "${libxml2_path}" != "no"; then 15560 LIBXML2_CONFIG="${libxml2_path}/${LIBXML2_CONFIG}" 15561 fi 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBXML2_CONFIG}" >&5 15563$as_echo "${LIBXML2_CONFIG}" >&6; } 15564 LIBXML2_VERSION=`${LIBXML2_CONFIG} --version | sed 's/^[^0-9][^[:space:]][^[:space:]]*[[:space:]]*//'` 15565 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: xml VERSION: $LIBXML2_VERSION" >&5 15566$as_echo "$as_me: xml VERSION: $LIBXML2_VERSION" >&6;}; fi 15567 LIBXML2_CFLAGS="`${LIBXML2_CONFIG} --cflags`" 15568 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: xml CFLAGS: $LIBXML2_CFLAGS" >&5 15569$as_echo "$as_me: xml CFLAGS: $LIBXML2_CFLAGS" >&6;}; fi 15570 LIBXML2_LDADD="`${LIBXML2_CONFIG} --libs`" 15571 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: xml LDADD: $LIBXML2_LDADD" >&5 15572$as_echo "$as_me: xml LDADD: $LIBXML2_LDADD" >&6;}; fi 15573 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libxml2 is at least v2.6.29" >&5 15575$as_echo_n "checking if libxml2 is at least v2.6.29... " >&6; } 15576 libxml2_min_ver=`echo 2.6.29 | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'` 15577 libxml2_ver=`echo ${LIBXML2_VERSION} | awk -F. '{print (\$ 1 * 1000000) + (\$ 2 * 1000) + \$ 3}'` 15578 if test "$libxml2_ver" -ge "$libxml2_min_ver"; then 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $LIBXML2_VERSION" >&5 15580$as_echo "yes, $LIBXML2_VERSION" >&6; } 15581 else 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $LIBXML2_VERSION" >&5 15583$as_echo "no, $LIBXML2_VERSION" >&6; } 15584 as_fn_error $? "NOTE: libxml2 library must be at least 2.6.29" "$LINENO" 5 15585 fi 15586 15587else 15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15589$as_echo "no" >&6; } 15590fi 15591 15592 15593 15594 15595 15596 15597 15598 15599if test -z "${LIBXML2_VERSION}"; then 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: *** xml library not found." >&5 15601$as_echo "$as_me: *** xml library not found." >&6;} 15602 as_fn_error $? "libxml2 is required" "$LINENO" 5 15603else 15604 { $as_echo "$as_me:${as_lineno-$LINENO}: using libxml2 v${LIBXML2_VERSION}" >&5 15605$as_echo "$as_me: using libxml2 v${LIBXML2_VERSION}" >&6;} 15606 15607fi 15608 15609 15610 15611 15612 15613 15614 15615 15616if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15617 if test -n "$ac_tool_prefix"; then 15618 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15619set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15621$as_echo_n "checking for $ac_word... " >&6; } 15622if ${ac_cv_path_PKG_CONFIG+:} false; then : 15623 $as_echo_n "(cached) " >&6 15624else 15625 case $PKG_CONFIG in 15626 [\\/]* | ?:[\\/]*) 15627 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15628 ;; 15629 *) 15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15631for as_dir in $PATH 15632do 15633 IFS=$as_save_IFS 15634 test -z "$as_dir" && as_dir=. 15635 for ac_exec_ext in '' $ac_executable_extensions; do 15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15637 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15639 break 2 15640 fi 15641done 15642 done 15643IFS=$as_save_IFS 15644 15645 ;; 15646esac 15647fi 15648PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15649if test -n "$PKG_CONFIG"; then 15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15651$as_echo "$PKG_CONFIG" >&6; } 15652else 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15654$as_echo "no" >&6; } 15655fi 15656 15657 15658fi 15659if test -z "$ac_cv_path_PKG_CONFIG"; then 15660 ac_pt_PKG_CONFIG=$PKG_CONFIG 15661 # Extract the first word of "pkg-config", so it can be a program name with args. 15662set dummy pkg-config; ac_word=$2 15663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15664$as_echo_n "checking for $ac_word... " >&6; } 15665if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15666 $as_echo_n "(cached) " >&6 15667else 15668 case $ac_pt_PKG_CONFIG in 15669 [\\/]* | ?:[\\/]*) 15670 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15671 ;; 15672 *) 15673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15674for as_dir in $PATH 15675do 15676 IFS=$as_save_IFS 15677 test -z "$as_dir" && as_dir=. 15678 for ac_exec_ext in '' $ac_executable_extensions; do 15679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15680 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15682 break 2 15683 fi 15684done 15685 done 15686IFS=$as_save_IFS 15687 15688 ;; 15689esac 15690fi 15691ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15692if test -n "$ac_pt_PKG_CONFIG"; then 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15694$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15695else 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15697$as_echo "no" >&6; } 15698fi 15699 15700 if test "x$ac_pt_PKG_CONFIG" = x; then 15701 PKG_CONFIG="" 15702 else 15703 case $cross_compiling:$ac_tool_warned in 15704yes:) 15705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15707ac_tool_warned=yes ;; 15708esac 15709 PKG_CONFIG=$ac_pt_PKG_CONFIG 15710 fi 15711else 15712 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15713fi 15714 15715fi 15716if test -n "$PKG_CONFIG"; then 15717 _pkg_min_version=0.9.0 15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15719$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15720 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15722$as_echo "yes" >&6; } 15723 else 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15725$as_echo "no" >&6; } 15726 PKG_CONFIG="" 15727 fi 15728fi 15729 15730 15731 15732LUA_CONFIG="" 15733LUA_VERSION="" 15734LUA_CFLAGS="" 15735LUA_CPPFLAGS="" 15736LUA_LDADD="" 15737LUA_LDFLAGS="" 15738LUA_CONFIG=${PKG_CONFIG} 15739LUA_PKGNAMES="lua- lua-5.1 lua_5.1 lua-51 lua_51 lua51 lua5 lua lua5.2 lua-5.2 lua_5.2 lua-52 lua_52 lua52 lua5.3 lua-5.3 lua_5.3 lua-53 lua_53 lua53 " 15740LUA_SONAMES="so la sl dll dylib a" 15741 15742 15743# Check whether --with-lua was given. 15744if test "${with_lua+set}" = set; then : 15745 withval=$with_lua; 15746else 15747 with_lua=yes 15748fi 15749 15750 15751case "${with_lua}" in #( 15752 no) : 15753 test_paths= ;; #( 15754 yes) : 15755 test_paths="/usr/local/liblua /usr/local/lua /usr/local /opt/liblua /opt/lua /opt /usr" ;; #( 15756 *) : 15757 test_paths="${with_lua}" ;; 15758esac 15759 15760if test "x${test_paths}" != "x"; then : 15761 15762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua config script" >&5 15763$as_echo_n "checking for liblua config script... " >&6; } 15764 15765for x in ${test_paths}; do 15766 if test ! -d "$x" -a -e "$x"; then 15767 LUA_CONFIG=$x 15768 break 15769 fi 15770 15771 for y in $LUA_CONFIG; do 15772 if test -e "${x}/bin/${y}"; then 15773 LUA_CONFIG="${x}/bin/${y}" 15774 lua_config="${LUA_CONFIG}" 15775 break 15776 elif test -e "${x}/${y}"; then 15777 LUA_CONFIG="${x}/${y}" 15778 lua_config="${LUA_CONFIG}" 15779 break 15780 fi 15781 done 15782 if test -n "${lua_config}"; then 15783 break 15784 fi 15785done 15786 15787if test -n "${LUA_CONFIG}"; then 15788 LUA_PKGNAME="" 15789 for x in ${LUA_PKGNAMES}; do 15790 if ${LUA_CONFIG} --exists ${x}; then 15791 LUA_PKGNAME="$x" 15792 break 15793 fi 15794 done 15795fi 15796 15797if test -n "${LUA_PKGNAME}"; then 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LUA_CONFIG}" >&5 15799$as_echo "${LUA_CONFIG}" >&6; } 15800 LUA_VERSION="`${LUA_CONFIG} ${LUA_PKGNAME} --modversion`" 15801 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: lua VERSION: $LUA_VERSION" >&5 15802$as_echo "$as_me: lua VERSION: $LUA_VERSION" >&6;}; fi 15803 LUA_CFLAGS="`${LUA_CONFIG} ${LUA_PKGNAME} --cflags`" 15804 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: lua CFLAGS: $LUA_CFLAGS" >&5 15805$as_echo "$as_me: lua CFLAGS: $LUA_CFLAGS" >&6;}; fi 15806 LUA_LDADD="`${LUA_CONFIG} ${LUA_PKGNAME} --libs-only-l`" 15807 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: lua LDADD: $LUA_LDADD" >&5 15808$as_echo "$as_me: lua LDADD: $LUA_LDADD" >&6;}; fi 15809 LUA_LDFLAGS="`${LUA_CONFIG} ${LUA_PKGNAME} --libs-only-L --libs-only-other`" 15810 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: lua LDFLAGS: $LUA_LDFLAGS" >&5 15811$as_echo "$as_me: lua LDFLAGS: $LUA_LDFLAGS" >&6;}; fi 15812else 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15814$as_echo "no" >&6; } 15815 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua install" >&5 15817$as_echo_n "checking for lua install... " >&6; } 15818 for x in ${test_paths}; do 15819 for y in ${LUA_SONAMES}; do 15820 if test -e "${x}/liblua-.${y}"; then 15821 lua_lib_path="${x}" 15822 lua_lib_name="lua-" 15823 break 15824 elif test -e "${x}/lib/liblua-.${y}"; then 15825 lua_lib_path="${x}/lib" 15826 lua_lib_name="lua-" 15827 break 15828 elif test -e "${x}/lib64/liblua-.${y}"; then 15829 lua_lib_path="${x}/lib64" 15830 lua_lib_name="lua-" 15831 break 15832 elif test -e "${x}/lib32/liblua-.${y}"; then 15833 lua_lib_path="${x}/lib32" 15834 lua_lib_name="lua-" 15835 break 15836 elif test -e "${x}/liblua51.${y}"; then 15837 lua_lib_path="${x}" 15838 lua_lib_name="lua51" 15839 break 15840 elif test -e "${x}/lib/liblua51.${y}"; then 15841 lua_lib_path="${x}/lib" 15842 lua_lib_name="lua51" 15843 break 15844 elif test -e "${x}/lib64/liblua51.${y}"; then 15845 lua_lib_path="${x}/lib64" 15846 lua_lib_name="lua51" 15847 break 15848 elif test -e "${x}/lib32/liblua51.${y}"; then 15849 lua_lib_path="${x}/lib32" 15850 lua_lib_name="lua51" 15851 break 15852 elif test -e "${x}/liblua.${y}"; then 15853 lua_lib_path="${x}" 15854 lua_lib_name="lua" 15855 break 15856 elif test -e "${x}/lib/liblua.${y}"; then 15857 lua_lib_path="${x}/lib" 15858 lua_lib_name="lua" 15859 break 15860 elif test -e "${x}/lib64/liblua.${y}"; then 15861 lua_lib_path="${x}/lib64" 15862 lua_lib_name="lua" 15863 break 15864 elif test -e "${x}/lib32/liblua.${y}"; then 15865 lua_lib_path="${x}/lib32" 15866 lua_lib_name="lua" 15867 break 15868 else 15869 lua_lib_path="" 15870 lua_lib_name="" 15871 fi 15872 done 15873 if test -n "$lua_lib_path"; then 15874 break 15875 fi 15876 done 15877 for x in ${test_paths}; do 15878 if test -e "${x}/include/lua.h"; then 15879 lua_inc_path="${x}/include" 15880 break 15881 elif test -e "${x}/lua.h"; then 15882 lua_inc_path="${x}" 15883 break 15884 fi 15885 15886 for lua_pkg_name in ${lua_lib_name} ${LUA_PKGNAMES}; do 15887 if test -e "${x}/include/${lua_pkg_name}/lua.h"; then 15888 lua_inc_path="${x}/include" 15889 break 15890 elif test -e "${x}/${lua_pkg_name}/lua.h"; then 15891 lua_inc_path="${x}" 15892 break 15893 else 15894 lua_inc_path="" 15895 fi 15896 done 15897 if test -n "$lua_inc_path"; then 15898 break 15899 fi 15900 done 15901 if test -n "${lua_lib_path}" -a -n "${lua_inc_path}"; then 15902 LUA_CONFIG="" 15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lua_lib_path} ${lua_inc_path}" >&5 15904$as_echo "${lua_lib_path} ${lua_inc_path}" >&6; } 15905 LUA_VERSION="5.1" 15906 LUA_CFLAGS="-I${lua_inc_path}" 15907 LUA_LDADD="-l${lua_lib_name}" 15908 LUA_LDFLAGS="-L${lua_lib_path}" 15909 else 15910 LUA_VERSION="" 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15912$as_echo "no" >&6; } 15913 fi 15914fi 15915 15916 15917fi 15918 15919 15920 15921 15922 15923 if test -z "${LUA_VERSION}"; then 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: optional lua library not found" >&5 15925$as_echo "$as_me: optional lua library not found" >&6;} 15926 else 15927 { $as_echo "$as_me:${as_lineno-$LINENO}: using lua v${LUA_VERSION}" >&5 15928$as_echo "$as_me: using lua v${LUA_VERSION}" >&6;} 15929 LUA_CFLAGS="-DWITH_LUA ${LUA_CFLAGS}" 15930 15931 fi 15932 15933#if test "$build_mlogc" -ne 0; then 15934#CHECK_CURL() 15935#fi 15936 15937# Check for YAJL libs (for JSON body processor) 15938 15939 15940 15941YAJL_CONFIG="" 15942YAJL_VERSION="" 15943YAJL_CFLAGS="" 15944YAJL_CPPFLAGS="" 15945YAJL_LDADD="" 15946YAJL_LDFLAGS="" 15947YAJL_CONFIG=${PKG_CONFIG} 15948YAJL_PKGNAMES="yajl2 yajl" 15949YAJL_SONAMES="so la sl dll dylib" 15950 15951 15952# Check whether --with-yajl was given. 15953if test "${with_yajl+set}" = set; then : 15954 withval=$with_yajl; 15955else 15956 with_yajl=yes 15957fi 15958 15959 15960case "${with_yajl}" in #( 15961 no) : 15962 test_paths= ;; #( 15963 yes) : 15964 test_paths="/usr/local/libyajl /usr/local/yajl /usr/local /opt/libyajl /opt/yajl /opt /usr" ;; #( 15965 *) : 15966 test_paths="${with_yajl}" ;; 15967esac 15968 15969if test "x${test_paths}" != "x"; then : 15970 15971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libyajl config script" >&5 15972$as_echo_n "checking for libyajl config script... " >&6; } 15973for x in ${test_paths}; do 15974 if test ! -d "$x" -a -e "$x"; then 15975 YAJL_CONFIG=$x 15976 break 15977 fi 15978 15979 for y in $YAJL_CONFIG; do 15980 if test -e "${x}/bin/${y}"; then 15981 YAJL_CONFIG="${x}/bin/${y}" 15982 yajl_config="${YAJL_CONFIG}" 15983 break 15984 elif test -e "${x}/${y}"; then 15985 YAJL_CONFIG="${x}/${y}" 15986 yajl_config="${YAJL_CONFIG}" 15987 break 15988 fi 15989 done 15990 if test -n "${yajl_config}"; then 15991 break 15992 fi 15993done 15994 15995if test -n "${YAJL_CONFIG}"; then 15996 YAJL_PKGNAME="" 15997 for x in ${YAJL_PKGNAMES}; do 15998 if ${YAJL_CONFIG} --exists ${x}; then 15999 YAJL_PKGNAME="$x" 16000 break 16001 fi 16002 done 16003fi 16004 16005if test -n "${YAJL_PKGNAME}"; then 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${YAJL_CONFIG}" >&5 16007$as_echo "${YAJL_CONFIG}" >&6; } 16008 YAJL_VERSION="`${YAJL_CONFIG} ${YAJL_PKGNAME} --modversion`" 16009 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: yajl VERSION: $YAJL_VERSION" >&5 16010$as_echo "$as_me: yajl VERSION: $YAJL_VERSION" >&6;}; fi 16011 YAJL_CFLAGS="`${YAJL_CONFIG} ${YAJL_PKGNAME} --cflags`" 16012 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: yajl CFLAGS: $YAJL_CFLAGS" >&5 16013$as_echo "$as_me: yajl CFLAGS: $YAJL_CFLAGS" >&6;}; fi 16014 YAJL_LDADD="`${YAJL_CONFIG} ${YAJL_PKGNAME} --libs-only-l`" 16015 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: yajl LDADD: $YAJL_LDADD" >&5 16016$as_echo "$as_me: yajl LDADD: $YAJL_LDADD" >&6;}; fi 16017 YAJL_LDFLAGS="`${YAJL_CONFIG} ${YAJL_PKGNAME} --libs-only-L --libs-only-other`" 16018 if test "$verbose_output" -eq 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: yajl LDFLAGS: $YAJL_LDFLAGS" >&5 16019$as_echo "$as_me: yajl LDFLAGS: $YAJL_LDFLAGS" >&6;}; fi 16020else 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16022$as_echo "no" >&6; } 16023 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yajl install" >&5 16025$as_echo_n "checking for yajl install... " >&6; } 16026 for x in ${test_paths}; do 16027 for y in ${YAJL_SONAMES}; do 16028 if test -e "${x}/libyajl.${y}"; then 16029 yajl_lib_path="${x}/" 16030 yajl_lib_name="yajl" 16031 break 16032 else 16033 yajl_lib_path="" 16034 yajl_lib_name="" 16035 fi 16036 done 16037 if test -n "$yajl_lib_path"; then 16038 break 16039 fi 16040 done 16041 for x in ${test_paths}; do 16042 if test -e "${x}/include/yajl_parse.h"; then 16043 yajl_inc_path="${x}/include" 16044 break 16045 elif test -e "${x}/yajl_parse.h"; then 16046 yajl_inc_path="${x}" 16047 break 16048 fi 16049 16050 for yajl_pkg_name in ${yajl_lib_name} ${YAJL_PKGNAMES}; do 16051 if test -e "${x}/include/${yajl_pkg_name}/yajl_parse.h"; then 16052 yajl_inc_path="${x}/include" 16053 break 16054 elif test -e "${x}/${yajl_pkg_name}/yajl_parse.h"; then 16055 yajl_inc_path="${x}" 16056 break 16057 else 16058 yajl_inc_path="" 16059 fi 16060 done 16061 if test -n "$yajl_inc_path"; then 16062 break 16063 fi 16064 done 16065 if test -n "${yajl_lib_path}" -a -n "${yajl_inc_path}"; then 16066 YAJL_CONFIG="" 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${yajl_lib_path} ${yajl_inc_path}" >&5 16068$as_echo "${yajl_lib_path} ${yajl_inc_path}" >&6; } 16069 YAJL_VERSION="2" 16070 YAJL_CFLAGS="-I${yajl_inc_path}" 16071 YAJL_LDADD="-l${yajl_lib_name}" 16072 YAJL_LDFLAGS="-L${yajl_lib_path}" 16073 else 16074 YAJL_VERSION="" 16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16076$as_echo "no" >&6; } 16077 fi 16078fi 16079 16080 16081fi 16082 16083YAJL_LIBS=${YAJL_LDADD} 16084 16085 16086 16087 16088 if test -z "${YAJL_VERSION}"; then 16089 { $as_echo "$as_me:${as_lineno-$LINENO}: optional yajl library not found" >&5 16090$as_echo "$as_me: optional yajl library not found" >&6;} 16091 else 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: using yajl v${YAJL_VERSION}" >&5 16093$as_echo "$as_me: using yajl v${YAJL_VERSION}" >&6;} 16094 YAJL_CFLAGS="-DWITH_YAJL ${YAJL_CFLAGS}" 16095 16096 fi 16097 16098#AC_SEARCH_LIBS([yajl_alloc], [yajl]) 16099 16100SSDEEP_CFLAGS="" 16101SSDEEP_LDFLAGS="" 16102SSDEEP_LDADD="" 16103 16104 16105# Check whether --with-ssdeep was given. 16106if test "${with_ssdeep+set}" = set; then : 16107 withval=$with_ssdeep; 16108else 16109 with_ssdeep=yes 16110fi 16111 16112 16113case "${with_ssdeep}" in #( 16114 no) : 16115 test_paths= ;; #( 16116 yes) : 16117 test_paths="/usr/ /usr/local/ /usr/local/libfuzzy /usr/local/fuzzy /opt/libfuzzy /opt/fuzzy /opt /opt/local" ;; #( 16118 *) : 16119 test_paths="${with_ssdeep}" ;; 16120esac 16121 16122if test "x${test_paths}" != "x"; then : 16123 16124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssdeep path" >&5 16125$as_echo_n "checking for ssdeep path... " >&6; } 16126 16127 SSDEEP_LIB_NAME="fuzzy" 16128 ssdeep_dir= 16129 16130 if test -z "$withssdeep" -o "$withssdeep" = "yes"; then 16131 for i in ${test_paths}; do 16132 if test -f "$i/include/fuzzy.h"; then 16133 SSDEEP_CFLAGS="-I$i/include" 16134 ssdeep_dir=$i 16135 fi 16136 done 16137 else 16138 if test -f "$withssdeep/include/fuzzy.h"; then 16139 SSDEEP_CFLAGS="-I$withssdeep/include" 16140 ssdeep_dir=$withssdeep 16141 fi 16142 fi 16143 16144 SSDEEP_LDFLAGS="-L$ssdeep_dir/lib -lfuzzy" 16145 SSDEEP_LDADD="-lfuzzy" 16146 16147 16148fi 16149 16150 if test -z "${SSDEEP_CFLAGS}"; then 16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16152$as_echo "no" >&6; } 16153 SSDEEP_LDFLAGS="" 16154 SSDEEP_LDADD="" 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: optional ssdeep library not found" >&5 16156$as_echo "$as_me: optional ssdeep library not found" >&6;} 16157 else 16158 SSDEEP_CFLAGS="-DWITH_SSDEEP ${SSDEEP_CFLAGS}" 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SSDEEP_LDFLAGS} ${SSDEEP_CFLAGS}" >&5 16160$as_echo "${SSDEEP_LDFLAGS} ${SSDEEP_CFLAGS}" >&6; } 16161 fi 16162 16163 16164 16165 16166 16167 16168 16169#AC_SEARCH_LIBS([fuzzy_hash_buf], [fuzzy]) 16170 16171# Temporarily set cflags for apr_crypto check, then restore 16172# since it's already used correctly to compile modsecurity module. 16173ORIG_CFLAGS="$CFLAGS $APU_CFLAGS" 16174ORIG_CPPFLAGS="$CPPFLAGS" 16175CFLAGS="$CFLAGS $APR_CFLAGS" 16176CPPFLAGS="$CPPFLAGS $APR_CPPFLAGS" 16177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16178/* end confdefs.h. */ 16179#include <apr_crypto.h> 16180int 16181main () 16182{ 16183 16184 #if APU_HAVE_CRYPTO == 0 16185 #error APR util was not compiled with crypto support. 16186 #endif 16187 16188 ; 16189 return 0; 16190} 16191_ACEOF 16192if ac_fn_c_try_compile "$LINENO"; then : 16193 16194$as_echo "#define WITH_APU_CRYPTO 1" >>confdefs.h 16195 16196 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS -DWITH_APU_CRYPTO" 16197 16198else 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR util was not compiled with crypto support. SecRemoteRule will not support the parameter 'crypto'" >&5 16200$as_echo "$as_me: WARNING: APR util was not compiled with crypto support. SecRemoteRule will not support the parameter 'crypto'" >&2;} 16201 16202fi 16203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16204# Restore env vars so that we don't clutter with duplicates that 16205# are eventually appended later on 16206CFLAGS="$ORIG_CFLAGS" 16207CPPFLAGS="$ORIG_CPPFLAGS" 16208 16209# Current our unique download backend is curl, furhter we can support more. 16210if test ! -z "${CURL_VERSION}"; then 16211 16212$as_echo "#define WITH_REMOTE_RULES 1" >>confdefs.h 16213 16214 MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS -DWITH_REMOTE_RULES" 16215fi 16216 16217ac_config_files="$ac_config_files Makefile" 16218 16219ac_config_files="$ac_config_files tools/Makefile" 16220 16221if test "$build_alp2" -ne 0; then 16222ac_config_files="$ac_config_files alp2/Makefile" 16223 16224fi 16225if test "$build_apache2_module" -ne 0; then 16226ac_config_files="$ac_config_files apache2/Makefile" 16227 16228fi 16229if test "$build_standalone_module" -ne 0; then 16230ac_config_files="$ac_config_files standalone/Makefile" 16231 16232ac_config_files="$ac_config_files nginx/modsecurity/config" 16233 16234fi 16235if test "$build_extentions" -ne 0; then 16236ac_config_files="$ac_config_files ext/Makefile" 16237 16238fi 16239ac_config_files="$ac_config_files build/apxs-wrapper" 16240 16241if test -e "$PERL"; then 16242 if test "$build_mlogc" -ne 0; then 16243 ac_config_files="$ac_config_files mlogc/mlogc-batch-load.pl" 16244 16245 ac_config_files="$ac_config_files tests/regression/misc/40-secRemoteRules.t" 16246 16247 ac_config_files="$ac_config_files tests/regression/misc/50-ipmatchfromfile-external.t" 16248 16249 ac_config_files="$ac_config_files tests/regression/misc/60-pmfromfile-external.t" 16250 16251 fi 16252 ac_config_files="$ac_config_files tests/run-unit-tests.pl" 16253 16254 ac_config_files="$ac_config_files tests/run-regression-tests.pl" 16255 16256 ac_config_files="$ac_config_files tests/gen_rx-pm.pl" 16257 16258 ac_config_files="$ac_config_files tests/csv_rx-pm.pl" 16259 16260 ac_config_files="$ac_config_files tests/regression/server_root/conf/httpd.conf" 16261 16262 16263 # Perl based tools 16264 ac_config_files="$ac_config_files tools/rules-updater.pl" 16265 16266fi 16267if test "$build_mlogc" -ne 0; then 16268 ac_config_files="$ac_config_files mlogc/Makefile" 16269 16270fi 16271ac_config_files="$ac_config_files tests/Makefile" 16272 16273 16274cat >confcache <<\_ACEOF 16275# This file is a shell script that caches the results of configure 16276# tests run on this system so they can be shared between configure 16277# scripts and configure runs, see configure's option --config-cache. 16278# It is not useful on other systems. If it contains results you don't 16279# want to keep, you may remove or edit it. 16280# 16281# config.status only pays attention to the cache file if you give it 16282# the --recheck option to rerun configure. 16283# 16284# `ac_cv_env_foo' variables (set or unset) will be overridden when 16285# loading this file, other *unset* `ac_cv_foo' will be assigned the 16286# following values. 16287 16288_ACEOF 16289 16290# The following way of writing the cache mishandles newlines in values, 16291# but we know of no workaround that is simple, portable, and efficient. 16292# So, we kill variables containing newlines. 16293# Ultrix sh set writes to stderr and can't be redirected directly, 16294# and sets the high bit in the cache file unless we assign to the vars. 16295( 16296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16297 eval ac_val=\$$ac_var 16298 case $ac_val in #( 16299 *${as_nl}*) 16300 case $ac_var in #( 16301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16302$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16303 esac 16304 case $ac_var in #( 16305 _ | IFS | as_nl) ;; #( 16306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16307 *) { eval $ac_var=; unset $ac_var;} ;; 16308 esac ;; 16309 esac 16310 done 16311 16312 (set) 2>&1 | 16313 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16314 *${as_nl}ac_space=\ *) 16315 # `set' does not quote correctly, so add quotes: double-quote 16316 # substitution turns \\\\ into \\, and sed turns \\ into \. 16317 sed -n \ 16318 "s/'/'\\\\''/g; 16319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16320 ;; #( 16321 *) 16322 # `set' quotes correctly as required by POSIX, so do not add quotes. 16323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16324 ;; 16325 esac | 16326 sort 16327) | 16328 sed ' 16329 /^ac_cv_env_/b end 16330 t clear 16331 :clear 16332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16333 t end 16334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16335 :end' >>confcache 16336if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16337 if test -w "$cache_file"; then 16338 if test "x$cache_file" != "x/dev/null"; then 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16340$as_echo "$as_me: updating cache $cache_file" >&6;} 16341 if test ! -f "$cache_file" || test -h "$cache_file"; then 16342 cat confcache >"$cache_file" 16343 else 16344 case $cache_file in #( 16345 */* | ?:*) 16346 mv -f confcache "$cache_file"$$ && 16347 mv -f "$cache_file"$$ "$cache_file" ;; #( 16348 *) 16349 mv -f confcache "$cache_file" ;; 16350 esac 16351 fi 16352 fi 16353 else 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16355$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16356 fi 16357fi 16358rm -f confcache 16359 16360test "x$prefix" = xNONE && prefix=$ac_default_prefix 16361# Let make expand exec_prefix. 16362test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16363 16364DEFS=-DHAVE_CONFIG_H 16365 16366ac_libobjs= 16367ac_ltlibobjs= 16368U= 16369for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16370 # 1. Remove the extension, and $U if already installed. 16371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16372 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16374 # will be set to the directory where LIBOBJS objects are built. 16375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16377done 16378LIBOBJS=$ac_libobjs 16379 16380LTLIBOBJS=$ac_ltlibobjs 16381 16382 16383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16384$as_echo_n "checking that generated files are newer than configure... " >&6; } 16385 if test -n "$am_sleep_pid"; then 16386 # Hide warnings about reused PIDs. 16387 wait $am_sleep_pid 2>/dev/null 16388 fi 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16390$as_echo "done" >&6; } 16391 if test -n "$EXEEXT"; then 16392 am__EXEEXT_TRUE= 16393 am__EXEEXT_FALSE='#' 16394else 16395 am__EXEEXT_TRUE='#' 16396 am__EXEEXT_FALSE= 16397fi 16398 16399if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16400 as_fn_error $? "conditional \"AMDEP\" was never defined. 16401Usually this means the macro was only invoked conditionally." "$LINENO" 5 16402fi 16403if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16404 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16405Usually this means the macro was only invoked conditionally." "$LINENO" 5 16406fi 16407if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16408 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16409Usually this means the macro was only invoked conditionally." "$LINENO" 5 16410fi 16411if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 16412 as_fn_error $? "conditional \"AIX\" was never defined. 16413Usually this means the macro was only invoked conditionally." "$LINENO" 5 16414fi 16415if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then 16416 as_fn_error $? "conditional \"HPUX\" was never defined. 16417Usually this means the macro was only invoked conditionally." "$LINENO" 5 16418fi 16419if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then 16420 as_fn_error $? "conditional \"MACOSX\" was never defined. 16421Usually this means the macro was only invoked conditionally." "$LINENO" 5 16422fi 16423if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 16424 as_fn_error $? "conditional \"LINUX\" was never defined. 16425Usually this means the macro was only invoked conditionally." "$LINENO" 5 16426fi 16427if test -z "${LINUX390_TRUE}" && test -z "${LINUX390_FALSE}"; then 16428 as_fn_error $? "conditional \"LINUX390\" was never defined. 16429Usually this means the macro was only invoked conditionally." "$LINENO" 5 16430fi 16431if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 16432 as_fn_error $? "conditional \"SOLARIS\" was never defined. 16433Usually this means the macro was only invoked conditionally." "$LINENO" 5 16434fi 16435if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 16436 as_fn_error $? "conditional \"FREEBSD\" was never defined. 16437Usually this means the macro was only invoked conditionally." "$LINENO" 5 16438fi 16439if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then 16440 as_fn_error $? "conditional \"OPENBSD\" was never defined. 16441Usually this means the macro was only invoked conditionally." "$LINENO" 5 16442fi 16443if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 16444 as_fn_error $? "conditional \"NETBSD\" was never defined. 16445Usually this means the macro was only invoked conditionally." "$LINENO" 5 16446fi 16447if test -z "${BUILD_APACHE2_MODULE_TRUE}" && test -z "${BUILD_APACHE2_MODULE_FALSE}"; then 16448 as_fn_error $? "conditional \"BUILD_APACHE2_MODULE\" was never defined. 16449Usually this means the macro was only invoked conditionally." "$LINENO" 5 16450fi 16451if test -z "${BUILD_STANDALONE_MODULE_TRUE}" && test -z "${BUILD_STANDALONE_MODULE_FALSE}"; then 16452 as_fn_error $? "conditional \"BUILD_STANDALONE_MODULE\" was never defined. 16453Usually this means the macro was only invoked conditionally." "$LINENO" 5 16454fi 16455if test -z "${BUILD_extentions_TRUE}" && test -z "${BUILD_extentions_FALSE}"; then 16456 as_fn_error $? "conditional \"BUILD_extentions\" was never defined. 16457Usually this means the macro was only invoked conditionally." "$LINENO" 5 16458fi 16459if test -z "${BUILD_MLOGC_TRUE}" && test -z "${BUILD_MLOGC_FALSE}"; then 16460 as_fn_error $? "conditional \"BUILD_MLOGC\" was never defined. 16461Usually this means the macro was only invoked conditionally." "$LINENO" 5 16462fi 16463if test -z "${BUILD_ALP2_TRUE}" && test -z "${BUILD_ALP2_FALSE}"; then 16464 as_fn_error $? "conditional \"BUILD_ALP2\" was never defined. 16465Usually this means the macro was only invoked conditionally." "$LINENO" 5 16466fi 16467if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 16468 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 16469Usually this means the macro was only invoked conditionally." "$LINENO" 5 16470fi 16471 16472: "${CONFIG_STATUS=./config.status}" 16473ac_write_fail=0 16474ac_clean_files_save=$ac_clean_files 16475ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16476{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16477$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16478as_write_fail=0 16479cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16480#! $SHELL 16481# Generated by $as_me. 16482# Run this file to recreate the current configuration. 16483# Compiler output produced by configure, useful for debugging 16484# configure, is in config.log if it exists. 16485 16486debug=false 16487ac_cs_recheck=false 16488ac_cs_silent=false 16489 16490SHELL=\${CONFIG_SHELL-$SHELL} 16491export SHELL 16492_ASEOF 16493cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16494## -------------------- ## 16495## M4sh Initialization. ## 16496## -------------------- ## 16497 16498# Be more Bourne compatible 16499DUALCASE=1; export DUALCASE # for MKS sh 16500if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16501 emulate sh 16502 NULLCMD=: 16503 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16504 # is contrary to our usage. Disable this feature. 16505 alias -g '${1+"$@"}'='"$@"' 16506 setopt NO_GLOB_SUBST 16507else 16508 case `(set -o) 2>/dev/null` in #( 16509 *posix*) : 16510 set -o posix ;; #( 16511 *) : 16512 ;; 16513esac 16514fi 16515 16516 16517as_nl=' 16518' 16519export as_nl 16520# Printing a long string crashes Solaris 7 /usr/bin/printf. 16521as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16522as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16523as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16524# Prefer a ksh shell builtin over an external printf program on Solaris, 16525# but without wasting forks for bash or zsh. 16526if test -z "$BASH_VERSION$ZSH_VERSION" \ 16527 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16528 as_echo='print -r --' 16529 as_echo_n='print -rn --' 16530elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16531 as_echo='printf %s\n' 16532 as_echo_n='printf %s' 16533else 16534 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16535 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16536 as_echo_n='/usr/ucb/echo -n' 16537 else 16538 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16539 as_echo_n_body='eval 16540 arg=$1; 16541 case $arg in #( 16542 *"$as_nl"*) 16543 expr "X$arg" : "X\\(.*\\)$as_nl"; 16544 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16545 esac; 16546 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16547 ' 16548 export as_echo_n_body 16549 as_echo_n='sh -c $as_echo_n_body as_echo' 16550 fi 16551 export as_echo_body 16552 as_echo='sh -c $as_echo_body as_echo' 16553fi 16554 16555# The user is always right. 16556if test "${PATH_SEPARATOR+set}" != set; then 16557 PATH_SEPARATOR=: 16558 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16559 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16560 PATH_SEPARATOR=';' 16561 } 16562fi 16563 16564 16565# IFS 16566# We need space, tab and new line, in precisely that order. Quoting is 16567# there to prevent editors from complaining about space-tab. 16568# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16569# splitting by setting IFS to empty value.) 16570IFS=" "" $as_nl" 16571 16572# Find who we are. Look in the path if we contain no directory separator. 16573as_myself= 16574case $0 in #(( 16575 *[\\/]* ) as_myself=$0 ;; 16576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16577for as_dir in $PATH 16578do 16579 IFS=$as_save_IFS 16580 test -z "$as_dir" && as_dir=. 16581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16582 done 16583IFS=$as_save_IFS 16584 16585 ;; 16586esac 16587# We did not find ourselves, most probably we were run as `sh COMMAND' 16588# in which case we are not to be found in the path. 16589if test "x$as_myself" = x; then 16590 as_myself=$0 16591fi 16592if test ! -f "$as_myself"; then 16593 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16594 exit 1 16595fi 16596 16597# Unset variables that we do not need and which cause bugs (e.g. in 16598# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16599# suppresses any "Segmentation fault" message there. '((' could 16600# trigger a bug in pdksh 5.2.14. 16601for as_var in BASH_ENV ENV MAIL MAILPATH 16602do eval test x\${$as_var+set} = xset \ 16603 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16604done 16605PS1='$ ' 16606PS2='> ' 16607PS4='+ ' 16608 16609# NLS nuisances. 16610LC_ALL=C 16611export LC_ALL 16612LANGUAGE=C 16613export LANGUAGE 16614 16615# CDPATH. 16616(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16617 16618 16619# as_fn_error STATUS ERROR [LINENO LOG_FD] 16620# ---------------------------------------- 16621# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16622# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16623# script with STATUS, using 1 if that was 0. 16624as_fn_error () 16625{ 16626 as_status=$1; test $as_status -eq 0 && as_status=1 16627 if test "$4"; then 16628 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16630 fi 16631 $as_echo "$as_me: error: $2" >&2 16632 as_fn_exit $as_status 16633} # as_fn_error 16634 16635 16636# as_fn_set_status STATUS 16637# ----------------------- 16638# Set $? to STATUS, without forking. 16639as_fn_set_status () 16640{ 16641 return $1 16642} # as_fn_set_status 16643 16644# as_fn_exit STATUS 16645# ----------------- 16646# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16647as_fn_exit () 16648{ 16649 set +e 16650 as_fn_set_status $1 16651 exit $1 16652} # as_fn_exit 16653 16654# as_fn_unset VAR 16655# --------------- 16656# Portably unset VAR. 16657as_fn_unset () 16658{ 16659 { eval $1=; unset $1;} 16660} 16661as_unset=as_fn_unset 16662# as_fn_append VAR VALUE 16663# ---------------------- 16664# Append the text in VALUE to the end of the definition contained in VAR. Take 16665# advantage of any shell optimizations that allow amortized linear growth over 16666# repeated appends, instead of the typical quadratic growth present in naive 16667# implementations. 16668if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16669 eval 'as_fn_append () 16670 { 16671 eval $1+=\$2 16672 }' 16673else 16674 as_fn_append () 16675 { 16676 eval $1=\$$1\$2 16677 } 16678fi # as_fn_append 16679 16680# as_fn_arith ARG... 16681# ------------------ 16682# Perform arithmetic evaluation on the ARGs, and store the result in the 16683# global $as_val. Take advantage of shells that can avoid forks. The arguments 16684# must be portable across $(()) and expr. 16685if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16686 eval 'as_fn_arith () 16687 { 16688 as_val=$(( $* )) 16689 }' 16690else 16691 as_fn_arith () 16692 { 16693 as_val=`expr "$@" || test $? -eq 1` 16694 } 16695fi # as_fn_arith 16696 16697 16698if expr a : '\(a\)' >/dev/null 2>&1 && 16699 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16700 as_expr=expr 16701else 16702 as_expr=false 16703fi 16704 16705if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16706 as_basename=basename 16707else 16708 as_basename=false 16709fi 16710 16711if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16712 as_dirname=dirname 16713else 16714 as_dirname=false 16715fi 16716 16717as_me=`$as_basename -- "$0" || 16718$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16719 X"$0" : 'X\(//\)$' \| \ 16720 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16721$as_echo X/"$0" | 16722 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16723 s//\1/ 16724 q 16725 } 16726 /^X\/\(\/\/\)$/{ 16727 s//\1/ 16728 q 16729 } 16730 /^X\/\(\/\).*/{ 16731 s//\1/ 16732 q 16733 } 16734 s/.*/./; q'` 16735 16736# Avoid depending upon Character Ranges. 16737as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16738as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16739as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16740as_cr_digits='0123456789' 16741as_cr_alnum=$as_cr_Letters$as_cr_digits 16742 16743ECHO_C= ECHO_N= ECHO_T= 16744case `echo -n x` in #((((( 16745-n*) 16746 case `echo 'xy\c'` in 16747 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16748 xy) ECHO_C='\c';; 16749 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16750 ECHO_T=' ';; 16751 esac;; 16752*) 16753 ECHO_N='-n';; 16754esac 16755 16756rm -f conf$$ conf$$.exe conf$$.file 16757if test -d conf$$.dir; then 16758 rm -f conf$$.dir/conf$$.file 16759else 16760 rm -f conf$$.dir 16761 mkdir conf$$.dir 2>/dev/null 16762fi 16763if (echo >conf$$.file) 2>/dev/null; then 16764 if ln -s conf$$.file conf$$ 2>/dev/null; then 16765 as_ln_s='ln -s' 16766 # ... but there are two gotchas: 16767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16769 # In both cases, we have to default to `cp -pR'. 16770 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16771 as_ln_s='cp -pR' 16772 elif ln conf$$.file conf$$ 2>/dev/null; then 16773 as_ln_s=ln 16774 else 16775 as_ln_s='cp -pR' 16776 fi 16777else 16778 as_ln_s='cp -pR' 16779fi 16780rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16781rmdir conf$$.dir 2>/dev/null 16782 16783 16784# as_fn_mkdir_p 16785# ------------- 16786# Create "$as_dir" as a directory, including parents if necessary. 16787as_fn_mkdir_p () 16788{ 16789 16790 case $as_dir in #( 16791 -*) as_dir=./$as_dir;; 16792 esac 16793 test -d "$as_dir" || eval $as_mkdir_p || { 16794 as_dirs= 16795 while :; do 16796 case $as_dir in #( 16797 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16798 *) as_qdir=$as_dir;; 16799 esac 16800 as_dirs="'$as_qdir' $as_dirs" 16801 as_dir=`$as_dirname -- "$as_dir" || 16802$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16803 X"$as_dir" : 'X\(//\)[^/]' \| \ 16804 X"$as_dir" : 'X\(//\)$' \| \ 16805 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16806$as_echo X"$as_dir" | 16807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16808 s//\1/ 16809 q 16810 } 16811 /^X\(\/\/\)[^/].*/{ 16812 s//\1/ 16813 q 16814 } 16815 /^X\(\/\/\)$/{ 16816 s//\1/ 16817 q 16818 } 16819 /^X\(\/\).*/{ 16820 s//\1/ 16821 q 16822 } 16823 s/.*/./; q'` 16824 test -d "$as_dir" && break 16825 done 16826 test -z "$as_dirs" || eval "mkdir $as_dirs" 16827 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16828 16829 16830} # as_fn_mkdir_p 16831if mkdir -p . 2>/dev/null; then 16832 as_mkdir_p='mkdir -p "$as_dir"' 16833else 16834 test -d ./-p && rmdir ./-p 16835 as_mkdir_p=false 16836fi 16837 16838 16839# as_fn_executable_p FILE 16840# ----------------------- 16841# Test if FILE is an executable regular file. 16842as_fn_executable_p () 16843{ 16844 test -f "$1" && test -x "$1" 16845} # as_fn_executable_p 16846as_test_x='test -x' 16847as_executable_p=as_fn_executable_p 16848 16849# Sed expression to map a string onto a valid CPP name. 16850as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16851 16852# Sed expression to map a string onto a valid variable name. 16853as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16854 16855 16856exec 6>&1 16857## ----------------------------------- ## 16858## Main body of $CONFIG_STATUS script. ## 16859## ----------------------------------- ## 16860_ASEOF 16861test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16862 16863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16864# Save the log message, to keep $0 and so on meaningful, and to 16865# report actual input values of CONFIG_FILES etc. instead of their 16866# values after options handling. 16867ac_log=" 16868This file was extended by modsecurity $as_me 2.9, which was 16869generated by GNU Autoconf 2.69. Invocation command line was 16870 16871 CONFIG_FILES = $CONFIG_FILES 16872 CONFIG_HEADERS = $CONFIG_HEADERS 16873 CONFIG_LINKS = $CONFIG_LINKS 16874 CONFIG_COMMANDS = $CONFIG_COMMANDS 16875 $ $0 $@ 16876 16877on `(hostname || uname -n) 2>/dev/null | sed 1q` 16878" 16879 16880_ACEOF 16881 16882case $ac_config_files in *" 16883"*) set x $ac_config_files; shift; ac_config_files=$*;; 16884esac 16885 16886case $ac_config_headers in *" 16887"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16888esac 16889 16890 16891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16892# Files that config.status was made for. 16893config_files="$ac_config_files" 16894config_headers="$ac_config_headers" 16895config_commands="$ac_config_commands" 16896 16897_ACEOF 16898 16899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16900ac_cs_usage="\ 16901\`$as_me' instantiates files and other configuration actions 16902from templates according to the current configuration. Unless the files 16903and actions are specified as TAGs, all are instantiated by default. 16904 16905Usage: $0 [OPTION]... [TAG]... 16906 16907 -h, --help print this help, then exit 16908 -V, --version print version number and configuration settings, then exit 16909 --config print configuration, then exit 16910 -q, --quiet, --silent 16911 do not print progress messages 16912 -d, --debug don't remove temporary files 16913 --recheck update $as_me by reconfiguring in the same conditions 16914 --file=FILE[:TEMPLATE] 16915 instantiate the configuration file FILE 16916 --header=FILE[:TEMPLATE] 16917 instantiate the configuration header FILE 16918 16919Configuration files: 16920$config_files 16921 16922Configuration headers: 16923$config_headers 16924 16925Configuration commands: 16926$config_commands 16927 16928Report bugs to <support@modsecurity.org>." 16929 16930_ACEOF 16931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16932ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16933ac_cs_version="\\ 16934modsecurity config.status 2.9 16935configured by $0, generated by GNU Autoconf 2.69, 16936 with options \\"\$ac_cs_config\\" 16937 16938Copyright (C) 2012 Free Software Foundation, Inc. 16939This config.status script is free software; the Free Software Foundation 16940gives unlimited permission to copy, distribute and modify it." 16941 16942ac_pwd='$ac_pwd' 16943srcdir='$srcdir' 16944INSTALL='$INSTALL' 16945MKDIR_P='$MKDIR_P' 16946AWK='$AWK' 16947test -n "\$AWK" || AWK=awk 16948_ACEOF 16949 16950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16951# The default lists apply if the user does not specify any file. 16952ac_need_defaults=: 16953while test $# != 0 16954do 16955 case $1 in 16956 --*=?*) 16957 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16959 ac_shift=: 16960 ;; 16961 --*=) 16962 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16963 ac_optarg= 16964 ac_shift=: 16965 ;; 16966 *) 16967 ac_option=$1 16968 ac_optarg=$2 16969 ac_shift=shift 16970 ;; 16971 esac 16972 16973 case $ac_option in 16974 # Handling of the options. 16975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16976 ac_cs_recheck=: ;; 16977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16978 $as_echo "$ac_cs_version"; exit ;; 16979 --config | --confi | --conf | --con | --co | --c ) 16980 $as_echo "$ac_cs_config"; exit ;; 16981 --debug | --debu | --deb | --de | --d | -d ) 16982 debug=: ;; 16983 --file | --fil | --fi | --f ) 16984 $ac_shift 16985 case $ac_optarg in 16986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16987 '') as_fn_error $? "missing file argument" ;; 16988 esac 16989 as_fn_append CONFIG_FILES " '$ac_optarg'" 16990 ac_need_defaults=false;; 16991 --header | --heade | --head | --hea ) 16992 $ac_shift 16993 case $ac_optarg in 16994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16995 esac 16996 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16997 ac_need_defaults=false;; 16998 --he | --h) 16999 # Conflict between --help and --header 17000 as_fn_error $? "ambiguous option: \`$1' 17001Try \`$0 --help' for more information.";; 17002 --help | --hel | -h ) 17003 $as_echo "$ac_cs_usage"; exit ;; 17004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17005 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17006 ac_cs_silent=: ;; 17007 17008 # This is an error. 17009 -*) as_fn_error $? "unrecognized option: \`$1' 17010Try \`$0 --help' for more information." ;; 17011 17012 *) as_fn_append ac_config_targets " $1" 17013 ac_need_defaults=false ;; 17014 17015 esac 17016 shift 17017done 17018 17019ac_configure_extra_args= 17020 17021if $ac_cs_silent; then 17022 exec 6>/dev/null 17023 ac_configure_extra_args="$ac_configure_extra_args --silent" 17024fi 17025 17026_ACEOF 17027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17028if \$ac_cs_recheck; then 17029 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17030 shift 17031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17032 CONFIG_SHELL='$SHELL' 17033 export CONFIG_SHELL 17034 exec "\$@" 17035fi 17036 17037_ACEOF 17038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17039exec 5>>config.log 17040{ 17041 echo 17042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17043## Running $as_me. ## 17044_ASBOX 17045 $as_echo "$ac_log" 17046} >&5 17047 17048_ACEOF 17049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17050# 17051# INIT-COMMANDS 17052# 17053AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17054 17055 17056# The HP-UX ksh and POSIX shell print the target directory to stdout 17057# if CDPATH is set. 17058(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17059 17060sed_quote_subst='$sed_quote_subst' 17061double_quote_subst='$double_quote_subst' 17062delay_variable_subst='$delay_variable_subst' 17063macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17064macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17065enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17066enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17067pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17068enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17069shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17070SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17071ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17072PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17073host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17074host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17075host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17076build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17077build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17078build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17079SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17080Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17081GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17082EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17083FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17084LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17085NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17086LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17087max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17088ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17089exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17090lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17091lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17092lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17093lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17094lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17095reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17096reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17097OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17098deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17099file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17100file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17101want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17102DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17103sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17104AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17105AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17106archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17107STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17108RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17109old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17110old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17111old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17112lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17113CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17114CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17115compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17116GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17117lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17118lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17119lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17120lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17121lt_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"`' 17122lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17123nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17124lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17125lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17126objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17127MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17128lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17129lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17130lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17131lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17132lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17133need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17134MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17135DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17136NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17137LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17138OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17139OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17140libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17141shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17142extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17143archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17144enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17145export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17146whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17147compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17148old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17149old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17150archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17151archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17152module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17153module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17154with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17155allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17156no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17157hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17158hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17159hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17160hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17161hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17162hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17163hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17164inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17165link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17166always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17167export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17168exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17169include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17170prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17171postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17172file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17173variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17174need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17175need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17176version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17177runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17178shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17179shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17180libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17181library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17182soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17183install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17184postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17185postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17186finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17187finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17188hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17189sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17190configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17191configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17192hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17193enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17194enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17195enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17196old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17197striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17198 17199LTCC='$LTCC' 17200LTCFLAGS='$LTCFLAGS' 17201compiler='$compiler_DEFAULT' 17202 17203# A function that is used when there is no print builtin or printf. 17204func_fallback_echo () 17205{ 17206 eval 'cat <<_LTECHO_EOF 17207\$1 17208_LTECHO_EOF' 17209} 17210 17211# Quote evaled strings. 17212for var in SHELL \ 17213ECHO \ 17214PATH_SEPARATOR \ 17215SED \ 17216GREP \ 17217EGREP \ 17218FGREP \ 17219LD \ 17220NM \ 17221LN_S \ 17222lt_SP2NL \ 17223lt_NL2SP \ 17224reload_flag \ 17225OBJDUMP \ 17226deplibs_check_method \ 17227file_magic_cmd \ 17228file_magic_glob \ 17229want_nocaseglob \ 17230DLLTOOL \ 17231sharedlib_from_linklib_cmd \ 17232AR \ 17233AR_FLAGS \ 17234archiver_list_spec \ 17235STRIP \ 17236RANLIB \ 17237CC \ 17238CFLAGS \ 17239compiler \ 17240lt_cv_sys_global_symbol_pipe \ 17241lt_cv_sys_global_symbol_to_cdecl \ 17242lt_cv_sys_global_symbol_to_import \ 17243lt_cv_sys_global_symbol_to_c_name_address \ 17244lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17245lt_cv_nm_interface \ 17246nm_file_list_spec \ 17247lt_cv_truncate_bin \ 17248lt_prog_compiler_no_builtin_flag \ 17249lt_prog_compiler_pic \ 17250lt_prog_compiler_wl \ 17251lt_prog_compiler_static \ 17252lt_cv_prog_compiler_c_o \ 17253need_locks \ 17254MANIFEST_TOOL \ 17255DSYMUTIL \ 17256NMEDIT \ 17257LIPO \ 17258OTOOL \ 17259OTOOL64 \ 17260shrext_cmds \ 17261export_dynamic_flag_spec \ 17262whole_archive_flag_spec \ 17263compiler_needs_object \ 17264with_gnu_ld \ 17265allow_undefined_flag \ 17266no_undefined_flag \ 17267hardcode_libdir_flag_spec \ 17268hardcode_libdir_separator \ 17269exclude_expsyms \ 17270include_expsyms \ 17271file_list_spec \ 17272variables_saved_for_relink \ 17273libname_spec \ 17274library_names_spec \ 17275soname_spec \ 17276install_override_mode \ 17277finish_eval \ 17278old_striplib \ 17279striplib; do 17280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17281 *[\\\\\\\`\\"\\\$]*) 17282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17283 ;; 17284 *) 17285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17286 ;; 17287 esac 17288done 17289 17290# Double-quote double-evaled strings. 17291for var in reload_cmds \ 17292old_postinstall_cmds \ 17293old_postuninstall_cmds \ 17294old_archive_cmds \ 17295extract_expsyms_cmds \ 17296old_archive_from_new_cmds \ 17297old_archive_from_expsyms_cmds \ 17298archive_cmds \ 17299archive_expsym_cmds \ 17300module_cmds \ 17301module_expsym_cmds \ 17302export_symbols_cmds \ 17303prelink_cmds \ 17304postlink_cmds \ 17305postinstall_cmds \ 17306postuninstall_cmds \ 17307finish_cmds \ 17308sys_lib_search_path_spec \ 17309configure_time_dlsearch_path \ 17310configure_time_lt_sys_library_path; do 17311 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17312 *[\\\\\\\`\\"\\\$]*) 17313 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17314 ;; 17315 *) 17316 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17317 ;; 17318 esac 17319done 17320 17321ac_aux_dir='$ac_aux_dir' 17322 17323# See if we are running on zsh, and set the options that allow our 17324# commands through without removal of \ escapes INIT. 17325if test -n "\${ZSH_VERSION+set}"; then 17326 setopt NO_GLOB_SUBST 17327fi 17328 17329 17330 PACKAGE='$PACKAGE' 17331 VERSION='$VERSION' 17332 RM='$RM' 17333 ofile='$ofile' 17334 17335 17336 17337 17338_ACEOF 17339 17340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17341 17342# Handling of arguments. 17343for ac_config_target in $ac_config_targets 17344do 17345 case $ac_config_target in 17346 "apache2/modsecurity_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS apache2/modsecurity_config_auto.h" ;; 17347 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17348 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17349 "doc/doxygen-apache") CONFIG_FILES="$CONFIG_FILES doc/doxygen-apache" ;; 17350 "doc/doxygen-nginx") CONFIG_FILES="$CONFIG_FILES doc/doxygen-nginx" ;; 17351 "doc/doxygen-iis") CONFIG_FILES="$CONFIG_FILES doc/doxygen-iis" ;; 17352 "doc/doxygen-standalone") CONFIG_FILES="$CONFIG_FILES doc/doxygen-standalone" ;; 17353 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17354 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17355 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 17356 "alp2/Makefile") CONFIG_FILES="$CONFIG_FILES alp2/Makefile" ;; 17357 "apache2/Makefile") CONFIG_FILES="$CONFIG_FILES apache2/Makefile" ;; 17358 "standalone/Makefile") CONFIG_FILES="$CONFIG_FILES standalone/Makefile" ;; 17359 "nginx/modsecurity/config") CONFIG_FILES="$CONFIG_FILES nginx/modsecurity/config" ;; 17360 "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;; 17361 "build/apxs-wrapper") CONFIG_FILES="$CONFIG_FILES build/apxs-wrapper" ;; 17362 "mlogc/mlogc-batch-load.pl") CONFIG_FILES="$CONFIG_FILES mlogc/mlogc-batch-load.pl" ;; 17363 "tests/regression/misc/40-secRemoteRules.t") CONFIG_FILES="$CONFIG_FILES tests/regression/misc/40-secRemoteRules.t" ;; 17364 "tests/regression/misc/50-ipmatchfromfile-external.t") CONFIG_FILES="$CONFIG_FILES tests/regression/misc/50-ipmatchfromfile-external.t" ;; 17365 "tests/regression/misc/60-pmfromfile-external.t") CONFIG_FILES="$CONFIG_FILES tests/regression/misc/60-pmfromfile-external.t" ;; 17366 "tests/run-unit-tests.pl") CONFIG_FILES="$CONFIG_FILES tests/run-unit-tests.pl" ;; 17367 "tests/run-regression-tests.pl") CONFIG_FILES="$CONFIG_FILES tests/run-regression-tests.pl" ;; 17368 "tests/gen_rx-pm.pl") CONFIG_FILES="$CONFIG_FILES tests/gen_rx-pm.pl" ;; 17369 "tests/csv_rx-pm.pl") CONFIG_FILES="$CONFIG_FILES tests/csv_rx-pm.pl" ;; 17370 "tests/regression/server_root/conf/httpd.conf") CONFIG_FILES="$CONFIG_FILES tests/regression/server_root/conf/httpd.conf" ;; 17371 "tools/rules-updater.pl") CONFIG_FILES="$CONFIG_FILES tools/rules-updater.pl" ;; 17372 "mlogc/Makefile") CONFIG_FILES="$CONFIG_FILES mlogc/Makefile" ;; 17373 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 17374 17375 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17376 esac 17377done 17378 17379 17380# If the user did not use the arguments to specify the items to instantiate, 17381# then the envvar interface is used. Set only those that are not. 17382# We use the long form for the default assignment because of an extremely 17383# bizarre bug on SunOS 4.1.3. 17384if $ac_need_defaults; then 17385 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17386 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17387 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17388fi 17389 17390# Have a temporary directory for convenience. Make it in the build tree 17391# simply because there is no reason against having it here, and in addition, 17392# creating and moving files from /tmp can sometimes cause problems. 17393# Hook for its removal unless debugging. 17394# Note that there is a small window in which the directory will not be cleaned: 17395# after its creation but before its name has been assigned to `$tmp'. 17396$debug || 17397{ 17398 tmp= ac_tmp= 17399 trap 'exit_status=$? 17400 : "${ac_tmp:=$tmp}" 17401 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17402' 0 17403 trap 'as_fn_exit 1' 1 2 13 15 17404} 17405# Create a (secure) tmp directory for tmp files. 17406 17407{ 17408 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17409 test -d "$tmp" 17410} || 17411{ 17412 tmp=./conf$$-$RANDOM 17413 (umask 077 && mkdir "$tmp") 17414} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17415ac_tmp=$tmp 17416 17417# Set up the scripts for CONFIG_FILES section. 17418# No need to generate them if there are no CONFIG_FILES. 17419# This happens for instance with `./config.status config.h'. 17420if test -n "$CONFIG_FILES"; then 17421 17422 17423ac_cr=`echo X | tr X '\015'` 17424# On cygwin, bash can eat \r inside `` if the user requested igncr. 17425# But we know of no other shell where ac_cr would be empty at this 17426# point, so we can use a bashism as a fallback. 17427if test "x$ac_cr" = x; then 17428 eval ac_cr=\$\'\\r\' 17429fi 17430ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17431if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17432 ac_cs_awk_cr='\\r' 17433else 17434 ac_cs_awk_cr=$ac_cr 17435fi 17436 17437echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17438_ACEOF 17439 17440 17441{ 17442 echo "cat >conf$$subs.awk <<_ACEOF" && 17443 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17444 echo "_ACEOF" 17445} >conf$$subs.sh || 17446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17447ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17448ac_delim='%!_!# ' 17449for ac_last_try in false false false false false :; do 17450 . ./conf$$subs.sh || 17451 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17452 17453 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17454 if test $ac_delim_n = $ac_delim_num; then 17455 break 17456 elif $ac_last_try; then 17457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17458 else 17459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17460 fi 17461done 17462rm -f conf$$subs.sh 17463 17464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17465cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17466_ACEOF 17467sed -n ' 17468h 17469s/^/S["/; s/!.*/"]=/ 17470p 17471g 17472s/^[^!]*!// 17473:repl 17474t repl 17475s/'"$ac_delim"'$// 17476t delim 17477:nl 17478h 17479s/\(.\{148\}\)..*/\1/ 17480t more1 17481s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17482p 17483n 17484b repl 17485:more1 17486s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17487p 17488g 17489s/.\{148\}// 17490t nl 17491:delim 17492h 17493s/\(.\{148\}\)..*/\1/ 17494t more2 17495s/["\\]/\\&/g; s/^/"/; s/$/"/ 17496p 17497b 17498:more2 17499s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17500p 17501g 17502s/.\{148\}// 17503t delim 17504' <conf$$subs.awk | sed ' 17505/^[^""]/{ 17506 N 17507 s/\n// 17508} 17509' >>$CONFIG_STATUS || ac_write_fail=1 17510rm -f conf$$subs.awk 17511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17512_ACAWK 17513cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17514 for (key in S) S_is_set[key] = 1 17515 FS = "" 17516 17517} 17518{ 17519 line = $ 0 17520 nfields = split(line, field, "@") 17521 substed = 0 17522 len = length(field[1]) 17523 for (i = 2; i < nfields; i++) { 17524 key = field[i] 17525 keylen = length(key) 17526 if (S_is_set[key]) { 17527 value = S[key] 17528 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17529 len += length(value) + length(field[++i]) 17530 substed = 1 17531 } else 17532 len += 1 + keylen 17533 } 17534 17535 print line 17536} 17537 17538_ACAWK 17539_ACEOF 17540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17541if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17542 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17543else 17544 cat 17545fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17546 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17547_ACEOF 17548 17549# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17550# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17551# trailing colons and then remove the whole line if VPATH becomes empty 17552# (actually we leave an empty line to preserve line numbers). 17553if test "x$srcdir" = x.; then 17554 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17555h 17556s/// 17557s/^/:/ 17558s/[ ]*$/:/ 17559s/:\$(srcdir):/:/g 17560s/:\${srcdir}:/:/g 17561s/:@srcdir@:/:/g 17562s/^:*// 17563s/:*$// 17564x 17565s/\(=[ ]*\).*/\1/ 17566G 17567s/\n// 17568s/^[^=]*=[ ]*$// 17569}' 17570fi 17571 17572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17573fi # test -n "$CONFIG_FILES" 17574 17575# Set up the scripts for CONFIG_HEADERS section. 17576# No need to generate them if there are no CONFIG_HEADERS. 17577# This happens for instance with `./config.status Makefile'. 17578if test -n "$CONFIG_HEADERS"; then 17579cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17580BEGIN { 17581_ACEOF 17582 17583# Transform confdefs.h into an awk script `defines.awk', embedded as 17584# here-document in config.status, that substitutes the proper values into 17585# config.h.in to produce config.h. 17586 17587# Create a delimiter string that does not exist in confdefs.h, to ease 17588# handling of long lines. 17589ac_delim='%!_!# ' 17590for ac_last_try in false false :; do 17591 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17592 if test -z "$ac_tt"; then 17593 break 17594 elif $ac_last_try; then 17595 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17596 else 17597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17598 fi 17599done 17600 17601# For the awk script, D is an array of macro values keyed by name, 17602# likewise P contains macro parameters if any. Preserve backslash 17603# newline sequences. 17604 17605ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17606sed -n ' 17607s/.\{148\}/&'"$ac_delim"'/g 17608t rset 17609:rset 17610s/^[ ]*#[ ]*define[ ][ ]*/ / 17611t def 17612d 17613:def 17614s/\\$// 17615t bsnl 17616s/["\\]/\\&/g 17617s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17618D["\1"]=" \3"/p 17619s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17620d 17621:bsnl 17622s/["\\]/\\&/g 17623s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17624D["\1"]=" \3\\\\\\n"\\/p 17625t cont 17626s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17627t cont 17628d 17629:cont 17630n 17631s/.\{148\}/&'"$ac_delim"'/g 17632t clear 17633:clear 17634s/\\$// 17635t bsnlc 17636s/["\\]/\\&/g; s/^/"/; s/$/"/p 17637d 17638:bsnlc 17639s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17640b cont 17641' <confdefs.h | sed ' 17642s/'"$ac_delim"'/"\\\ 17643"/g' >>$CONFIG_STATUS || ac_write_fail=1 17644 17645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17646 for (key in D) D_is_set[key] = 1 17647 FS = "" 17648} 17649/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17650 line = \$ 0 17651 split(line, arg, " ") 17652 if (arg[1] == "#") { 17653 defundef = arg[2] 17654 mac1 = arg[3] 17655 } else { 17656 defundef = substr(arg[1], 2) 17657 mac1 = arg[2] 17658 } 17659 split(mac1, mac2, "(") #) 17660 macro = mac2[1] 17661 prefix = substr(line, 1, index(line, defundef) - 1) 17662 if (D_is_set[macro]) { 17663 # Preserve the white space surrounding the "#". 17664 print prefix "define", macro P[macro] D[macro] 17665 next 17666 } else { 17667 # Replace #undef with comments. This is necessary, for example, 17668 # in the case of _POSIX_SOURCE, which is predefined and required 17669 # on some systems where configure will not decide to define it. 17670 if (defundef == "undef") { 17671 print "/*", prefix defundef, macro, "*/" 17672 next 17673 } 17674 } 17675} 17676{ print } 17677_ACAWK 17678_ACEOF 17679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17680 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17681fi # test -n "$CONFIG_HEADERS" 17682 17683 17684eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17685shift 17686for ac_tag 17687do 17688 case $ac_tag in 17689 :[FHLC]) ac_mode=$ac_tag; continue;; 17690 esac 17691 case $ac_mode$ac_tag in 17692 :[FHL]*:*);; 17693 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17694 :[FH]-) ac_tag=-:-;; 17695 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17696 esac 17697 ac_save_IFS=$IFS 17698 IFS=: 17699 set x $ac_tag 17700 IFS=$ac_save_IFS 17701 shift 17702 ac_file=$1 17703 shift 17704 17705 case $ac_mode in 17706 :L) ac_source=$1;; 17707 :[FH]) 17708 ac_file_inputs= 17709 for ac_f 17710 do 17711 case $ac_f in 17712 -) ac_f="$ac_tmp/stdin";; 17713 *) # Look for the file first in the build tree, then in the source tree 17714 # (if the path is not absolute). The absolute path cannot be DOS-style, 17715 # because $ac_f cannot contain `:'. 17716 test -f "$ac_f" || 17717 case $ac_f in 17718 [\\/$]*) false;; 17719 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17720 esac || 17721 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17722 esac 17723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17724 as_fn_append ac_file_inputs " '$ac_f'" 17725 done 17726 17727 # Let's still pretend it is `configure' which instantiates (i.e., don't 17728 # use $as_me), people would be surprised to read: 17729 # /* config.h. Generated by config.status. */ 17730 configure_input='Generated from '` 17731 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17732 `' by configure.' 17733 if test x"$ac_file" != x-; then 17734 configure_input="$ac_file. $configure_input" 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17736$as_echo "$as_me: creating $ac_file" >&6;} 17737 fi 17738 # Neutralize special characters interpreted by sed in replacement strings. 17739 case $configure_input in #( 17740 *\&* | *\|* | *\\* ) 17741 ac_sed_conf_input=`$as_echo "$configure_input" | 17742 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17743 *) ac_sed_conf_input=$configure_input;; 17744 esac 17745 17746 case $ac_tag in 17747 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17749 esac 17750 ;; 17751 esac 17752 17753 ac_dir=`$as_dirname -- "$ac_file" || 17754$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17755 X"$ac_file" : 'X\(//\)[^/]' \| \ 17756 X"$ac_file" : 'X\(//\)$' \| \ 17757 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17758$as_echo X"$ac_file" | 17759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17760 s//\1/ 17761 q 17762 } 17763 /^X\(\/\/\)[^/].*/{ 17764 s//\1/ 17765 q 17766 } 17767 /^X\(\/\/\)$/{ 17768 s//\1/ 17769 q 17770 } 17771 /^X\(\/\).*/{ 17772 s//\1/ 17773 q 17774 } 17775 s/.*/./; q'` 17776 as_dir="$ac_dir"; as_fn_mkdir_p 17777 ac_builddir=. 17778 17779case "$ac_dir" in 17780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17781*) 17782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17783 # A ".." for each directory in $ac_dir_suffix. 17784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17785 case $ac_top_builddir_sub in 17786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17788 esac ;; 17789esac 17790ac_abs_top_builddir=$ac_pwd 17791ac_abs_builddir=$ac_pwd$ac_dir_suffix 17792# for backward compatibility: 17793ac_top_builddir=$ac_top_build_prefix 17794 17795case $srcdir in 17796 .) # We are building in place. 17797 ac_srcdir=. 17798 ac_top_srcdir=$ac_top_builddir_sub 17799 ac_abs_top_srcdir=$ac_pwd ;; 17800 [\\/]* | ?:[\\/]* ) # Absolute name. 17801 ac_srcdir=$srcdir$ac_dir_suffix; 17802 ac_top_srcdir=$srcdir 17803 ac_abs_top_srcdir=$srcdir ;; 17804 *) # Relative name. 17805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17806 ac_top_srcdir=$ac_top_build_prefix$srcdir 17807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17808esac 17809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17810 17811 17812 case $ac_mode in 17813 :F) 17814 # 17815 # CONFIG_FILE 17816 # 17817 17818 case $INSTALL in 17819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17821 esac 17822 ac_MKDIR_P=$MKDIR_P 17823 case $MKDIR_P in 17824 [\\/$]* | ?:[\\/]* ) ;; 17825 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17826 esac 17827_ACEOF 17828 17829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17830# If the template does not know about datarootdir, expand it. 17831# FIXME: This hack should be removed a few years after 2.60. 17832ac_datarootdir_hack=; ac_datarootdir_seen= 17833ac_sed_dataroot=' 17834/datarootdir/ { 17835 p 17836 q 17837} 17838/@datadir@/p 17839/@docdir@/p 17840/@infodir@/p 17841/@localedir@/p 17842/@mandir@/p' 17843case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17844*datarootdir*) ac_datarootdir_seen=yes;; 17845*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17847$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17848_ACEOF 17849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17850 ac_datarootdir_hack=' 17851 s&@datadir@&$datadir&g 17852 s&@docdir@&$docdir&g 17853 s&@infodir@&$infodir&g 17854 s&@localedir@&$localedir&g 17855 s&@mandir@&$mandir&g 17856 s&\\\${datarootdir}&$datarootdir&g' ;; 17857esac 17858_ACEOF 17859 17860# Neutralize VPATH when `$srcdir' = `.'. 17861# Shell code in configure.ac might set extrasub. 17862# FIXME: do we really want to maintain this feature? 17863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17864ac_sed_extra="$ac_vpsub 17865$extrasub 17866_ACEOF 17867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17868:t 17869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17870s|@configure_input@|$ac_sed_conf_input|;t t 17871s&@top_builddir@&$ac_top_builddir_sub&;t t 17872s&@top_build_prefix@&$ac_top_build_prefix&;t t 17873s&@srcdir@&$ac_srcdir&;t t 17874s&@abs_srcdir@&$ac_abs_srcdir&;t t 17875s&@top_srcdir@&$ac_top_srcdir&;t t 17876s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17877s&@builddir@&$ac_builddir&;t t 17878s&@abs_builddir@&$ac_abs_builddir&;t t 17879s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17880s&@INSTALL@&$ac_INSTALL&;t t 17881s&@MKDIR_P@&$ac_MKDIR_P&;t t 17882$ac_datarootdir_hack 17883" 17884eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17885 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17886 17887test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17888 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17890 "$ac_tmp/out"`; test -z "$ac_out"; } && 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17892which seems to be undefined. Please make sure it is defined" >&5 17893$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17894which seems to be undefined. Please make sure it is defined" >&2;} 17895 17896 rm -f "$ac_tmp/stdin" 17897 case $ac_file in 17898 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17899 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17900 esac \ 17901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17902 ;; 17903 :H) 17904 # 17905 # CONFIG_HEADER 17906 # 17907 if test x"$ac_file" != x-; then 17908 { 17909 $as_echo "/* $configure_input */" \ 17910 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17911 } >"$ac_tmp/config.h" \ 17912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17913 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17915$as_echo "$as_me: $ac_file is unchanged" >&6;} 17916 else 17917 rm -f "$ac_file" 17918 mv "$ac_tmp/config.h" "$ac_file" \ 17919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17920 fi 17921 else 17922 $as_echo "/* $configure_input */" \ 17923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17924 || as_fn_error $? "could not create -" "$LINENO" 5 17925 fi 17926# Compute "$ac_file"'s index in $config_headers. 17927_am_arg="$ac_file" 17928_am_stamp_count=1 17929for _am_header in $config_headers :; do 17930 case $_am_header in 17931 $_am_arg | $_am_arg:* ) 17932 break ;; 17933 * ) 17934 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17935 esac 17936done 17937echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17938$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17939 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17940 X"$_am_arg" : 'X\(//\)$' \| \ 17941 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17942$as_echo X"$_am_arg" | 17943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17944 s//\1/ 17945 q 17946 } 17947 /^X\(\/\/\)[^/].*/{ 17948 s//\1/ 17949 q 17950 } 17951 /^X\(\/\/\)$/{ 17952 s//\1/ 17953 q 17954 } 17955 /^X\(\/\).*/{ 17956 s//\1/ 17957 q 17958 } 17959 s/.*/./; q'`/stamp-h$_am_stamp_count 17960 ;; 17961 17962 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17963$as_echo "$as_me: executing $ac_file commands" >&6;} 17964 ;; 17965 esac 17966 17967 17968 case $ac_file$ac_mode in 17969 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17970 # Older Autoconf quotes --file arguments for eval, but not when files 17971 # are listed without --file. Let's play safe and only enable the eval 17972 # if we detect the quoting. 17973 case $CONFIG_FILES in 17974 *\'*) eval set x "$CONFIG_FILES" ;; 17975 *) set x $CONFIG_FILES ;; 17976 esac 17977 shift 17978 for mf 17979 do 17980 # Strip MF so we end up with the name of the file. 17981 mf=`echo "$mf" | sed -e 's/:.*$//'` 17982 # Check whether this is an Automake generated Makefile or not. 17983 # We used to match only the files named 'Makefile.in', but 17984 # some people rename them; so instead we look at the file content. 17985 # Grep'ing the first line is not enough: some people post-process 17986 # each Makefile.in and add a new line on top of each file to say so. 17987 # Grep'ing the whole file is not good either: AIX grep has a line 17988 # limit of 2048, but all sed's we know have understand at least 4000. 17989 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17990 dirpart=`$as_dirname -- "$mf" || 17991$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17992 X"$mf" : 'X\(//\)[^/]' \| \ 17993 X"$mf" : 'X\(//\)$' \| \ 17994 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17995$as_echo X"$mf" | 17996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17997 s//\1/ 17998 q 17999 } 18000 /^X\(\/\/\)[^/].*/{ 18001 s//\1/ 18002 q 18003 } 18004 /^X\(\/\/\)$/{ 18005 s//\1/ 18006 q 18007 } 18008 /^X\(\/\).*/{ 18009 s//\1/ 18010 q 18011 } 18012 s/.*/./; q'` 18013 else 18014 continue 18015 fi 18016 # Extract the definition of DEPDIR, am__include, and am__quote 18017 # from the Makefile without running 'make'. 18018 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18019 test -z "$DEPDIR" && continue 18020 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18021 test -z "$am__include" && continue 18022 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18023 # Find all dependency output files, they are included files with 18024 # $(DEPDIR) in their names. We invoke sed twice because it is the 18025 # simplest approach to changing $(DEPDIR) to its actual value in the 18026 # expansion. 18027 for file in `sed -n " 18028 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18029 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18030 # Make sure the directory exists. 18031 test -f "$dirpart/$file" && continue 18032 fdir=`$as_dirname -- "$file" || 18033$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18034 X"$file" : 'X\(//\)[^/]' \| \ 18035 X"$file" : 'X\(//\)$' \| \ 18036 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18037$as_echo X"$file" | 18038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18039 s//\1/ 18040 q 18041 } 18042 /^X\(\/\/\)[^/].*/{ 18043 s//\1/ 18044 q 18045 } 18046 /^X\(\/\/\)$/{ 18047 s//\1/ 18048 q 18049 } 18050 /^X\(\/\).*/{ 18051 s//\1/ 18052 q 18053 } 18054 s/.*/./; q'` 18055 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18056 # echo "creating $dirpart/$file" 18057 echo '# dummy' > "$dirpart/$file" 18058 done 18059 done 18060} 18061 ;; 18062 "libtool":C) 18063 18064 # See if we are running on zsh, and set the options that allow our 18065 # commands through without removal of \ escapes. 18066 if test -n "${ZSH_VERSION+set}"; then 18067 setopt NO_GLOB_SUBST 18068 fi 18069 18070 cfgfile=${ofile}T 18071 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18072 $RM "$cfgfile" 18073 18074 cat <<_LT_EOF >> "$cfgfile" 18075#! $SHELL 18076# Generated automatically by $as_me ($PACKAGE) $VERSION 18077# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18078 18079# Provide generalized library-building support services. 18080# Written by Gordon Matzigkeit, 1996 18081 18082# Copyright (C) 2014 Free Software Foundation, Inc. 18083# This is free software; see the source for copying conditions. There is NO 18084# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18085 18086# GNU Libtool is free software; you can redistribute it and/or modify 18087# it under the terms of the GNU General Public License as published by 18088# the Free Software Foundation; either version 2 of of the License, or 18089# (at your option) any later version. 18090# 18091# As a special exception to the GNU General Public License, if you 18092# distribute this file as part of a program or library that is built 18093# using GNU Libtool, you may include this file under the same 18094# distribution terms that you use for the rest of that program. 18095# 18096# GNU Libtool is distributed in the hope that it will be useful, but 18097# WITHOUT ANY WARRANTY; without even the implied warranty of 18098# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18099# GNU General Public License for more details. 18100# 18101# You should have received a copy of the GNU General Public License 18102# along with this program. If not, see <http://www.gnu.org/licenses/>. 18103 18104 18105# The names of the tagged configurations supported by this script. 18106available_tags='' 18107 18108# Configured defaults for sys_lib_dlsearch_path munging. 18109: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18110 18111# ### BEGIN LIBTOOL CONFIG 18112 18113# Which release of libtool.m4 was used? 18114macro_version=$macro_version 18115macro_revision=$macro_revision 18116 18117# Whether or not to build shared libraries. 18118build_libtool_libs=$enable_shared 18119 18120# Whether or not to build static libraries. 18121build_old_libs=$enable_static 18122 18123# What type of objects to build. 18124pic_mode=$pic_mode 18125 18126# Whether or not to optimize for fast installation. 18127fast_install=$enable_fast_install 18128 18129# Shared archive member basename,for filename based shared library versioning on AIX. 18130shared_archive_member_spec=$shared_archive_member_spec 18131 18132# Shell to use when invoking shell scripts. 18133SHELL=$lt_SHELL 18134 18135# An echo program that protects backslashes. 18136ECHO=$lt_ECHO 18137 18138# The PATH separator for the build system. 18139PATH_SEPARATOR=$lt_PATH_SEPARATOR 18140 18141# The host system. 18142host_alias=$host_alias 18143host=$host 18144host_os=$host_os 18145 18146# The build system. 18147build_alias=$build_alias 18148build=$build 18149build_os=$build_os 18150 18151# A sed program that does not truncate output. 18152SED=$lt_SED 18153 18154# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18155Xsed="\$SED -e 1s/^X//" 18156 18157# A grep program that handles long lines. 18158GREP=$lt_GREP 18159 18160# An ERE matcher. 18161EGREP=$lt_EGREP 18162 18163# A literal string matcher. 18164FGREP=$lt_FGREP 18165 18166# A BSD- or MS-compatible name lister. 18167NM=$lt_NM 18168 18169# Whether we need soft or hard links. 18170LN_S=$lt_LN_S 18171 18172# What is the maximum length of a command? 18173max_cmd_len=$max_cmd_len 18174 18175# Object file suffix (normally "o"). 18176objext=$ac_objext 18177 18178# Executable file suffix (normally ""). 18179exeext=$exeext 18180 18181# whether the shell understands "unset". 18182lt_unset=$lt_unset 18183 18184# turn spaces into newlines. 18185SP2NL=$lt_lt_SP2NL 18186 18187# turn newlines into spaces. 18188NL2SP=$lt_lt_NL2SP 18189 18190# convert \$build file names to \$host format. 18191to_host_file_cmd=$lt_cv_to_host_file_cmd 18192 18193# convert \$build files to toolchain format. 18194to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18195 18196# An object symbol dumper. 18197OBJDUMP=$lt_OBJDUMP 18198 18199# Method to check whether dependent libraries are shared objects. 18200deplibs_check_method=$lt_deplibs_check_method 18201 18202# Command to use when deplibs_check_method = "file_magic". 18203file_magic_cmd=$lt_file_magic_cmd 18204 18205# How to find potential files when deplibs_check_method = "file_magic". 18206file_magic_glob=$lt_file_magic_glob 18207 18208# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18209want_nocaseglob=$lt_want_nocaseglob 18210 18211# DLL creation program. 18212DLLTOOL=$lt_DLLTOOL 18213 18214# Command to associate shared and link libraries. 18215sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18216 18217# The archiver. 18218AR=$lt_AR 18219 18220# Flags to create an archive. 18221AR_FLAGS=$lt_AR_FLAGS 18222 18223# How to feed a file listing to the archiver. 18224archiver_list_spec=$lt_archiver_list_spec 18225 18226# A symbol stripping program. 18227STRIP=$lt_STRIP 18228 18229# Commands used to install an old-style archive. 18230RANLIB=$lt_RANLIB 18231old_postinstall_cmds=$lt_old_postinstall_cmds 18232old_postuninstall_cmds=$lt_old_postuninstall_cmds 18233 18234# Whether to use a lock for old archive extraction. 18235lock_old_archive_extraction=$lock_old_archive_extraction 18236 18237# A C compiler. 18238LTCC=$lt_CC 18239 18240# LTCC compiler flags. 18241LTCFLAGS=$lt_CFLAGS 18242 18243# Take the output of nm and produce a listing of raw symbols and C names. 18244global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18245 18246# Transform the output of nm in a proper C declaration. 18247global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18248 18249# Transform the output of nm into a list of symbols to manually relocate. 18250global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18251 18252# Transform the output of nm in a C name address pair. 18253global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18254 18255# Transform the output of nm in a C name address pair when lib prefix is needed. 18256global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18257 18258# The name lister interface. 18259nm_interface=$lt_lt_cv_nm_interface 18260 18261# Specify filename containing input files for \$NM. 18262nm_file_list_spec=$lt_nm_file_list_spec 18263 18264# The root where to search for dependent libraries,and where our libraries should be installed. 18265lt_sysroot=$lt_sysroot 18266 18267# Command to truncate a binary pipe. 18268lt_truncate_bin=$lt_lt_cv_truncate_bin 18269 18270# The name of the directory that contains temporary libtool files. 18271objdir=$objdir 18272 18273# Used to examine libraries when file_magic_cmd begins with "file". 18274MAGIC_CMD=$MAGIC_CMD 18275 18276# Must we lock files when doing compilation? 18277need_locks=$lt_need_locks 18278 18279# Manifest tool. 18280MANIFEST_TOOL=$lt_MANIFEST_TOOL 18281 18282# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18283DSYMUTIL=$lt_DSYMUTIL 18284 18285# Tool to change global to local symbols on Mac OS X. 18286NMEDIT=$lt_NMEDIT 18287 18288# Tool to manipulate fat objects and archives on Mac OS X. 18289LIPO=$lt_LIPO 18290 18291# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18292OTOOL=$lt_OTOOL 18293 18294# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18295OTOOL64=$lt_OTOOL64 18296 18297# Old archive suffix (normally "a"). 18298libext=$libext 18299 18300# Shared library suffix (normally ".so"). 18301shrext_cmds=$lt_shrext_cmds 18302 18303# The commands to extract the exported symbol list from a shared archive. 18304extract_expsyms_cmds=$lt_extract_expsyms_cmds 18305 18306# Variables whose values should be saved in libtool wrapper scripts and 18307# restored at link time. 18308variables_saved_for_relink=$lt_variables_saved_for_relink 18309 18310# Do we need the "lib" prefix for modules? 18311need_lib_prefix=$need_lib_prefix 18312 18313# Do we need a version for libraries? 18314need_version=$need_version 18315 18316# Library versioning type. 18317version_type=$version_type 18318 18319# Shared library runtime path variable. 18320runpath_var=$runpath_var 18321 18322# Shared library path variable. 18323shlibpath_var=$shlibpath_var 18324 18325# Is shlibpath searched before the hard-coded library search path? 18326shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18327 18328# Format of library name prefix. 18329libname_spec=$lt_libname_spec 18330 18331# List of archive names. First name is the real one, the rest are links. 18332# The last name is the one that the linker finds with -lNAME 18333library_names_spec=$lt_library_names_spec 18334 18335# The coded name of the library, if different from the real name. 18336soname_spec=$lt_soname_spec 18337 18338# Permission mode override for installation of shared libraries. 18339install_override_mode=$lt_install_override_mode 18340 18341# Command to use after installation of a shared archive. 18342postinstall_cmds=$lt_postinstall_cmds 18343 18344# Command to use after uninstallation of a shared archive. 18345postuninstall_cmds=$lt_postuninstall_cmds 18346 18347# Commands used to finish a libtool library installation in a directory. 18348finish_cmds=$lt_finish_cmds 18349 18350# As "finish_cmds", except a single script fragment to be evaled but 18351# not shown. 18352finish_eval=$lt_finish_eval 18353 18354# Whether we should hardcode library paths into libraries. 18355hardcode_into_libs=$hardcode_into_libs 18356 18357# Compile-time system search path for libraries. 18358sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18359 18360# Detected run-time system search path for libraries. 18361sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18362 18363# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18364configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18365 18366# Whether dlopen is supported. 18367dlopen_support=$enable_dlopen 18368 18369# Whether dlopen of programs is supported. 18370dlopen_self=$enable_dlopen_self 18371 18372# Whether dlopen of statically linked programs is supported. 18373dlopen_self_static=$enable_dlopen_self_static 18374 18375# Commands to strip libraries. 18376old_striplib=$lt_old_striplib 18377striplib=$lt_striplib 18378 18379 18380# The linker used to build libraries. 18381LD=$lt_LD 18382 18383# How to create reloadable object files. 18384reload_flag=$lt_reload_flag 18385reload_cmds=$lt_reload_cmds 18386 18387# Commands used to build an old-style archive. 18388old_archive_cmds=$lt_old_archive_cmds 18389 18390# A language specific compiler. 18391CC=$lt_compiler 18392 18393# Is the compiler the GNU compiler? 18394with_gcc=$GCC 18395 18396# Compiler flag to turn off builtin functions. 18397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18398 18399# Additional compiler flags for building library objects. 18400pic_flag=$lt_lt_prog_compiler_pic 18401 18402# How to pass a linker flag through the compiler. 18403wl=$lt_lt_prog_compiler_wl 18404 18405# Compiler flag to prevent dynamic linking. 18406link_static_flag=$lt_lt_prog_compiler_static 18407 18408# Does compiler simultaneously support -c and -o options? 18409compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18410 18411# Whether or not to add -lc for building shared libraries. 18412build_libtool_need_lc=$archive_cmds_need_lc 18413 18414# Whether or not to disallow shared libs when runtime libs are static. 18415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18416 18417# Compiler flag to allow reflexive dlopens. 18418export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18419 18420# Compiler flag to generate shared objects directly from archives. 18421whole_archive_flag_spec=$lt_whole_archive_flag_spec 18422 18423# Whether the compiler copes with passing no objects directly. 18424compiler_needs_object=$lt_compiler_needs_object 18425 18426# Create an old-style archive from a shared archive. 18427old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18428 18429# Create a temporary old-style archive to link instead of a shared archive. 18430old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18431 18432# Commands used to build a shared archive. 18433archive_cmds=$lt_archive_cmds 18434archive_expsym_cmds=$lt_archive_expsym_cmds 18435 18436# Commands used to build a loadable module if different from building 18437# a shared archive. 18438module_cmds=$lt_module_cmds 18439module_expsym_cmds=$lt_module_expsym_cmds 18440 18441# Whether we are building with GNU ld or not. 18442with_gnu_ld=$lt_with_gnu_ld 18443 18444# Flag that allows shared libraries with undefined symbols to be built. 18445allow_undefined_flag=$lt_allow_undefined_flag 18446 18447# Flag that enforces no undefined symbols. 18448no_undefined_flag=$lt_no_undefined_flag 18449 18450# Flag to hardcode \$libdir into a binary during linking. 18451# This must work even if \$libdir does not exist 18452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18453 18454# Whether we need a single "-rpath" flag with a separated argument. 18455hardcode_libdir_separator=$lt_hardcode_libdir_separator 18456 18457# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18458# DIR into the resulting binary. 18459hardcode_direct=$hardcode_direct 18460 18461# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18462# DIR into the resulting binary and the resulting library dependency is 18463# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18464# library is relocated. 18465hardcode_direct_absolute=$hardcode_direct_absolute 18466 18467# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18468# into the resulting binary. 18469hardcode_minus_L=$hardcode_minus_L 18470 18471# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18472# into the resulting binary. 18473hardcode_shlibpath_var=$hardcode_shlibpath_var 18474 18475# Set to "yes" if building a shared library automatically hardcodes DIR 18476# into the library and all subsequent libraries and executables linked 18477# against it. 18478hardcode_automatic=$hardcode_automatic 18479 18480# Set to yes if linker adds runtime paths of dependent libraries 18481# to runtime path list. 18482inherit_rpath=$inherit_rpath 18483 18484# Whether libtool must link a program against all its dependency libraries. 18485link_all_deplibs=$link_all_deplibs 18486 18487# Set to "yes" if exported symbols are required. 18488always_export_symbols=$always_export_symbols 18489 18490# The commands to list exported symbols. 18491export_symbols_cmds=$lt_export_symbols_cmds 18492 18493# Symbols that should not be listed in the preloaded symbols. 18494exclude_expsyms=$lt_exclude_expsyms 18495 18496# Symbols that must always be exported. 18497include_expsyms=$lt_include_expsyms 18498 18499# Commands necessary for linking programs (against libraries) with templates. 18500prelink_cmds=$lt_prelink_cmds 18501 18502# Commands necessary for finishing linking programs. 18503postlink_cmds=$lt_postlink_cmds 18504 18505# Specify filename containing input files. 18506file_list_spec=$lt_file_list_spec 18507 18508# How to hardcode a shared library path into an executable. 18509hardcode_action=$hardcode_action 18510 18511# ### END LIBTOOL CONFIG 18512 18513_LT_EOF 18514 18515 cat <<'_LT_EOF' >> "$cfgfile" 18516 18517# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18518 18519# func_munge_path_list VARIABLE PATH 18520# ----------------------------------- 18521# VARIABLE is name of variable containing _space_ separated list of 18522# directories to be munged by the contents of PATH, which is string 18523# having a format: 18524# "DIR[:DIR]:" 18525# string "DIR[ DIR]" will be prepended to VARIABLE 18526# ":DIR[:DIR]" 18527# string "DIR[ DIR]" will be appended to VARIABLE 18528# "DIRP[:DIRP]::[DIRA:]DIRA" 18529# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18530# "DIRA[ DIRA]" will be appended to VARIABLE 18531# "DIR[:DIR]" 18532# VARIABLE will be replaced by "DIR[ DIR]" 18533func_munge_path_list () 18534{ 18535 case x$2 in 18536 x) 18537 ;; 18538 *:) 18539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18540 ;; 18541 x:*) 18542 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18543 ;; 18544 *::*) 18545 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18546 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18547 ;; 18548 *) 18549 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18550 ;; 18551 esac 18552} 18553 18554 18555# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18556func_cc_basename () 18557{ 18558 for cc_temp in $*""; do 18559 case $cc_temp in 18560 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18561 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18562 \-*) ;; 18563 *) break;; 18564 esac 18565 done 18566 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18567} 18568 18569 18570# ### END FUNCTIONS SHARED WITH CONFIGURE 18571 18572_LT_EOF 18573 18574 case $host_os in 18575 aix3*) 18576 cat <<\_LT_EOF >> "$cfgfile" 18577# AIX sometimes has problems with the GCC collect2 program. For some 18578# reason, if we set the COLLECT_NAMES environment variable, the problems 18579# vanish in a puff of smoke. 18580if test set != "${COLLECT_NAMES+set}"; then 18581 COLLECT_NAMES= 18582 export COLLECT_NAMES 18583fi 18584_LT_EOF 18585 ;; 18586 esac 18587 18588 18589ltmain=$ac_aux_dir/ltmain.sh 18590 18591 18592 # We use sed instead of cat because bash on DJGPP gets confused if 18593 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18594 # text mode, it properly converts lines to CR/LF. This bash problem 18595 # is reportedly fixed, but why not run on old versions too? 18596 sed '$q' "$ltmain" >> "$cfgfile" \ 18597 || (rm -f "$cfgfile"; exit 1) 18598 18599 mv -f "$cfgfile" "$ofile" || 18600 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18601 chmod +x "$ofile" 18602 18603 ;; 18604 "build/apxs-wrapper":F) chmod +x build/apxs-wrapper ;; 18605 "mlogc/mlogc-batch-load.pl":F) chmod +x mlogc/mlogc-batch-load.pl ;; 18606 "tests/run-unit-tests.pl":F) chmod +x tests/run-unit-tests.pl ;; 18607 "tests/run-regression-tests.pl":F) chmod +x tests/run-regression-tests.pl ;; 18608 "tests/gen_rx-pm.pl":F) chmod +x tests/gen_rx-pm.pl ;; 18609 "tests/csv_rx-pm.pl":F) chmod +x tests/csv_rx-pm.pl ;; 18610 "tools/rules-updater.pl":F) chmod +x tools/rules-updater.pl ;; 18611 18612 esac 18613done # for ac_tag 18614 18615 18616as_fn_exit 0 18617_ACEOF 18618ac_clean_files=$ac_clean_files_save 18619 18620test $ac_write_fail = 0 || 18621 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18622 18623 18624# configure is writing to config.log, and then calls config.status. 18625# config.status does its own redirection, appending to config.log. 18626# Unfortunately, on DOS this fails, as config.log is still kept open 18627# by configure, so config.status won't be able to write to it; its 18628# output is simply discarded. So we exec the FD to /dev/null, 18629# effectively closing config.log, so it can be properly (re)opened and 18630# appended to by config.status. When coming back to configure, we 18631# need to make the FD available again. 18632if test "$no_create" != yes; then 18633 ac_cs_success=: 18634 ac_config_status_args= 18635 test "$silent" = yes && 18636 ac_config_status_args="$ac_config_status_args --quiet" 18637 exec 5>/dev/null 18638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18639 exec 5>>config.log 18640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18641 # would make configure fail if this is the last instruction. 18642 $ac_cs_success || as_fn_exit 1 18643fi 18644if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18646$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18647fi 18648 18649