1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for OpenVPN 2.3.1. 4# 5# Report bugs to <openvpn-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and openvpn-users@lists.sourceforge.net 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='OpenVPN' 592PACKAGE_TARNAME='openvpn' 593PACKAGE_VERSION='2.3.1' 594PACKAGE_STRING='OpenVPN 2.3.1' 595PACKAGE_BUGREPORT='openvpn-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="src/openvpn/syshead.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639sampledir 640plugindir 641ENABLE_PLUGIN_DOWN_ROOT_FALSE 642ENABLE_PLUGIN_DOWN_ROOT_TRUE 643ENABLE_PLUGIN_AUTH_PAM_FALSE 644ENABLE_PLUGIN_AUTH_PAM_TRUE 645GIT_CHECKOUT_FALSE 646GIT_CHECKOUT_TRUE 647WIN32_FALSE 648WIN32_TRUE 649PLUGIN_AUTH_PAM_LIBS 650PLUGIN_AUTH_PAM_CFLAGS 651OPTIONAL_PKCS11_HELPER_LIBS 652OPTIONAL_PKCS11_HELPER_CFLAGS 653OPTIONAL_LZO_LIBS 654OPTIONAL_LZO_CFLAGS 655OPTIONAL_CRYPTO_LIBS 656OPTIONAL_CRYPTO_CFLAGS 657OPTIONAL_SELINUX_LIBS 658OPTIONAL_DL_LIBS 659TAP_WIN_MIN_MINOR 660TAP_WIN_MIN_MAJOR 661TAP_WIN_COMPONENT_ID 662LZO_LIBS 663LZO_CFLAGS 664POLARSSL_LIBS 665POLARSSL_CFLAGS 666OPENSSL_SSL_LIBS 667OPENSSL_SSL_CFLAGS 668OPENSSL_CRYPTO_LIBS 669OPENSSL_CRYPTO_CFLAGS 670PKCS11_HELPER_LIBS 671PKCS11_HELPER_CFLAGS 672LIBPAM_LIBS 673LIBPAM_CFLAGS 674SELINUX_LIBS 675TAP_CFLAGS 676SOCKETS_LIBS 677DL_LIBS 678RC 679OTOOL64 680OTOOL 681LIPO 682NMEDIT 683DSYMUTIL 684MANIFEST_TOOL 685RANLIB 686ac_ct_AR 687AR 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693LIBTOOL 694OBJDUMP 695DLLTOOL 696AS 697GIT 698MAN2HTML 699NETSTAT 700IPROUTE 701ROUTE 702IFCONFIG 703SED 704LN_S 705PKG_CONFIG_LIBDIR 706PKG_CONFIG_PATH 707PKG_CONFIG 708EGREP 709GREP 710CPP 711am__fastdepCC_FALSE 712am__fastdepCC_TRUE 713CCDEPMODE 714am__nodep 715AMDEPBACKSLASH 716AMDEP_FALSE 717AMDEP_TRUE 718am__quote 719am__include 720DEPDIR 721OBJEXT 722EXEEXT 723ac_ct_CC 724CPPFLAGS 725LDFLAGS 726CFLAGS 727CC 728host_os 729host_vendor 730host_cpu 731host 732build_os 733build_vendor 734build_cpu 735build 736am__untar 737am__tar 738AMTAR 739am__leading_dot 740SET_MAKE 741AWK 742mkdir_p 743MKDIR_P 744INSTALL_STRIP_PROGRAM 745STRIP 746install_sh 747MAKEINFO 748AUTOHEADER 749AUTOMAKE 750AUTOCONF 751ACLOCAL 752VERSION 753PACKAGE 754CYGPATH_W 755am__isrc 756INSTALL_DATA 757INSTALL_SCRIPT 758INSTALL_PROGRAM 759target_alias 760host_alias 761build_alias 762LIBS 763ECHO_T 764ECHO_N 765ECHO_C 766DEFS 767mandir 768localedir 769libdir 770psdir 771pdfdir 772dvidir 773htmldir 774infodir 775docdir 776oldincludedir 777includedir 778localstatedir 779sharedstatedir 780sysconfdir 781datadir 782datarootdir 783libexecdir 784sbindir 785bindir 786program_transform_name 787prefix 788exec_prefix 789PACKAGE_URL 790PACKAGE_BUGREPORT 791PACKAGE_STRING 792PACKAGE_VERSION 793PACKAGE_TARNAME 794PACKAGE_NAME 795PATH_SEPARATOR 796SHELL' 797ac_subst_files='' 798ac_user_opts=' 799enable_option_checking 800enable_dependency_tracking 801enable_lzo 802enable_lzo_stub 803enable_crypto 804enable_ssl 805enable_x509_alt_username 806enable_multi 807enable_server 808enable_plugins 809enable_eurephia 810enable_management 811enable_pkcs11 812enable_socks 813enable_http_proxy 814enable_fragment 815enable_multihome 816enable_port_share 817enable_debug 818enable_small 819enable_password_save 820enable_iproute2 821enable_def_auth 822enable_pf 823enable_plugin_auth_pam 824enable_plugin_down_root 825enable_pam_dlopen 826enable_strict 827enable_pedantic 828enable_strict_options 829enable_selinux 830enable_systemd 831with_special_build 832with_mem_check 833with_crypto_library 834with_plugindir 835enable_shared 836enable_static 837with_pic 838enable_fast_install 839with_gnu_ld 840with_sysroot 841enable_libtool_lock 842' 843 ac_precious_vars='build_alias 844host_alias 845target_alias 846CC 847CFLAGS 848LDFLAGS 849LIBS 850CPPFLAGS 851CPP 852PKG_CONFIG 853PKG_CONFIG_PATH 854PKG_CONFIG_LIBDIR 855IFCONFIG 856ROUTE 857IPROUTE 858NETSTAT 859MAN2HTML 860GIT 861TAP_CFLAGS 862LIBPAM_CFLAGS 863LIBPAM_LIBS 864PKCS11_HELPER_CFLAGS 865PKCS11_HELPER_LIBS 866OPENSSL_CRYPTO_CFLAGS 867OPENSSL_CRYPTO_LIBS 868OPENSSL_SSL_CFLAGS 869OPENSSL_SSL_LIBS 870POLARSSL_CFLAGS 871POLARSSL_LIBS 872LZO_CFLAGS 873LZO_LIBS' 874 875 876# Initialize some variables set by options. 877ac_init_help= 878ac_init_version=false 879ac_unrecognized_opts= 880ac_unrecognized_sep= 881# The variables have the same names as the options, with 882# dashes changed to underlines. 883cache_file=/dev/null 884exec_prefix=NONE 885no_create= 886no_recursion= 887prefix=NONE 888program_prefix=NONE 889program_suffix=NONE 890program_transform_name=s,x,x, 891silent= 892site= 893srcdir= 894verbose= 895x_includes=NONE 896x_libraries=NONE 897 898# Installation directory options. 899# These are left unexpanded so users can "make install exec_prefix=/foo" 900# and all the variables that are supposed to be based on exec_prefix 901# by default will actually change. 902# Use braces instead of parens because sh, perl, etc. also accept them. 903# (The list follows the same order as the GNU Coding Standards.) 904bindir='${exec_prefix}/bin' 905sbindir='${exec_prefix}/sbin' 906libexecdir='${exec_prefix}/libexec' 907datarootdir='${prefix}/share' 908datadir='${datarootdir}' 909sysconfdir='${prefix}/etc' 910sharedstatedir='${prefix}/com' 911localstatedir='${prefix}/var' 912includedir='${prefix}/include' 913oldincludedir='/usr/include' 914docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 915infodir='${datarootdir}/info' 916htmldir='${docdir}' 917dvidir='${docdir}' 918pdfdir='${docdir}' 919psdir='${docdir}' 920libdir='${exec_prefix}/lib' 921localedir='${datarootdir}/locale' 922mandir='${datarootdir}/man' 923 924ac_prev= 925ac_dashdash= 926for ac_option 927do 928 # If the previous option needs an argument, assign it. 929 if test -n "$ac_prev"; then 930 eval $ac_prev=\$ac_option 931 ac_prev= 932 continue 933 fi 934 935 case $ac_option in 936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 937 *=) ac_optarg= ;; 938 *) ac_optarg=yes ;; 939 esac 940 941 # Accept the important Cygnus configure options, so we can diagnose typos. 942 943 case $ac_dashdash$ac_option in 944 --) 945 ac_dashdash=yes ;; 946 947 -bindir | --bindir | --bindi | --bind | --bin | --bi) 948 ac_prev=bindir ;; 949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 950 bindir=$ac_optarg ;; 951 952 -build | --build | --buil | --bui | --bu) 953 ac_prev=build_alias ;; 954 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 955 build_alias=$ac_optarg ;; 956 957 -cache-file | --cache-file | --cache-fil | --cache-fi \ 958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 959 ac_prev=cache_file ;; 960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 962 cache_file=$ac_optarg ;; 963 964 --config-cache | -C) 965 cache_file=config.cache ;; 966 967 -datadir | --datadir | --datadi | --datad) 968 ac_prev=datadir ;; 969 -datadir=* | --datadir=* | --datadi=* | --datad=*) 970 datadir=$ac_optarg ;; 971 972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 973 | --dataroo | --dataro | --datar) 974 ac_prev=datarootdir ;; 975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 977 datarootdir=$ac_optarg ;; 978 979 -disable-* | --disable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: $ac_useropt" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988"enable_$ac_useropt" 989"*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=no ;; 994 995 -docdir | --docdir | --docdi | --doc | --do) 996 ac_prev=docdir ;; 997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 998 docdir=$ac_optarg ;; 999 1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1001 ac_prev=dvidir ;; 1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1003 dvidir=$ac_optarg ;; 1004 1005 -enable-* | --enable-*) 1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1007 # Reject names that are not valid shell variable names. 1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1009 as_fn_error $? "invalid feature name: $ac_useropt" 1010 ac_useropt_orig=$ac_useropt 1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1012 case $ac_user_opts in 1013 *" 1014"enable_$ac_useropt" 1015"*) ;; 1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1017 ac_unrecognized_sep=', ';; 1018 esac 1019 eval enable_$ac_useropt=\$ac_optarg ;; 1020 1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1023 | --exec | --exe | --ex) 1024 ac_prev=exec_prefix ;; 1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1027 | --exec=* | --exe=* | --ex=*) 1028 exec_prefix=$ac_optarg ;; 1029 1030 -gas | --gas | --ga | --g) 1031 # Obsolete; use --with-gas. 1032 with_gas=yes ;; 1033 1034 -help | --help | --hel | --he | -h) 1035 ac_init_help=long ;; 1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1037 ac_init_help=recursive ;; 1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1039 ac_init_help=short ;; 1040 1041 -host | --host | --hos | --ho) 1042 ac_prev=host_alias ;; 1043 -host=* | --host=* | --hos=* | --ho=*) 1044 host_alias=$ac_optarg ;; 1045 1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1047 ac_prev=htmldir ;; 1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1049 | --ht=*) 1050 htmldir=$ac_optarg ;; 1051 1052 -includedir | --includedir | --includedi | --included | --include \ 1053 | --includ | --inclu | --incl | --inc) 1054 ac_prev=includedir ;; 1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1056 | --includ=* | --inclu=* | --incl=* | --inc=*) 1057 includedir=$ac_optarg ;; 1058 1059 -infodir | --infodir | --infodi | --infod | --info | --inf) 1060 ac_prev=infodir ;; 1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1062 infodir=$ac_optarg ;; 1063 1064 -libdir | --libdir | --libdi | --libd) 1065 ac_prev=libdir ;; 1066 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1067 libdir=$ac_optarg ;; 1068 1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1070 | --libexe | --libex | --libe) 1071 ac_prev=libexecdir ;; 1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1073 | --libexe=* | --libex=* | --libe=*) 1074 libexecdir=$ac_optarg ;; 1075 1076 -localedir | --localedir | --localedi | --localed | --locale) 1077 ac_prev=localedir ;; 1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1079 localedir=$ac_optarg ;; 1080 1081 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1082 | --localstate | --localstat | --localsta | --localst | --locals) 1083 ac_prev=localstatedir ;; 1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1086 localstatedir=$ac_optarg ;; 1087 1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1089 ac_prev=mandir ;; 1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1091 mandir=$ac_optarg ;; 1092 1093 -nfp | --nfp | --nf) 1094 # Obsolete; use --without-fp. 1095 with_fp=no ;; 1096 1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1098 | --no-cr | --no-c | -n) 1099 no_create=yes ;; 1100 1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1103 no_recursion=yes ;; 1104 1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1107 | --oldin | --oldi | --old | --ol | --o) 1108 ac_prev=oldincludedir ;; 1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1112 oldincludedir=$ac_optarg ;; 1113 1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1115 ac_prev=prefix ;; 1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1117 prefix=$ac_optarg ;; 1118 1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1120 | --program-pre | --program-pr | --program-p) 1121 ac_prev=program_prefix ;; 1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1124 program_prefix=$ac_optarg ;; 1125 1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1127 | --program-suf | --program-su | --program-s) 1128 ac_prev=program_suffix ;; 1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1131 program_suffix=$ac_optarg ;; 1132 1133 -program-transform-name | --program-transform-name \ 1134 | --program-transform-nam | --program-transform-na \ 1135 | --program-transform-n | --program-transform- \ 1136 | --program-transform | --program-transfor \ 1137 | --program-transfo | --program-transf \ 1138 | --program-trans | --program-tran \ 1139 | --progr-tra | --program-tr | --program-t) 1140 ac_prev=program_transform_name ;; 1141 -program-transform-name=* | --program-transform-name=* \ 1142 | --program-transform-nam=* | --program-transform-na=* \ 1143 | --program-transform-n=* | --program-transform-=* \ 1144 | --program-transform=* | --program-transfor=* \ 1145 | --program-transfo=* | --program-transf=* \ 1146 | --program-trans=* | --program-tran=* \ 1147 | --progr-tra=* | --program-tr=* | --program-t=*) 1148 program_transform_name=$ac_optarg ;; 1149 1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1151 ac_prev=pdfdir ;; 1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1153 pdfdir=$ac_optarg ;; 1154 1155 -psdir | --psdir | --psdi | --psd | --ps) 1156 ac_prev=psdir ;; 1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1158 psdir=$ac_optarg ;; 1159 1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1161 | -silent | --silent | --silen | --sile | --sil) 1162 silent=yes ;; 1163 1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1165 ac_prev=sbindir ;; 1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1167 | --sbi=* | --sb=*) 1168 sbindir=$ac_optarg ;; 1169 1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1172 | --sharedst | --shareds | --shared | --share | --shar \ 1173 | --sha | --sh) 1174 ac_prev=sharedstatedir ;; 1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1178 | --sha=* | --sh=*) 1179 sharedstatedir=$ac_optarg ;; 1180 1181 -site | --site | --sit) 1182 ac_prev=site ;; 1183 -site=* | --site=* | --sit=*) 1184 site=$ac_optarg ;; 1185 1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1187 ac_prev=srcdir ;; 1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1189 srcdir=$ac_optarg ;; 1190 1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1192 | --syscon | --sysco | --sysc | --sys | --sy) 1193 ac_prev=sysconfdir ;; 1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1196 sysconfdir=$ac_optarg ;; 1197 1198 -target | --target | --targe | --targ | --tar | --ta | --t) 1199 ac_prev=target_alias ;; 1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1201 target_alias=$ac_optarg ;; 1202 1203 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1204 verbose=yes ;; 1205 1206 -version | --version | --versio | --versi | --vers | -V) 1207 ac_init_version=: ;; 1208 1209 -with-* | --with-*) 1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1211 # Reject names that are not valid shell variable names. 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1213 as_fn_error $? "invalid package name: $ac_useropt" 1214 ac_useropt_orig=$ac_useropt 1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1216 case $ac_user_opts in 1217 *" 1218"with_$ac_useropt" 1219"*) ;; 1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1221 ac_unrecognized_sep=', ';; 1222 esac 1223 eval with_$ac_useropt=\$ac_optarg ;; 1224 1225 -without-* | --without-*) 1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1229 as_fn_error $? "invalid package name: $ac_useropt" 1230 ac_useropt_orig=$ac_useropt 1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1232 case $ac_user_opts in 1233 *" 1234"with_$ac_useropt" 1235"*) ;; 1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1237 ac_unrecognized_sep=', ';; 1238 esac 1239 eval with_$ac_useropt=no ;; 1240 1241 --x) 1242 # Obsolete; use --with-x. 1243 with_x=yes ;; 1244 1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1246 | --x-incl | --x-inc | --x-in | --x-i) 1247 ac_prev=x_includes ;; 1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1250 x_includes=$ac_optarg ;; 1251 1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1254 ac_prev=x_libraries ;; 1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1257 x_libraries=$ac_optarg ;; 1258 1259 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1260Try \`$0 --help' for more information" 1261 ;; 1262 1263 *=*) 1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1265 # Reject names that are not valid shell variable names. 1266 case $ac_envvar in #( 1267 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1269 esac 1270 eval $ac_envvar=\$ac_optarg 1271 export $ac_envvar ;; 1272 1273 *) 1274 # FIXME: should be removed in autoconf 3.0. 1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1279 ;; 1280 1281 esac 1282done 1283 1284if test -n "$ac_prev"; then 1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1286 as_fn_error $? "missing argument to $ac_option" 1287fi 1288 1289if test -n "$ac_unrecognized_opts"; then 1290 case $enable_option_checking in 1291 no) ;; 1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1294 esac 1295fi 1296 1297# Check all directory arguments for consistency. 1298for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1299 datadir sysconfdir sharedstatedir localstatedir includedir \ 1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1301 libdir localedir mandir 1302do 1303 eval ac_val=\$$ac_var 1304 # Remove trailing slashes. 1305 case $ac_val in 1306 */ ) 1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1308 eval $ac_var=\$ac_val;; 1309 esac 1310 # Be sure to have absolute directory names. 1311 case $ac_val in 1312 [\\/$]* | ?:[\\/]* ) continue;; 1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1314 esac 1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1316done 1317 1318# There might be people who depend on the old broken behavior: `$host' 1319# used to hold the argument of --host etc. 1320# FIXME: To remove some day. 1321build=$build_alias 1322host=$host_alias 1323target=$target_alias 1324 1325# FIXME: To remove some day. 1326if test "x$host_alias" != x; then 1327 if test "x$build_alias" = x; then 1328 cross_compiling=maybe 1329 elif test "x$build_alias" != "x$host_alias"; then 1330 cross_compiling=yes 1331 fi 1332fi 1333 1334ac_tool_prefix= 1335test -n "$host_alias" && ac_tool_prefix=$host_alias- 1336 1337test "$silent" = yes && exec 6>/dev/null 1338 1339 1340ac_pwd=`pwd` && test -n "$ac_pwd" && 1341ac_ls_di=`ls -di .` && 1342ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1343 as_fn_error $? "working directory cannot be determined" 1344test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1345 as_fn_error $? "pwd does not report name of working directory" 1346 1347 1348# Find the source files, if location was not specified. 1349if test -z "$srcdir"; then 1350 ac_srcdir_defaulted=yes 1351 # Try the directory containing this script, then the parent directory. 1352 ac_confdir=`$as_dirname -- "$as_myself" || 1353$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1354 X"$as_myself" : 'X\(//\)[^/]' \| \ 1355 X"$as_myself" : 'X\(//\)$' \| \ 1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1357$as_echo X"$as_myself" | 1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)[^/].*/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\/\)$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\).*/{ 1371 s//\1/ 1372 q 1373 } 1374 s/.*/./; q'` 1375 srcdir=$ac_confdir 1376 if test ! -r "$srcdir/$ac_unique_file"; then 1377 srcdir=.. 1378 fi 1379else 1380 ac_srcdir_defaulted=no 1381fi 1382if test ! -r "$srcdir/$ac_unique_file"; then 1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1385fi 1386ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1387ac_abs_confdir=`( 1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1389 pwd)` 1390# When building in place, set srcdir=. 1391if test "$ac_abs_confdir" = "$ac_pwd"; then 1392 srcdir=. 1393fi 1394# Remove unnecessary trailing slashes from srcdir. 1395# Double slashes in file names in object file debugging info 1396# mess up M-x gdb in Emacs. 1397case $srcdir in 1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1399esac 1400for ac_var in $ac_precious_vars; do 1401 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_env_${ac_var}_value=\$${ac_var} 1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1405done 1406 1407# 1408# Report the --help message. 1409# 1410if test "$ac_init_help" = "long"; then 1411 # Omit some internal or obsolete options to make the list less imposing. 1412 # This message is too long to be a string in the A/UX 3.1 sh. 1413 cat <<_ACEOF 1414\`configure' configures OpenVPN 2.3.1 to adapt to many kinds of systems. 1415 1416Usage: $0 [OPTION]... [VAR=VALUE]... 1417 1418To assign environment variables (e.g., CC, CFLAGS...), specify them as 1419VAR=VALUE. See below for descriptions of some of the useful variables. 1420 1421Defaults for the options are specified in brackets. 1422 1423Configuration: 1424 -h, --help display this help and exit 1425 --help=short display options specific to this package 1426 --help=recursive display the short help of all the included packages 1427 -V, --version display version information and exit 1428 -q, --quiet, --silent do not print \`checking ...' messages 1429 --cache-file=FILE cache test results in FILE [disabled] 1430 -C, --config-cache alias for \`--cache-file=config.cache' 1431 -n, --no-create do not create output files 1432 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1433 1434Installation directories: 1435 --prefix=PREFIX install architecture-independent files in PREFIX 1436 [$ac_default_prefix] 1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1438 [PREFIX] 1439 1440By default, \`make install' will install all the files in 1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1442an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1443for instance \`--prefix=\$HOME'. 1444 1445For better control, use the options below. 1446 1447Fine tuning of the installation directories: 1448 --bindir=DIR user executables [EPREFIX/bin] 1449 --sbindir=DIR system admin executables [EPREFIX/sbin] 1450 --libexecdir=DIR program executables [EPREFIX/libexec] 1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1454 --libdir=DIR object code libraries [EPREFIX/lib] 1455 --includedir=DIR C header files [PREFIX/include] 1456 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1459 --infodir=DIR info documentation [DATAROOTDIR/info] 1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1461 --mandir=DIR man documentation [DATAROOTDIR/man] 1462 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn] 1463 --htmldir=DIR html documentation [DOCDIR] 1464 --dvidir=DIR dvi documentation [DOCDIR] 1465 --pdfdir=DIR pdf documentation [DOCDIR] 1466 --psdir=DIR ps documentation [DOCDIR] 1467_ACEOF 1468 1469 cat <<\_ACEOF 1470 1471Program names: 1472 --program-prefix=PREFIX prepend PREFIX to installed program names 1473 --program-suffix=SUFFIX append SUFFIX to installed program names 1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1475 1476System types: 1477 --build=BUILD configure for building on BUILD [guessed] 1478 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1479_ACEOF 1480fi 1481 1482if test -n "$ac_init_help"; then 1483 case $ac_init_help in 1484 short | recursive ) echo "Configuration of OpenVPN 2.3.1:";; 1485 esac 1486 cat <<\_ACEOF 1487 1488Optional Features: 1489 --disable-option-checking ignore unrecognized --enable/--with options 1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1492 --disable-dependency-tracking speeds up one-time build 1493 --enable-dependency-tracking do not reject slow dependency extractors 1494 --disable-lzo disable LZO compression support [default=yes] 1495 --enable-lzo-stub don't compile LZO compression support but still 1496 allow limited interoperability with LZO-enabled 1497 peers [default=no] 1498 --disable-crypto disable crypto support [default=yes] 1499 --disable-ssl disable SSL support for TLS-based key exchange 1500 [default=yes] 1501 --enable-x509-alt-username 1502 enable the --x509-username-field feature 1503 [default=no] 1504 --disable-multi disable client/server support (--mode server + 1505 client mode) [default=yes] 1506 --disable-server disable server support only (but retain client 1507 support) [default=yes] 1508 --disable-plugins disable plug-in support [default=yes] 1509 --disable-eurephia disable support for the eurephia plug-in 1510 [default=yes] 1511 --disable-management disable management server support [default=yes] 1512 --enable-pkcs11 enable pkcs11 support [default=no] 1513 --disable-socks disable Socks support [default=yes] 1514 --disable-http-proxy disable HTTP proxy support [default=yes] 1515 --disable-fragment disable internal fragmentation support (--fragment) 1516 [default=yes] 1517 --disable-multihome disable multi-homed UDP server support (--multihome) 1518 [default=yes] 1519 --disable-port-share disable TCP server port-share support (--port-share) 1520 [default=yes] 1521 --disable-debug disable debugging support (disable gremlin and verb 1522 7+ messages) [default=yes] 1523 --enable-small enable smaller executable size (disable OCC, usage 1524 message, and verb 4 parm list) [default=yes] 1525 --enable-password-save allow --askpass and --auth-user-pass passwords to be 1526 read from a file [default=yes] 1527 --enable-iproute2 enable support for iproute2 [default=no] 1528 --disable-def-auth disable deferred authentication [default=yes] 1529 --disable-pf disable internal packet filter [default=yes] 1530 --disable-plugin-auth-pam 1531 disable auth-pam plugin [default=platform specific] 1532 --disable-plugin-down-root 1533 disable down-root plugin [default=platform specific] 1534 --enable-pam-dlopen dlopen libpam [default=no] 1535 --enable-strict enable strict compiler warnings (debugging option) 1536 [default=no] 1537 --enable-pedantic enable pedantic compiler warnings, will not generate 1538 a working executable (debugging option) [default=no] 1539 --enable-strict-options enable strict options check between peers (debugging 1540 option) [default=no] 1541 --enable-selinux enable SELinux support [default=no] 1542 --enable-systemd enable systemd suppport [default=no] 1543 --enable-shared[=PKGS] build shared libraries [default=yes] 1544 --enable-static[=PKGS] build static libraries [default=yes] 1545 --enable-fast-install[=PKGS] 1546 optimize for fast installation [default=yes] 1547 --disable-libtool-lock avoid locking (might break parallel builds) 1548 1549Optional Packages: 1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1552 --with-special-build=STRING 1553 specify special build string 1554 --with-mem-check=TYPE build with debug memory checking, 1555 TYPE=no|dmalloc|valgrind|ssl [default=no] 1556 --with-crypto-library=library 1557 build with the given crypto library, 1558 TYPE=openssl|polarssl [default=openssl] 1559 --with-plugindir plugin directory [default=LIBDIR/openvpn] 1560 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1561 both] 1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1563 --with-sysroot=DIR Search for dependent libraries within DIR 1564 (or the compiler's sysroot if not specified). 1565 1566Some influential environment variables: 1567 CC C compiler command 1568 CFLAGS C compiler flags 1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1570 nonstandard directory <lib dir> 1571 LIBS libraries to pass to the linker, e.g. -l<library> 1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1573 you have headers in a nonstandard directory <include dir> 1574 CPP C preprocessor 1575 PKG_CONFIG path to pkg-config utility 1576 PKG_CONFIG_PATH 1577 directories to add to pkg-config's search path 1578 PKG_CONFIG_LIBDIR 1579 path overriding pkg-config's built-in search path 1580 IFCONFIG full path to ipconfig utility 1581 ROUTE full path to route utility 1582 IPROUTE full path to ip utility 1583 NETSTAT path to netstat utility 1584 MAN2HTML path to man2html utility 1585 GIT path to git utility 1586 TAP_CFLAGS C compiler flags for tap 1587 LIBPAM_CFLAGS 1588 C compiler flags for libpam 1589 LIBPAM_LIBS linker flags for libpam 1590 PKCS11_HELPER_CFLAGS 1591 C compiler flags for PKCS11_HELPER, overriding pkg-config 1592 PKCS11_HELPER_LIBS 1593 linker flags for PKCS11_HELPER, overriding pkg-config 1594 OPENSSL_CRYPTO_CFLAGS 1595 C compiler flags for OPENSSL_CRYPTO, overriding pkg-config 1596 OPENSSL_CRYPTO_LIBS 1597 linker flags for OPENSSL_CRYPTO, overriding pkg-config 1598 OPENSSL_SSL_CFLAGS 1599 C compiler flags for OPENSSL_SSL, overriding pkg-config 1600 OPENSSL_SSL_LIBS 1601 linker flags for OPENSSL_SSL, overriding pkg-config 1602 POLARSSL_CFLAGS 1603 C compiler flags for polarssl 1604 POLARSSL_LIBS 1605 linker flags for polarssl 1606 LZO_CFLAGS C compiler flags for lzo 1607 LZO_LIBS linker flags for lzo 1608 1609Use these variables to override the choices made by `configure' or to help 1610it to find libraries and programs with nonstandard names/locations. 1611 1612Report bugs to <openvpn-users@lists.sourceforge.net>. 1613_ACEOF 1614ac_status=$? 1615fi 1616 1617if test "$ac_init_help" = "recursive"; then 1618 # If there are subdirs, report their specific --help. 1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1620 test -d "$ac_dir" || 1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1622 continue 1623 ac_builddir=. 1624 1625case "$ac_dir" in 1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1627*) 1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1629 # A ".." for each directory in $ac_dir_suffix. 1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1631 case $ac_top_builddir_sub in 1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1634 esac ;; 1635esac 1636ac_abs_top_builddir=$ac_pwd 1637ac_abs_builddir=$ac_pwd$ac_dir_suffix 1638# for backward compatibility: 1639ac_top_builddir=$ac_top_build_prefix 1640 1641case $srcdir in 1642 .) # We are building in place. 1643 ac_srcdir=. 1644 ac_top_srcdir=$ac_top_builddir_sub 1645 ac_abs_top_srcdir=$ac_pwd ;; 1646 [\\/]* | ?:[\\/]* ) # Absolute name. 1647 ac_srcdir=$srcdir$ac_dir_suffix; 1648 ac_top_srcdir=$srcdir 1649 ac_abs_top_srcdir=$srcdir ;; 1650 *) # Relative name. 1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1652 ac_top_srcdir=$ac_top_build_prefix$srcdir 1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1654esac 1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1656 1657 cd "$ac_dir" || { ac_status=$?; continue; } 1658 # Check for guested configure. 1659 if test -f "$ac_srcdir/configure.gnu"; then 1660 echo && 1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1662 elif test -f "$ac_srcdir/configure"; then 1663 echo && 1664 $SHELL "$ac_srcdir/configure" --help=recursive 1665 else 1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1667 fi || ac_status=$? 1668 cd "$ac_pwd" || { ac_status=$?; break; } 1669 done 1670fi 1671 1672test -n "$ac_init_help" && exit $ac_status 1673if $ac_init_version; then 1674 cat <<\_ACEOF 1675OpenVPN configure 2.3.1 1676generated by GNU Autoconf 2.69 1677 1678Copyright (C) 2012 Free Software Foundation, Inc. 1679This configure script is free software; the Free Software Foundation 1680gives unlimited permission to copy, distribute and modify it. 1681_ACEOF 1682 exit 1683fi 1684 1685## ------------------------ ## 1686## Autoconf initialization. ## 1687## ------------------------ ## 1688 1689# ac_fn_c_try_compile LINENO 1690# -------------------------- 1691# Try to compile conftest.$ac_ext, and return whether this succeeded. 1692ac_fn_c_try_compile () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 rm -f conftest.$ac_objext 1696 if { { ac_try="$ac_compile" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_compile") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } && { 1712 test -z "$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 } && test -s conftest.$ac_objext; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721fi 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_compile 1726 1727# ac_fn_c_try_cpp LINENO 1728# ---------------------- 1729# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1730ac_fn_c_try_cpp () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 if { { ac_try="$ac_cpp conftest.$ac_ext" 1734case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737esac 1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739$as_echo "$ac_try_echo"; } >&5 1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1741 ac_status=$? 1742 if test -s conftest.err; then 1743 grep -v '^ *+' conftest.err >conftest.er1 1744 cat conftest.er1 >&5 1745 mv -f conftest.er1 conftest.err 1746 fi 1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } > conftest.i && { 1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1750 test ! -s conftest.err 1751 }; then : 1752 ac_retval=0 1753else 1754 $as_echo "$as_me: failed program was:" >&5 1755sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=1 1758fi 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_cpp 1763 1764# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1765# ------------------------------------------------------- 1766# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1767# the include files in INCLUDES and setting the cache variable VAR 1768# accordingly. 1769ac_fn_c_check_header_mongrel () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 if eval \${$3+:} false; then : 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774$as_echo_n "checking for $2... " >&6; } 1775if eval \${$3+:} false; then : 1776 $as_echo_n "(cached) " >&6 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781else 1782 # Is the header compilable? 1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1784$as_echo_n "checking $2 usability... " >&6; } 1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1786/* end confdefs.h. */ 1787$4 1788#include <$2> 1789_ACEOF 1790if ac_fn_c_try_compile "$LINENO"; then : 1791 ac_header_compiler=yes 1792else 1793 ac_header_compiler=no 1794fi 1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1797$as_echo "$ac_header_compiler" >&6; } 1798 1799# Is the header present? 1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1801$as_echo_n "checking $2 presence... " >&6; } 1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803/* end confdefs.h. */ 1804#include <$2> 1805_ACEOF 1806if ac_fn_c_try_cpp "$LINENO"; then : 1807 ac_header_preproc=yes 1808else 1809 ac_header_preproc=no 1810fi 1811rm -f conftest.err conftest.i conftest.$ac_ext 1812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1813$as_echo "$ac_header_preproc" >&6; } 1814 1815# So? What about this header? 1816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1817 yes:no: ) 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1819$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1822 ;; 1823 no:yes:* ) 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1825$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1827$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1829$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1831$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1834( $as_echo "## -------------------------------------------------- ## 1835## Report this to openvpn-users@lists.sourceforge.net ## 1836## -------------------------------------------------- ##" 1837 ) | sed "s/^/$as_me: WARNING: /" >&2 1838 ;; 1839esac 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1841$as_echo_n "checking for $2... " >&6; } 1842if eval \${$3+:} false; then : 1843 $as_echo_n "(cached) " >&6 1844else 1845 eval "$3=\$ac_header_compiler" 1846fi 1847eval ac_res=\$$3 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849$as_echo "$ac_res" >&6; } 1850fi 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 1853} # ac_fn_c_check_header_mongrel 1854 1855# ac_fn_c_try_run LINENO 1856# ---------------------- 1857# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1858# that executables *can* be run. 1859ac_fn_c_try_run () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 if { { ac_try="$ac_link" 1863case "(($ac_try" in 1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1865 *) ac_try_echo=$ac_try;; 1866esac 1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1868$as_echo "$ac_try_echo"; } >&5 1869 (eval "$ac_link") 2>&5 1870 ac_status=$? 1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1873 { { case "(($ac_try" in 1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1875 *) ac_try_echo=$ac_try;; 1876esac 1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1878$as_echo "$ac_try_echo"; } >&5 1879 (eval "$ac_try") 2>&5 1880 ac_status=$? 1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1882 test $ac_status = 0; }; }; then : 1883 ac_retval=0 1884else 1885 $as_echo "$as_me: program exited with status $ac_status" >&5 1886 $as_echo "$as_me: failed program was:" >&5 1887sed 's/^/| /' conftest.$ac_ext >&5 1888 1889 ac_retval=$ac_status 1890fi 1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1893 as_fn_set_status $ac_retval 1894 1895} # ac_fn_c_try_run 1896 1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1898# ------------------------------------------------------- 1899# Tests whether HEADER exists and can be compiled using the include files in 1900# INCLUDES, setting the cache variable VAR accordingly. 1901ac_fn_c_check_header_compile () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1905$as_echo_n "checking for $2... " >&6; } 1906if eval \${$3+:} false; then : 1907 $as_echo_n "(cached) " >&6 1908else 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911$4 1912#include <$2> 1913_ACEOF 1914if ac_fn_c_try_compile "$LINENO"; then : 1915 eval "$3=yes" 1916else 1917 eval "$3=no" 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920fi 1921eval ac_res=\$$3 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923$as_echo "$ac_res" >&6; } 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1926} # ac_fn_c_check_header_compile 1927 1928# ac_fn_c_try_link LINENO 1929# ----------------------- 1930# Try to link conftest.$ac_ext, and return whether this succeeded. 1931ac_fn_c_try_link () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 rm -f conftest.$ac_objext conftest$ac_exeext 1935 if { { ac_try="$ac_link" 1936case "(($ac_try" in 1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1938 *) ac_try_echo=$ac_try;; 1939esac 1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1941$as_echo "$ac_try_echo"; } >&5 1942 (eval "$ac_link") 2>conftest.err 1943 ac_status=$? 1944 if test -s conftest.err; then 1945 grep -v '^ *+' conftest.err >conftest.er1 1946 cat conftest.er1 >&5 1947 mv -f conftest.er1 conftest.err 1948 fi 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } && { 1951 test -z "$ac_c_werror_flag" || 1952 test ! -s conftest.err 1953 } && test -s conftest$ac_exeext && { 1954 test "$cross_compiling" = yes || 1955 test -x conftest$ac_exeext 1956 }; then : 1957 ac_retval=0 1958else 1959 $as_echo "$as_me: failed program was:" >&5 1960sed 's/^/| /' conftest.$ac_ext >&5 1961 1962 ac_retval=1 1963fi 1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1966 # interfere with the next link command; also delete a directory that is 1967 # left behind by Apple's compiler. We do this before executing the actions. 1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 as_fn_set_status $ac_retval 1971 1972} # ac_fn_c_try_link 1973 1974# ac_fn_c_check_func LINENO FUNC VAR 1975# ---------------------------------- 1976# Tests whether FUNC exists, setting the cache variable VAR accordingly 1977ac_fn_c_check_func () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1981$as_echo_n "checking for $2... " >&6; } 1982if eval \${$3+:} false; then : 1983 $as_echo_n "(cached) " >&6 1984else 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1989#define $2 innocuous_$2 1990 1991/* System header to define __stub macros and hopefully few prototypes, 1992 which can conflict with char $2 (); below. 1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1994 <limits.h> exists even on freestanding compilers. */ 1995 1996#ifdef __STDC__ 1997# include <limits.h> 1998#else 1999# include <assert.h> 2000#endif 2001 2002#undef $2 2003 2004/* Override any GCC internal prototype to avoid an error. 2005 Use char because int might match the return type of a GCC 2006 builtin and then its argument prototype would still apply. */ 2007#ifdef __cplusplus 2008extern "C" 2009#endif 2010char $2 (); 2011/* The GNU C library defines this for functions which it implements 2012 to always fail with ENOSYS. Some functions are actually named 2013 something starting with __ and the normal name is an alias. */ 2014#if defined __stub_$2 || defined __stub___$2 2015choke me 2016#endif 2017 2018int 2019main () 2020{ 2021return $2 (); 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_link "$LINENO"; then : 2027 eval "$3=yes" 2028else 2029 eval "$3=no" 2030fi 2031rm -f core conftest.err conftest.$ac_objext \ 2032 conftest$ac_exeext conftest.$ac_ext 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2038 2039} # ac_fn_c_check_func 2040 2041# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2042# ------------------------------------------- 2043# Tests whether TYPE exists after having included INCLUDES, setting cache 2044# variable VAR accordingly. 2045ac_fn_c_check_type () 2046{ 2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2049$as_echo_n "checking for $2... " >&6; } 2050if eval \${$3+:} false; then : 2051 $as_echo_n "(cached) " >&6 2052else 2053 eval "$3=no" 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$4 2057int 2058main () 2059{ 2060if (sizeof ($2)) 2061 return 0; 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_compile "$LINENO"; then : 2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2068/* end confdefs.h. */ 2069$4 2070int 2071main () 2072{ 2073if (sizeof (($2))) 2074 return 0; 2075 ; 2076 return 0; 2077} 2078_ACEOF 2079if ac_fn_c_try_compile "$LINENO"; then : 2080 2081else 2082 eval "$3=yes" 2083fi 2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2085fi 2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2087fi 2088eval ac_res=\$$3 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2090$as_echo "$ac_res" >&6; } 2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2092 2093} # ac_fn_c_check_type 2094 2095# ac_fn_c_find_intX_t LINENO BITS VAR 2096# ----------------------------------- 2097# Finds a signed integer type with width BITS, setting cache variable VAR 2098# accordingly. 2099ac_fn_c_find_intX_t () 2100{ 2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2103$as_echo_n "checking for int$2_t... " >&6; } 2104if eval \${$3+:} false; then : 2105 $as_echo_n "(cached) " >&6 2106else 2107 eval "$3=no" 2108 # Order is important - never check a type that is potentially smaller 2109 # than half of the expected target width. 2110 for ac_type in int$2_t 'int' 'long int' \ 2111 'long long int' 'short int' 'signed char'; do 2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2113/* end confdefs.h. */ 2114$ac_includes_default 2115 enum { N = $2 / 2 - 1 }; 2116int 2117main () 2118{ 2119static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2120test_array [0] = 0; 2121return test_array [0]; 2122 2123 ; 2124 return 0; 2125} 2126_ACEOF 2127if ac_fn_c_try_compile "$LINENO"; then : 2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2129/* end confdefs.h. */ 2130$ac_includes_default 2131 enum { N = $2 / 2 - 1 }; 2132int 2133main () 2134{ 2135static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2136 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2137test_array [0] = 0; 2138return test_array [0]; 2139 2140 ; 2141 return 0; 2142} 2143_ACEOF 2144if ac_fn_c_try_compile "$LINENO"; then : 2145 2146else 2147 case $ac_type in #( 2148 int$2_t) : 2149 eval "$3=yes" ;; #( 2150 *) : 2151 eval "$3=\$ac_type" ;; 2152esac 2153fi 2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2157 if eval test \"x\$"$3"\" = x"no"; then : 2158 2159else 2160 break 2161fi 2162 done 2163fi 2164eval ac_res=\$$3 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2166$as_echo "$ac_res" >&6; } 2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2168 2169} # ac_fn_c_find_intX_t 2170 2171# ac_fn_c_find_uintX_t LINENO BITS VAR 2172# ------------------------------------ 2173# Finds an unsigned integer type with width BITS, setting cache variable VAR 2174# accordingly. 2175ac_fn_c_find_uintX_t () 2176{ 2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2179$as_echo_n "checking for uint$2_t... " >&6; } 2180if eval \${$3+:} false; then : 2181 $as_echo_n "(cached) " >&6 2182else 2183 eval "$3=no" 2184 # Order is important - never check a type that is potentially smaller 2185 # than half of the expected target width. 2186 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2187 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2189/* end confdefs.h. */ 2190$ac_includes_default 2191int 2192main () 2193{ 2194static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2195test_array [0] = 0; 2196return test_array [0]; 2197 2198 ; 2199 return 0; 2200} 2201_ACEOF 2202if ac_fn_c_try_compile "$LINENO"; then : 2203 case $ac_type in #( 2204 uint$2_t) : 2205 eval "$3=yes" ;; #( 2206 *) : 2207 eval "$3=\$ac_type" ;; 2208esac 2209fi 2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211 if eval test \"x\$"$3"\" = x"no"; then : 2212 2213else 2214 break 2215fi 2216 done 2217fi 2218eval ac_res=\$$3 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2220$as_echo "$ac_res" >&6; } 2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2222 2223} # ac_fn_c_find_uintX_t 2224 2225# ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES 2226# -------------------------------------------------------------- 2227# Tries to find the compile-time value of EXPR in a program that includes 2228# INCLUDES, setting VAR accordingly. Returns whether the value could be 2229# computed 2230ac_fn_c_compute_int () 2231{ 2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2233 if test "$cross_compiling" = yes; then 2234 # Depending upon the size, compute the lo and hi bounds. 2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237$4 2238int 2239main () 2240{ 2241static int test_array [1 - 2 * !(($2) >= 0)]; 2242test_array [0] = 0; 2243return test_array [0]; 2244 2245 ; 2246 return 0; 2247} 2248_ACEOF 2249if ac_fn_c_try_compile "$LINENO"; then : 2250 ac_lo=0 ac_mid=0 2251 while :; do 2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2253/* end confdefs.h. */ 2254$4 2255int 2256main () 2257{ 2258static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2259test_array [0] = 0; 2260return test_array [0]; 2261 2262 ; 2263 return 0; 2264} 2265_ACEOF 2266if ac_fn_c_try_compile "$LINENO"; then : 2267 ac_hi=$ac_mid; break 2268else 2269 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2270 if test $ac_lo -le $ac_mid; then 2271 ac_lo= ac_hi= 2272 break 2273 fi 2274 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2275fi 2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2277 done 2278else 2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2280/* end confdefs.h. */ 2281$4 2282int 2283main () 2284{ 2285static int test_array [1 - 2 * !(($2) < 0)]; 2286test_array [0] = 0; 2287return test_array [0]; 2288 2289 ; 2290 return 0; 2291} 2292_ACEOF 2293if ac_fn_c_try_compile "$LINENO"; then : 2294 ac_hi=-1 ac_mid=-1 2295 while :; do 2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2297/* end confdefs.h. */ 2298$4 2299int 2300main () 2301{ 2302static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2303test_array [0] = 0; 2304return test_array [0]; 2305 2306 ; 2307 return 0; 2308} 2309_ACEOF 2310if ac_fn_c_try_compile "$LINENO"; then : 2311 ac_lo=$ac_mid; break 2312else 2313 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2314 if test $ac_mid -le $ac_hi; then 2315 ac_lo= ac_hi= 2316 break 2317 fi 2318 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2319fi 2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2321 done 2322else 2323 ac_lo= ac_hi= 2324fi 2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2326fi 2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2328# Binary search between lo and hi bounds. 2329while test "x$ac_lo" != "x$ac_hi"; do 2330 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2332/* end confdefs.h. */ 2333$4 2334int 2335main () 2336{ 2337static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2338test_array [0] = 0; 2339return test_array [0]; 2340 2341 ; 2342 return 0; 2343} 2344_ACEOF 2345if ac_fn_c_try_compile "$LINENO"; then : 2346 ac_hi=$ac_mid 2347else 2348 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2349fi 2350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2351done 2352case $ac_lo in #(( 2353?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2354'') ac_retval=1 ;; 2355esac 2356 else 2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2358/* end confdefs.h. */ 2359$4 2360static long int longval () { return $2; } 2361static unsigned long int ulongval () { return $2; } 2362#include <stdio.h> 2363#include <stdlib.h> 2364int 2365main () 2366{ 2367 2368 FILE *f = fopen ("conftest.val", "w"); 2369 if (! f) 2370 return 1; 2371 if (($2) < 0) 2372 { 2373 long int i = longval (); 2374 if (i != ($2)) 2375 return 1; 2376 fprintf (f, "%ld", i); 2377 } 2378 else 2379 { 2380 unsigned long int i = ulongval (); 2381 if (i != ($2)) 2382 return 1; 2383 fprintf (f, "%lu", i); 2384 } 2385 /* Do not output a trailing newline, as this causes \r\n confusion 2386 on some platforms. */ 2387 return ferror (f) || fclose (f) != 0; 2388 2389 ; 2390 return 0; 2391} 2392_ACEOF 2393if ac_fn_c_try_run "$LINENO"; then : 2394 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2395else 2396 ac_retval=1 2397fi 2398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2399 conftest.$ac_objext conftest.beam conftest.$ac_ext 2400rm -f conftest.val 2401 2402 fi 2403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2404 as_fn_set_status $ac_retval 2405 2406} # ac_fn_c_compute_int 2407 2408# ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES 2409# --------------------------------------------------------------- 2410# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2411# accordingly. 2412ac_fn_c_check_decl () 2413{ 2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2415 as_decl_name=`echo $2|sed 's/ *(.*//'` 2416 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2418$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2419if eval \${$3+:} false; then : 2420 $as_echo_n "(cached) " >&6 2421else 2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2423/* end confdefs.h. */ 2424$4 2425int 2426main () 2427{ 2428#ifndef $as_decl_name 2429#ifdef __cplusplus 2430 (void) $as_decl_use; 2431#else 2432 (void) $as_decl_name; 2433#endif 2434#endif 2435 2436 ; 2437 return 0; 2438} 2439_ACEOF 2440if ac_fn_c_try_compile "$LINENO"; then : 2441 eval "$3=yes" 2442else 2443 eval "$3=no" 2444fi 2445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2446fi 2447eval ac_res=\$$3 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2449$as_echo "$ac_res" >&6; } 2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2451 2452} # ac_fn_c_check_decl 2453cat >config.log <<_ACEOF 2454This file contains any messages produced by compilers while 2455running configure, to aid debugging if configure makes a mistake. 2456 2457It was created by OpenVPN $as_me 2.3.1, which was 2458generated by GNU Autoconf 2.69. Invocation command line was 2459 2460 $ $0 $@ 2461 2462_ACEOF 2463exec 5>>config.log 2464{ 2465cat <<_ASUNAME 2466## --------- ## 2467## Platform. ## 2468## --------- ## 2469 2470hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2471uname -m = `(uname -m) 2>/dev/null || echo unknown` 2472uname -r = `(uname -r) 2>/dev/null || echo unknown` 2473uname -s = `(uname -s) 2>/dev/null || echo unknown` 2474uname -v = `(uname -v) 2>/dev/null || echo unknown` 2475 2476/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2477/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2478 2479/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2480/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2481/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2482/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2483/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2484/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2485/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2486 2487_ASUNAME 2488 2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 $as_echo "PATH: $as_dir" 2495 done 2496IFS=$as_save_IFS 2497 2498} >&5 2499 2500cat >&5 <<_ACEOF 2501 2502 2503## ----------- ## 2504## Core tests. ## 2505## ----------- ## 2506 2507_ACEOF 2508 2509 2510# Keep a trace of the command line. 2511# Strip out --no-create and --no-recursion so they do not pile up. 2512# Strip out --silent because we don't want to record it for future runs. 2513# Also quote any args containing shell meta-characters. 2514# Make two passes to allow for proper duplicate-argument suppression. 2515ac_configure_args= 2516ac_configure_args0= 2517ac_configure_args1= 2518ac_must_keep_next=false 2519for ac_pass in 1 2 2520do 2521 for ac_arg 2522 do 2523 case $ac_arg in 2524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2526 | -silent | --silent | --silen | --sile | --sil) 2527 continue ;; 2528 *\'*) 2529 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2530 esac 2531 case $ac_pass in 2532 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2533 2) 2534 as_fn_append ac_configure_args1 " '$ac_arg'" 2535 if test $ac_must_keep_next = true; then 2536 ac_must_keep_next=false # Got value, back to normal. 2537 else 2538 case $ac_arg in 2539 *=* | --config-cache | -C | -disable-* | --disable-* \ 2540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2542 | -with-* | --with-* | -without-* | --without-* | --x) 2543 case "$ac_configure_args0 " in 2544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2545 esac 2546 ;; 2547 -* ) ac_must_keep_next=true ;; 2548 esac 2549 fi 2550 as_fn_append ac_configure_args " '$ac_arg'" 2551 ;; 2552 esac 2553 done 2554done 2555{ ac_configure_args0=; unset ac_configure_args0;} 2556{ ac_configure_args1=; unset ac_configure_args1;} 2557 2558# When interrupted or exit'd, cleanup temporary files, and complete 2559# config.log. We remove comments because anyway the quotes in there 2560# would cause problems or look ugly. 2561# WARNING: Use '\'' to represent an apostrophe within the trap. 2562# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2563trap 'exit_status=$? 2564 # Save into config.log some information that might help in debugging. 2565 { 2566 echo 2567 2568 $as_echo "## ---------------- ## 2569## Cache variables. ## 2570## ---------------- ##" 2571 echo 2572 # The following way of writing the cache mishandles newlines in values, 2573( 2574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2575 eval ac_val=\$$ac_var 2576 case $ac_val in #( 2577 *${as_nl}*) 2578 case $ac_var in #( 2579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2580$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2581 esac 2582 case $ac_var in #( 2583 _ | IFS | as_nl) ;; #( 2584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2585 *) { eval $ac_var=; unset $ac_var;} ;; 2586 esac ;; 2587 esac 2588 done 2589 (set) 2>&1 | 2590 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2591 *${as_nl}ac_space=\ *) 2592 sed -n \ 2593 "s/'\''/'\''\\\\'\'''\''/g; 2594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2595 ;; #( 2596 *) 2597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2598 ;; 2599 esac | 2600 sort 2601) 2602 echo 2603 2604 $as_echo "## ----------------- ## 2605## Output variables. ## 2606## ----------------- ##" 2607 echo 2608 for ac_var in $ac_subst_vars 2609 do 2610 eval ac_val=\$$ac_var 2611 case $ac_val in 2612 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2613 esac 2614 $as_echo "$ac_var='\''$ac_val'\''" 2615 done | sort 2616 echo 2617 2618 if test -n "$ac_subst_files"; then 2619 $as_echo "## ------------------- ## 2620## File substitutions. ## 2621## ------------------- ##" 2622 echo 2623 for ac_var in $ac_subst_files 2624 do 2625 eval ac_val=\$$ac_var 2626 case $ac_val in 2627 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2628 esac 2629 $as_echo "$ac_var='\''$ac_val'\''" 2630 done | sort 2631 echo 2632 fi 2633 2634 if test -s confdefs.h; then 2635 $as_echo "## ----------- ## 2636## confdefs.h. ## 2637## ----------- ##" 2638 echo 2639 cat confdefs.h 2640 echo 2641 fi 2642 test "$ac_signal" != 0 && 2643 $as_echo "$as_me: caught signal $ac_signal" 2644 $as_echo "$as_me: exit $exit_status" 2645 } >&5 2646 rm -f core *.core core.conftest.* && 2647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2648 exit $exit_status 2649' 0 2650for ac_signal in 1 2 13 15; do 2651 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2652done 2653ac_signal=0 2654 2655# confdefs.h avoids OS command line length limits that DEFS can exceed. 2656rm -f -r conftest* confdefs.h 2657 2658$as_echo "/* confdefs.h */" > confdefs.h 2659 2660# Predefined preprocessor variables. 2661 2662cat >>confdefs.h <<_ACEOF 2663#define PACKAGE_NAME "$PACKAGE_NAME" 2664_ACEOF 2665 2666cat >>confdefs.h <<_ACEOF 2667#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2668_ACEOF 2669 2670cat >>confdefs.h <<_ACEOF 2671#define PACKAGE_VERSION "$PACKAGE_VERSION" 2672_ACEOF 2673 2674cat >>confdefs.h <<_ACEOF 2675#define PACKAGE_STRING "$PACKAGE_STRING" 2676_ACEOF 2677 2678cat >>confdefs.h <<_ACEOF 2679#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2680_ACEOF 2681 2682cat >>confdefs.h <<_ACEOF 2683#define PACKAGE_URL "$PACKAGE_URL" 2684_ACEOF 2685 2686 2687# Let the site file select an alternate cache file if it wants to. 2688# Prefer an explicitly selected file to automatically selected ones. 2689ac_site_file1=NONE 2690ac_site_file2=NONE 2691if test -n "$CONFIG_SITE"; then 2692 # We do not want a PATH search for config.site. 2693 case $CONFIG_SITE in #(( 2694 -*) ac_site_file1=./$CONFIG_SITE;; 2695 */*) ac_site_file1=$CONFIG_SITE;; 2696 *) ac_site_file1=./$CONFIG_SITE;; 2697 esac 2698elif test "x$prefix" != xNONE; then 2699 ac_site_file1=$prefix/share/config.site 2700 ac_site_file2=$prefix/etc/config.site 2701else 2702 ac_site_file1=$ac_default_prefix/share/config.site 2703 ac_site_file2=$ac_default_prefix/etc/config.site 2704fi 2705for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2706do 2707 test "x$ac_site_file" = xNONE && continue 2708 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2710$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2711 sed 's/^/| /' "$ac_site_file" >&5 2712 . "$ac_site_file" \ 2713 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2715as_fn_error $? "failed to load site script $ac_site_file 2716See \`config.log' for more details" "$LINENO" 5; } 2717 fi 2718done 2719 2720if test -r "$cache_file"; then 2721 # Some versions of bash will fail to source /dev/null (special files 2722 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2723 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2725$as_echo "$as_me: loading cache $cache_file" >&6;} 2726 case $cache_file in 2727 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2728 *) . "./$cache_file";; 2729 esac 2730 fi 2731else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2733$as_echo "$as_me: creating cache $cache_file" >&6;} 2734 >$cache_file 2735fi 2736 2737# Check that the precious variables saved in the cache have kept the same 2738# value. 2739ac_cache_corrupted=false 2740for ac_var in $ac_precious_vars; do 2741 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2742 eval ac_new_set=\$ac_env_${ac_var}_set 2743 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2744 eval ac_new_val=\$ac_env_${ac_var}_value 2745 case $ac_old_set,$ac_new_set in 2746 set,) 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2748$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2749 ac_cache_corrupted=: ;; 2750 ,set) 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2752$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2753 ac_cache_corrupted=: ;; 2754 ,);; 2755 *) 2756 if test "x$ac_old_val" != "x$ac_new_val"; then 2757 # differences in whitespace do not lead to failure. 2758 ac_old_val_w=`echo x $ac_old_val` 2759 ac_new_val_w=`echo x $ac_new_val` 2760 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2762$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2763 ac_cache_corrupted=: 2764 else 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2766$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2767 eval $ac_var=\$ac_old_val 2768 fi 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2770$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2772$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2773 fi;; 2774 esac 2775 # Pass precious variables to config.status. 2776 if test "$ac_new_set" = set; then 2777 case $ac_new_val in 2778 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2779 *) ac_arg=$ac_var=$ac_new_val ;; 2780 esac 2781 case " $ac_configure_args " in 2782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2783 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2784 esac 2785 fi 2786done 2787if $ac_cache_corrupted; then 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2791$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2792 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2793fi 2794## -------------------- ## 2795## Main body of script. ## 2796## -------------------- ## 2797 2798ac_ext=c 2799ac_cpp='$CPP $CPPFLAGS' 2800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2802ac_compiler_gnu=$ac_cv_c_compiler_gnu 2803 2804 2805 2806 2807 2808 2809 2810 2811if test -z "${docdir}"; then 2812 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)" 2813 2814fi 2815if test -z "${htmldir}"; then 2816 htmldir="\$(docdir)" 2817 2818fi 2819 2820 2821$as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,1,0" >>confdefs.h 2822 2823 2824ac_aux_dir= 2825for ac_dir in . "$srcdir"/.; do 2826 if test -f "$ac_dir/install-sh"; then 2827 ac_aux_dir=$ac_dir 2828 ac_install_sh="$ac_aux_dir/install-sh -c" 2829 break 2830 elif test -f "$ac_dir/install.sh"; then 2831 ac_aux_dir=$ac_dir 2832 ac_install_sh="$ac_aux_dir/install.sh -c" 2833 break 2834 elif test -f "$ac_dir/shtool"; then 2835 ac_aux_dir=$ac_dir 2836 ac_install_sh="$ac_aux_dir/shtool install -c" 2837 break 2838 fi 2839done 2840if test -z "$ac_aux_dir"; then 2841 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2842fi 2843 2844# These three variables are undocumented and unsupported, 2845# and are intended to be withdrawn in a future Autoconf release. 2846# They can cause serious problems if a builder's source tree is in a directory 2847# whose full name contains unusual characters. 2848ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2849ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2850ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2851 2852 2853ac_config_headers="$ac_config_headers config.h" 2854 2855 2856 2857am__api_version='1.11' 2858 2859# Find a good install program. We prefer a C program (faster), 2860# so one script is as good as another. But avoid the broken or 2861# incompatible versions: 2862# SysV /etc/install, /usr/sbin/install 2863# SunOS /usr/etc/install 2864# IRIX /sbin/install 2865# AIX /bin/install 2866# AmigaOS /C/install, which installs bootblocks on floppy discs 2867# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2868# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2869# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2870# OS/2's system install, which has a completely different semantic 2871# ./install, which can be erroneously created by make from ./install.sh. 2872# Reject install programs that cannot install multiple files. 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2874$as_echo_n "checking for a BSD-compatible install... " >&6; } 2875if test -z "$INSTALL"; then 2876if ${ac_cv_path_install+:} false; then : 2877 $as_echo_n "(cached) " >&6 2878else 2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2880for as_dir in $PATH 2881do 2882 IFS=$as_save_IFS 2883 test -z "$as_dir" && as_dir=. 2884 # Account for people who put trailing slashes in PATH elements. 2885case $as_dir/ in #(( 2886 ./ | .// | /[cC]/* | \ 2887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2888 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2889 /usr/ucb/* ) ;; 2890 *) 2891 # OSF1 and SCO ODT 3.0 have their own names for install. 2892 # Don't use installbsd from OSF since it installs stuff as root 2893 # by default. 2894 for ac_prog in ginstall scoinst install; do 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2897 if test $ac_prog = install && 2898 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2899 # AIX install. It has an incompatible calling convention. 2900 : 2901 elif test $ac_prog = install && 2902 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2903 # program-specific install script used by HP pwplus--don't use. 2904 : 2905 else 2906 rm -rf conftest.one conftest.two conftest.dir 2907 echo one > conftest.one 2908 echo two > conftest.two 2909 mkdir conftest.dir 2910 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2911 test -s conftest.one && test -s conftest.two && 2912 test -s conftest.dir/conftest.one && 2913 test -s conftest.dir/conftest.two 2914 then 2915 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2916 break 3 2917 fi 2918 fi 2919 fi 2920 done 2921 done 2922 ;; 2923esac 2924 2925 done 2926IFS=$as_save_IFS 2927 2928rm -rf conftest.one conftest.two conftest.dir 2929 2930fi 2931 if test "${ac_cv_path_install+set}" = set; then 2932 INSTALL=$ac_cv_path_install 2933 else 2934 # As a last resort, use the slow shell script. Don't cache a 2935 # value for INSTALL within a source directory, because that will 2936 # break other packages using the cache if that directory is 2937 # removed, or if the value is a relative name. 2938 INSTALL=$ac_install_sh 2939 fi 2940fi 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2942$as_echo "$INSTALL" >&6; } 2943 2944# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2945# It thinks the first close brace ends the variable substitution. 2946test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2947 2948test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2949 2950test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2951 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2953$as_echo_n "checking whether build environment is sane... " >&6; } 2954# Just in case 2955sleep 1 2956echo timestamp > conftest.file 2957# Reject unsafe characters in $srcdir or the absolute working directory 2958# name. Accept space and tab only in the latter. 2959am_lf=' 2960' 2961case `pwd` in 2962 *[\\\"\#\$\&\'\`$am_lf]*) 2963 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2964esac 2965case $srcdir in 2966 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2967 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2968esac 2969 2970# Do `set' in a subshell so we don't clobber the current shell's 2971# arguments. Must try -L first in case configure is actually a 2972# symlink; some systems play weird games with the mod time of symlinks 2973# (eg FreeBSD returns the mod time of the symlink's containing 2974# directory). 2975if ( 2976 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2977 if test "$*" = "X"; then 2978 # -L didn't work. 2979 set X `ls -t "$srcdir/configure" conftest.file` 2980 fi 2981 rm -f conftest.file 2982 if test "$*" != "X $srcdir/configure conftest.file" \ 2983 && test "$*" != "X conftest.file $srcdir/configure"; then 2984 2985 # If neither matched, then we have a broken ls. This can happen 2986 # if, for instance, CONFIG_SHELL is bash and it inherits a 2987 # broken ls alias from the environment. This has actually 2988 # happened. Such a system could not be considered "sane". 2989 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2990alias in your environment" "$LINENO" 5 2991 fi 2992 2993 test "$2" = conftest.file 2994 ) 2995then 2996 # Ok. 2997 : 2998else 2999 as_fn_error $? "newly created file is older than distributed files! 3000Check your system clock" "$LINENO" 5 3001fi 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3003$as_echo "yes" >&6; } 3004test "$program_prefix" != NONE && 3005 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3006# Use a double $ so make ignores it. 3007test "$program_suffix" != NONE && 3008 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3009# Double any \ or $. 3010# By default was `s,x,x', remove it if useless. 3011ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3012program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3013 3014# expand $ac_aux_dir to an absolute path 3015am_aux_dir=`cd $ac_aux_dir && pwd` 3016 3017if test x"${MISSING+set}" != xset; then 3018 case $am_aux_dir in 3019 *\ * | *\ *) 3020 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3021 *) 3022 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3023 esac 3024fi 3025# Use eval to expand $SHELL 3026if eval "$MISSING --run true"; then 3027 am_missing_run="$MISSING --run " 3028else 3029 am_missing_run= 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3031$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3032fi 3033 3034if test x"${install_sh}" != xset; then 3035 case $am_aux_dir in 3036 *\ * | *\ *) 3037 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3038 *) 3039 install_sh="\${SHELL} $am_aux_dir/install-sh" 3040 esac 3041fi 3042 3043# Installed binaries are usually stripped using `strip' when the user 3044# run `make install-strip'. However `strip' might not be the right 3045# tool to use in cross-compilation environments, therefore Automake 3046# will honor the `STRIP' environment variable to overrule this program. 3047if test "$cross_compiling" != no; then 3048 if test -n "$ac_tool_prefix"; then 3049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3050set dummy ${ac_tool_prefix}strip; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if ${ac_cv_prog_STRIP+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 if test -n "$STRIP"; then 3057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3058else 3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060for as_dir in $PATH 3061do 3062 IFS=$as_save_IFS 3063 test -z "$as_dir" && as_dir=. 3064 for ac_exec_ext in '' $ac_executable_extensions; do 3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3066 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3068 break 2 3069 fi 3070done 3071 done 3072IFS=$as_save_IFS 3073 3074fi 3075fi 3076STRIP=$ac_cv_prog_STRIP 3077if test -n "$STRIP"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3079$as_echo "$STRIP" >&6; } 3080else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083fi 3084 3085 3086fi 3087if test -z "$ac_cv_prog_STRIP"; then 3088 ac_ct_STRIP=$STRIP 3089 # Extract the first word of "strip", so it can be a program name with args. 3090set dummy strip; ac_word=$2 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092$as_echo_n "checking for $ac_word... " >&6; } 3093if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if test -n "$ac_ct_STRIP"; then 3097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3098else 3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100for as_dir in $PATH 3101do 3102 IFS=$as_save_IFS 3103 test -z "$as_dir" && as_dir=. 3104 for ac_exec_ext in '' $ac_executable_extensions; do 3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3106 ac_cv_prog_ac_ct_STRIP="strip" 3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3108 break 2 3109 fi 3110done 3111 done 3112IFS=$as_save_IFS 3113 3114fi 3115fi 3116ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3117if test -n "$ac_ct_STRIP"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3119$as_echo "$ac_ct_STRIP" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 if test "x$ac_ct_STRIP" = x; then 3126 STRIP=":" 3127 else 3128 case $cross_compiling:$ac_tool_warned in 3129yes:) 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3132ac_tool_warned=yes ;; 3133esac 3134 STRIP=$ac_ct_STRIP 3135 fi 3136else 3137 STRIP="$ac_cv_prog_STRIP" 3138fi 3139 3140fi 3141INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3142 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3144$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3145if test -z "$MKDIR_P"; then 3146 if ${ac_cv_path_mkdir+:} false; then : 3147 $as_echo_n "(cached) " >&6 3148else 3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3151do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 for ac_prog in mkdir gmkdir; do 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3157 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3158 'mkdir (GNU coreutils) '* | \ 3159 'mkdir (coreutils) '* | \ 3160 'mkdir (fileutils) '4.1*) 3161 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3162 break 3;; 3163 esac 3164 done 3165 done 3166 done 3167IFS=$as_save_IFS 3168 3169fi 3170 3171 test -d ./--version && rmdir ./--version 3172 if test "${ac_cv_path_mkdir+set}" = set; then 3173 MKDIR_P="$ac_cv_path_mkdir -p" 3174 else 3175 # As a last resort, use the slow shell script. Don't cache a 3176 # value for MKDIR_P within a source directory, because that will 3177 # break other packages using the cache if that directory is 3178 # removed, or if the value is a relative name. 3179 MKDIR_P="$ac_install_sh -d" 3180 fi 3181fi 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3183$as_echo "$MKDIR_P" >&6; } 3184 3185mkdir_p="$MKDIR_P" 3186case $mkdir_p in 3187 [\\/$]* | ?:[\\/]*) ;; 3188 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3189esac 3190 3191for ac_prog in gawk mawk nawk awk 3192do 3193 # Extract the first word of "$ac_prog", so it can be a program name with args. 3194set dummy $ac_prog; ac_word=$2 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3196$as_echo_n "checking for $ac_word... " >&6; } 3197if ${ac_cv_prog_AWK+:} false; then : 3198 $as_echo_n "(cached) " >&6 3199else 3200 if test -n "$AWK"; then 3201 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3202else 3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3204for as_dir in $PATH 3205do 3206 IFS=$as_save_IFS 3207 test -z "$as_dir" && as_dir=. 3208 for ac_exec_ext in '' $ac_executable_extensions; do 3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3210 ac_cv_prog_AWK="$ac_prog" 3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3212 break 2 3213 fi 3214done 3215 done 3216IFS=$as_save_IFS 3217 3218fi 3219fi 3220AWK=$ac_cv_prog_AWK 3221if test -n "$AWK"; then 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3223$as_echo "$AWK" >&6; } 3224else 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3226$as_echo "no" >&6; } 3227fi 3228 3229 3230 test -n "$AWK" && break 3231done 3232 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3234$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3235set x ${MAKE-make} 3236ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3237if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3238 $as_echo_n "(cached) " >&6 3239else 3240 cat >conftest.make <<\_ACEOF 3241SHELL = /bin/sh 3242all: 3243 @echo '@@@%%%=$(MAKE)=@@@%%%' 3244_ACEOF 3245# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3246case `${MAKE-make} -f conftest.make 2>/dev/null` in 3247 *@@@%%%=?*=@@@%%%*) 3248 eval ac_cv_prog_make_${ac_make}_set=yes;; 3249 *) 3250 eval ac_cv_prog_make_${ac_make}_set=no;; 3251esac 3252rm -f conftest.make 3253fi 3254if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3256$as_echo "yes" >&6; } 3257 SET_MAKE= 3258else 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3260$as_echo "no" >&6; } 3261 SET_MAKE="MAKE=${MAKE-make}" 3262fi 3263 3264rm -rf .tst 2>/dev/null 3265mkdir .tst 2>/dev/null 3266if test -d .tst; then 3267 am__leading_dot=. 3268else 3269 am__leading_dot=_ 3270fi 3271rmdir .tst 2>/dev/null 3272 3273if test "`cd $srcdir && pwd`" != "`pwd`"; then 3274 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3275 # is not polluted with repeated "-I." 3276 am__isrc=' -I$(srcdir)' 3277 # test to see if srcdir already configured 3278 if test -f $srcdir/config.status; then 3279 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3280 fi 3281fi 3282 3283# test whether we have cygpath 3284if test -z "$CYGPATH_W"; then 3285 if (cygpath --version) >/dev/null 2>/dev/null; then 3286 CYGPATH_W='cygpath -w' 3287 else 3288 CYGPATH_W=echo 3289 fi 3290fi 3291 3292 3293# Define the identity of the package. 3294 PACKAGE='openvpn' 3295 VERSION='2.3.1' 3296 3297 3298cat >>confdefs.h <<_ACEOF 3299#define PACKAGE "$PACKAGE" 3300_ACEOF 3301 3302 3303cat >>confdefs.h <<_ACEOF 3304#define VERSION "$VERSION" 3305_ACEOF 3306 3307# Some tools Automake needs. 3308 3309ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3310 3311 3312AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3313 3314 3315AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3316 3317 3318AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3319 3320 3321MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3322 3323# We need awk for the "check" target. The system "awk" is bad on 3324# some platforms. 3325# Always define AMTAR for backward compatibility. Yes, it's still used 3326# in the wild :-( We should find a proper way to deprecate it ... 3327AMTAR='$${TAR-tar}' 3328 3329am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3330 3331 3332 3333 3334 3335# Make sure we can run config.sub. 3336$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3337 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3338 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3340$as_echo_n "checking build system type... " >&6; } 3341if ${ac_cv_build+:} false; then : 3342 $as_echo_n "(cached) " >&6 3343else 3344 ac_build_alias=$build_alias 3345test "x$ac_build_alias" = x && 3346 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3347test "x$ac_build_alias" = x && 3348 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3349ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3351 3352fi 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3354$as_echo "$ac_cv_build" >&6; } 3355case $ac_cv_build in 3356*-*-*) ;; 3357*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3358esac 3359build=$ac_cv_build 3360ac_save_IFS=$IFS; IFS='-' 3361set x $ac_cv_build 3362shift 3363build_cpu=$1 3364build_vendor=$2 3365shift; shift 3366# Remember, the first character of IFS is used to create $*, 3367# except with old shells: 3368build_os=$* 3369IFS=$ac_save_IFS 3370case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3371 3372 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3374$as_echo_n "checking host system type... " >&6; } 3375if ${ac_cv_host+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 if test "x$host_alias" = x; then 3379 ac_cv_host=$ac_cv_build 3380else 3381 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3383fi 3384 3385fi 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3387$as_echo "$ac_cv_host" >&6; } 3388case $ac_cv_host in 3389*-*-*) ;; 3390*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3391esac 3392host=$ac_cv_host 3393ac_save_IFS=$IFS; IFS='-' 3394set x $ac_cv_host 3395shift 3396host_cpu=$1 3397host_vendor=$2 3398shift; shift 3399# Remember, the first character of IFS is used to create $*, 3400# except with old shells: 3401host_os=$* 3402IFS=$ac_save_IFS 3403case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3404 3405 3406DEPDIR="${am__leading_dot}deps" 3407 3408ac_config_commands="$ac_config_commands depfiles" 3409 3410 3411am_make=${MAKE-make} 3412cat > confinc << 'END' 3413am__doit: 3414 @echo this is the am__doit target 3415.PHONY: am__doit 3416END 3417# If we don't find an include directive, just comment out the code. 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3419$as_echo_n "checking for style of include used by $am_make... " >&6; } 3420am__include="#" 3421am__quote= 3422_am_result=none 3423# First try GNU make style include. 3424echo "include confinc" > confmf 3425# Ignore all kinds of additional output from `make'. 3426case `$am_make -s -f confmf 2> /dev/null` in #( 3427*the\ am__doit\ target*) 3428 am__include=include 3429 am__quote= 3430 _am_result=GNU 3431 ;; 3432esac 3433# Now try BSD make style include. 3434if test "$am__include" = "#"; then 3435 echo '.include "confinc"' > confmf 3436 case `$am_make -s -f confmf 2> /dev/null` in #( 3437 *the\ am__doit\ target*) 3438 am__include=.include 3439 am__quote="\"" 3440 _am_result=BSD 3441 ;; 3442 esac 3443fi 3444 3445 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3447$as_echo "$_am_result" >&6; } 3448rm -f confinc confmf 3449 3450# Check whether --enable-dependency-tracking was given. 3451if test "${enable_dependency_tracking+set}" = set; then : 3452 enableval=$enable_dependency_tracking; 3453fi 3454 3455if test "x$enable_dependency_tracking" != xno; then 3456 am_depcomp="$ac_aux_dir/depcomp" 3457 AMDEPBACKSLASH='\' 3458 am__nodep='_no' 3459fi 3460 if test "x$enable_dependency_tracking" != xno; then 3461 AMDEP_TRUE= 3462 AMDEP_FALSE='#' 3463else 3464 AMDEP_TRUE='#' 3465 AMDEP_FALSE= 3466fi 3467 3468 3469ac_ext=c 3470ac_cpp='$CPP $CPPFLAGS' 3471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3473ac_compiler_gnu=$ac_cv_c_compiler_gnu 3474if test -n "$ac_tool_prefix"; then 3475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3476set dummy ${ac_tool_prefix}gcc; ac_word=$2 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478$as_echo_n "checking for $ac_word... " >&6; } 3479if ${ac_cv_prog_CC+:} false; then : 3480 $as_echo_n "(cached) " >&6 3481else 3482 if test -n "$CC"; then 3483 ac_cv_prog_CC="$CC" # Let the user override the test. 3484else 3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3486for as_dir in $PATH 3487do 3488 IFS=$as_save_IFS 3489 test -z "$as_dir" && as_dir=. 3490 for ac_exec_ext in '' $ac_executable_extensions; do 3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3492 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3494 break 2 3495 fi 3496done 3497 done 3498IFS=$as_save_IFS 3499 3500fi 3501fi 3502CC=$ac_cv_prog_CC 3503if test -n "$CC"; then 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3505$as_echo "$CC" >&6; } 3506else 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3508$as_echo "no" >&6; } 3509fi 3510 3511 3512fi 3513if test -z "$ac_cv_prog_CC"; then 3514 ac_ct_CC=$CC 3515 # Extract the first word of "gcc", so it can be a program name with args. 3516set dummy gcc; ac_word=$2 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3518$as_echo_n "checking for $ac_word... " >&6; } 3519if ${ac_cv_prog_ac_ct_CC+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 if test -n "$ac_ct_CC"; then 3523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3524else 3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3526for as_dir in $PATH 3527do 3528 IFS=$as_save_IFS 3529 test -z "$as_dir" && as_dir=. 3530 for ac_exec_ext in '' $ac_executable_extensions; do 3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3532 ac_cv_prog_ac_ct_CC="gcc" 3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3534 break 2 3535 fi 3536done 3537 done 3538IFS=$as_save_IFS 3539 3540fi 3541fi 3542ac_ct_CC=$ac_cv_prog_ac_ct_CC 3543if test -n "$ac_ct_CC"; then 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3545$as_echo "$ac_ct_CC" >&6; } 3546else 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548$as_echo "no" >&6; } 3549fi 3550 3551 if test "x$ac_ct_CC" = x; then 3552 CC="" 3553 else 3554 case $cross_compiling:$ac_tool_warned in 3555yes:) 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3558ac_tool_warned=yes ;; 3559esac 3560 CC=$ac_ct_CC 3561 fi 3562else 3563 CC="$ac_cv_prog_CC" 3564fi 3565 3566if test -z "$CC"; then 3567 if test -n "$ac_tool_prefix"; then 3568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3569set dummy ${ac_tool_prefix}cc; ac_word=$2 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3571$as_echo_n "checking for $ac_word... " >&6; } 3572if ${ac_cv_prog_CC+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 if test -n "$CC"; then 3576 ac_cv_prog_CC="$CC" # Let the user override the test. 3577else 3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3579for as_dir in $PATH 3580do 3581 IFS=$as_save_IFS 3582 test -z "$as_dir" && as_dir=. 3583 for ac_exec_ext in '' $ac_executable_extensions; do 3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3585 ac_cv_prog_CC="${ac_tool_prefix}cc" 3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3587 break 2 3588 fi 3589done 3590 done 3591IFS=$as_save_IFS 3592 3593fi 3594fi 3595CC=$ac_cv_prog_CC 3596if test -n "$CC"; then 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3598$as_echo "$CC" >&6; } 3599else 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3601$as_echo "no" >&6; } 3602fi 3603 3604 3605 fi 3606fi 3607if test -z "$CC"; then 3608 # Extract the first word of "cc", so it can be a program name with args. 3609set dummy cc; ac_word=$2 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3611$as_echo_n "checking for $ac_word... " >&6; } 3612if ${ac_cv_prog_CC+:} false; then : 3613 $as_echo_n "(cached) " >&6 3614else 3615 if test -n "$CC"; then 3616 ac_cv_prog_CC="$CC" # Let the user override the test. 3617else 3618 ac_prog_rejected=no 3619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3620for as_dir in $PATH 3621do 3622 IFS=$as_save_IFS 3623 test -z "$as_dir" && as_dir=. 3624 for ac_exec_ext in '' $ac_executable_extensions; do 3625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3627 ac_prog_rejected=yes 3628 continue 3629 fi 3630 ac_cv_prog_CC="cc" 3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3632 break 2 3633 fi 3634done 3635 done 3636IFS=$as_save_IFS 3637 3638if test $ac_prog_rejected = yes; then 3639 # We found a bogon in the path, so make sure we never use it. 3640 set dummy $ac_cv_prog_CC 3641 shift 3642 if test $# != 0; then 3643 # We chose a different compiler from the bogus one. 3644 # However, it has the same basename, so the bogon will be chosen 3645 # first if we set CC to just the basename; use the full file name. 3646 shift 3647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3648 fi 3649fi 3650fi 3651fi 3652CC=$ac_cv_prog_CC 3653if test -n "$CC"; then 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3655$as_echo "$CC" >&6; } 3656else 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3658$as_echo "no" >&6; } 3659fi 3660 3661 3662fi 3663if test -z "$CC"; then 3664 if test -n "$ac_tool_prefix"; then 3665 for ac_prog in cl.exe 3666 do 3667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3668set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3670$as_echo_n "checking for $ac_word... " >&6; } 3671if ${ac_cv_prog_CC+:} false; then : 3672 $as_echo_n "(cached) " >&6 3673else 3674 if test -n "$CC"; then 3675 ac_cv_prog_CC="$CC" # Let the user override the test. 3676else 3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3678for as_dir in $PATH 3679do 3680 IFS=$as_save_IFS 3681 test -z "$as_dir" && as_dir=. 3682 for ac_exec_ext in '' $ac_executable_extensions; do 3683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3686 break 2 3687 fi 3688done 3689 done 3690IFS=$as_save_IFS 3691 3692fi 3693fi 3694CC=$ac_cv_prog_CC 3695if test -n "$CC"; then 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3697$as_echo "$CC" >&6; } 3698else 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3700$as_echo "no" >&6; } 3701fi 3702 3703 3704 test -n "$CC" && break 3705 done 3706fi 3707if test -z "$CC"; then 3708 ac_ct_CC=$CC 3709 for ac_prog in cl.exe 3710do 3711 # Extract the first word of "$ac_prog", so it can be a program name with args. 3712set dummy $ac_prog; ac_word=$2 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3714$as_echo_n "checking for $ac_word... " >&6; } 3715if ${ac_cv_prog_ac_ct_CC+:} false; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 if test -n "$ac_ct_CC"; then 3719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3720else 3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722for as_dir in $PATH 3723do 3724 IFS=$as_save_IFS 3725 test -z "$as_dir" && as_dir=. 3726 for ac_exec_ext in '' $ac_executable_extensions; do 3727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3728 ac_cv_prog_ac_ct_CC="$ac_prog" 3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3730 break 2 3731 fi 3732done 3733 done 3734IFS=$as_save_IFS 3735 3736fi 3737fi 3738ac_ct_CC=$ac_cv_prog_ac_ct_CC 3739if test -n "$ac_ct_CC"; then 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3741$as_echo "$ac_ct_CC" >&6; } 3742else 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3744$as_echo "no" >&6; } 3745fi 3746 3747 3748 test -n "$ac_ct_CC" && break 3749done 3750 3751 if test "x$ac_ct_CC" = x; then 3752 CC="" 3753 else 3754 case $cross_compiling:$ac_tool_warned in 3755yes:) 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3758ac_tool_warned=yes ;; 3759esac 3760 CC=$ac_ct_CC 3761 fi 3762fi 3763 3764fi 3765 3766 3767test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3769as_fn_error $? "no acceptable C compiler found in \$PATH 3770See \`config.log' for more details" "$LINENO" 5; } 3771 3772# Provide some information about the compiler. 3773$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3774set X $ac_compile 3775ac_compiler=$2 3776for ac_option in --version -v -V -qversion; do 3777 { { ac_try="$ac_compiler $ac_option >&5" 3778case "(($ac_try" in 3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3780 *) ac_try_echo=$ac_try;; 3781esac 3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3783$as_echo "$ac_try_echo"; } >&5 3784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3785 ac_status=$? 3786 if test -s conftest.err; then 3787 sed '10a\ 3788... rest of stderr output deleted ... 3789 10q' conftest.err >conftest.er1 3790 cat conftest.er1 >&5 3791 fi 3792 rm -f conftest.er1 conftest.err 3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3794 test $ac_status = 0; } 3795done 3796 3797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3798/* end confdefs.h. */ 3799 3800int 3801main () 3802{ 3803 3804 ; 3805 return 0; 3806} 3807_ACEOF 3808ac_clean_files_save=$ac_clean_files 3809ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3810# Try to create an executable without -o first, disregard a.out. 3811# It will help us diagnose broken compilers, and finding out an intuition 3812# of exeext. 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3814$as_echo_n "checking whether the C compiler works... " >&6; } 3815ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3816 3817# The possible output files: 3818ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3819 3820ac_rmfiles= 3821for ac_file in $ac_files 3822do 3823 case $ac_file in 3824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3825 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3826 esac 3827done 3828rm -f $ac_rmfiles 3829 3830if { { ac_try="$ac_link_default" 3831case "(($ac_try" in 3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3833 *) ac_try_echo=$ac_try;; 3834esac 3835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3836$as_echo "$ac_try_echo"; } >&5 3837 (eval "$ac_link_default") 2>&5 3838 ac_status=$? 3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3840 test $ac_status = 0; }; then : 3841 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3842# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3843# in a Makefile. We should not override ac_cv_exeext if it was cached, 3844# so that the user can short-circuit this test for compilers unknown to 3845# Autoconf. 3846for ac_file in $ac_files '' 3847do 3848 test -f "$ac_file" || continue 3849 case $ac_file in 3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3851 ;; 3852 [ab].out ) 3853 # We found the default executable, but exeext='' is most 3854 # certainly right. 3855 break;; 3856 *.* ) 3857 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3858 then :; else 3859 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3860 fi 3861 # We set ac_cv_exeext here because the later test for it is not 3862 # safe: cross compilers may not add the suffix if given an `-o' 3863 # argument, so we may need to know it at that point already. 3864 # Even if this section looks crufty: it has the advantage of 3865 # actually working. 3866 break;; 3867 * ) 3868 break;; 3869 esac 3870done 3871test "$ac_cv_exeext" = no && ac_cv_exeext= 3872 3873else 3874 ac_file='' 3875fi 3876if test -z "$ac_file"; then : 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3878$as_echo "no" >&6; } 3879$as_echo "$as_me: failed program was:" >&5 3880sed 's/^/| /' conftest.$ac_ext >&5 3881 3882{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3884as_fn_error 77 "C compiler cannot create executables 3885See \`config.log' for more details" "$LINENO" 5; } 3886else 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3888$as_echo "yes" >&6; } 3889fi 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3891$as_echo_n "checking for C compiler default output file name... " >&6; } 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3893$as_echo "$ac_file" >&6; } 3894ac_exeext=$ac_cv_exeext 3895 3896rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3897ac_clean_files=$ac_clean_files_save 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3899$as_echo_n "checking for suffix of executables... " >&6; } 3900if { { ac_try="$ac_link" 3901case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904esac 3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3906$as_echo "$ac_try_echo"; } >&5 3907 (eval "$ac_link") 2>&5 3908 ac_status=$? 3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; }; then : 3911 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3912# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3913# work properly (i.e., refer to `conftest.exe'), while it won't with 3914# `rm'. 3915for ac_file in conftest.exe conftest conftest.*; do 3916 test -f "$ac_file" || continue 3917 case $ac_file in 3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3920 break;; 3921 * ) break;; 3922 esac 3923done 3924else 3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3927as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3928See \`config.log' for more details" "$LINENO" 5; } 3929fi 3930rm -f conftest conftest$ac_cv_exeext 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3932$as_echo "$ac_cv_exeext" >&6; } 3933 3934rm -f conftest.$ac_ext 3935EXEEXT=$ac_cv_exeext 3936ac_exeext=$EXEEXT 3937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939#include <stdio.h> 3940int 3941main () 3942{ 3943FILE *f = fopen ("conftest.out", "w"); 3944 return ferror (f) || fclose (f) != 0; 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950ac_clean_files="$ac_clean_files conftest.out" 3951# Check that the compiler produces executables we can run. If not, either 3952# the compiler is broken, or we cross compile. 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3954$as_echo_n "checking whether we are cross compiling... " >&6; } 3955if test "$cross_compiling" != yes; then 3956 { { ac_try="$ac_link" 3957case "(($ac_try" in 3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3959 *) ac_try_echo=$ac_try;; 3960esac 3961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3962$as_echo "$ac_try_echo"; } >&5 3963 (eval "$ac_link") 2>&5 3964 ac_status=$? 3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3966 test $ac_status = 0; } 3967 if { ac_try='./conftest$ac_cv_exeext' 3968 { { case "(($ac_try" in 3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 *) ac_try_echo=$ac_try;; 3971esac 3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3973$as_echo "$ac_try_echo"; } >&5 3974 (eval "$ac_try") 2>&5 3975 ac_status=$? 3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3977 test $ac_status = 0; }; }; then 3978 cross_compiling=no 3979 else 3980 if test "$cross_compiling" = maybe; then 3981 cross_compiling=yes 3982 else 3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3985as_fn_error $? "cannot run C compiled programs. 3986If you meant to cross compile, use \`--host'. 3987See \`config.log' for more details" "$LINENO" 5; } 3988 fi 3989 fi 3990fi 3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3992$as_echo "$cross_compiling" >&6; } 3993 3994rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3995ac_clean_files=$ac_clean_files_save 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3997$as_echo_n "checking for suffix of object files... " >&6; } 3998if ${ac_cv_objext+:} false; then : 3999 $as_echo_n "(cached) " >&6 4000else 4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4002/* end confdefs.h. */ 4003 4004int 4005main () 4006{ 4007 4008 ; 4009 return 0; 4010} 4011_ACEOF 4012rm -f conftest.o conftest.obj 4013if { { ac_try="$ac_compile" 4014case "(($ac_try" in 4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4016 *) ac_try_echo=$ac_try;; 4017esac 4018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4019$as_echo "$ac_try_echo"; } >&5 4020 (eval "$ac_compile") 2>&5 4021 ac_status=$? 4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4023 test $ac_status = 0; }; then : 4024 for ac_file in conftest.o conftest.obj conftest.*; do 4025 test -f "$ac_file" || continue; 4026 case $ac_file in 4027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4029 break;; 4030 esac 4031done 4032else 4033 $as_echo "$as_me: failed program was:" >&5 4034sed 's/^/| /' conftest.$ac_ext >&5 4035 4036{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4038as_fn_error $? "cannot compute suffix of object files: cannot compile 4039See \`config.log' for more details" "$LINENO" 5; } 4040fi 4041rm -f conftest.$ac_cv_objext conftest.$ac_ext 4042fi 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4044$as_echo "$ac_cv_objext" >&6; } 4045OBJEXT=$ac_cv_objext 4046ac_objext=$OBJEXT 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4048$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4049if ${ac_cv_c_compiler_gnu+:} false; then : 4050 $as_echo_n "(cached) " >&6 4051else 4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054 4055int 4056main () 4057{ 4058#ifndef __GNUC__ 4059 choke me 4060#endif 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066if ac_fn_c_try_compile "$LINENO"; then : 4067 ac_compiler_gnu=yes 4068else 4069 ac_compiler_gnu=no 4070fi 4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4072ac_cv_c_compiler_gnu=$ac_compiler_gnu 4073 4074fi 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4076$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4077if test $ac_compiler_gnu = yes; then 4078 GCC=yes 4079else 4080 GCC= 4081fi 4082ac_test_CFLAGS=${CFLAGS+set} 4083ac_save_CFLAGS=$CFLAGS 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4085$as_echo_n "checking whether $CC accepts -g... " >&6; } 4086if ${ac_cv_prog_cc_g+:} false; then : 4087 $as_echo_n "(cached) " >&6 4088else 4089 ac_save_c_werror_flag=$ac_c_werror_flag 4090 ac_c_werror_flag=yes 4091 ac_cv_prog_cc_g=no 4092 CFLAGS="-g" 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4094/* end confdefs.h. */ 4095 4096int 4097main () 4098{ 4099 4100 ; 4101 return 0; 4102} 4103_ACEOF 4104if ac_fn_c_try_compile "$LINENO"; then : 4105 ac_cv_prog_cc_g=yes 4106else 4107 CFLAGS="" 4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4109/* end confdefs.h. */ 4110 4111int 4112main () 4113{ 4114 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119if ac_fn_c_try_compile "$LINENO"; then : 4120 4121else 4122 ac_c_werror_flag=$ac_save_c_werror_flag 4123 CFLAGS="-g" 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125/* end confdefs.h. */ 4126 4127int 4128main () 4129{ 4130 4131 ; 4132 return 0; 4133} 4134_ACEOF 4135if ac_fn_c_try_compile "$LINENO"; then : 4136 ac_cv_prog_cc_g=yes 4137fi 4138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4139fi 4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4141fi 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4143 ac_c_werror_flag=$ac_save_c_werror_flag 4144fi 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4146$as_echo "$ac_cv_prog_cc_g" >&6; } 4147if test "$ac_test_CFLAGS" = set; then 4148 CFLAGS=$ac_save_CFLAGS 4149elif test $ac_cv_prog_cc_g = yes; then 4150 if test "$GCC" = yes; then 4151 CFLAGS="-g -O2" 4152 else 4153 CFLAGS="-g" 4154 fi 4155else 4156 if test "$GCC" = yes; then 4157 CFLAGS="-O2" 4158 else 4159 CFLAGS= 4160 fi 4161fi 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4163$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4164if ${ac_cv_prog_cc_c89+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 ac_cv_prog_cc_c89=no 4168ac_save_CC=$CC 4169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4170/* end confdefs.h. */ 4171#include <stdarg.h> 4172#include <stdio.h> 4173struct stat; 4174/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4175struct buf { int x; }; 4176FILE * (*rcsopen) (struct buf *, struct stat *, int); 4177static char *e (p, i) 4178 char **p; 4179 int i; 4180{ 4181 return p[i]; 4182} 4183static char *f (char * (*g) (char **, int), char **p, ...) 4184{ 4185 char *s; 4186 va_list v; 4187 va_start (v,p); 4188 s = g (p, va_arg (v,int)); 4189 va_end (v); 4190 return s; 4191} 4192 4193/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4194 function prototypes and stuff, but not '\xHH' hex character constants. 4195 These don't provoke an error unfortunately, instead are silently treated 4196 as 'x'. The following induces an error, until -std is added to get 4197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4198 array size at least. It's necessary to write '\x00'==0 to get something 4199 that's true only with -std. */ 4200int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4201 4202/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4203 inside strings and character constants. */ 4204#define FOO(x) 'x' 4205int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4206 4207int test (int i, double x); 4208struct s1 {int (*f) (int a);}; 4209struct s2 {int (*f) (double a);}; 4210int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4211int argc; 4212char **argv; 4213int 4214main () 4215{ 4216return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4217 ; 4218 return 0; 4219} 4220_ACEOF 4221for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4223do 4224 CC="$ac_save_CC $ac_arg" 4225 if ac_fn_c_try_compile "$LINENO"; then : 4226 ac_cv_prog_cc_c89=$ac_arg 4227fi 4228rm -f core conftest.err conftest.$ac_objext 4229 test "x$ac_cv_prog_cc_c89" != "xno" && break 4230done 4231rm -f conftest.$ac_ext 4232CC=$ac_save_CC 4233 4234fi 4235# AC_CACHE_VAL 4236case "x$ac_cv_prog_cc_c89" in 4237 x) 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4239$as_echo "none needed" >&6; } ;; 4240 xno) 4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4242$as_echo "unsupported" >&6; } ;; 4243 *) 4244 CC="$CC $ac_cv_prog_cc_c89" 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4246$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4247esac 4248if test "x$ac_cv_prog_cc_c89" != xno; then : 4249 4250fi 4251 4252ac_ext=c 4253ac_cpp='$CPP $CPPFLAGS' 4254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4256ac_compiler_gnu=$ac_cv_c_compiler_gnu 4257 4258depcc="$CC" am_compiler_list= 4259 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4261$as_echo_n "checking dependency style of $depcc... " >&6; } 4262if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4263 $as_echo_n "(cached) " >&6 4264else 4265 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4266 # We make a subdir and do the tests there. Otherwise we can end up 4267 # making bogus files that we don't know about and never remove. For 4268 # instance it was reported that on HP-UX the gcc test will end up 4269 # making a dummy file named `D' -- because `-MD' means `put the output 4270 # in D'. 4271 rm -rf conftest.dir 4272 mkdir conftest.dir 4273 # Copy depcomp to subdir because otherwise we won't find it if we're 4274 # using a relative directory. 4275 cp "$am_depcomp" conftest.dir 4276 cd conftest.dir 4277 # We will build objects and dependencies in a subdirectory because 4278 # it helps to detect inapplicable dependency modes. For instance 4279 # both Tru64's cc and ICC support -MD to output dependencies as a 4280 # side effect of compilation, but ICC will put the dependencies in 4281 # the current directory while Tru64 will put them in the object 4282 # directory. 4283 mkdir sub 4284 4285 am_cv_CC_dependencies_compiler_type=none 4286 if test "$am_compiler_list" = ""; then 4287 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4288 fi 4289 am__universal=false 4290 case " $depcc " in #( 4291 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4292 esac 4293 4294 for depmode in $am_compiler_list; do 4295 # Setup a source with many dependencies, because some compilers 4296 # like to wrap large dependency lists on column 80 (with \), and 4297 # we should not choose a depcomp mode which is confused by this. 4298 # 4299 # We need to recreate these files for each test, as the compiler may 4300 # overwrite some of them when testing with obscure command lines. 4301 # This happens at least with the AIX C compiler. 4302 : > sub/conftest.c 4303 for i in 1 2 3 4 5 6; do 4304 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4305 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4306 # Solaris 8's {/usr,}/bin/sh. 4307 touch sub/conftst$i.h 4308 done 4309 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4310 4311 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4312 # mode. It turns out that the SunPro C++ compiler does not properly 4313 # handle `-M -o', and we need to detect this. Also, some Intel 4314 # versions had trouble with output in subdirs 4315 am__obj=sub/conftest.${OBJEXT-o} 4316 am__minus_obj="-o $am__obj" 4317 case $depmode in 4318 gcc) 4319 # This depmode causes a compiler race in universal mode. 4320 test "$am__universal" = false || continue 4321 ;; 4322 nosideeffect) 4323 # after this tag, mechanisms are not by side-effect, so they'll 4324 # only be used when explicitly requested 4325 if test "x$enable_dependency_tracking" = xyes; then 4326 continue 4327 else 4328 break 4329 fi 4330 ;; 4331 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4332 # This compiler won't grok `-c -o', but also, the minuso test has 4333 # not run yet. These depmodes are late enough in the game, and 4334 # so weak that their functioning should not be impacted. 4335 am__obj=conftest.${OBJEXT-o} 4336 am__minus_obj= 4337 ;; 4338 none) break ;; 4339 esac 4340 if depmode=$depmode \ 4341 source=sub/conftest.c object=$am__obj \ 4342 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4343 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4344 >/dev/null 2>conftest.err && 4345 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4346 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4347 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4348 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4349 # icc doesn't choke on unknown options, it will just issue warnings 4350 # or remarks (even with -Werror). So we grep stderr for any message 4351 # that says an option was ignored or not supported. 4352 # When given -MP, icc 7.0 and 7.1 complain thusly: 4353 # icc: Command line warning: ignoring option '-M'; no argument required 4354 # The diagnosis changed in icc 8.0: 4355 # icc: Command line remark: option '-MP' not supported 4356 if (grep 'ignoring option' conftest.err || 4357 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4358 am_cv_CC_dependencies_compiler_type=$depmode 4359 break 4360 fi 4361 fi 4362 done 4363 4364 cd .. 4365 rm -rf conftest.dir 4366else 4367 am_cv_CC_dependencies_compiler_type=none 4368fi 4369 4370fi 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4372$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4373CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4374 4375 if 4376 test "x$enable_dependency_tracking" != xno \ 4377 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4378 am__fastdepCC_TRUE= 4379 am__fastdepCC_FALSE='#' 4380else 4381 am__fastdepCC_TRUE='#' 4382 am__fastdepCC_FALSE= 4383fi 4384 4385 4386 4387ac_ext=c 4388ac_cpp='$CPP $CPPFLAGS' 4389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4391ac_compiler_gnu=$ac_cv_c_compiler_gnu 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4393$as_echo_n "checking how to run the C preprocessor... " >&6; } 4394# On Suns, sometimes $CPP names a directory. 4395if test -n "$CPP" && test -d "$CPP"; then 4396 CPP= 4397fi 4398if test -z "$CPP"; then 4399 if ${ac_cv_prog_CPP+:} false; then : 4400 $as_echo_n "(cached) " >&6 4401else 4402 # Double quotes because CPP needs to be expanded 4403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4404 do 4405 ac_preproc_ok=false 4406for ac_c_preproc_warn_flag in '' yes 4407do 4408 # Use a header file that comes with gcc, so configuring glibc 4409 # with a fresh cross-compiler works. 4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4411 # <limits.h> exists even on freestanding compilers. 4412 # On the NeXT, cc -E runs the code through the compiler's parser, 4413 # not just through cpp. "Syntax error" is here to catch this case. 4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4415/* end confdefs.h. */ 4416#ifdef __STDC__ 4417# include <limits.h> 4418#else 4419# include <assert.h> 4420#endif 4421 Syntax error 4422_ACEOF 4423if ac_fn_c_try_cpp "$LINENO"; then : 4424 4425else 4426 # Broken: fails on valid input. 4427continue 4428fi 4429rm -f conftest.err conftest.i conftest.$ac_ext 4430 4431 # OK, works on sane cases. Now check whether nonexistent headers 4432 # can be detected and how. 4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434/* end confdefs.h. */ 4435#include <ac_nonexistent.h> 4436_ACEOF 4437if ac_fn_c_try_cpp "$LINENO"; then : 4438 # Broken: success on invalid input. 4439continue 4440else 4441 # Passes both tests. 4442ac_preproc_ok=: 4443break 4444fi 4445rm -f conftest.err conftest.i conftest.$ac_ext 4446 4447done 4448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4449rm -f conftest.i conftest.err conftest.$ac_ext 4450if $ac_preproc_ok; then : 4451 break 4452fi 4453 4454 done 4455 ac_cv_prog_CPP=$CPP 4456 4457fi 4458 CPP=$ac_cv_prog_CPP 4459else 4460 ac_cv_prog_CPP=$CPP 4461fi 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4463$as_echo "$CPP" >&6; } 4464ac_preproc_ok=false 4465for ac_c_preproc_warn_flag in '' yes 4466do 4467 # Use a header file that comes with gcc, so configuring glibc 4468 # with a fresh cross-compiler works. 4469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4470 # <limits.h> exists even on freestanding compilers. 4471 # On the NeXT, cc -E runs the code through the compiler's parser, 4472 # not just through cpp. "Syntax error" is here to catch this case. 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474/* end confdefs.h. */ 4475#ifdef __STDC__ 4476# include <limits.h> 4477#else 4478# include <assert.h> 4479#endif 4480 Syntax error 4481_ACEOF 4482if ac_fn_c_try_cpp "$LINENO"; then : 4483 4484else 4485 # Broken: fails on valid input. 4486continue 4487fi 4488rm -f conftest.err conftest.i conftest.$ac_ext 4489 4490 # OK, works on sane cases. Now check whether nonexistent headers 4491 # can be detected and how. 4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4493/* end confdefs.h. */ 4494#include <ac_nonexistent.h> 4495_ACEOF 4496if ac_fn_c_try_cpp "$LINENO"; then : 4497 # Broken: success on invalid input. 4498continue 4499else 4500 # Passes both tests. 4501ac_preproc_ok=: 4502break 4503fi 4504rm -f conftest.err conftest.i conftest.$ac_ext 4505 4506done 4507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4508rm -f conftest.i conftest.err conftest.$ac_ext 4509if $ac_preproc_ok; then : 4510 4511else 4512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4514as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4515See \`config.log' for more details" "$LINENO" 5; } 4516fi 4517 4518ac_ext=c 4519ac_cpp='$CPP $CPPFLAGS' 4520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4522ac_compiler_gnu=$ac_cv_c_compiler_gnu 4523 4524 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4526$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4527if ${ac_cv_path_GREP+:} false; then : 4528 $as_echo_n "(cached) " >&6 4529else 4530 if test -z "$GREP"; then 4531 ac_path_GREP_found=false 4532 # Loop through the user's path and test for each of PROGNAME-LIST 4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4535do 4536 IFS=$as_save_IFS 4537 test -z "$as_dir" && as_dir=. 4538 for ac_prog in grep ggrep; do 4539 for ac_exec_ext in '' $ac_executable_extensions; do 4540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4541 as_fn_executable_p "$ac_path_GREP" || continue 4542# Check for GNU ac_path_GREP and select it if it is found. 4543 # Check for GNU $ac_path_GREP 4544case `"$ac_path_GREP" --version 2>&1` in 4545*GNU*) 4546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4547*) 4548 ac_count=0 4549 $as_echo_n 0123456789 >"conftest.in" 4550 while : 4551 do 4552 cat "conftest.in" "conftest.in" >"conftest.tmp" 4553 mv "conftest.tmp" "conftest.in" 4554 cp "conftest.in" "conftest.nl" 4555 $as_echo 'GREP' >> "conftest.nl" 4556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4558 as_fn_arith $ac_count + 1 && ac_count=$as_val 4559 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4560 # Best one so far, save it but keep looking for a better one 4561 ac_cv_path_GREP="$ac_path_GREP" 4562 ac_path_GREP_max=$ac_count 4563 fi 4564 # 10*(2^10) chars as input seems more than enough 4565 test $ac_count -gt 10 && break 4566 done 4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4568esac 4569 4570 $ac_path_GREP_found && break 3 4571 done 4572 done 4573 done 4574IFS=$as_save_IFS 4575 if test -z "$ac_cv_path_GREP"; then 4576 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4577 fi 4578else 4579 ac_cv_path_GREP=$GREP 4580fi 4581 4582fi 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4584$as_echo "$ac_cv_path_GREP" >&6; } 4585 GREP="$ac_cv_path_GREP" 4586 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4589$as_echo_n "checking for egrep... " >&6; } 4590if ${ac_cv_path_EGREP+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4594 then ac_cv_path_EGREP="$GREP -E" 4595 else 4596 if test -z "$EGREP"; then 4597 ac_path_EGREP_found=false 4598 # Loop through the user's path and test for each of PROGNAME-LIST 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_prog in egrep; do 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4607 as_fn_executable_p "$ac_path_EGREP" || continue 4608# Check for GNU ac_path_EGREP and select it if it is found. 4609 # Check for GNU $ac_path_EGREP 4610case `"$ac_path_EGREP" --version 2>&1` in 4611*GNU*) 4612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4613*) 4614 ac_count=0 4615 $as_echo_n 0123456789 >"conftest.in" 4616 while : 4617 do 4618 cat "conftest.in" "conftest.in" >"conftest.tmp" 4619 mv "conftest.tmp" "conftest.in" 4620 cp "conftest.in" "conftest.nl" 4621 $as_echo 'EGREP' >> "conftest.nl" 4622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4624 as_fn_arith $ac_count + 1 && ac_count=$as_val 4625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4626 # Best one so far, save it but keep looking for a better one 4627 ac_cv_path_EGREP="$ac_path_EGREP" 4628 ac_path_EGREP_max=$ac_count 4629 fi 4630 # 10*(2^10) chars as input seems more than enough 4631 test $ac_count -gt 10 && break 4632 done 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4634esac 4635 4636 $ac_path_EGREP_found && break 3 4637 done 4638 done 4639 done 4640IFS=$as_save_IFS 4641 if test -z "$ac_cv_path_EGREP"; then 4642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4643 fi 4644else 4645 ac_cv_path_EGREP=$EGREP 4646fi 4647 4648 fi 4649fi 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4651$as_echo "$ac_cv_path_EGREP" >&6; } 4652 EGREP="$ac_cv_path_EGREP" 4653 4654 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4656$as_echo_n "checking for ANSI C header files... " >&6; } 4657if ${ac_cv_header_stdc+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662#include <stdlib.h> 4663#include <stdarg.h> 4664#include <string.h> 4665#include <float.h> 4666 4667int 4668main () 4669{ 4670 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675if ac_fn_c_try_compile "$LINENO"; then : 4676 ac_cv_header_stdc=yes 4677else 4678 ac_cv_header_stdc=no 4679fi 4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4681 4682if test $ac_cv_header_stdc = yes; then 4683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4685/* end confdefs.h. */ 4686#include <string.h> 4687 4688_ACEOF 4689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4690 $EGREP "memchr" >/dev/null 2>&1; then : 4691 4692else 4693 ac_cv_header_stdc=no 4694fi 4695rm -f conftest* 4696 4697fi 4698 4699if test $ac_cv_header_stdc = yes; then 4700 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702/* end confdefs.h. */ 4703#include <stdlib.h> 4704 4705_ACEOF 4706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4707 $EGREP "free" >/dev/null 2>&1; then : 4708 4709else 4710 ac_cv_header_stdc=no 4711fi 4712rm -f conftest* 4713 4714fi 4715 4716if test $ac_cv_header_stdc = yes; then 4717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4718 if test "$cross_compiling" = yes; then : 4719 : 4720else 4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4722/* end confdefs.h. */ 4723#include <ctype.h> 4724#include <stdlib.h> 4725#if ((' ' & 0x0FF) == 0x020) 4726# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4727# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4728#else 4729# define ISLOWER(c) \ 4730 (('a' <= (c) && (c) <= 'i') \ 4731 || ('j' <= (c) && (c) <= 'r') \ 4732 || ('s' <= (c) && (c) <= 'z')) 4733# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4734#endif 4735 4736#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4737int 4738main () 4739{ 4740 int i; 4741 for (i = 0; i < 256; i++) 4742 if (XOR (islower (i), ISLOWER (i)) 4743 || toupper (i) != TOUPPER (i)) 4744 return 2; 4745 return 0; 4746} 4747_ACEOF 4748if ac_fn_c_try_run "$LINENO"; then : 4749 4750else 4751 ac_cv_header_stdc=no 4752fi 4753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4754 conftest.$ac_objext conftest.beam conftest.$ac_ext 4755fi 4756 4757fi 4758fi 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4760$as_echo "$ac_cv_header_stdc" >&6; } 4761if test $ac_cv_header_stdc = yes; then 4762 4763$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4764 4765fi 4766 4767# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4768for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4769 inttypes.h stdint.h unistd.h 4770do : 4771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4772ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4773" 4774if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4775 cat >>confdefs.h <<_ACEOF 4776#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4777_ACEOF 4778 4779fi 4780 4781done 4782 4783 4784 4785 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4786if test "x$ac_cv_header_minix_config_h" = xyes; then : 4787 MINIX=yes 4788else 4789 MINIX= 4790fi 4791 4792 4793 if test "$MINIX" = yes; then 4794 4795$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4796 4797 4798$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4799 4800 4801$as_echo "#define _MINIX 1" >>confdefs.h 4802 4803 fi 4804 4805 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4807$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4808if ${ac_cv_safe_to_define___extensions__+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813 4814# define __EXTENSIONS__ 1 4815 $ac_includes_default 4816int 4817main () 4818{ 4819 4820 ; 4821 return 0; 4822} 4823_ACEOF 4824if ac_fn_c_try_compile "$LINENO"; then : 4825 ac_cv_safe_to_define___extensions__=yes 4826else 4827 ac_cv_safe_to_define___extensions__=no 4828fi 4829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4830fi 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4832$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4833 test $ac_cv_safe_to_define___extensions__ = yes && 4834 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4835 4836 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4837 4838 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4839 4840 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4841 4842 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4843 4844 4845 4846# Check whether --enable-lzo was given. 4847if test "${enable_lzo+set}" = set; then : 4848 enableval=$enable_lzo; 4849else 4850 enable_lzo="yes" 4851 4852fi 4853 4854 4855# Check whether --enable-lzo-stub was given. 4856if test "${enable_lzo_stub+set}" = set; then : 4857 enableval=$enable_lzo_stub; 4858else 4859 enable_lzo_stub="no" 4860 4861fi 4862 4863 4864# Check whether --enable-crypto was given. 4865if test "${enable_crypto+set}" = set; then : 4866 enableval=$enable_crypto; 4867else 4868 enable_crypto="yes" 4869 4870fi 4871 4872 4873# Check whether --enable-ssl was given. 4874if test "${enable_ssl+set}" = set; then : 4875 enableval=$enable_ssl; 4876else 4877 enable_ssl="yes" 4878 4879fi 4880 4881 4882# Check whether --enable-x509-alt-username was given. 4883if test "${enable_x509_alt_username+set}" = set; then : 4884 enableval=$enable_x509_alt_username; 4885else 4886 enable_x509_alt_username="no" 4887 4888fi 4889 4890 4891# Check whether --enable-multi was given. 4892if test "${enable_multi+set}" = set; then : 4893 enableval=$enable_multi; 4894else 4895 enable_multi="yes" 4896 4897fi 4898 4899 4900# Check whether --enable-server was given. 4901if test "${enable_server+set}" = set; then : 4902 enableval=$enable_server; 4903else 4904 enable_server="yes" 4905 4906fi 4907 4908 4909# Check whether --enable-plugins was given. 4910if test "${enable_plugins+set}" = set; then : 4911 enableval=$enable_plugins; 4912else 4913 enable_plugins="yes" 4914 4915fi 4916 4917 4918# Check whether --enable-eurephia was given. 4919if test "${enable_eurephia+set}" = set; then : 4920 enableval=$enable_eurephia; 4921else 4922 enable_eurephia="yes" 4923 4924fi 4925 4926 4927# Check whether --enable-management was given. 4928if test "${enable_management+set}" = set; then : 4929 enableval=$enable_management; 4930else 4931 enable_management="yes" 4932 4933fi 4934 4935 4936# Check whether --enable-pkcs11 was given. 4937if test "${enable_pkcs11+set}" = set; then : 4938 enableval=$enable_pkcs11; 4939else 4940 enable_pkcs11="no" 4941 4942fi 4943 4944 4945# Check whether --enable-socks was given. 4946if test "${enable_socks+set}" = set; then : 4947 enableval=$enable_socks; 4948else 4949 enable_socks="yes" 4950 4951fi 4952 4953 4954# Check whether --enable-http-proxy was given. 4955if test "${enable_http_proxy+set}" = set; then : 4956 enableval=$enable_http_proxy; 4957else 4958 enable_http_proxy="yes" 4959 4960fi 4961 4962 4963# Check whether --enable-fragment was given. 4964if test "${enable_fragment+set}" = set; then : 4965 enableval=$enable_fragment; 4966else 4967 enable_fragment="yes" 4968 4969fi 4970 4971 4972# Check whether --enable-multihome was given. 4973if test "${enable_multihome+set}" = set; then : 4974 enableval=$enable_multihome; 4975else 4976 enable_multihome="yes" 4977 4978fi 4979 4980 4981# Check whether --enable-port-share was given. 4982if test "${enable_port_share+set}" = set; then : 4983 enableval=$enable_port_share; 4984else 4985 enable_port_share="yes" 4986 4987fi 4988 4989 4990# Check whether --enable-debug was given. 4991if test "${enable_debug+set}" = set; then : 4992 enableval=$enable_debug; 4993else 4994 enable_debug="yes" 4995 4996fi 4997 4998 4999# Check whether --enable-small was given. 5000if test "${enable_small+set}" = set; then : 5001 enableval=$enable_small; 5002else 5003 enable_small="no" 5004 5005fi 5006 5007 5008# Check whether --enable-password-save was given. 5009if test "${enable_password_save+set}" = set; then : 5010 enableval=$enable_password_save; 5011else 5012 enable_password_save="no" 5013 5014fi 5015 5016 5017# Check whether --enable-iproute2 was given. 5018if test "${enable_iproute2+set}" = set; then : 5019 enableval=$enable_iproute2; 5020else 5021 enable_iproute2="no" 5022 5023fi 5024 5025 5026# Check whether --enable-def-auth was given. 5027if test "${enable_def_auth+set}" = set; then : 5028 enableval=$enable_def_auth; 5029else 5030 enable_def_auth="yes" 5031 5032fi 5033 5034 5035# Check whether --enable-pf was given. 5036if test "${enable_pf+set}" = set; then : 5037 enableval=$enable_pf; 5038else 5039 enable_pf="yes" 5040 5041fi 5042 5043 5044# Check whether --enable-plugin-auth-pam was given. 5045if test "${enable_plugin_auth_pam+set}" = set; then : 5046 enableval=$enable_plugin_auth_pam; 5047else 5048 5049 case "$host" in 5050 *-*-openbsd*) enable_plugin_auth_pam="no";; 5051 *-mingw*) enable_plugin_auth_pam="no";; 5052 *) enable_plugin_auth_pam="yes";; 5053 esac 5054 5055 5056fi 5057 5058 5059# Check whether --enable-plugin-down-root was given. 5060if test "${enable_plugin_down_root+set}" = set; then : 5061 enableval=$enable_plugin_down_root; 5062else 5063 5064 case "$host" in 5065 *-mingw*) enable_plugin_down_root="no";; 5066 *) enable_plugin_down_root="yes";; 5067 esac 5068 5069 5070fi 5071 5072 5073# Check whether --enable-pam-dlopen was given. 5074if test "${enable_pam_dlopen+set}" = set; then : 5075 enableval=$enable_pam_dlopen; 5076else 5077 enable_pam_dlopen="no" 5078 5079fi 5080 5081 5082# Check whether --enable-strict was given. 5083if test "${enable_strict+set}" = set; then : 5084 enableval=$enable_strict; 5085else 5086 enable_strict="no" 5087 5088fi 5089 5090 5091# Check whether --enable-pedantic was given. 5092if test "${enable_pedantic+set}" = set; then : 5093 enableval=$enable_pedantic; 5094else 5095 enable_pedantic="no" 5096 5097fi 5098 5099 5100# Check whether --enable-strict-options was given. 5101if test "${enable_strict_options+set}" = set; then : 5102 enableval=$enable_strict_options; 5103else 5104 enable_strict_options="no" 5105 5106fi 5107 5108 5109# Check whether --enable-selinux was given. 5110if test "${enable_selinux+set}" = set; then : 5111 enableval=$enable_selinux; 5112else 5113 enable_selinux="no" 5114 5115fi 5116 5117 5118# Check whether --enable-systemd was given. 5119if test "${enable_systemd+set}" = set; then : 5120 enableval=$enable_systemd; 5121else 5122 enable_systemd="no" 5123 5124fi 5125 5126 5127 5128# Check whether --with-special-build was given. 5129if test "${with_special_build+set}" = set; then : 5130 withval=$with_special_build; test -n "${withval}" && 5131cat >>confdefs.h <<_ACEOF 5132#define CONFIGURE_SPECIAL_BUILD "${withval}" 5133_ACEOF 5134 5135 5136fi 5137 5138 5139 5140# Check whether --with-mem-check was given. 5141if test "${with_mem_check+set}" = set; then : 5142 withval=$with_mem_check; 5143 case "${withval}" in 5144 dmalloc|valgrind|ssl|no) ;; 5145 *) as_fn_error $? "bad value ${withval} for --mem-check" "$LINENO" 5 ;; 5146 esac 5147 5148else 5149 with_mem_check="no" 5150 5151fi 5152 5153 5154 5155# Check whether --with-crypto-library was given. 5156if test "${with_crypto_library+set}" = set; then : 5157 withval=$with_crypto_library; 5158 case "${withval}" in 5159 openssl|polarssl) ;; 5160 *) as_fn_error $? "bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;; 5161 esac 5162 5163else 5164 with_crypto_library="openssl" 5165 5166fi 5167 5168 5169 5170# Check whether --with-plugindir was given. 5171if test "${with_plugindir+set}" = set; then : 5172 withval=$with_plugindir; 5173else 5174 with_plugindir="\$(libdir)/openvpn/plugins" 5175 5176fi 5177 5178 5179 5180 5181cat >>confdefs.h <<_ACEOF 5182#define TARGET_ALIAS "${host}" 5183_ACEOF 5184 5185case "$host" in 5186 *-*-linux*) 5187 5188$as_echo "#define TARGET_LINUX 1" >>confdefs.h 5189 5190 5191cat >>confdefs.h <<_ACEOF 5192#define TARGET_PREFIX "L" 5193_ACEOF 5194 5195 ;; 5196 *-*-solaris*) 5197 5198$as_echo "#define TARGET_SOLARIS 1" >>confdefs.h 5199 5200 5201cat >>confdefs.h <<_ACEOF 5202#define TARGET_PREFIX "S" 5203_ACEOF 5204 5205 ;; 5206 *-*-openbsd*) 5207 5208$as_echo "#define TARGET_OPENBSD 1" >>confdefs.h 5209 5210 5211cat >>confdefs.h <<_ACEOF 5212#define TARGET_PREFIX "O" 5213_ACEOF 5214 5215 ;; 5216 *-*-freebsd*) 5217 5218$as_echo "#define TARGET_FREEBSD 1" >>confdefs.h 5219 5220 5221cat >>confdefs.h <<_ACEOF 5222#define TARGET_PREFIX "F" 5223_ACEOF 5224 5225 ;; 5226 *-*-netbsd*) 5227 5228$as_echo "#define TARGET_NETBSD 1" >>confdefs.h 5229 5230 5231cat >>confdefs.h <<_ACEOF 5232#define TARGET_PREFIX "N" 5233_ACEOF 5234 5235 ;; 5236 *-*-darwin*) 5237 5238$as_echo "#define TARGET_DARWIN 1" >>confdefs.h 5239 5240 5241cat >>confdefs.h <<_ACEOF 5242#define TARGET_PREFIX "M" 5243_ACEOF 5244 5245 have_tap_header="yes" 5246 CPPFLAGS="$CPPFLAGS -no-cpp-precomp" 5247 ;; 5248 *-mingw*) 5249 5250$as_echo "#define TARGET_WIN32 1" >>confdefs.h 5251 5252 5253cat >>confdefs.h <<_ACEOF 5254#define TARGET_PREFIX "W" 5255_ACEOF 5256 5257 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN" 5258 CPPFLAGS="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP" 5259 WIN32=yes 5260 ;; 5261 *-*-dragonfly*) 5262 5263$as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h 5264 5265 5266cat >>confdefs.h <<_ACEOF 5267#define TARGET_PREFIX "D" 5268_ACEOF 5269 5270 ;; 5271 *) 5272 5273cat >>confdefs.h <<_ACEOF 5274#define TARGET_PREFIX "X" 5275_ACEOF 5276 5277 have_tap_header="yes" 5278 ;; 5279esac 5280 5281 5282 5283 5284 5285 5286 5287 5288if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5289 if test -n "$ac_tool_prefix"; then 5290 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5291set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5293$as_echo_n "checking for $ac_word... " >&6; } 5294if ${ac_cv_path_PKG_CONFIG+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 case $PKG_CONFIG in 5298 [\\/]* | ?:[\\/]*) 5299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5300 ;; 5301 *) 5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303for as_dir in $PATH 5304do 5305 IFS=$as_save_IFS 5306 test -z "$as_dir" && as_dir=. 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5311 break 2 5312 fi 5313done 5314 done 5315IFS=$as_save_IFS 5316 5317 ;; 5318esac 5319fi 5320PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5321if test -n "$PKG_CONFIG"; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5323$as_echo "$PKG_CONFIG" >&6; } 5324else 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326$as_echo "no" >&6; } 5327fi 5328 5329 5330fi 5331if test -z "$ac_cv_path_PKG_CONFIG"; then 5332 ac_pt_PKG_CONFIG=$PKG_CONFIG 5333 # Extract the first word of "pkg-config", so it can be a program name with args. 5334set dummy pkg-config; ac_word=$2 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5336$as_echo_n "checking for $ac_word... " >&6; } 5337if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5338 $as_echo_n "(cached) " >&6 5339else 5340 case $ac_pt_PKG_CONFIG in 5341 [\\/]* | ?:[\\/]*) 5342 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5343 ;; 5344 *) 5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5346for as_dir in $PATH 5347do 5348 IFS=$as_save_IFS 5349 test -z "$as_dir" && as_dir=. 5350 for ac_exec_ext in '' $ac_executable_extensions; do 5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5352 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5354 break 2 5355 fi 5356done 5357 done 5358IFS=$as_save_IFS 5359 5360 ;; 5361esac 5362fi 5363ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5364if test -n "$ac_pt_PKG_CONFIG"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5366$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5367else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369$as_echo "no" >&6; } 5370fi 5371 5372 if test "x$ac_pt_PKG_CONFIG" = x; then 5373 PKG_CONFIG="" 5374 else 5375 case $cross_compiling:$ac_tool_warned in 5376yes:) 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5379ac_tool_warned=yes ;; 5380esac 5381 PKG_CONFIG=$ac_pt_PKG_CONFIG 5382 fi 5383else 5384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5385fi 5386 5387fi 5388if test -n "$PKG_CONFIG"; then 5389 _pkg_min_version=0.9.0 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5391$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5392 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5394$as_echo "yes" >&6; } 5395 else 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5397$as_echo "no" >&6; } 5398 PKG_CONFIG="" 5399 fi 5400fi 5401ac_ext=c 5402ac_cpp='$CPP $CPPFLAGS' 5403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5405ac_compiler_gnu=$ac_cv_c_compiler_gnu 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5407$as_echo_n "checking how to run the C preprocessor... " >&6; } 5408# On Suns, sometimes $CPP names a directory. 5409if test -n "$CPP" && test -d "$CPP"; then 5410 CPP= 5411fi 5412if test -z "$CPP"; then 5413 if ${ac_cv_prog_CPP+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 # Double quotes because CPP needs to be expanded 5417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5418 do 5419 ac_preproc_ok=false 5420for ac_c_preproc_warn_flag in '' yes 5421do 5422 # Use a header file that comes with gcc, so configuring glibc 5423 # with a fresh cross-compiler works. 5424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5425 # <limits.h> exists even on freestanding compilers. 5426 # On the NeXT, cc -E runs the code through the compiler's parser, 5427 # not just through cpp. "Syntax error" is here to catch this case. 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429/* end confdefs.h. */ 5430#ifdef __STDC__ 5431# include <limits.h> 5432#else 5433# include <assert.h> 5434#endif 5435 Syntax error 5436_ACEOF 5437if ac_fn_c_try_cpp "$LINENO"; then : 5438 5439else 5440 # Broken: fails on valid input. 5441continue 5442fi 5443rm -f conftest.err conftest.i conftest.$ac_ext 5444 5445 # OK, works on sane cases. Now check whether nonexistent headers 5446 # can be detected and how. 5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448/* end confdefs.h. */ 5449#include <ac_nonexistent.h> 5450_ACEOF 5451if ac_fn_c_try_cpp "$LINENO"; then : 5452 # Broken: success on invalid input. 5453continue 5454else 5455 # Passes both tests. 5456ac_preproc_ok=: 5457break 5458fi 5459rm -f conftest.err conftest.i conftest.$ac_ext 5460 5461done 5462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5463rm -f conftest.i conftest.err conftest.$ac_ext 5464if $ac_preproc_ok; then : 5465 break 5466fi 5467 5468 done 5469 ac_cv_prog_CPP=$CPP 5470 5471fi 5472 CPP=$ac_cv_prog_CPP 5473else 5474 ac_cv_prog_CPP=$CPP 5475fi 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5477$as_echo "$CPP" >&6; } 5478ac_preproc_ok=false 5479for ac_c_preproc_warn_flag in '' yes 5480do 5481 # Use a header file that comes with gcc, so configuring glibc 5482 # with a fresh cross-compiler works. 5483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5484 # <limits.h> exists even on freestanding compilers. 5485 # On the NeXT, cc -E runs the code through the compiler's parser, 5486 # not just through cpp. "Syntax error" is here to catch this case. 5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5488/* end confdefs.h. */ 5489#ifdef __STDC__ 5490# include <limits.h> 5491#else 5492# include <assert.h> 5493#endif 5494 Syntax error 5495_ACEOF 5496if ac_fn_c_try_cpp "$LINENO"; then : 5497 5498else 5499 # Broken: fails on valid input. 5500continue 5501fi 5502rm -f conftest.err conftest.i conftest.$ac_ext 5503 5504 # OK, works on sane cases. Now check whether nonexistent headers 5505 # can be detected and how. 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508#include <ac_nonexistent.h> 5509_ACEOF 5510if ac_fn_c_try_cpp "$LINENO"; then : 5511 # Broken: success on invalid input. 5512continue 5513else 5514 # Passes both tests. 5515ac_preproc_ok=: 5516break 5517fi 5518rm -f conftest.err conftest.i conftest.$ac_ext 5519 5520done 5521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5522rm -f conftest.i conftest.err conftest.$ac_ext 5523if $ac_preproc_ok; then : 5524 5525else 5526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5528as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5529See \`config.log' for more details" "$LINENO" 5; } 5530fi 5531 5532ac_ext=c 5533ac_cpp='$CPP $CPPFLAGS' 5534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5536ac_compiler_gnu=$ac_cv_c_compiler_gnu 5537 5538 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5540$as_echo_n "checking whether ln -s works... " >&6; } 5541LN_S=$as_ln_s 5542if test "$LN_S" = "ln -s"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5544$as_echo "yes" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5547$as_echo "no, using $LN_S" >&6; } 5548fi 5549 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5551$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5552if ${ac_cv_path_SED+:} false; then : 5553 $as_echo_n "(cached) " >&6 5554else 5555 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5556 for ac_i in 1 2 3 4 5 6 7; do 5557 ac_script="$ac_script$as_nl$ac_script" 5558 done 5559 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5560 { ac_script=; unset ac_script;} 5561 if test -z "$SED"; then 5562 ac_path_SED_found=false 5563 # Loop through the user's path and test for each of PROGNAME-LIST 5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_prog in sed gsed; do 5570 for ac_exec_ext in '' $ac_executable_extensions; do 5571 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5572 as_fn_executable_p "$ac_path_SED" || continue 5573# Check for GNU ac_path_SED and select it if it is found. 5574 # Check for GNU $ac_path_SED 5575case `"$ac_path_SED" --version 2>&1` in 5576*GNU*) 5577 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5578*) 5579 ac_count=0 5580 $as_echo_n 0123456789 >"conftest.in" 5581 while : 5582 do 5583 cat "conftest.in" "conftest.in" >"conftest.tmp" 5584 mv "conftest.tmp" "conftest.in" 5585 cp "conftest.in" "conftest.nl" 5586 $as_echo '' >> "conftest.nl" 5587 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5589 as_fn_arith $ac_count + 1 && ac_count=$as_val 5590 if test $ac_count -gt ${ac_path_SED_max-0}; then 5591 # Best one so far, save it but keep looking for a better one 5592 ac_cv_path_SED="$ac_path_SED" 5593 ac_path_SED_max=$ac_count 5594 fi 5595 # 10*(2^10) chars as input seems more than enough 5596 test $ac_count -gt 10 && break 5597 done 5598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5599esac 5600 5601 $ac_path_SED_found && break 3 5602 done 5603 done 5604 done 5605IFS=$as_save_IFS 5606 if test -z "$ac_cv_path_SED"; then 5607 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5608 fi 5609else 5610 ac_cv_path_SED=$SED 5611fi 5612 5613fi 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5615$as_echo "$ac_cv_path_SED" >&6; } 5616 SED="$ac_cv_path_SED" 5617 rm -f conftest.sed 5618 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5620$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5621set x ${MAKE-make} 5622ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5623if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 cat >conftest.make <<\_ACEOF 5627SHELL = /bin/sh 5628all: 5629 @echo '@@@%%%=$(MAKE)=@@@%%%' 5630_ACEOF 5631# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5632case `${MAKE-make} -f conftest.make 2>/dev/null` in 5633 *@@@%%%=?*=@@@%%%*) 5634 eval ac_cv_prog_make_${ac_make}_set=yes;; 5635 *) 5636 eval ac_cv_prog_make_${ac_make}_set=no;; 5637esac 5638rm -f conftest.make 5639fi 5640if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5642$as_echo "yes" >&6; } 5643 SET_MAKE= 5644else 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5646$as_echo "no" >&6; } 5647 SET_MAKE="MAKE=${MAKE-make}" 5648fi 5649 5650 5651 5652 5653 5654 # tests 5655 5656 5657for ac_prog in ifconfig 5658do 5659 # Extract the first word of "$ac_prog", so it can be a program name with args. 5660set dummy $ac_prog; ac_word=$2 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5662$as_echo_n "checking for $ac_word... " >&6; } 5663if ${ac_cv_path_IFCONFIG+:} false; then : 5664 $as_echo_n "(cached) " >&6 5665else 5666 case $IFCONFIG in 5667 [\\/]* | ?:[\\/]*) 5668 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path. 5669 ;; 5670 *) 5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin" 5673for as_dir in $as_dummy 5674do 5675 IFS=$as_save_IFS 5676 test -z "$as_dir" && as_dir=. 5677 for ac_exec_ext in '' $ac_executable_extensions; do 5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5679 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" 5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5681 break 2 5682 fi 5683done 5684 done 5685IFS=$as_save_IFS 5686 5687 ;; 5688esac 5689fi 5690IFCONFIG=$ac_cv_path_IFCONFIG 5691if test -n "$IFCONFIG"; then 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5 5693$as_echo "$IFCONFIG" >&6; } 5694else 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5696$as_echo "no" >&6; } 5697fi 5698 5699 5700 test -n "$IFCONFIG" && break 5701done 5702 5703for ac_prog in route 5704do 5705 # Extract the first word of "$ac_prog", so it can be a program name with args. 5706set dummy $ac_prog; ac_word=$2 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5708$as_echo_n "checking for $ac_word... " >&6; } 5709if ${ac_cv_path_ROUTE+:} false; then : 5710 $as_echo_n "(cached) " >&6 5711else 5712 case $ROUTE in 5713 [\\/]* | ?:[\\/]*) 5714 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path. 5715 ;; 5716 *) 5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5718as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin" 5719for as_dir in $as_dummy 5720do 5721 IFS=$as_save_IFS 5722 test -z "$as_dir" && as_dir=. 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5725 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext" 5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5727 break 2 5728 fi 5729done 5730 done 5731IFS=$as_save_IFS 5732 5733 ;; 5734esac 5735fi 5736ROUTE=$ac_cv_path_ROUTE 5737if test -n "$ROUTE"; then 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5 5739$as_echo "$ROUTE" >&6; } 5740else 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5742$as_echo "no" >&6; } 5743fi 5744 5745 5746 test -n "$ROUTE" && break 5747done 5748 5749for ac_prog in ip 5750do 5751 # Extract the first word of "$ac_prog", so it can be a program name with args. 5752set dummy $ac_prog; ac_word=$2 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5754$as_echo_n "checking for $ac_word... " >&6; } 5755if ${ac_cv_path_IPROUTE+:} false; then : 5756 $as_echo_n "(cached) " >&6 5757else 5758 case $IPROUTE in 5759 [\\/]* | ?:[\\/]*) 5760 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path. 5761 ;; 5762 *) 5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5764as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin" 5765for as_dir in $as_dummy 5766do 5767 IFS=$as_save_IFS 5768 test -z "$as_dir" && as_dir=. 5769 for ac_exec_ext in '' $ac_executable_extensions; do 5770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5771 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext" 5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5773 break 2 5774 fi 5775done 5776 done 5777IFS=$as_save_IFS 5778 5779 ;; 5780esac 5781fi 5782IPROUTE=$ac_cv_path_IPROUTE 5783if test -n "$IPROUTE"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5 5785$as_echo "$IPROUTE" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 5792 test -n "$IPROUTE" && break 5793done 5794 5795for ac_prog in netstat 5796do 5797 # Extract the first word of "$ac_prog", so it can be a program name with args. 5798set dummy $ac_prog; ac_word=$2 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5800$as_echo_n "checking for $ac_word... " >&6; } 5801if ${ac_cv_prog_NETSTAT+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 if test -n "$NETSTAT"; then 5805 ac_cv_prog_NETSTAT="$NETSTAT" # Let the user override the test. 5806else 5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5808as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc" 5809for as_dir in $as_dummy 5810do 5811 IFS=$as_save_IFS 5812 test -z "$as_dir" && as_dir=. 5813 for ac_exec_ext in '' $ac_executable_extensions; do 5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5815 ac_cv_prog_NETSTAT="$ac_prog" 5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5817 break 2 5818 fi 5819done 5820 done 5821IFS=$as_save_IFS 5822 5823fi 5824fi 5825NETSTAT=$ac_cv_prog_NETSTAT 5826if test -n "$NETSTAT"; then 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5 5828$as_echo "$NETSTAT" >&6; } 5829else 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5831$as_echo "no" >&6; } 5832fi 5833 5834 5835 test -n "$NETSTAT" && break 5836done 5837test -n "$NETSTAT" || NETSTAT="netstat" 5838 # tests 5839for ac_prog in man2html 5840do 5841 # Extract the first word of "$ac_prog", so it can be a program name with args. 5842set dummy $ac_prog; ac_word=$2 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5844$as_echo_n "checking for $ac_word... " >&6; } 5845if ${ac_cv_prog_MAN2HTML+:} false; then : 5846 $as_echo_n "(cached) " >&6 5847else 5848 if test -n "$MAN2HTML"; then 5849 ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test. 5850else 5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5852for as_dir in $PATH 5853do 5854 IFS=$as_save_IFS 5855 test -z "$as_dir" && as_dir=. 5856 for ac_exec_ext in '' $ac_executable_extensions; do 5857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5858 ac_cv_prog_MAN2HTML="$ac_prog" 5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5860 break 2 5861 fi 5862done 5863 done 5864IFS=$as_save_IFS 5865 5866fi 5867fi 5868MAN2HTML=$ac_cv_prog_MAN2HTML 5869if test -n "$MAN2HTML"; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5 5871$as_echo "$MAN2HTML" >&6; } 5872else 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5874$as_echo "no" >&6; } 5875fi 5876 5877 5878 test -n "$MAN2HTML" && break 5879done 5880 5881for ac_prog in git 5882do 5883 # Extract the first word of "$ac_prog", so it can be a program name with args. 5884set dummy $ac_prog; ac_word=$2 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5886$as_echo_n "checking for $ac_word... " >&6; } 5887if ${ac_cv_prog_GIT+:} false; then : 5888 $as_echo_n "(cached) " >&6 5889else 5890 if test -n "$GIT"; then 5891 ac_cv_prog_GIT="$GIT" # Let the user override the test. 5892else 5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5894for as_dir in $PATH 5895do 5896 IFS=$as_save_IFS 5897 test -z "$as_dir" && as_dir=. 5898 for ac_exec_ext in '' $ac_executable_extensions; do 5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5900 ac_cv_prog_GIT="$ac_prog" 5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5902 break 2 5903 fi 5904done 5905 done 5906IFS=$as_save_IFS 5907 5908fi 5909fi 5910GIT=$ac_cv_prog_GIT 5911if test -n "$GIT"; then 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 5913$as_echo "$GIT" >&6; } 5914else 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5916$as_echo "no" >&6; } 5917fi 5918 5919 5920 test -n "$GIT" && break 5921done 5922 # optional 5923 5924cat >>confdefs.h <<_ACEOF 5925#define IFCONFIG_PATH "$IFCONFIG" 5926_ACEOF 5927 5928 5929cat >>confdefs.h <<_ACEOF 5930#define IPROUTE_PATH "$IPROUTE" 5931_ACEOF 5932 5933 5934cat >>confdefs.h <<_ACEOF 5935#define ROUTE_PATH "$ROUTE" 5936_ACEOF 5937 5938 5939# 5940# Libtool 5941# 5942 5943 case `pwd` in 5944 *\ * | *\ *) 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5946$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5947esac 5948 5949 5950 5951macro_version='2.4.2' 5952macro_revision='1.3337' 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966ltmain="$ac_aux_dir/ltmain.sh" 5967 5968# Backslashify metacharacters that are still active within 5969# double-quoted strings. 5970sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5971 5972# Same as above, but do not quote variable references. 5973double_quote_subst='s/\(["`\\]\)/\\\1/g' 5974 5975# Sed substitution to delay expansion of an escaped shell variable in a 5976# double_quote_subst'ed string. 5977delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5978 5979# Sed substitution to delay expansion of an escaped single quote. 5980delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5981 5982# Sed substitution to avoid accidental globbing in evaled expressions 5983no_glob_subst='s/\*/\\\*/g' 5984 5985ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5986ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5987ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5988 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5990$as_echo_n "checking how to print strings... " >&6; } 5991# Test print first, because it will be a builtin if present. 5992if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5993 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5994 ECHO='print -r --' 5995elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5996 ECHO='printf %s\n' 5997else 5998 # Use this function as a fallback that always works. 5999 func_fallback_echo () 6000 { 6001 eval 'cat <<_LTECHO_EOF 6002$1 6003_LTECHO_EOF' 6004 } 6005 ECHO='func_fallback_echo' 6006fi 6007 6008# func_echo_all arg... 6009# Invoke $ECHO with all args, space-separated. 6010func_echo_all () 6011{ 6012 $ECHO "" 6013} 6014 6015case "$ECHO" in 6016 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6017$as_echo "printf" >&6; } ;; 6018 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6019$as_echo "print -r" >&6; } ;; 6020 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6021$as_echo "cat" >&6; } ;; 6022esac 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6038$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6039if ${ac_cv_path_SED+:} false; then : 6040 $as_echo_n "(cached) " >&6 6041else 6042 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6043 for ac_i in 1 2 3 4 5 6 7; do 6044 ac_script="$ac_script$as_nl$ac_script" 6045 done 6046 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6047 { ac_script=; unset ac_script;} 6048 if test -z "$SED"; then 6049 ac_path_SED_found=false 6050 # Loop through the user's path and test for each of PROGNAME-LIST 6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6052for as_dir in $PATH 6053do 6054 IFS=$as_save_IFS 6055 test -z "$as_dir" && as_dir=. 6056 for ac_prog in sed gsed; do 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6059 as_fn_executable_p "$ac_path_SED" || continue 6060# Check for GNU ac_path_SED and select it if it is found. 6061 # Check for GNU $ac_path_SED 6062case `"$ac_path_SED" --version 2>&1` in 6063*GNU*) 6064 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6065*) 6066 ac_count=0 6067 $as_echo_n 0123456789 >"conftest.in" 6068 while : 6069 do 6070 cat "conftest.in" "conftest.in" >"conftest.tmp" 6071 mv "conftest.tmp" "conftest.in" 6072 cp "conftest.in" "conftest.nl" 6073 $as_echo '' >> "conftest.nl" 6074 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6076 as_fn_arith $ac_count + 1 && ac_count=$as_val 6077 if test $ac_count -gt ${ac_path_SED_max-0}; then 6078 # Best one so far, save it but keep looking for a better one 6079 ac_cv_path_SED="$ac_path_SED" 6080 ac_path_SED_max=$ac_count 6081 fi 6082 # 10*(2^10) chars as input seems more than enough 6083 test $ac_count -gt 10 && break 6084 done 6085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6086esac 6087 6088 $ac_path_SED_found && break 3 6089 done 6090 done 6091 done 6092IFS=$as_save_IFS 6093 if test -z "$ac_cv_path_SED"; then 6094 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6095 fi 6096else 6097 ac_cv_path_SED=$SED 6098fi 6099 6100fi 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6102$as_echo "$ac_cv_path_SED" >&6; } 6103 SED="$ac_cv_path_SED" 6104 rm -f conftest.sed 6105 6106test -z "$SED" && SED=sed 6107Xsed="$SED -e 1s/^X//" 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6120$as_echo_n "checking for fgrep... " >&6; } 6121if ${ac_cv_path_FGREP+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123else 6124 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6125 then ac_cv_path_FGREP="$GREP -F" 6126 else 6127 if test -z "$FGREP"; then 6128 ac_path_FGREP_found=false 6129 # Loop through the user's path and test for each of PROGNAME-LIST 6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6132do 6133 IFS=$as_save_IFS 6134 test -z "$as_dir" && as_dir=. 6135 for ac_prog in fgrep; do 6136 for ac_exec_ext in '' $ac_executable_extensions; do 6137 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6138 as_fn_executable_p "$ac_path_FGREP" || continue 6139# Check for GNU ac_path_FGREP and select it if it is found. 6140 # Check for GNU $ac_path_FGREP 6141case `"$ac_path_FGREP" --version 2>&1` in 6142*GNU*) 6143 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6144*) 6145 ac_count=0 6146 $as_echo_n 0123456789 >"conftest.in" 6147 while : 6148 do 6149 cat "conftest.in" "conftest.in" >"conftest.tmp" 6150 mv "conftest.tmp" "conftest.in" 6151 cp "conftest.in" "conftest.nl" 6152 $as_echo 'FGREP' >> "conftest.nl" 6153 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6155 as_fn_arith $ac_count + 1 && ac_count=$as_val 6156 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6157 # Best one so far, save it but keep looking for a better one 6158 ac_cv_path_FGREP="$ac_path_FGREP" 6159 ac_path_FGREP_max=$ac_count 6160 fi 6161 # 10*(2^10) chars as input seems more than enough 6162 test $ac_count -gt 10 && break 6163 done 6164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6165esac 6166 6167 $ac_path_FGREP_found && break 3 6168 done 6169 done 6170 done 6171IFS=$as_save_IFS 6172 if test -z "$ac_cv_path_FGREP"; then 6173 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6174 fi 6175else 6176 ac_cv_path_FGREP=$FGREP 6177fi 6178 6179 fi 6180fi 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6182$as_echo "$ac_cv_path_FGREP" >&6; } 6183 FGREP="$ac_cv_path_FGREP" 6184 6185 6186test -z "$GREP" && GREP=grep 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206# Check whether --with-gnu-ld was given. 6207if test "${with_gnu_ld+set}" = set; then : 6208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6209else 6210 with_gnu_ld=no 6211fi 6212 6213ac_prog=ld 6214if test "$GCC" = yes; then 6215 # Check if gcc -print-prog-name=ld gives a path. 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6217$as_echo_n "checking for ld used by $CC... " >&6; } 6218 case $host in 6219 *-*-mingw*) 6220 # gcc leaves a trailing carriage return which upsets mingw 6221 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6222 *) 6223 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6224 esac 6225 case $ac_prog in 6226 # Accept absolute paths. 6227 [\\/]* | ?:[\\/]*) 6228 re_direlt='/[^/][^/]*/\.\./' 6229 # Canonicalize the pathname of ld 6230 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6231 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6232 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6233 done 6234 test -z "$LD" && LD="$ac_prog" 6235 ;; 6236 "") 6237 # If it fails, then pretend we aren't using GCC. 6238 ac_prog=ld 6239 ;; 6240 *) 6241 # If it is relative, then search for the first ld in PATH. 6242 with_gnu_ld=unknown 6243 ;; 6244 esac 6245elif test "$with_gnu_ld" = yes; then 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6247$as_echo_n "checking for GNU ld... " >&6; } 6248else 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6250$as_echo_n "checking for non-GNU ld... " >&6; } 6251fi 6252if ${lt_cv_path_LD+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 if test -z "$LD"; then 6256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6257 for ac_dir in $PATH; do 6258 IFS="$lt_save_ifs" 6259 test -z "$ac_dir" && ac_dir=. 6260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6261 lt_cv_path_LD="$ac_dir/$ac_prog" 6262 # Check to see if the program is GNU ld. I'd rather use --version, 6263 # but apparently some variants of GNU ld only accept -v. 6264 # Break only if it was the GNU/non-GNU ld that we prefer. 6265 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6266 *GNU* | *'with BFD'*) 6267 test "$with_gnu_ld" != no && break 6268 ;; 6269 *) 6270 test "$with_gnu_ld" != yes && break 6271 ;; 6272 esac 6273 fi 6274 done 6275 IFS="$lt_save_ifs" 6276else 6277 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6278fi 6279fi 6280 6281LD="$lt_cv_path_LD" 6282if test -n "$LD"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6284$as_echo "$LD" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6291$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6292if ${lt_cv_prog_gnu_ld+:} false; then : 6293 $as_echo_n "(cached) " >&6 6294else 6295 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6296case `$LD -v 2>&1 </dev/null` in 6297*GNU* | *'with BFD'*) 6298 lt_cv_prog_gnu_ld=yes 6299 ;; 6300*) 6301 lt_cv_prog_gnu_ld=no 6302 ;; 6303esac 6304fi 6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6306$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6307with_gnu_ld=$lt_cv_prog_gnu_ld 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6318$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6319if ${lt_cv_path_NM+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 if test -n "$NM"; then 6323 # Let the user override the test. 6324 lt_cv_path_NM="$NM" 6325else 6326 lt_nm_to_check="${ac_tool_prefix}nm" 6327 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6328 lt_nm_to_check="$lt_nm_to_check nm" 6329 fi 6330 for lt_tmp_nm in $lt_nm_to_check; do 6331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6332 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6333 IFS="$lt_save_ifs" 6334 test -z "$ac_dir" && ac_dir=. 6335 tmp_nm="$ac_dir/$lt_tmp_nm" 6336 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6337 # Check to see if the nm accepts a BSD-compat flag. 6338 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6339 # nm: unknown option "B" ignored 6340 # Tru64's nm complains that /dev/null is an invalid object file 6341 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6342 */dev/null* | *'Invalid file or object type'*) 6343 lt_cv_path_NM="$tmp_nm -B" 6344 break 6345 ;; 6346 *) 6347 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6348 */dev/null*) 6349 lt_cv_path_NM="$tmp_nm -p" 6350 break 6351 ;; 6352 *) 6353 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6354 continue # so that we can try to find one that supports BSD flags 6355 ;; 6356 esac 6357 ;; 6358 esac 6359 fi 6360 done 6361 IFS="$lt_save_ifs" 6362 done 6363 : ${lt_cv_path_NM=no} 6364fi 6365fi 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6367$as_echo "$lt_cv_path_NM" >&6; } 6368if test "$lt_cv_path_NM" != "no"; then 6369 NM="$lt_cv_path_NM" 6370else 6371 # Didn't find any BSD compatible name lister, look for dumpbin. 6372 if test -n "$DUMPBIN"; then : 6373 # Let the user override the test. 6374 else 6375 if test -n "$ac_tool_prefix"; then 6376 for ac_prog in dumpbin "link -dump" 6377 do 6378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6379set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6381$as_echo_n "checking for $ac_word... " >&6; } 6382if ${ac_cv_prog_DUMPBIN+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 if test -n "$DUMPBIN"; then 6386 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6387else 6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6389for as_dir in $PATH 6390do 6391 IFS=$as_save_IFS 6392 test -z "$as_dir" && as_dir=. 6393 for ac_exec_ext in '' $ac_executable_extensions; do 6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6395 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6397 break 2 6398 fi 6399done 6400 done 6401IFS=$as_save_IFS 6402 6403fi 6404fi 6405DUMPBIN=$ac_cv_prog_DUMPBIN 6406if test -n "$DUMPBIN"; then 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6408$as_echo "$DUMPBIN" >&6; } 6409else 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6411$as_echo "no" >&6; } 6412fi 6413 6414 6415 test -n "$DUMPBIN" && break 6416 done 6417fi 6418if test -z "$DUMPBIN"; then 6419 ac_ct_DUMPBIN=$DUMPBIN 6420 for ac_prog in dumpbin "link -dump" 6421do 6422 # Extract the first word of "$ac_prog", so it can be a program name with args. 6423set dummy $ac_prog; ac_word=$2 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6425$as_echo_n "checking for $ac_word... " >&6; } 6426if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6427 $as_echo_n "(cached) " >&6 6428else 6429 if test -n "$ac_ct_DUMPBIN"; then 6430 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6431else 6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433for as_dir in $PATH 6434do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6439 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443done 6444 done 6445IFS=$as_save_IFS 6446 6447fi 6448fi 6449ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6450if test -n "$ac_ct_DUMPBIN"; then 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6452$as_echo "$ac_ct_DUMPBIN" >&6; } 6453else 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6455$as_echo "no" >&6; } 6456fi 6457 6458 6459 test -n "$ac_ct_DUMPBIN" && break 6460done 6461 6462 if test "x$ac_ct_DUMPBIN" = x; then 6463 DUMPBIN=":" 6464 else 6465 case $cross_compiling:$ac_tool_warned in 6466yes:) 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6469ac_tool_warned=yes ;; 6470esac 6471 DUMPBIN=$ac_ct_DUMPBIN 6472 fi 6473fi 6474 6475 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6476 *COFF*) 6477 DUMPBIN="$DUMPBIN -symbols" 6478 ;; 6479 *) 6480 DUMPBIN=: 6481 ;; 6482 esac 6483 fi 6484 6485 if test "$DUMPBIN" != ":"; then 6486 NM="$DUMPBIN" 6487 fi 6488fi 6489test -z "$NM" && NM=nm 6490 6491 6492 6493 6494 6495 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6497$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6498if ${lt_cv_nm_interface+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 lt_cv_nm_interface="BSD nm" 6502 echo "int some_variable = 0;" > conftest.$ac_ext 6503 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6504 (eval "$ac_compile" 2>conftest.err) 6505 cat conftest.err >&5 6506 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6507 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6508 cat conftest.err >&5 6509 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6510 cat conftest.out >&5 6511 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6512 lt_cv_nm_interface="MS dumpbin" 6513 fi 6514 rm -f conftest* 6515fi 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6517$as_echo "$lt_cv_nm_interface" >&6; } 6518 6519# find the maximum length of command line arguments 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6521$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6522if ${lt_cv_sys_max_cmd_len+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 i=0 6526 teststring="ABCD" 6527 6528 case $build_os in 6529 msdosdjgpp*) 6530 # On DJGPP, this test can blow up pretty badly due to problems in libc 6531 # (any single argument exceeding 2000 bytes causes a buffer overrun 6532 # during glob expansion). Even if it were fixed, the result of this 6533 # check would be larger than it should be. 6534 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6535 ;; 6536 6537 gnu*) 6538 # Under GNU Hurd, this test is not required because there is 6539 # no limit to the length of command line arguments. 6540 # Libtool will interpret -1 as no limit whatsoever 6541 lt_cv_sys_max_cmd_len=-1; 6542 ;; 6543 6544 cygwin* | mingw* | cegcc*) 6545 # On Win9x/ME, this test blows up -- it succeeds, but takes 6546 # about 5 minutes as the teststring grows exponentially. 6547 # Worse, since 9x/ME are not pre-emptively multitasking, 6548 # you end up with a "frozen" computer, even though with patience 6549 # the test eventually succeeds (with a max line length of 256k). 6550 # Instead, let's just punt: use the minimum linelength reported by 6551 # all of the supported platforms: 8192 (on NT/2K/XP). 6552 lt_cv_sys_max_cmd_len=8192; 6553 ;; 6554 6555 mint*) 6556 # On MiNT this can take a long time and run out of memory. 6557 lt_cv_sys_max_cmd_len=8192; 6558 ;; 6559 6560 amigaos*) 6561 # On AmigaOS with pdksh, this test takes hours, literally. 6562 # So we just punt and use a minimum line length of 8192. 6563 lt_cv_sys_max_cmd_len=8192; 6564 ;; 6565 6566 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6567 # This has been around since 386BSD, at least. Likely further. 6568 if test -x /sbin/sysctl; then 6569 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6570 elif test -x /usr/sbin/sysctl; then 6571 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6572 else 6573 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6574 fi 6575 # And add a safety zone 6576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6578 ;; 6579 6580 interix*) 6581 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6582 lt_cv_sys_max_cmd_len=196608 6583 ;; 6584 6585 os2*) 6586 # The test takes a long time on OS/2. 6587 lt_cv_sys_max_cmd_len=8192 6588 ;; 6589 6590 osf*) 6591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6593 # nice to cause kernel panics so lets avoid the loop below. 6594 # First set a reasonable default. 6595 lt_cv_sys_max_cmd_len=16384 6596 # 6597 if test -x /sbin/sysconfig; then 6598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6599 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6600 esac 6601 fi 6602 ;; 6603 sco3.2v5*) 6604 lt_cv_sys_max_cmd_len=102400 6605 ;; 6606 sysv5* | sco5v6* | sysv4.2uw2*) 6607 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6608 if test -n "$kargmax"; then 6609 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6610 else 6611 lt_cv_sys_max_cmd_len=32768 6612 fi 6613 ;; 6614 *) 6615 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6616 if test -n "$lt_cv_sys_max_cmd_len"; then 6617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6619 else 6620 # Make teststring a little bigger before we do anything with it. 6621 # a 1K string should be a reasonable start. 6622 for i in 1 2 3 4 5 6 7 8 ; do 6623 teststring=$teststring$teststring 6624 done 6625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6626 # If test is not a shell built-in, we'll probably end up computing a 6627 # maximum length that is only half of the actual maximum length, but 6628 # we can't tell. 6629 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6630 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6631 test $i != 17 # 1/2 MB should be enough 6632 do 6633 i=`expr $i + 1` 6634 teststring=$teststring$teststring 6635 done 6636 # Only check the string length outside the loop. 6637 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6638 teststring= 6639 # Add a significant safety factor because C++ compilers can tack on 6640 # massive amounts of additional arguments before passing them to the 6641 # linker. It appears as though 1/2 is a usable value. 6642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6643 fi 6644 ;; 6645 esac 6646 6647fi 6648 6649if test -n $lt_cv_sys_max_cmd_len ; then 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6651$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6652else 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6654$as_echo "none" >&6; } 6655fi 6656max_cmd_len=$lt_cv_sys_max_cmd_len 6657 6658 6659 6660 6661 6662 6663: ${CP="cp -f"} 6664: ${MV="mv -f"} 6665: ${RM="rm -f"} 6666 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6668$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6669# Try some XSI features 6670xsi_shell=no 6671( _lt_dummy="a/b/c" 6672 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6673 = c,a/b,b/c, \ 6674 && eval 'test $(( 1 + 1 )) -eq 2 \ 6675 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6676 && xsi_shell=yes 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6678$as_echo "$xsi_shell" >&6; } 6679 6680 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6682$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6683lt_shell_append=no 6684( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6685 >/dev/null 2>&1 \ 6686 && lt_shell_append=yes 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6688$as_echo "$lt_shell_append" >&6; } 6689 6690 6691if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6692 lt_unset=unset 6693else 6694 lt_unset=false 6695fi 6696 6697 6698 6699 6700 6701# test EBCDIC or ASCII 6702case `echo X|tr X '\101'` in 6703 A) # ASCII based system 6704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6705 lt_SP2NL='tr \040 \012' 6706 lt_NL2SP='tr \015\012 \040\040' 6707 ;; 6708 *) # EBCDIC based system 6709 lt_SP2NL='tr \100 \n' 6710 lt_NL2SP='tr \r\n \100\100' 6711 ;; 6712esac 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6723$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6724if ${lt_cv_to_host_file_cmd+:} false; then : 6725 $as_echo_n "(cached) " >&6 6726else 6727 case $host in 6728 *-*-mingw* ) 6729 case $build in 6730 *-*-mingw* ) # actually msys 6731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6732 ;; 6733 *-*-cygwin* ) 6734 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6735 ;; 6736 * ) # otherwise, assume *nix 6737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6738 ;; 6739 esac 6740 ;; 6741 *-*-cygwin* ) 6742 case $build in 6743 *-*-mingw* ) # actually msys 6744 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6745 ;; 6746 *-*-cygwin* ) 6747 lt_cv_to_host_file_cmd=func_convert_file_noop 6748 ;; 6749 * ) # otherwise, assume *nix 6750 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6751 ;; 6752 esac 6753 ;; 6754 * ) # unhandled hosts (and "normal" native builds) 6755 lt_cv_to_host_file_cmd=func_convert_file_noop 6756 ;; 6757esac 6758 6759fi 6760 6761to_host_file_cmd=$lt_cv_to_host_file_cmd 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6763$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6764 6765 6766 6767 6768 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6770$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6771if ${lt_cv_to_tool_file_cmd+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 #assume ordinary cross tools, or native build. 6775lt_cv_to_tool_file_cmd=func_convert_file_noop 6776case $host in 6777 *-*-mingw* ) 6778 case $build in 6779 *-*-mingw* ) # actually msys 6780 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6781 ;; 6782 esac 6783 ;; 6784esac 6785 6786fi 6787 6788to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6790$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6791 6792 6793 6794 6795 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6797$as_echo_n "checking for $LD option to reload object files... " >&6; } 6798if ${lt_cv_ld_reload_flag+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 lt_cv_ld_reload_flag='-r' 6802fi 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6804$as_echo "$lt_cv_ld_reload_flag" >&6; } 6805reload_flag=$lt_cv_ld_reload_flag 6806case $reload_flag in 6807"" | " "*) ;; 6808*) reload_flag=" $reload_flag" ;; 6809esac 6810reload_cmds='$LD$reload_flag -o $output$reload_objs' 6811case $host_os in 6812 cygwin* | mingw* | pw32* | cegcc*) 6813 if test "$GCC" != yes; then 6814 reload_cmds=false 6815 fi 6816 ;; 6817 darwin*) 6818 if test "$GCC" = yes; then 6819 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6820 else 6821 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6822 fi 6823 ;; 6824esac 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834if test -n "$ac_tool_prefix"; then 6835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6836set dummy ${ac_tool_prefix}objdump; ac_word=$2 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6838$as_echo_n "checking for $ac_word... " >&6; } 6839if ${ac_cv_prog_OBJDUMP+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841else 6842 if test -n "$OBJDUMP"; then 6843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6844else 6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6846for as_dir in $PATH 6847do 6848 IFS=$as_save_IFS 6849 test -z "$as_dir" && as_dir=. 6850 for ac_exec_ext in '' $ac_executable_extensions; do 6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6854 break 2 6855 fi 6856done 6857 done 6858IFS=$as_save_IFS 6859 6860fi 6861fi 6862OBJDUMP=$ac_cv_prog_OBJDUMP 6863if test -n "$OBJDUMP"; then 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6865$as_echo "$OBJDUMP" >&6; } 6866else 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6868$as_echo "no" >&6; } 6869fi 6870 6871 6872fi 6873if test -z "$ac_cv_prog_OBJDUMP"; then 6874 ac_ct_OBJDUMP=$OBJDUMP 6875 # Extract the first word of "objdump", so it can be a program name with args. 6876set dummy objdump; ac_word=$2 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6878$as_echo_n "checking for $ac_word... " >&6; } 6879if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 if test -n "$ac_ct_OBJDUMP"; then 6883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6884else 6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6886for as_dir in $PATH 6887do 6888 IFS=$as_save_IFS 6889 test -z "$as_dir" && as_dir=. 6890 for ac_exec_ext in '' $ac_executable_extensions; do 6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6892 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6894 break 2 6895 fi 6896done 6897 done 6898IFS=$as_save_IFS 6899 6900fi 6901fi 6902ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6903if test -n "$ac_ct_OBJDUMP"; then 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6905$as_echo "$ac_ct_OBJDUMP" >&6; } 6906else 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6908$as_echo "no" >&6; } 6909fi 6910 6911 if test "x$ac_ct_OBJDUMP" = x; then 6912 OBJDUMP="false" 6913 else 6914 case $cross_compiling:$ac_tool_warned in 6915yes:) 6916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6918ac_tool_warned=yes ;; 6919esac 6920 OBJDUMP=$ac_ct_OBJDUMP 6921 fi 6922else 6923 OBJDUMP="$ac_cv_prog_OBJDUMP" 6924fi 6925 6926test -z "$OBJDUMP" && OBJDUMP=objdump 6927 6928 6929 6930 6931 6932 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6934$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6935if ${lt_cv_deplibs_check_method+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 lt_cv_file_magic_cmd='$MAGIC_CMD' 6939lt_cv_file_magic_test_file= 6940lt_cv_deplibs_check_method='unknown' 6941# Need to set the preceding variable on all platforms that support 6942# interlibrary dependencies. 6943# 'none' -- dependencies not supported. 6944# `unknown' -- same as none, but documents that we really don't know. 6945# 'pass_all' -- all dependencies passed with no checks. 6946# 'test_compile' -- check by making test program. 6947# 'file_magic [[regex]]' -- check by looking for files in library path 6948# which responds to the $file_magic_cmd with a given extended regex. 6949# If you have `file' or equivalent on your system and you're not sure 6950# whether `pass_all' will *always* work, you probably want this one. 6951 6952case $host_os in 6953aix[4-9]*) 6954 lt_cv_deplibs_check_method=pass_all 6955 ;; 6956 6957beos*) 6958 lt_cv_deplibs_check_method=pass_all 6959 ;; 6960 6961bsdi[45]*) 6962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6963 lt_cv_file_magic_cmd='/usr/bin/file -L' 6964 lt_cv_file_magic_test_file=/shlib/libc.so 6965 ;; 6966 6967cygwin*) 6968 # func_win32_libid is a shell function defined in ltmain.sh 6969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6970 lt_cv_file_magic_cmd='func_win32_libid' 6971 ;; 6972 6973mingw* | pw32*) 6974 # Base MSYS/MinGW do not provide the 'file' command needed by 6975 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6976 # unless we find 'file', for example because we are cross-compiling. 6977 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6978 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6980 lt_cv_file_magic_cmd='func_win32_libid' 6981 else 6982 # Keep this pattern in sync with the one in func_win32_libid. 6983 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6984 lt_cv_file_magic_cmd='$OBJDUMP -f' 6985 fi 6986 ;; 6987 6988cegcc*) 6989 # use the weaker test based on 'objdump'. See mingw*. 6990 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6991 lt_cv_file_magic_cmd='$OBJDUMP -f' 6992 ;; 6993 6994darwin* | rhapsody*) 6995 lt_cv_deplibs_check_method=pass_all 6996 ;; 6997 6998freebsd* | dragonfly*) 6999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7000 case $host_cpu in 7001 i*86 ) 7002 # Not sure whether the presence of OpenBSD here was a mistake. 7003 # Let's accept both of them until this is cleared up. 7004 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7005 lt_cv_file_magic_cmd=/usr/bin/file 7006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7007 ;; 7008 esac 7009 else 7010 lt_cv_deplibs_check_method=pass_all 7011 fi 7012 ;; 7013 7014gnu*) 7015 lt_cv_deplibs_check_method=pass_all 7016 ;; 7017 7018haiku*) 7019 lt_cv_deplibs_check_method=pass_all 7020 ;; 7021 7022hpux10.20* | hpux11*) 7023 lt_cv_file_magic_cmd=/usr/bin/file 7024 case $host_cpu in 7025 ia64*) 7026 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7027 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7028 ;; 7029 hppa*64*) 7030 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]' 7031 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7032 ;; 7033 *) 7034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7035 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7036 ;; 7037 esac 7038 ;; 7039 7040interix[3-9]*) 7041 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7043 ;; 7044 7045irix5* | irix6* | nonstopux*) 7046 case $LD in 7047 *-32|*"-32 ") libmagic=32-bit;; 7048 *-n32|*"-n32 ") libmagic=N32;; 7049 *-64|*"-64 ") libmagic=64-bit;; 7050 *) libmagic=never-match;; 7051 esac 7052 lt_cv_deplibs_check_method=pass_all 7053 ;; 7054 7055# This must be glibc/ELF. 7056linux* | k*bsd*-gnu | kopensolaris*-gnu) 7057 lt_cv_deplibs_check_method=pass_all 7058 ;; 7059 7060netbsd* | netbsdelf*-gnu) 7061 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7063 else 7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7065 fi 7066 ;; 7067 7068newos6*) 7069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7070 lt_cv_file_magic_cmd=/usr/bin/file 7071 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7072 ;; 7073 7074*nto* | *qnx*) 7075 lt_cv_deplibs_check_method=pass_all 7076 ;; 7077 7078openbsd*) 7079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7081 else 7082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7083 fi 7084 ;; 7085 7086osf3* | osf4* | osf5*) 7087 lt_cv_deplibs_check_method=pass_all 7088 ;; 7089 7090rdos*) 7091 lt_cv_deplibs_check_method=pass_all 7092 ;; 7093 7094solaris*) 7095 lt_cv_deplibs_check_method=pass_all 7096 ;; 7097 7098sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7099 lt_cv_deplibs_check_method=pass_all 7100 ;; 7101 7102sysv4 | sysv4.3*) 7103 case $host_vendor in 7104 motorola) 7105 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]' 7106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7107 ;; 7108 ncr) 7109 lt_cv_deplibs_check_method=pass_all 7110 ;; 7111 sequent) 7112 lt_cv_file_magic_cmd='/bin/file' 7113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7114 ;; 7115 sni) 7116 lt_cv_file_magic_cmd='/bin/file' 7117 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7118 lt_cv_file_magic_test_file=/lib/libc.so 7119 ;; 7120 siemens) 7121 lt_cv_deplibs_check_method=pass_all 7122 ;; 7123 pc) 7124 lt_cv_deplibs_check_method=pass_all 7125 ;; 7126 esac 7127 ;; 7128 7129tpf*) 7130 lt_cv_deplibs_check_method=pass_all 7131 ;; 7132esac 7133 7134fi 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7136$as_echo "$lt_cv_deplibs_check_method" >&6; } 7137 7138file_magic_glob= 7139want_nocaseglob=no 7140if test "$build" = "$host"; then 7141 case $host_os in 7142 mingw* | pw32*) 7143 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7144 want_nocaseglob=yes 7145 else 7146 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7147 fi 7148 ;; 7149 esac 7150fi 7151 7152file_magic_cmd=$lt_cv_file_magic_cmd 7153deplibs_check_method=$lt_cv_deplibs_check_method 7154test -z "$deplibs_check_method" && deplibs_check_method=unknown 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177if test -n "$ac_tool_prefix"; then 7178 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7179set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7181$as_echo_n "checking for $ac_word... " >&6; } 7182if ${ac_cv_prog_DLLTOOL+:} false; then : 7183 $as_echo_n "(cached) " >&6 7184else 7185 if test -n "$DLLTOOL"; then 7186 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7187else 7188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7189for as_dir in $PATH 7190do 7191 IFS=$as_save_IFS 7192 test -z "$as_dir" && as_dir=. 7193 for ac_exec_ext in '' $ac_executable_extensions; do 7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7195 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7197 break 2 7198 fi 7199done 7200 done 7201IFS=$as_save_IFS 7202 7203fi 7204fi 7205DLLTOOL=$ac_cv_prog_DLLTOOL 7206if test -n "$DLLTOOL"; then 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7208$as_echo "$DLLTOOL" >&6; } 7209else 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7211$as_echo "no" >&6; } 7212fi 7213 7214 7215fi 7216if test -z "$ac_cv_prog_DLLTOOL"; then 7217 ac_ct_DLLTOOL=$DLLTOOL 7218 # Extract the first word of "dlltool", so it can be a program name with args. 7219set dummy dlltool; ac_word=$2 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7221$as_echo_n "checking for $ac_word... " >&6; } 7222if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224else 7225 if test -n "$ac_ct_DLLTOOL"; then 7226 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7227else 7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229for as_dir in $PATH 7230do 7231 IFS=$as_save_IFS 7232 test -z "$as_dir" && as_dir=. 7233 for ac_exec_ext in '' $ac_executable_extensions; do 7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7235 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7237 break 2 7238 fi 7239done 7240 done 7241IFS=$as_save_IFS 7242 7243fi 7244fi 7245ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7246if test -n "$ac_ct_DLLTOOL"; then 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7248$as_echo "$ac_ct_DLLTOOL" >&6; } 7249else 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7251$as_echo "no" >&6; } 7252fi 7253 7254 if test "x$ac_ct_DLLTOOL" = x; then 7255 DLLTOOL="false" 7256 else 7257 case $cross_compiling:$ac_tool_warned in 7258yes:) 7259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7261ac_tool_warned=yes ;; 7262esac 7263 DLLTOOL=$ac_ct_DLLTOOL 7264 fi 7265else 7266 DLLTOOL="$ac_cv_prog_DLLTOOL" 7267fi 7268 7269test -z "$DLLTOOL" && DLLTOOL=dlltool 7270 7271 7272 7273 7274 7275 7276 7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7278$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7279if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7280 $as_echo_n "(cached) " >&6 7281else 7282 lt_cv_sharedlib_from_linklib_cmd='unknown' 7283 7284case $host_os in 7285cygwin* | mingw* | pw32* | cegcc*) 7286 # two different shell functions defined in ltmain.sh 7287 # decide which to use based on capabilities of $DLLTOOL 7288 case `$DLLTOOL --help 2>&1` in 7289 *--identify-strict*) 7290 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7291 ;; 7292 *) 7293 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7294 ;; 7295 esac 7296 ;; 7297*) 7298 # fallback: assume linklib IS sharedlib 7299 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7300 ;; 7301esac 7302 7303fi 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7305$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7306sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7307test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7308 7309 7310 7311 7312 7313 7314 7315if test -n "$ac_tool_prefix"; then 7316 for ac_prog in ar 7317 do 7318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7319set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321$as_echo_n "checking for $ac_word... " >&6; } 7322if ${ac_cv_prog_AR+:} false; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 if test -n "$AR"; then 7326 ac_cv_prog_AR="$AR" # Let the user override the test. 7327else 7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7329for as_dir in $PATH 7330do 7331 IFS=$as_save_IFS 7332 test -z "$as_dir" && as_dir=. 7333 for ac_exec_ext in '' $ac_executable_extensions; do 7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7335 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7337 break 2 7338 fi 7339done 7340 done 7341IFS=$as_save_IFS 7342 7343fi 7344fi 7345AR=$ac_cv_prog_AR 7346if test -n "$AR"; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7348$as_echo "$AR" >&6; } 7349else 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7351$as_echo "no" >&6; } 7352fi 7353 7354 7355 test -n "$AR" && break 7356 done 7357fi 7358if test -z "$AR"; then 7359 ac_ct_AR=$AR 7360 for ac_prog in ar 7361do 7362 # Extract the first word of "$ac_prog", so it can be a program name with args. 7363set dummy $ac_prog; ac_word=$2 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7365$as_echo_n "checking for $ac_word... " >&6; } 7366if ${ac_cv_prog_ac_ct_AR+:} false; then : 7367 $as_echo_n "(cached) " >&6 7368else 7369 if test -n "$ac_ct_AR"; then 7370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7371else 7372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7373for as_dir in $PATH 7374do 7375 IFS=$as_save_IFS 7376 test -z "$as_dir" && as_dir=. 7377 for ac_exec_ext in '' $ac_executable_extensions; do 7378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7379 ac_cv_prog_ac_ct_AR="$ac_prog" 7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7381 break 2 7382 fi 7383done 7384 done 7385IFS=$as_save_IFS 7386 7387fi 7388fi 7389ac_ct_AR=$ac_cv_prog_ac_ct_AR 7390if test -n "$ac_ct_AR"; then 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7392$as_echo "$ac_ct_AR" >&6; } 7393else 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7395$as_echo "no" >&6; } 7396fi 7397 7398 7399 test -n "$ac_ct_AR" && break 7400done 7401 7402 if test "x$ac_ct_AR" = x; then 7403 AR="false" 7404 else 7405 case $cross_compiling:$ac_tool_warned in 7406yes:) 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7409ac_tool_warned=yes ;; 7410esac 7411 AR=$ac_ct_AR 7412 fi 7413fi 7414 7415: ${AR=ar} 7416: ${AR_FLAGS=cru} 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7429$as_echo_n "checking for archiver @FILE support... " >&6; } 7430if ${lt_cv_ar_at_file+:} false; then : 7431 $as_echo_n "(cached) " >&6 7432else 7433 lt_cv_ar_at_file=no 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435/* end confdefs.h. */ 7436 7437int 7438main () 7439{ 7440 7441 ; 7442 return 0; 7443} 7444_ACEOF 7445if ac_fn_c_try_compile "$LINENO"; then : 7446 echo conftest.$ac_objext > conftest.lst 7447 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7449 (eval $lt_ar_try) 2>&5 7450 ac_status=$? 7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7452 test $ac_status = 0; } 7453 if test "$ac_status" -eq 0; then 7454 # Ensure the archiver fails upon bogus file names. 7455 rm -f conftest.$ac_objext libconftest.a 7456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7457 (eval $lt_ar_try) 2>&5 7458 ac_status=$? 7459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7460 test $ac_status = 0; } 7461 if test "$ac_status" -ne 0; then 7462 lt_cv_ar_at_file=@ 7463 fi 7464 fi 7465 rm -f conftest.* libconftest.a 7466 7467fi 7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7469 7470fi 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7472$as_echo "$lt_cv_ar_at_file" >&6; } 7473 7474if test "x$lt_cv_ar_at_file" = xno; then 7475 archiver_list_spec= 7476else 7477 archiver_list_spec=$lt_cv_ar_at_file 7478fi 7479 7480 7481 7482 7483 7484 7485 7486if test -n "$ac_tool_prefix"; then 7487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7488set dummy ${ac_tool_prefix}strip; ac_word=$2 7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7490$as_echo_n "checking for $ac_word... " >&6; } 7491if ${ac_cv_prog_STRIP+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 if test -n "$STRIP"; then 7495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7496else 7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7498for as_dir in $PATH 7499do 7500 IFS=$as_save_IFS 7501 test -z "$as_dir" && as_dir=. 7502 for ac_exec_ext in '' $ac_executable_extensions; do 7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7504 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7506 break 2 7507 fi 7508done 7509 done 7510IFS=$as_save_IFS 7511 7512fi 7513fi 7514STRIP=$ac_cv_prog_STRIP 7515if test -n "$STRIP"; then 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7517$as_echo "$STRIP" >&6; } 7518else 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7520$as_echo "no" >&6; } 7521fi 7522 7523 7524fi 7525if test -z "$ac_cv_prog_STRIP"; then 7526 ac_ct_STRIP=$STRIP 7527 # Extract the first word of "strip", so it can be a program name with args. 7528set dummy strip; ac_word=$2 7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7530$as_echo_n "checking for $ac_word... " >&6; } 7531if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7532 $as_echo_n "(cached) " >&6 7533else 7534 if test -n "$ac_ct_STRIP"; then 7535 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7536else 7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7538for as_dir in $PATH 7539do 7540 IFS=$as_save_IFS 7541 test -z "$as_dir" && as_dir=. 7542 for ac_exec_ext in '' $ac_executable_extensions; do 7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7544 ac_cv_prog_ac_ct_STRIP="strip" 7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7546 break 2 7547 fi 7548done 7549 done 7550IFS=$as_save_IFS 7551 7552fi 7553fi 7554ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7555if test -n "$ac_ct_STRIP"; then 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7557$as_echo "$ac_ct_STRIP" >&6; } 7558else 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7560$as_echo "no" >&6; } 7561fi 7562 7563 if test "x$ac_ct_STRIP" = x; then 7564 STRIP=":" 7565 else 7566 case $cross_compiling:$ac_tool_warned in 7567yes:) 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7570ac_tool_warned=yes ;; 7571esac 7572 STRIP=$ac_ct_STRIP 7573 fi 7574else 7575 STRIP="$ac_cv_prog_STRIP" 7576fi 7577 7578test -z "$STRIP" && STRIP=: 7579 7580 7581 7582 7583 7584 7585if test -n "$ac_tool_prefix"; then 7586 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7587set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7589$as_echo_n "checking for $ac_word... " >&6; } 7590if ${ac_cv_prog_RANLIB+:} false; then : 7591 $as_echo_n "(cached) " >&6 7592else 7593 if test -n "$RANLIB"; then 7594 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7595else 7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7597for as_dir in $PATH 7598do 7599 IFS=$as_save_IFS 7600 test -z "$as_dir" && as_dir=. 7601 for ac_exec_ext in '' $ac_executable_extensions; do 7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7603 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7605 break 2 7606 fi 7607done 7608 done 7609IFS=$as_save_IFS 7610 7611fi 7612fi 7613RANLIB=$ac_cv_prog_RANLIB 7614if test -n "$RANLIB"; then 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7616$as_echo "$RANLIB" >&6; } 7617else 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7619$as_echo "no" >&6; } 7620fi 7621 7622 7623fi 7624if test -z "$ac_cv_prog_RANLIB"; then 7625 ac_ct_RANLIB=$RANLIB 7626 # Extract the first word of "ranlib", so it can be a program name with args. 7627set dummy ranlib; ac_word=$2 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7629$as_echo_n "checking for $ac_word... " >&6; } 7630if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7631 $as_echo_n "(cached) " >&6 7632else 7633 if test -n "$ac_ct_RANLIB"; then 7634 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7635else 7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7637for as_dir in $PATH 7638do 7639 IFS=$as_save_IFS 7640 test -z "$as_dir" && as_dir=. 7641 for ac_exec_ext in '' $ac_executable_extensions; do 7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7643 ac_cv_prog_ac_ct_RANLIB="ranlib" 7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7645 break 2 7646 fi 7647done 7648 done 7649IFS=$as_save_IFS 7650 7651fi 7652fi 7653ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7654if test -n "$ac_ct_RANLIB"; then 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7656$as_echo "$ac_ct_RANLIB" >&6; } 7657else 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7659$as_echo "no" >&6; } 7660fi 7661 7662 if test "x$ac_ct_RANLIB" = x; then 7663 RANLIB=":" 7664 else 7665 case $cross_compiling:$ac_tool_warned in 7666yes:) 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7669ac_tool_warned=yes ;; 7670esac 7671 RANLIB=$ac_ct_RANLIB 7672 fi 7673else 7674 RANLIB="$ac_cv_prog_RANLIB" 7675fi 7676 7677test -z "$RANLIB" && RANLIB=: 7678 7679 7680 7681 7682 7683 7684# Determine commands to create old-style static archives. 7685old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7686old_postinstall_cmds='chmod 644 $oldlib' 7687old_postuninstall_cmds= 7688 7689if test -n "$RANLIB"; then 7690 case $host_os in 7691 openbsd*) 7692 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7693 ;; 7694 *) 7695 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7696 ;; 7697 esac 7698 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7699fi 7700 7701case $host_os in 7702 darwin*) 7703 lock_old_archive_extraction=yes ;; 7704 *) 7705 lock_old_archive_extraction=no ;; 7706esac 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746# If no C compiler was specified, use CC. 7747LTCC=${LTCC-"$CC"} 7748 7749# If no C compiler flags were specified, use CFLAGS. 7750LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7751 7752# Allow CC to be a program name with arguments. 7753compiler=$CC 7754 7755 7756# Check for command to grab the raw symbol name followed by C symbol from nm. 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7758$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7759if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 7763# These are sane defaults that work on at least a few old systems. 7764# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7765 7766# Character class describing NM global symbol codes. 7767symcode='[BCDEGRST]' 7768 7769# Regexp to match symbols that can be accessed directly from C. 7770sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7771 7772# Define system-specific variables. 7773case $host_os in 7774aix*) 7775 symcode='[BCDT]' 7776 ;; 7777cygwin* | mingw* | pw32* | cegcc*) 7778 symcode='[ABCDGISTW]' 7779 ;; 7780hpux*) 7781 if test "$host_cpu" = ia64; then 7782 symcode='[ABCDEGRST]' 7783 fi 7784 ;; 7785irix* | nonstopux*) 7786 symcode='[BCDEGRST]' 7787 ;; 7788osf*) 7789 symcode='[BCDEGQRST]' 7790 ;; 7791solaris*) 7792 symcode='[BDRT]' 7793 ;; 7794sco3.2v5*) 7795 symcode='[DT]' 7796 ;; 7797sysv4.2uw2*) 7798 symcode='[DT]' 7799 ;; 7800sysv5* | sco5v6* | unixware* | OpenUNIX*) 7801 symcode='[ABDT]' 7802 ;; 7803sysv4) 7804 symcode='[DFNSTU]' 7805 ;; 7806esac 7807 7808# If we're using GNU nm, then use its standard symbol codes. 7809case `$NM -V 2>&1` in 7810*GNU* | *'with BFD'*) 7811 symcode='[ABCDGIRSTW]' ;; 7812esac 7813 7814# Transform an extracted symbol line into a proper C declaration. 7815# Some systems (esp. on ia64) link data and code symbols differently, 7816# so use this general approach. 7817lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7818 7819# Transform an extracted symbol line into symbol name and symbol address 7820lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7821lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7822 7823# Handle CRLF in mingw tool chain 7824opt_cr= 7825case $build_os in 7826mingw*) 7827 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7828 ;; 7829esac 7830 7831# Try without a prefix underscore, then with it. 7832for ac_symprfx in "" "_"; do 7833 7834 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7835 symxfrm="\\1 $ac_symprfx\\2 \\2" 7836 7837 # Write the raw and C identifiers. 7838 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7839 # Fake it for dumpbin and say T for any non-static function 7840 # and D for any global variable. 7841 # Also find C++ and __fastcall symbols from MSVC++, 7842 # which start with @ or ?. 7843 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7844" {last_section=section; section=\$ 3};"\ 7845" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7846" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7847" \$ 0!~/External *\|/{next};"\ 7848" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7849" {if(hide[section]) next};"\ 7850" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7851" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7852" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7853" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7854" ' prfx=^$ac_symprfx" 7855 else 7856 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7857 fi 7858 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7859 7860 # Check to see that the pipe works correctly. 7861 pipe_works=no 7862 7863 rm -f conftest* 7864 cat > conftest.$ac_ext <<_LT_EOF 7865#ifdef __cplusplus 7866extern "C" { 7867#endif 7868char nm_test_var; 7869void nm_test_func(void); 7870void nm_test_func(void){} 7871#ifdef __cplusplus 7872} 7873#endif 7874int main(){nm_test_var='a';nm_test_func();return(0);} 7875_LT_EOF 7876 7877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7878 (eval $ac_compile) 2>&5 7879 ac_status=$? 7880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7881 test $ac_status = 0; }; then 7882 # Now try to grab the symbols. 7883 nlist=conftest.nm 7884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7885 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7886 ac_status=$? 7887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7888 test $ac_status = 0; } && test -s "$nlist"; then 7889 # Try sorting and uniquifying the output. 7890 if sort "$nlist" | uniq > "$nlist"T; then 7891 mv -f "$nlist"T "$nlist" 7892 else 7893 rm -f "$nlist"T 7894 fi 7895 7896 # Make sure that we snagged all the symbols we need. 7897 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7898 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7899 cat <<_LT_EOF > conftest.$ac_ext 7900/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7901#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7902/* DATA imports from DLLs on WIN32 con't be const, because runtime 7903 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7904# define LT_DLSYM_CONST 7905#elif defined(__osf__) 7906/* This system does not cope well with relocations in const data. */ 7907# define LT_DLSYM_CONST 7908#else 7909# define LT_DLSYM_CONST const 7910#endif 7911 7912#ifdef __cplusplus 7913extern "C" { 7914#endif 7915 7916_LT_EOF 7917 # Now generate the symbol file. 7918 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7919 7920 cat <<_LT_EOF >> conftest.$ac_ext 7921 7922/* The mapping between symbol names and symbols. */ 7923LT_DLSYM_CONST struct { 7924 const char *name; 7925 void *address; 7926} 7927lt__PROGRAM__LTX_preloaded_symbols[] = 7928{ 7929 { "@PROGRAM@", (void *) 0 }, 7930_LT_EOF 7931 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7932 cat <<\_LT_EOF >> conftest.$ac_ext 7933 {0, (void *) 0} 7934}; 7935 7936/* This works around a problem in FreeBSD linker */ 7937#ifdef FREEBSD_WORKAROUND 7938static const void *lt_preloaded_setup() { 7939 return lt__PROGRAM__LTX_preloaded_symbols; 7940} 7941#endif 7942 7943#ifdef __cplusplus 7944} 7945#endif 7946_LT_EOF 7947 # Now try linking the two files. 7948 mv conftest.$ac_objext conftstm.$ac_objext 7949 lt_globsym_save_LIBS=$LIBS 7950 lt_globsym_save_CFLAGS=$CFLAGS 7951 LIBS="conftstm.$ac_objext" 7952 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7954 (eval $ac_link) 2>&5 7955 ac_status=$? 7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7957 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7958 pipe_works=yes 7959 fi 7960 LIBS=$lt_globsym_save_LIBS 7961 CFLAGS=$lt_globsym_save_CFLAGS 7962 else 7963 echo "cannot find nm_test_func in $nlist" >&5 7964 fi 7965 else 7966 echo "cannot find nm_test_var in $nlist" >&5 7967 fi 7968 else 7969 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7970 fi 7971 else 7972 echo "$progname: failed program was:" >&5 7973 cat conftest.$ac_ext >&5 7974 fi 7975 rm -rf conftest* conftst* 7976 7977 # Do not use the global_symbol_pipe unless it works. 7978 if test "$pipe_works" = yes; then 7979 break 7980 else 7981 lt_cv_sys_global_symbol_pipe= 7982 fi 7983done 7984 7985fi 7986 7987if test -z "$lt_cv_sys_global_symbol_pipe"; then 7988 lt_cv_sys_global_symbol_to_cdecl= 7989fi 7990if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7992$as_echo "failed" >&6; } 7993else 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7995$as_echo "ok" >&6; } 7996fi 7997 7998# Response file support. 7999if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8000 nm_file_list_spec='@' 8001elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8002 nm_file_list_spec='@' 8003fi 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8032$as_echo_n "checking for sysroot... " >&6; } 8033 8034# Check whether --with-sysroot was given. 8035if test "${with_sysroot+set}" = set; then : 8036 withval=$with_sysroot; 8037else 8038 with_sysroot=no 8039fi 8040 8041 8042lt_sysroot= 8043case ${with_sysroot} in #( 8044 yes) 8045 if test "$GCC" = yes; then 8046 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8047 fi 8048 ;; #( 8049 /*) 8050 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8051 ;; #( 8052 no|'') 8053 ;; #( 8054 *) 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8056$as_echo "${with_sysroot}" >&6; } 8057 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8058 ;; 8059esac 8060 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8062$as_echo "${lt_sysroot:-no}" >&6; } 8063 8064 8065 8066 8067 8068# Check whether --enable-libtool-lock was given. 8069if test "${enable_libtool_lock+set}" = set; then : 8070 enableval=$enable_libtool_lock; 8071fi 8072 8073test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8074 8075# Some flags need to be propagated to the compiler or linker for good 8076# libtool support. 8077case $host in 8078ia64-*-hpux*) 8079 # Find out which ABI we are using. 8080 echo 'int i;' > conftest.$ac_ext 8081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8082 (eval $ac_compile) 2>&5 8083 ac_status=$? 8084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8085 test $ac_status = 0; }; then 8086 case `/usr/bin/file conftest.$ac_objext` in 8087 *ELF-32*) 8088 HPUX_IA64_MODE="32" 8089 ;; 8090 *ELF-64*) 8091 HPUX_IA64_MODE="64" 8092 ;; 8093 esac 8094 fi 8095 rm -rf conftest* 8096 ;; 8097*-*-irix6*) 8098 # Find out which ABI we are using. 8099 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8101 (eval $ac_compile) 2>&5 8102 ac_status=$? 8103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8104 test $ac_status = 0; }; then 8105 if test "$lt_cv_prog_gnu_ld" = yes; then 8106 case `/usr/bin/file conftest.$ac_objext` in 8107 *32-bit*) 8108 LD="${LD-ld} -melf32bsmip" 8109 ;; 8110 *N32*) 8111 LD="${LD-ld} -melf32bmipn32" 8112 ;; 8113 *64-bit*) 8114 LD="${LD-ld} -melf64bmip" 8115 ;; 8116 esac 8117 else 8118 case `/usr/bin/file conftest.$ac_objext` in 8119 *32-bit*) 8120 LD="${LD-ld} -32" 8121 ;; 8122 *N32*) 8123 LD="${LD-ld} -n32" 8124 ;; 8125 *64-bit*) 8126 LD="${LD-ld} -64" 8127 ;; 8128 esac 8129 fi 8130 fi 8131 rm -rf conftest* 8132 ;; 8133 8134x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8135s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8136 # Find out which ABI we are using. 8137 echo 'int i;' > conftest.$ac_ext 8138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8139 (eval $ac_compile) 2>&5 8140 ac_status=$? 8141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8142 test $ac_status = 0; }; then 8143 case `/usr/bin/file conftest.o` in 8144 *32-bit*) 8145 case $host in 8146 x86_64-*kfreebsd*-gnu) 8147 LD="${LD-ld} -m elf_i386_fbsd" 8148 ;; 8149 x86_64-*linux*) 8150 LD="${LD-ld} -m elf_i386" 8151 ;; 8152 ppc64-*linux*|powerpc64-*linux*) 8153 LD="${LD-ld} -m elf32ppclinux" 8154 ;; 8155 s390x-*linux*) 8156 LD="${LD-ld} -m elf_s390" 8157 ;; 8158 sparc64-*linux*) 8159 LD="${LD-ld} -m elf32_sparc" 8160 ;; 8161 esac 8162 ;; 8163 *64-bit*) 8164 case $host in 8165 x86_64-*kfreebsd*-gnu) 8166 LD="${LD-ld} -m elf_x86_64_fbsd" 8167 ;; 8168 x86_64-*linux*) 8169 LD="${LD-ld} -m elf_x86_64" 8170 ;; 8171 ppc*-*linux*|powerpc*-*linux*) 8172 LD="${LD-ld} -m elf64ppc" 8173 ;; 8174 s390*-*linux*|s390*-*tpf*) 8175 LD="${LD-ld} -m elf64_s390" 8176 ;; 8177 sparc*-*linux*) 8178 LD="${LD-ld} -m elf64_sparc" 8179 ;; 8180 esac 8181 ;; 8182 esac 8183 fi 8184 rm -rf conftest* 8185 ;; 8186 8187*-*-sco3.2v5*) 8188 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8189 SAVE_CFLAGS="$CFLAGS" 8190 CFLAGS="$CFLAGS -belf" 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8192$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8193if ${lt_cv_cc_needs_belf+:} false; then : 8194 $as_echo_n "(cached) " >&6 8195else 8196 ac_ext=c 8197ac_cpp='$CPP $CPPFLAGS' 8198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8200ac_compiler_gnu=$ac_cv_c_compiler_gnu 8201 8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203/* end confdefs.h. */ 8204 8205int 8206main () 8207{ 8208 8209 ; 8210 return 0; 8211} 8212_ACEOF 8213if ac_fn_c_try_link "$LINENO"; then : 8214 lt_cv_cc_needs_belf=yes 8215else 8216 lt_cv_cc_needs_belf=no 8217fi 8218rm -f core conftest.err conftest.$ac_objext \ 8219 conftest$ac_exeext conftest.$ac_ext 8220 ac_ext=c 8221ac_cpp='$CPP $CPPFLAGS' 8222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8224ac_compiler_gnu=$ac_cv_c_compiler_gnu 8225 8226fi 8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8228$as_echo "$lt_cv_cc_needs_belf" >&6; } 8229 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8230 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8231 CFLAGS="$SAVE_CFLAGS" 8232 fi 8233 ;; 8234*-*solaris*) 8235 # Find out which ABI we are using. 8236 echo 'int i;' > conftest.$ac_ext 8237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8238 (eval $ac_compile) 2>&5 8239 ac_status=$? 8240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8241 test $ac_status = 0; }; then 8242 case `/usr/bin/file conftest.o` in 8243 *64-bit*) 8244 case $lt_cv_prog_gnu_ld in 8245 yes*) 8246 case $host in 8247 i?86-*-solaris*) 8248 LD="${LD-ld} -m elf_x86_64" 8249 ;; 8250 sparc*-*-solaris*) 8251 LD="${LD-ld} -m elf64_sparc" 8252 ;; 8253 esac 8254 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8255 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8256 LD="${LD-ld}_sol2" 8257 fi 8258 ;; 8259 *) 8260 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8261 LD="${LD-ld} -64" 8262 fi 8263 ;; 8264 esac 8265 ;; 8266 esac 8267 fi 8268 rm -rf conftest* 8269 ;; 8270esac 8271 8272need_locks="$enable_libtool_lock" 8273 8274if test -n "$ac_tool_prefix"; then 8275 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8276set dummy ${ac_tool_prefix}mt; ac_word=$2 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8278$as_echo_n "checking for $ac_word... " >&6; } 8279if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8280 $as_echo_n "(cached) " >&6 8281else 8282 if test -n "$MANIFEST_TOOL"; then 8283 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8284else 8285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8286for as_dir in $PATH 8287do 8288 IFS=$as_save_IFS 8289 test -z "$as_dir" && as_dir=. 8290 for ac_exec_ext in '' $ac_executable_extensions; do 8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8292 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8294 break 2 8295 fi 8296done 8297 done 8298IFS=$as_save_IFS 8299 8300fi 8301fi 8302MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8303if test -n "$MANIFEST_TOOL"; then 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8305$as_echo "$MANIFEST_TOOL" >&6; } 8306else 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8308$as_echo "no" >&6; } 8309fi 8310 8311 8312fi 8313if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8314 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8315 # Extract the first word of "mt", so it can be a program name with args. 8316set dummy mt; ac_word=$2 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8318$as_echo_n "checking for $ac_word... " >&6; } 8319if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 if test -n "$ac_ct_MANIFEST_TOOL"; then 8323 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8324else 8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8326for as_dir in $PATH 8327do 8328 IFS=$as_save_IFS 8329 test -z "$as_dir" && as_dir=. 8330 for ac_exec_ext in '' $ac_executable_extensions; do 8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8332 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8334 break 2 8335 fi 8336done 8337 done 8338IFS=$as_save_IFS 8339 8340fi 8341fi 8342ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8343if test -n "$ac_ct_MANIFEST_TOOL"; then 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8345$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8346else 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8348$as_echo "no" >&6; } 8349fi 8350 8351 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8352 MANIFEST_TOOL=":" 8353 else 8354 case $cross_compiling:$ac_tool_warned in 8355yes:) 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8358ac_tool_warned=yes ;; 8359esac 8360 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8361 fi 8362else 8363 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8364fi 8365 8366test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8368$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8369if ${lt_cv_path_mainfest_tool+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 lt_cv_path_mainfest_tool=no 8373 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8374 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8375 cat conftest.err >&5 8376 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8377 lt_cv_path_mainfest_tool=yes 8378 fi 8379 rm -f conftest* 8380fi 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8382$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8383if test "x$lt_cv_path_mainfest_tool" != xyes; then 8384 MANIFEST_TOOL=: 8385fi 8386 8387 8388 8389 8390 8391 8392 case $host_os in 8393 rhapsody* | darwin*) 8394 if test -n "$ac_tool_prefix"; then 8395 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8396set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398$as_echo_n "checking for $ac_word... " >&6; } 8399if ${ac_cv_prog_DSYMUTIL+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401else 8402 if test -n "$DSYMUTIL"; then 8403 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8404else 8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8406for as_dir in $PATH 8407do 8408 IFS=$as_save_IFS 8409 test -z "$as_dir" && as_dir=. 8410 for ac_exec_ext in '' $ac_executable_extensions; do 8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8412 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8414 break 2 8415 fi 8416done 8417 done 8418IFS=$as_save_IFS 8419 8420fi 8421fi 8422DSYMUTIL=$ac_cv_prog_DSYMUTIL 8423if test -n "$DSYMUTIL"; then 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8425$as_echo "$DSYMUTIL" >&6; } 8426else 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8428$as_echo "no" >&6; } 8429fi 8430 8431 8432fi 8433if test -z "$ac_cv_prog_DSYMUTIL"; then 8434 ac_ct_DSYMUTIL=$DSYMUTIL 8435 # Extract the first word of "dsymutil", so it can be a program name with args. 8436set dummy dsymutil; ac_word=$2 8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8438$as_echo_n "checking for $ac_word... " >&6; } 8439if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8440 $as_echo_n "(cached) " >&6 8441else 8442 if test -n "$ac_ct_DSYMUTIL"; then 8443 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8444else 8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8446for as_dir in $PATH 8447do 8448 IFS=$as_save_IFS 8449 test -z "$as_dir" && as_dir=. 8450 for ac_exec_ext in '' $ac_executable_extensions; do 8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8452 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8454 break 2 8455 fi 8456done 8457 done 8458IFS=$as_save_IFS 8459 8460fi 8461fi 8462ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8463if test -n "$ac_ct_DSYMUTIL"; then 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8465$as_echo "$ac_ct_DSYMUTIL" >&6; } 8466else 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8468$as_echo "no" >&6; } 8469fi 8470 8471 if test "x$ac_ct_DSYMUTIL" = x; then 8472 DSYMUTIL=":" 8473 else 8474 case $cross_compiling:$ac_tool_warned in 8475yes:) 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8478ac_tool_warned=yes ;; 8479esac 8480 DSYMUTIL=$ac_ct_DSYMUTIL 8481 fi 8482else 8483 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8484fi 8485 8486 if test -n "$ac_tool_prefix"; then 8487 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8488set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8490$as_echo_n "checking for $ac_word... " >&6; } 8491if ${ac_cv_prog_NMEDIT+:} false; then : 8492 $as_echo_n "(cached) " >&6 8493else 8494 if test -n "$NMEDIT"; then 8495 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8496else 8497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8498for as_dir in $PATH 8499do 8500 IFS=$as_save_IFS 8501 test -z "$as_dir" && as_dir=. 8502 for ac_exec_ext in '' $ac_executable_extensions; do 8503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8504 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8506 break 2 8507 fi 8508done 8509 done 8510IFS=$as_save_IFS 8511 8512fi 8513fi 8514NMEDIT=$ac_cv_prog_NMEDIT 8515if test -n "$NMEDIT"; then 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8517$as_echo "$NMEDIT" >&6; } 8518else 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8520$as_echo "no" >&6; } 8521fi 8522 8523 8524fi 8525if test -z "$ac_cv_prog_NMEDIT"; then 8526 ac_ct_NMEDIT=$NMEDIT 8527 # Extract the first word of "nmedit", so it can be a program name with args. 8528set dummy nmedit; ac_word=$2 8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8530$as_echo_n "checking for $ac_word... " >&6; } 8531if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 if test -n "$ac_ct_NMEDIT"; then 8535 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8536else 8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8538for as_dir in $PATH 8539do 8540 IFS=$as_save_IFS 8541 test -z "$as_dir" && as_dir=. 8542 for ac_exec_ext in '' $ac_executable_extensions; do 8543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8544 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8546 break 2 8547 fi 8548done 8549 done 8550IFS=$as_save_IFS 8551 8552fi 8553fi 8554ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8555if test -n "$ac_ct_NMEDIT"; then 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8557$as_echo "$ac_ct_NMEDIT" >&6; } 8558else 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8560$as_echo "no" >&6; } 8561fi 8562 8563 if test "x$ac_ct_NMEDIT" = x; then 8564 NMEDIT=":" 8565 else 8566 case $cross_compiling:$ac_tool_warned in 8567yes:) 8568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8570ac_tool_warned=yes ;; 8571esac 8572 NMEDIT=$ac_ct_NMEDIT 8573 fi 8574else 8575 NMEDIT="$ac_cv_prog_NMEDIT" 8576fi 8577 8578 if test -n "$ac_tool_prefix"; then 8579 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8580set dummy ${ac_tool_prefix}lipo; ac_word=$2 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8582$as_echo_n "checking for $ac_word... " >&6; } 8583if ${ac_cv_prog_LIPO+:} false; then : 8584 $as_echo_n "(cached) " >&6 8585else 8586 if test -n "$LIPO"; then 8587 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8588else 8589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8590for as_dir in $PATH 8591do 8592 IFS=$as_save_IFS 8593 test -z "$as_dir" && as_dir=. 8594 for ac_exec_ext in '' $ac_executable_extensions; do 8595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8596 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8598 break 2 8599 fi 8600done 8601 done 8602IFS=$as_save_IFS 8603 8604fi 8605fi 8606LIPO=$ac_cv_prog_LIPO 8607if test -n "$LIPO"; then 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8609$as_echo "$LIPO" >&6; } 8610else 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8612$as_echo "no" >&6; } 8613fi 8614 8615 8616fi 8617if test -z "$ac_cv_prog_LIPO"; then 8618 ac_ct_LIPO=$LIPO 8619 # Extract the first word of "lipo", so it can be a program name with args. 8620set dummy lipo; ac_word=$2 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8622$as_echo_n "checking for $ac_word... " >&6; } 8623if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8624 $as_echo_n "(cached) " >&6 8625else 8626 if test -n "$ac_ct_LIPO"; then 8627 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8628else 8629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8630for as_dir in $PATH 8631do 8632 IFS=$as_save_IFS 8633 test -z "$as_dir" && as_dir=. 8634 for ac_exec_ext in '' $ac_executable_extensions; do 8635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8636 ac_cv_prog_ac_ct_LIPO="lipo" 8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8638 break 2 8639 fi 8640done 8641 done 8642IFS=$as_save_IFS 8643 8644fi 8645fi 8646ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8647if test -n "$ac_ct_LIPO"; then 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8649$as_echo "$ac_ct_LIPO" >&6; } 8650else 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8652$as_echo "no" >&6; } 8653fi 8654 8655 if test "x$ac_ct_LIPO" = x; then 8656 LIPO=":" 8657 else 8658 case $cross_compiling:$ac_tool_warned in 8659yes:) 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8662ac_tool_warned=yes ;; 8663esac 8664 LIPO=$ac_ct_LIPO 8665 fi 8666else 8667 LIPO="$ac_cv_prog_LIPO" 8668fi 8669 8670 if test -n "$ac_tool_prefix"; then 8671 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8672set dummy ${ac_tool_prefix}otool; ac_word=$2 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8674$as_echo_n "checking for $ac_word... " >&6; } 8675if ${ac_cv_prog_OTOOL+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 if test -n "$OTOOL"; then 8679 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8680else 8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8682for as_dir in $PATH 8683do 8684 IFS=$as_save_IFS 8685 test -z "$as_dir" && as_dir=. 8686 for ac_exec_ext in '' $ac_executable_extensions; do 8687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8688 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8690 break 2 8691 fi 8692done 8693 done 8694IFS=$as_save_IFS 8695 8696fi 8697fi 8698OTOOL=$ac_cv_prog_OTOOL 8699if test -n "$OTOOL"; then 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8701$as_echo "$OTOOL" >&6; } 8702else 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8704$as_echo "no" >&6; } 8705fi 8706 8707 8708fi 8709if test -z "$ac_cv_prog_OTOOL"; then 8710 ac_ct_OTOOL=$OTOOL 8711 # Extract the first word of "otool", so it can be a program name with args. 8712set dummy otool; ac_word=$2 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8714$as_echo_n "checking for $ac_word... " >&6; } 8715if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8716 $as_echo_n "(cached) " >&6 8717else 8718 if test -n "$ac_ct_OTOOL"; then 8719 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8720else 8721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8722for as_dir in $PATH 8723do 8724 IFS=$as_save_IFS 8725 test -z "$as_dir" && as_dir=. 8726 for ac_exec_ext in '' $ac_executable_extensions; do 8727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8728 ac_cv_prog_ac_ct_OTOOL="otool" 8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8730 break 2 8731 fi 8732done 8733 done 8734IFS=$as_save_IFS 8735 8736fi 8737fi 8738ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8739if test -n "$ac_ct_OTOOL"; then 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8741$as_echo "$ac_ct_OTOOL" >&6; } 8742else 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8744$as_echo "no" >&6; } 8745fi 8746 8747 if test "x$ac_ct_OTOOL" = x; then 8748 OTOOL=":" 8749 else 8750 case $cross_compiling:$ac_tool_warned in 8751yes:) 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8754ac_tool_warned=yes ;; 8755esac 8756 OTOOL=$ac_ct_OTOOL 8757 fi 8758else 8759 OTOOL="$ac_cv_prog_OTOOL" 8760fi 8761 8762 if test -n "$ac_tool_prefix"; then 8763 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8764set dummy ${ac_tool_prefix}otool64; ac_word=$2 8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8766$as_echo_n "checking for $ac_word... " >&6; } 8767if ${ac_cv_prog_OTOOL64+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 if test -n "$OTOOL64"; then 8771 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8772else 8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8774for as_dir in $PATH 8775do 8776 IFS=$as_save_IFS 8777 test -z "$as_dir" && as_dir=. 8778 for ac_exec_ext in '' $ac_executable_extensions; do 8779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8780 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8782 break 2 8783 fi 8784done 8785 done 8786IFS=$as_save_IFS 8787 8788fi 8789fi 8790OTOOL64=$ac_cv_prog_OTOOL64 8791if test -n "$OTOOL64"; then 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8793$as_echo "$OTOOL64" >&6; } 8794else 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8796$as_echo "no" >&6; } 8797fi 8798 8799 8800fi 8801if test -z "$ac_cv_prog_OTOOL64"; then 8802 ac_ct_OTOOL64=$OTOOL64 8803 # Extract the first word of "otool64", so it can be a program name with args. 8804set dummy otool64; ac_word=$2 8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8806$as_echo_n "checking for $ac_word... " >&6; } 8807if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8808 $as_echo_n "(cached) " >&6 8809else 8810 if test -n "$ac_ct_OTOOL64"; then 8811 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8812else 8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8814for as_dir in $PATH 8815do 8816 IFS=$as_save_IFS 8817 test -z "$as_dir" && as_dir=. 8818 for ac_exec_ext in '' $ac_executable_extensions; do 8819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8820 ac_cv_prog_ac_ct_OTOOL64="otool64" 8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8822 break 2 8823 fi 8824done 8825 done 8826IFS=$as_save_IFS 8827 8828fi 8829fi 8830ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8831if test -n "$ac_ct_OTOOL64"; then 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8833$as_echo "$ac_ct_OTOOL64" >&6; } 8834else 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8836$as_echo "no" >&6; } 8837fi 8838 8839 if test "x$ac_ct_OTOOL64" = x; then 8840 OTOOL64=":" 8841 else 8842 case $cross_compiling:$ac_tool_warned in 8843yes:) 8844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8846ac_tool_warned=yes ;; 8847esac 8848 OTOOL64=$ac_ct_OTOOL64 8849 fi 8850else 8851 OTOOL64="$ac_cv_prog_OTOOL64" 8852fi 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8881$as_echo_n "checking for -single_module linker flag... " >&6; } 8882if ${lt_cv_apple_cc_single_mod+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884else 8885 lt_cv_apple_cc_single_mod=no 8886 if test -z "${LT_MULTI_MODULE}"; then 8887 # By default we will add the -single_module flag. You can override 8888 # by either setting the environment variable LT_MULTI_MODULE 8889 # non-empty at configure time, or by adding -multi_module to the 8890 # link flags. 8891 rm -rf libconftest.dylib* 8892 echo "int foo(void){return 1;}" > conftest.c 8893 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8894-dynamiclib -Wl,-single_module conftest.c" >&5 8895 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8896 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8897 _lt_result=$? 8898 # If there is a non-empty error log, and "single_module" 8899 # appears in it, assume the flag caused a linker warning 8900 if test -s conftest.err && $GREP single_module conftest.err; then 8901 cat conftest.err >&5 8902 # Otherwise, if the output was created with a 0 exit code from 8903 # the compiler, it worked. 8904 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8905 lt_cv_apple_cc_single_mod=yes 8906 else 8907 cat conftest.err >&5 8908 fi 8909 rm -rf libconftest.dylib* 8910 rm -f conftest.* 8911 fi 8912fi 8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8914$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8915 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8917$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8918if ${lt_cv_ld_exported_symbols_list+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 lt_cv_ld_exported_symbols_list=no 8922 save_LDFLAGS=$LDFLAGS 8923 echo "_main" > conftest.sym 8924 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8926/* end confdefs.h. */ 8927 8928int 8929main () 8930{ 8931 8932 ; 8933 return 0; 8934} 8935_ACEOF 8936if ac_fn_c_try_link "$LINENO"; then : 8937 lt_cv_ld_exported_symbols_list=yes 8938else 8939 lt_cv_ld_exported_symbols_list=no 8940fi 8941rm -f core conftest.err conftest.$ac_objext \ 8942 conftest$ac_exeext conftest.$ac_ext 8943 LDFLAGS="$save_LDFLAGS" 8944 8945fi 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8947$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8948 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8950$as_echo_n "checking for -force_load linker flag... " >&6; } 8951if ${lt_cv_ld_force_load+:} false; then : 8952 $as_echo_n "(cached) " >&6 8953else 8954 lt_cv_ld_force_load=no 8955 cat > conftest.c << _LT_EOF 8956int forced_loaded() { return 2;} 8957_LT_EOF 8958 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8959 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8960 echo "$AR cru libconftest.a conftest.o" >&5 8961 $AR cru libconftest.a conftest.o 2>&5 8962 echo "$RANLIB libconftest.a" >&5 8963 $RANLIB libconftest.a 2>&5 8964 cat > conftest.c << _LT_EOF 8965int main() { return 0;} 8966_LT_EOF 8967 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8968 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8969 _lt_result=$? 8970 if test -s conftest.err && $GREP force_load conftest.err; then 8971 cat conftest.err >&5 8972 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8973 lt_cv_ld_force_load=yes 8974 else 8975 cat conftest.err >&5 8976 fi 8977 rm -f conftest.err libconftest.a conftest conftest.c 8978 rm -rf conftest.dSYM 8979 8980fi 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8982$as_echo "$lt_cv_ld_force_load" >&6; } 8983 case $host_os in 8984 rhapsody* | darwin1.[012]) 8985 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8986 darwin1.*) 8987 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8988 darwin*) # darwin 5.x on 8989 # if running on 10.5 or later, the deployment target defaults 8990 # to the OS version, if on x86, and 10.4, the deployment 8991 # target defaults to 10.4. Don't you love it? 8992 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8993 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8995 10.[012]*) 8996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8997 10.*) 8998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8999 esac 9000 ;; 9001 esac 9002 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9003 _lt_dar_single_mod='$single_module' 9004 fi 9005 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9006 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9007 else 9008 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9009 fi 9010 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9011 _lt_dsymutil='~$DSYMUTIL $lib || :' 9012 else 9013 _lt_dsymutil= 9014 fi 9015 ;; 9016 esac 9017 9018for ac_header in dlfcn.h 9019do : 9020 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9021" 9022if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9023 cat >>confdefs.h <<_ACEOF 9024#define HAVE_DLFCN_H 1 9025_ACEOF 9026 9027fi 9028 9029done 9030 9031 9032 9033 9034 9035# Set options 9036enable_win32_dll=yes 9037 9038case $host in 9039*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9040 if test -n "$ac_tool_prefix"; then 9041 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 9042set dummy ${ac_tool_prefix}as; ac_word=$2 9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9044$as_echo_n "checking for $ac_word... " >&6; } 9045if ${ac_cv_prog_AS+:} false; then : 9046 $as_echo_n "(cached) " >&6 9047else 9048 if test -n "$AS"; then 9049 ac_cv_prog_AS="$AS" # Let the user override the test. 9050else 9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9052for as_dir in $PATH 9053do 9054 IFS=$as_save_IFS 9055 test -z "$as_dir" && as_dir=. 9056 for ac_exec_ext in '' $ac_executable_extensions; do 9057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9058 ac_cv_prog_AS="${ac_tool_prefix}as" 9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9060 break 2 9061 fi 9062done 9063 done 9064IFS=$as_save_IFS 9065 9066fi 9067fi 9068AS=$ac_cv_prog_AS 9069if test -n "$AS"; then 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9071$as_echo "$AS" >&6; } 9072else 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9074$as_echo "no" >&6; } 9075fi 9076 9077 9078fi 9079if test -z "$ac_cv_prog_AS"; then 9080 ac_ct_AS=$AS 9081 # Extract the first word of "as", so it can be a program name with args. 9082set dummy as; ac_word=$2 9083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9084$as_echo_n "checking for $ac_word... " >&6; } 9085if ${ac_cv_prog_ac_ct_AS+:} false; then : 9086 $as_echo_n "(cached) " >&6 9087else 9088 if test -n "$ac_ct_AS"; then 9089 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9090else 9091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9092for as_dir in $PATH 9093do 9094 IFS=$as_save_IFS 9095 test -z "$as_dir" && as_dir=. 9096 for ac_exec_ext in '' $ac_executable_extensions; do 9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9098 ac_cv_prog_ac_ct_AS="as" 9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9100 break 2 9101 fi 9102done 9103 done 9104IFS=$as_save_IFS 9105 9106fi 9107fi 9108ac_ct_AS=$ac_cv_prog_ac_ct_AS 9109if test -n "$ac_ct_AS"; then 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9111$as_echo "$ac_ct_AS" >&6; } 9112else 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9114$as_echo "no" >&6; } 9115fi 9116 9117 if test "x$ac_ct_AS" = x; then 9118 AS="false" 9119 else 9120 case $cross_compiling:$ac_tool_warned in 9121yes:) 9122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9124ac_tool_warned=yes ;; 9125esac 9126 AS=$ac_ct_AS 9127 fi 9128else 9129 AS="$ac_cv_prog_AS" 9130fi 9131 9132 if test -n "$ac_tool_prefix"; then 9133 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9134set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9136$as_echo_n "checking for $ac_word... " >&6; } 9137if ${ac_cv_prog_DLLTOOL+:} false; then : 9138 $as_echo_n "(cached) " >&6 9139else 9140 if test -n "$DLLTOOL"; then 9141 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9142else 9143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9144for as_dir in $PATH 9145do 9146 IFS=$as_save_IFS 9147 test -z "$as_dir" && as_dir=. 9148 for ac_exec_ext in '' $ac_executable_extensions; do 9149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9150 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9152 break 2 9153 fi 9154done 9155 done 9156IFS=$as_save_IFS 9157 9158fi 9159fi 9160DLLTOOL=$ac_cv_prog_DLLTOOL 9161if test -n "$DLLTOOL"; then 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9163$as_echo "$DLLTOOL" >&6; } 9164else 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9166$as_echo "no" >&6; } 9167fi 9168 9169 9170fi 9171if test -z "$ac_cv_prog_DLLTOOL"; then 9172 ac_ct_DLLTOOL=$DLLTOOL 9173 # Extract the first word of "dlltool", so it can be a program name with args. 9174set dummy dlltool; ac_word=$2 9175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9176$as_echo_n "checking for $ac_word... " >&6; } 9177if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9178 $as_echo_n "(cached) " >&6 9179else 9180 if test -n "$ac_ct_DLLTOOL"; then 9181 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9182else 9183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9184for as_dir in $PATH 9185do 9186 IFS=$as_save_IFS 9187 test -z "$as_dir" && as_dir=. 9188 for ac_exec_ext in '' $ac_executable_extensions; do 9189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9190 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9192 break 2 9193 fi 9194done 9195 done 9196IFS=$as_save_IFS 9197 9198fi 9199fi 9200ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9201if test -n "$ac_ct_DLLTOOL"; then 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9203$as_echo "$ac_ct_DLLTOOL" >&6; } 9204else 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9206$as_echo "no" >&6; } 9207fi 9208 9209 if test "x$ac_ct_DLLTOOL" = x; then 9210 DLLTOOL="false" 9211 else 9212 case $cross_compiling:$ac_tool_warned in 9213yes:) 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9216ac_tool_warned=yes ;; 9217esac 9218 DLLTOOL=$ac_ct_DLLTOOL 9219 fi 9220else 9221 DLLTOOL="$ac_cv_prog_DLLTOOL" 9222fi 9223 9224 if test -n "$ac_tool_prefix"; then 9225 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9226set dummy ${ac_tool_prefix}objdump; ac_word=$2 9227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9228$as_echo_n "checking for $ac_word... " >&6; } 9229if ${ac_cv_prog_OBJDUMP+:} false; then : 9230 $as_echo_n "(cached) " >&6 9231else 9232 if test -n "$OBJDUMP"; then 9233 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9234else 9235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9236for as_dir in $PATH 9237do 9238 IFS=$as_save_IFS 9239 test -z "$as_dir" && as_dir=. 9240 for ac_exec_ext in '' $ac_executable_extensions; do 9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9242 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9244 break 2 9245 fi 9246done 9247 done 9248IFS=$as_save_IFS 9249 9250fi 9251fi 9252OBJDUMP=$ac_cv_prog_OBJDUMP 9253if test -n "$OBJDUMP"; then 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9255$as_echo "$OBJDUMP" >&6; } 9256else 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9258$as_echo "no" >&6; } 9259fi 9260 9261 9262fi 9263if test -z "$ac_cv_prog_OBJDUMP"; then 9264 ac_ct_OBJDUMP=$OBJDUMP 9265 # Extract the first word of "objdump", so it can be a program name with args. 9266set dummy objdump; ac_word=$2 9267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9268$as_echo_n "checking for $ac_word... " >&6; } 9269if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9270 $as_echo_n "(cached) " >&6 9271else 9272 if test -n "$ac_ct_OBJDUMP"; then 9273 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9274else 9275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9276for as_dir in $PATH 9277do 9278 IFS=$as_save_IFS 9279 test -z "$as_dir" && as_dir=. 9280 for ac_exec_ext in '' $ac_executable_extensions; do 9281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9282 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9284 break 2 9285 fi 9286done 9287 done 9288IFS=$as_save_IFS 9289 9290fi 9291fi 9292ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9293if test -n "$ac_ct_OBJDUMP"; then 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9295$as_echo "$ac_ct_OBJDUMP" >&6; } 9296else 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9298$as_echo "no" >&6; } 9299fi 9300 9301 if test "x$ac_ct_OBJDUMP" = x; then 9302 OBJDUMP="false" 9303 else 9304 case $cross_compiling:$ac_tool_warned in 9305yes:) 9306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9308ac_tool_warned=yes ;; 9309esac 9310 OBJDUMP=$ac_ct_OBJDUMP 9311 fi 9312else 9313 OBJDUMP="$ac_cv_prog_OBJDUMP" 9314fi 9315 9316 ;; 9317esac 9318 9319test -z "$AS" && AS=as 9320 9321 9322 9323 9324 9325test -z "$DLLTOOL" && DLLTOOL=dlltool 9326 9327 9328 9329 9330 9331test -z "$OBJDUMP" && OBJDUMP=objdump 9332 9333 9334 9335 9336 9337 9338 9339 enable_dlopen=no 9340 9341 9342 9343 # Check whether --enable-shared was given. 9344if test "${enable_shared+set}" = set; then : 9345 enableval=$enable_shared; p=${PACKAGE-default} 9346 case $enableval in 9347 yes) enable_shared=yes ;; 9348 no) enable_shared=no ;; 9349 *) 9350 enable_shared=no 9351 # Look at the argument we got. We use all the common list separators. 9352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9353 for pkg in $enableval; do 9354 IFS="$lt_save_ifs" 9355 if test "X$pkg" = "X$p"; then 9356 enable_shared=yes 9357 fi 9358 done 9359 IFS="$lt_save_ifs" 9360 ;; 9361 esac 9362else 9363 enable_shared=yes 9364fi 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 # Check whether --enable-static was given. 9375if test "${enable_static+set}" = set; then : 9376 enableval=$enable_static; p=${PACKAGE-default} 9377 case $enableval in 9378 yes) enable_static=yes ;; 9379 no) enable_static=no ;; 9380 *) 9381 enable_static=no 9382 # Look at the argument we got. We use all the common list separators. 9383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9384 for pkg in $enableval; do 9385 IFS="$lt_save_ifs" 9386 if test "X$pkg" = "X$p"; then 9387 enable_static=yes 9388 fi 9389 done 9390 IFS="$lt_save_ifs" 9391 ;; 9392 esac 9393else 9394 enable_static=yes 9395fi 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406# Check whether --with-pic was given. 9407if test "${with_pic+set}" = set; then : 9408 withval=$with_pic; lt_p=${PACKAGE-default} 9409 case $withval in 9410 yes|no) pic_mode=$withval ;; 9411 *) 9412 pic_mode=default 9413 # Look at the argument we got. We use all the common list separators. 9414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9415 for lt_pkg in $withval; do 9416 IFS="$lt_save_ifs" 9417 if test "X$lt_pkg" = "X$lt_p"; then 9418 pic_mode=yes 9419 fi 9420 done 9421 IFS="$lt_save_ifs" 9422 ;; 9423 esac 9424else 9425 pic_mode=default 9426fi 9427 9428 9429test -z "$pic_mode" && pic_mode=default 9430 9431 9432 9433 9434 9435 9436 9437 # Check whether --enable-fast-install was given. 9438if test "${enable_fast_install+set}" = set; then : 9439 enableval=$enable_fast_install; p=${PACKAGE-default} 9440 case $enableval in 9441 yes) enable_fast_install=yes ;; 9442 no) enable_fast_install=no ;; 9443 *) 9444 enable_fast_install=no 9445 # Look at the argument we got. We use all the common list separators. 9446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9447 for pkg in $enableval; do 9448 IFS="$lt_save_ifs" 9449 if test "X$pkg" = "X$p"; then 9450 enable_fast_install=yes 9451 fi 9452 done 9453 IFS="$lt_save_ifs" 9454 ;; 9455 esac 9456else 9457 enable_fast_install=yes 9458fi 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470# This can be used to rebuild libtool when needed 9471LIBTOOL_DEPS="$ltmain" 9472 9473# Always use our own libtool. 9474LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505test -z "$LN_S" && LN_S="ln -s" 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520if test -n "${ZSH_VERSION+set}" ; then 9521 setopt NO_GLOB_SUBST 9522fi 9523 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9525$as_echo_n "checking for objdir... " >&6; } 9526if ${lt_cv_objdir+:} false; then : 9527 $as_echo_n "(cached) " >&6 9528else 9529 rm -f .libs 2>/dev/null 9530mkdir .libs 2>/dev/null 9531if test -d .libs; then 9532 lt_cv_objdir=.libs 9533else 9534 # MS-DOS does not allow filenames that begin with a dot. 9535 lt_cv_objdir=_libs 9536fi 9537rmdir .libs 2>/dev/null 9538fi 9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9540$as_echo "$lt_cv_objdir" >&6; } 9541objdir=$lt_cv_objdir 9542 9543 9544 9545 9546 9547cat >>confdefs.h <<_ACEOF 9548#define LT_OBJDIR "$lt_cv_objdir/" 9549_ACEOF 9550 9551 9552 9553 9554case $host_os in 9555aix3*) 9556 # AIX sometimes has problems with the GCC collect2 program. For some 9557 # reason, if we set the COLLECT_NAMES environment variable, the problems 9558 # vanish in a puff of smoke. 9559 if test "X${COLLECT_NAMES+set}" != Xset; then 9560 COLLECT_NAMES= 9561 export COLLECT_NAMES 9562 fi 9563 ;; 9564esac 9565 9566# Global variables: 9567ofile=libtool 9568can_build_shared=yes 9569 9570# All known linkers require a `.a' archive for static linking (except MSVC, 9571# which needs '.lib'). 9572libext=a 9573 9574with_gnu_ld="$lt_cv_prog_gnu_ld" 9575 9576old_CC="$CC" 9577old_CFLAGS="$CFLAGS" 9578 9579# Set sane defaults for various variables 9580test -z "$CC" && CC=cc 9581test -z "$LTCC" && LTCC=$CC 9582test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9583test -z "$LD" && LD=ld 9584test -z "$ac_objext" && ac_objext=o 9585 9586for cc_temp in $compiler""; do 9587 case $cc_temp in 9588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9590 \-*) ;; 9591 *) break;; 9592 esac 9593done 9594cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9595 9596 9597# Only perform the check for file, if the check method requires it 9598test -z "$MAGIC_CMD" && MAGIC_CMD=file 9599case $deplibs_check_method in 9600file_magic*) 9601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9603$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9604if ${lt_cv_path_MAGIC_CMD+:} false; then : 9605 $as_echo_n "(cached) " >&6 9606else 9607 case $MAGIC_CMD in 9608[\\/*] | ?:[\\/]*) 9609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9610 ;; 9611*) 9612 lt_save_MAGIC_CMD="$MAGIC_CMD" 9613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9615 for ac_dir in $ac_dummy; do 9616 IFS="$lt_save_ifs" 9617 test -z "$ac_dir" && ac_dir=. 9618 if test -f $ac_dir/${ac_tool_prefix}file; then 9619 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9620 if test -n "$file_magic_test_file"; then 9621 case $deplibs_check_method in 9622 "file_magic "*) 9623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9626 $EGREP "$file_magic_regex" > /dev/null; then 9627 : 9628 else 9629 cat <<_LT_EOF 1>&2 9630 9631*** Warning: the command libtool uses to detect shared libraries, 9632*** $file_magic_cmd, produces output that libtool cannot recognize. 9633*** The result is that libtool may fail to recognize shared libraries 9634*** as such. This will affect the creation of libtool libraries that 9635*** depend on shared libraries, but programs linked with such libtool 9636*** libraries will work regardless of this problem. Nevertheless, you 9637*** may want to report the problem to your system manager and/or to 9638*** bug-libtool@gnu.org 9639 9640_LT_EOF 9641 fi ;; 9642 esac 9643 fi 9644 break 9645 fi 9646 done 9647 IFS="$lt_save_ifs" 9648 MAGIC_CMD="$lt_save_MAGIC_CMD" 9649 ;; 9650esac 9651fi 9652 9653MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9654if test -n "$MAGIC_CMD"; then 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9656$as_echo "$MAGIC_CMD" >&6; } 9657else 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9659$as_echo "no" >&6; } 9660fi 9661 9662 9663 9664 9665 9666if test -z "$lt_cv_path_MAGIC_CMD"; then 9667 if test -n "$ac_tool_prefix"; then 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9669$as_echo_n "checking for file... " >&6; } 9670if ${lt_cv_path_MAGIC_CMD+:} false; then : 9671 $as_echo_n "(cached) " >&6 9672else 9673 case $MAGIC_CMD in 9674[\\/*] | ?:[\\/]*) 9675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9676 ;; 9677*) 9678 lt_save_MAGIC_CMD="$MAGIC_CMD" 9679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9681 for ac_dir in $ac_dummy; do 9682 IFS="$lt_save_ifs" 9683 test -z "$ac_dir" && ac_dir=. 9684 if test -f $ac_dir/file; then 9685 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9686 if test -n "$file_magic_test_file"; then 9687 case $deplibs_check_method in 9688 "file_magic "*) 9689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9692 $EGREP "$file_magic_regex" > /dev/null; then 9693 : 9694 else 9695 cat <<_LT_EOF 1>&2 9696 9697*** Warning: the command libtool uses to detect shared libraries, 9698*** $file_magic_cmd, produces output that libtool cannot recognize. 9699*** The result is that libtool may fail to recognize shared libraries 9700*** as such. This will affect the creation of libtool libraries that 9701*** depend on shared libraries, but programs linked with such libtool 9702*** libraries will work regardless of this problem. Nevertheless, you 9703*** may want to report the problem to your system manager and/or to 9704*** bug-libtool@gnu.org 9705 9706_LT_EOF 9707 fi ;; 9708 esac 9709 fi 9710 break 9711 fi 9712 done 9713 IFS="$lt_save_ifs" 9714 MAGIC_CMD="$lt_save_MAGIC_CMD" 9715 ;; 9716esac 9717fi 9718 9719MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9720if test -n "$MAGIC_CMD"; then 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9722$as_echo "$MAGIC_CMD" >&6; } 9723else 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9725$as_echo "no" >&6; } 9726fi 9727 9728 9729 else 9730 MAGIC_CMD=: 9731 fi 9732fi 9733 9734 fi 9735 ;; 9736esac 9737 9738# Use C for the default configuration in the libtool script 9739 9740lt_save_CC="$CC" 9741ac_ext=c 9742ac_cpp='$CPP $CPPFLAGS' 9743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9745ac_compiler_gnu=$ac_cv_c_compiler_gnu 9746 9747 9748# Source file extension for C test sources. 9749ac_ext=c 9750 9751# Object file extension for compiled C test sources. 9752objext=o 9753objext=$objext 9754 9755# Code to be used in simple compile tests 9756lt_simple_compile_test_code="int some_variable = 0;" 9757 9758# Code to be used in simple link tests 9759lt_simple_link_test_code='int main(){return(0);}' 9760 9761 9762 9763 9764 9765 9766 9767# If no C compiler was specified, use CC. 9768LTCC=${LTCC-"$CC"} 9769 9770# If no C compiler flags were specified, use CFLAGS. 9771LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9772 9773# Allow CC to be a program name with arguments. 9774compiler=$CC 9775 9776# Save the default compiler, since it gets overwritten when the other 9777# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9778compiler_DEFAULT=$CC 9779 9780# save warnings/boilerplate of simple test code 9781ac_outfile=conftest.$ac_objext 9782echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9783eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9784_lt_compiler_boilerplate=`cat conftest.err` 9785$RM conftest* 9786 9787ac_outfile=conftest.$ac_objext 9788echo "$lt_simple_link_test_code" >conftest.$ac_ext 9789eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9790_lt_linker_boilerplate=`cat conftest.err` 9791$RM -r conftest* 9792 9793 9794## CAVEAT EMPTOR: 9795## There is no encapsulation within the following macros, do not change 9796## the running order or otherwise move them around unless you know exactly 9797## what you are doing... 9798if test -n "$compiler"; then 9799 9800lt_prog_compiler_no_builtin_flag= 9801 9802if test "$GCC" = yes; then 9803 case $cc_basename in 9804 nvcc*) 9805 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9806 *) 9807 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9808 esac 9809 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9811$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9812if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9813 $as_echo_n "(cached) " >&6 9814else 9815 lt_cv_prog_compiler_rtti_exceptions=no 9816 ac_outfile=conftest.$ac_objext 9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9818 lt_compiler_flag="-fno-rtti -fno-exceptions" 9819 # Insert the option either (1) after the last *FLAGS variable, or 9820 # (2) before a word containing "conftest.", or (3) at the end. 9821 # Note that $ac_compile itself does not contain backslashes and begins 9822 # with a dollar sign (not a hyphen), so the echo should work correctly. 9823 # The option is referenced via a variable to avoid confusing sed. 9824 lt_compile=`echo "$ac_compile" | $SED \ 9825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9827 -e 's:$: $lt_compiler_flag:'` 9828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9829 (eval "$lt_compile" 2>conftest.err) 9830 ac_status=$? 9831 cat conftest.err >&5 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9833 if (exit $ac_status) && test -s "$ac_outfile"; then 9834 # The compiler can only warn and ignore the option if not recognized 9835 # So say no if there are warnings other than the usual output. 9836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9839 lt_cv_prog_compiler_rtti_exceptions=yes 9840 fi 9841 fi 9842 $RM conftest* 9843 9844fi 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9846$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9847 9848if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9850else 9851 : 9852fi 9853 9854fi 9855 9856 9857 9858 9859 9860 9861 lt_prog_compiler_wl= 9862lt_prog_compiler_pic= 9863lt_prog_compiler_static= 9864 9865 9866 if test "$GCC" = yes; then 9867 lt_prog_compiler_wl='-Wl,' 9868 lt_prog_compiler_static='-static' 9869 9870 case $host_os in 9871 aix*) 9872 # All AIX code is PIC. 9873 if test "$host_cpu" = ia64; then 9874 # AIX 5 now supports IA64 processor 9875 lt_prog_compiler_static='-Bstatic' 9876 fi 9877 ;; 9878 9879 amigaos*) 9880 case $host_cpu in 9881 powerpc) 9882 # see comment about AmigaOS4 .so support 9883 lt_prog_compiler_pic='-fPIC' 9884 ;; 9885 m68k) 9886 # FIXME: we need at least 68020 code to build shared libraries, but 9887 # adding the `-m68020' flag to GCC prevents building anything better, 9888 # like `-m68040'. 9889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9890 ;; 9891 esac 9892 ;; 9893 9894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9895 # PIC is the default for these OSes. 9896 ;; 9897 9898 mingw* | cygwin* | pw32* | os2* | cegcc*) 9899 # This hack is so that the source file can tell whether it is being 9900 # built for inclusion in a dll (and should export symbols for example). 9901 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9902 # (--disable-auto-import) libraries 9903 lt_prog_compiler_pic='-DDLL_EXPORT' 9904 ;; 9905 9906 darwin* | rhapsody*) 9907 # PIC is the default on this platform 9908 # Common symbols not allowed in MH_DYLIB files 9909 lt_prog_compiler_pic='-fno-common' 9910 ;; 9911 9912 haiku*) 9913 # PIC is the default for Haiku. 9914 # The "-static" flag exists, but is broken. 9915 lt_prog_compiler_static= 9916 ;; 9917 9918 hpux*) 9919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9921 # sets the default TLS model and affects inlining. 9922 case $host_cpu in 9923 hppa*64*) 9924 # +Z the default 9925 ;; 9926 *) 9927 lt_prog_compiler_pic='-fPIC' 9928 ;; 9929 esac 9930 ;; 9931 9932 interix[3-9]*) 9933 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9934 # Instead, we relocate shared libraries at runtime. 9935 ;; 9936 9937 msdosdjgpp*) 9938 # Just because we use GCC doesn't mean we suddenly get shared libraries 9939 # on systems that don't support them. 9940 lt_prog_compiler_can_build_shared=no 9941 enable_shared=no 9942 ;; 9943 9944 *nto* | *qnx*) 9945 # QNX uses GNU C++, but need to define -shared option too, otherwise 9946 # it will coredump. 9947 lt_prog_compiler_pic='-fPIC -shared' 9948 ;; 9949 9950 sysv4*MP*) 9951 if test -d /usr/nec; then 9952 lt_prog_compiler_pic=-Kconform_pic 9953 fi 9954 ;; 9955 9956 *) 9957 lt_prog_compiler_pic='-fPIC' 9958 ;; 9959 esac 9960 9961 case $cc_basename in 9962 nvcc*) # Cuda Compiler Driver 2.2 9963 lt_prog_compiler_wl='-Xlinker ' 9964 if test -n "$lt_prog_compiler_pic"; then 9965 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9966 fi 9967 ;; 9968 esac 9969 else 9970 # PORTME Check for flag to pass linker flags through the system compiler. 9971 case $host_os in 9972 aix*) 9973 lt_prog_compiler_wl='-Wl,' 9974 if test "$host_cpu" = ia64; then 9975 # AIX 5 now supports IA64 processor 9976 lt_prog_compiler_static='-Bstatic' 9977 else 9978 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9979 fi 9980 ;; 9981 9982 mingw* | cygwin* | pw32* | os2* | cegcc*) 9983 # This hack is so that the source file can tell whether it is being 9984 # built for inclusion in a dll (and should export symbols for example). 9985 lt_prog_compiler_pic='-DDLL_EXPORT' 9986 ;; 9987 9988 hpux9* | hpux10* | hpux11*) 9989 lt_prog_compiler_wl='-Wl,' 9990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9991 # not for PA HP-UX. 9992 case $host_cpu in 9993 hppa*64*|ia64*) 9994 # +Z the default 9995 ;; 9996 *) 9997 lt_prog_compiler_pic='+Z' 9998 ;; 9999 esac 10000 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10001 lt_prog_compiler_static='${wl}-a ${wl}archive' 10002 ;; 10003 10004 irix5* | irix6* | nonstopux*) 10005 lt_prog_compiler_wl='-Wl,' 10006 # PIC (with -KPIC) is the default. 10007 lt_prog_compiler_static='-non_shared' 10008 ;; 10009 10010 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10011 case $cc_basename in 10012 # old Intel for x86_64 which still supported -KPIC. 10013 ecc*) 10014 lt_prog_compiler_wl='-Wl,' 10015 lt_prog_compiler_pic='-KPIC' 10016 lt_prog_compiler_static='-static' 10017 ;; 10018 # icc used to be incompatible with GCC. 10019 # ICC 10 doesn't accept -KPIC any more. 10020 icc* | ifort*) 10021 lt_prog_compiler_wl='-Wl,' 10022 lt_prog_compiler_pic='-fPIC' 10023 lt_prog_compiler_static='-static' 10024 ;; 10025 # Lahey Fortran 8.1. 10026 lf95*) 10027 lt_prog_compiler_wl='-Wl,' 10028 lt_prog_compiler_pic='--shared' 10029 lt_prog_compiler_static='--static' 10030 ;; 10031 nagfor*) 10032 # NAG Fortran compiler 10033 lt_prog_compiler_wl='-Wl,-Wl,,' 10034 lt_prog_compiler_pic='-PIC' 10035 lt_prog_compiler_static='-Bstatic' 10036 ;; 10037 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10038 # Portland Group compilers (*not* the Pentium gcc compiler, 10039 # which looks to be a dead project) 10040 lt_prog_compiler_wl='-Wl,' 10041 lt_prog_compiler_pic='-fpic' 10042 lt_prog_compiler_static='-Bstatic' 10043 ;; 10044 ccc*) 10045 lt_prog_compiler_wl='-Wl,' 10046 # All Alpha code is PIC. 10047 lt_prog_compiler_static='-non_shared' 10048 ;; 10049 xl* | bgxl* | bgf* | mpixl*) 10050 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10051 lt_prog_compiler_wl='-Wl,' 10052 lt_prog_compiler_pic='-qpic' 10053 lt_prog_compiler_static='-qstaticlink' 10054 ;; 10055 *) 10056 case `$CC -V 2>&1 | sed 5q` in 10057 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10058 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10059 lt_prog_compiler_pic='-KPIC' 10060 lt_prog_compiler_static='-Bstatic' 10061 lt_prog_compiler_wl='' 10062 ;; 10063 *Sun\ F* | *Sun*Fortran*) 10064 lt_prog_compiler_pic='-KPIC' 10065 lt_prog_compiler_static='-Bstatic' 10066 lt_prog_compiler_wl='-Qoption ld ' 10067 ;; 10068 *Sun\ C*) 10069 # Sun C 5.9 10070 lt_prog_compiler_pic='-KPIC' 10071 lt_prog_compiler_static='-Bstatic' 10072 lt_prog_compiler_wl='-Wl,' 10073 ;; 10074 *Intel*\ [CF]*Compiler*) 10075 lt_prog_compiler_wl='-Wl,' 10076 lt_prog_compiler_pic='-fPIC' 10077 lt_prog_compiler_static='-static' 10078 ;; 10079 *Portland\ Group*) 10080 lt_prog_compiler_wl='-Wl,' 10081 lt_prog_compiler_pic='-fpic' 10082 lt_prog_compiler_static='-Bstatic' 10083 ;; 10084 esac 10085 ;; 10086 esac 10087 ;; 10088 10089 newsos6) 10090 lt_prog_compiler_pic='-KPIC' 10091 lt_prog_compiler_static='-Bstatic' 10092 ;; 10093 10094 *nto* | *qnx*) 10095 # QNX uses GNU C++, but need to define -shared option too, otherwise 10096 # it will coredump. 10097 lt_prog_compiler_pic='-fPIC -shared' 10098 ;; 10099 10100 osf3* | osf4* | osf5*) 10101 lt_prog_compiler_wl='-Wl,' 10102 # All OSF/1 code is PIC. 10103 lt_prog_compiler_static='-non_shared' 10104 ;; 10105 10106 rdos*) 10107 lt_prog_compiler_static='-non_shared' 10108 ;; 10109 10110 solaris*) 10111 lt_prog_compiler_pic='-KPIC' 10112 lt_prog_compiler_static='-Bstatic' 10113 case $cc_basename in 10114 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10115 lt_prog_compiler_wl='-Qoption ld ';; 10116 *) 10117 lt_prog_compiler_wl='-Wl,';; 10118 esac 10119 ;; 10120 10121 sunos4*) 10122 lt_prog_compiler_wl='-Qoption ld ' 10123 lt_prog_compiler_pic='-PIC' 10124 lt_prog_compiler_static='-Bstatic' 10125 ;; 10126 10127 sysv4 | sysv4.2uw2* | sysv4.3*) 10128 lt_prog_compiler_wl='-Wl,' 10129 lt_prog_compiler_pic='-KPIC' 10130 lt_prog_compiler_static='-Bstatic' 10131 ;; 10132 10133 sysv4*MP*) 10134 if test -d /usr/nec ;then 10135 lt_prog_compiler_pic='-Kconform_pic' 10136 lt_prog_compiler_static='-Bstatic' 10137 fi 10138 ;; 10139 10140 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10141 lt_prog_compiler_wl='-Wl,' 10142 lt_prog_compiler_pic='-KPIC' 10143 lt_prog_compiler_static='-Bstatic' 10144 ;; 10145 10146 unicos*) 10147 lt_prog_compiler_wl='-Wl,' 10148 lt_prog_compiler_can_build_shared=no 10149 ;; 10150 10151 uts4*) 10152 lt_prog_compiler_pic='-pic' 10153 lt_prog_compiler_static='-Bstatic' 10154 ;; 10155 10156 *) 10157 lt_prog_compiler_can_build_shared=no 10158 ;; 10159 esac 10160 fi 10161 10162case $host_os in 10163 # For platforms which do not support PIC, -DPIC is meaningless: 10164 *djgpp*) 10165 lt_prog_compiler_pic= 10166 ;; 10167 *) 10168 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10169 ;; 10170esac 10171 10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10173$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10174if ${lt_cv_prog_compiler_pic+:} false; then : 10175 $as_echo_n "(cached) " >&6 10176else 10177 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10178fi 10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10180$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10181lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10182 10183# 10184# Check to make sure the PIC flag actually works. 10185# 10186if test -n "$lt_prog_compiler_pic"; then 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10188$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10189if ${lt_cv_prog_compiler_pic_works+:} false; then : 10190 $as_echo_n "(cached) " >&6 10191else 10192 lt_cv_prog_compiler_pic_works=no 10193 ac_outfile=conftest.$ac_objext 10194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10195 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10196 # Insert the option either (1) after the last *FLAGS variable, or 10197 # (2) before a word containing "conftest.", or (3) at the end. 10198 # Note that $ac_compile itself does not contain backslashes and begins 10199 # with a dollar sign (not a hyphen), so the echo should work correctly. 10200 # The option is referenced via a variable to avoid confusing sed. 10201 lt_compile=`echo "$ac_compile" | $SED \ 10202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10204 -e 's:$: $lt_compiler_flag:'` 10205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10206 (eval "$lt_compile" 2>conftest.err) 10207 ac_status=$? 10208 cat conftest.err >&5 10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10210 if (exit $ac_status) && test -s "$ac_outfile"; then 10211 # The compiler can only warn and ignore the option if not recognized 10212 # So say no if there are warnings other than the usual output. 10213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10216 lt_cv_prog_compiler_pic_works=yes 10217 fi 10218 fi 10219 $RM conftest* 10220 10221fi 10222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10223$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10224 10225if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10226 case $lt_prog_compiler_pic in 10227 "" | " "*) ;; 10228 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10229 esac 10230else 10231 lt_prog_compiler_pic= 10232 lt_prog_compiler_can_build_shared=no 10233fi 10234 10235fi 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247# 10248# Check to make sure the static flag actually works. 10249# 10250wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10252$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10253if ${lt_cv_prog_compiler_static_works+:} false; then : 10254 $as_echo_n "(cached) " >&6 10255else 10256 lt_cv_prog_compiler_static_works=no 10257 save_LDFLAGS="$LDFLAGS" 10258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10259 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10261 # The linker can only warn and ignore the option if not recognized 10262 # So say no if there are warnings 10263 if test -s conftest.err; then 10264 # Append any errors to the config.log. 10265 cat conftest.err 1>&5 10266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10268 if diff conftest.exp conftest.er2 >/dev/null; then 10269 lt_cv_prog_compiler_static_works=yes 10270 fi 10271 else 10272 lt_cv_prog_compiler_static_works=yes 10273 fi 10274 fi 10275 $RM -r conftest* 10276 LDFLAGS="$save_LDFLAGS" 10277 10278fi 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10280$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10281 10282if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10283 : 10284else 10285 lt_prog_compiler_static= 10286fi 10287 10288 10289 10290 10291 10292 10293 10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10295$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10296if ${lt_cv_prog_compiler_c_o+:} false; then : 10297 $as_echo_n "(cached) " >&6 10298else 10299 lt_cv_prog_compiler_c_o=no 10300 $RM -r conftest 2>/dev/null 10301 mkdir conftest 10302 cd conftest 10303 mkdir out 10304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10305 10306 lt_compiler_flag="-o out/conftest2.$ac_objext" 10307 # Insert the option either (1) after the last *FLAGS variable, or 10308 # (2) before a word containing "conftest.", or (3) at the end. 10309 # Note that $ac_compile itself does not contain backslashes and begins 10310 # with a dollar sign (not a hyphen), so the echo should work correctly. 10311 lt_compile=`echo "$ac_compile" | $SED \ 10312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10314 -e 's:$: $lt_compiler_flag:'` 10315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10316 (eval "$lt_compile" 2>out/conftest.err) 10317 ac_status=$? 10318 cat out/conftest.err >&5 10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10320 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10321 then 10322 # The compiler can only warn and ignore the option if not recognized 10323 # So say no if there are warnings 10324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10327 lt_cv_prog_compiler_c_o=yes 10328 fi 10329 fi 10330 chmod u+w . 2>&5 10331 $RM conftest* 10332 # SGI C++ compiler will create directory out/ii_files/ for 10333 # template instantiation 10334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10335 $RM out/* && rmdir out 10336 cd .. 10337 $RM -r conftest 10338 $RM conftest* 10339 10340fi 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10342$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10343 10344 10345 10346 10347 10348 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10350$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10351if ${lt_cv_prog_compiler_c_o+:} false; then : 10352 $as_echo_n "(cached) " >&6 10353else 10354 lt_cv_prog_compiler_c_o=no 10355 $RM -r conftest 2>/dev/null 10356 mkdir conftest 10357 cd conftest 10358 mkdir out 10359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10360 10361 lt_compiler_flag="-o out/conftest2.$ac_objext" 10362 # Insert the option either (1) after the last *FLAGS variable, or 10363 # (2) before a word containing "conftest.", or (3) at the end. 10364 # Note that $ac_compile itself does not contain backslashes and begins 10365 # with a dollar sign (not a hyphen), so the echo should work correctly. 10366 lt_compile=`echo "$ac_compile" | $SED \ 10367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10369 -e 's:$: $lt_compiler_flag:'` 10370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10371 (eval "$lt_compile" 2>out/conftest.err) 10372 ac_status=$? 10373 cat out/conftest.err >&5 10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10375 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10376 then 10377 # The compiler can only warn and ignore the option if not recognized 10378 # So say no if there are warnings 10379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10382 lt_cv_prog_compiler_c_o=yes 10383 fi 10384 fi 10385 chmod u+w . 2>&5 10386 $RM conftest* 10387 # SGI C++ compiler will create directory out/ii_files/ for 10388 # template instantiation 10389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10390 $RM out/* && rmdir out 10391 cd .. 10392 $RM -r conftest 10393 $RM conftest* 10394 10395fi 10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10397$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10398 10399 10400 10401 10402hard_links="nottested" 10403if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10404 # do not overwrite the value of need_locks provided by the user 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10406$as_echo_n "checking if we can lock with hard links... " >&6; } 10407 hard_links=yes 10408 $RM conftest* 10409 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10410 touch conftest.a 10411 ln conftest.a conftest.b 2>&5 || hard_links=no 10412 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10414$as_echo "$hard_links" >&6; } 10415 if test "$hard_links" = no; then 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10417$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10418 need_locks=warn 10419 fi 10420else 10421 need_locks=no 10422fi 10423 10424 10425 10426 10427 10428 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10430$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10431 10432 runpath_var= 10433 allow_undefined_flag= 10434 always_export_symbols=no 10435 archive_cmds= 10436 archive_expsym_cmds= 10437 compiler_needs_object=no 10438 enable_shared_with_static_runtimes=no 10439 export_dynamic_flag_spec= 10440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10441 hardcode_automatic=no 10442 hardcode_direct=no 10443 hardcode_direct_absolute=no 10444 hardcode_libdir_flag_spec= 10445 hardcode_libdir_separator= 10446 hardcode_minus_L=no 10447 hardcode_shlibpath_var=unsupported 10448 inherit_rpath=no 10449 link_all_deplibs=unknown 10450 module_cmds= 10451 module_expsym_cmds= 10452 old_archive_from_new_cmds= 10453 old_archive_from_expsyms_cmds= 10454 thread_safe_flag_spec= 10455 whole_archive_flag_spec= 10456 # include_expsyms should be a list of space-separated symbols to be *always* 10457 # included in the symbol list 10458 include_expsyms= 10459 # exclude_expsyms can be an extended regexp of symbols to exclude 10460 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10461 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10462 # as well as any symbol that contains `d'. 10463 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10464 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10465 # platforms (ab)use it in PIC code, but their linkers get confused if 10466 # the symbol is explicitly referenced. Since portable code cannot 10467 # rely on this symbol name, it's probably fine to never include it in 10468 # preloaded symbol tables. 10469 # Exclude shared library initialization/finalization symbols. 10470 extract_expsyms_cmds= 10471 10472 case $host_os in 10473 cygwin* | mingw* | pw32* | cegcc*) 10474 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10475 # When not using gcc, we currently assume that we are using 10476 # Microsoft Visual C++. 10477 if test "$GCC" != yes; then 10478 with_gnu_ld=no 10479 fi 10480 ;; 10481 interix*) 10482 # we just hope/assume this is gcc and not c89 (= MSVC++) 10483 with_gnu_ld=yes 10484 ;; 10485 openbsd*) 10486 with_gnu_ld=no 10487 ;; 10488 linux* | k*bsd*-gnu | gnu*) 10489 link_all_deplibs=no 10490 ;; 10491 esac 10492 10493 ld_shlibs=yes 10494 10495 # On some targets, GNU ld is compatible enough with the native linker 10496 # that we're better off using the native interface for both. 10497 lt_use_gnu_ld_interface=no 10498 if test "$with_gnu_ld" = yes; then 10499 case $host_os in 10500 aix*) 10501 # The AIX port of GNU ld has always aspired to compatibility 10502 # with the native linker. However, as the warning in the GNU ld 10503 # block says, versions before 2.19.5* couldn't really create working 10504 # shared libraries, regardless of the interface used. 10505 case `$LD -v 2>&1` in 10506 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10507 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10508 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10509 *) 10510 lt_use_gnu_ld_interface=yes 10511 ;; 10512 esac 10513 ;; 10514 *) 10515 lt_use_gnu_ld_interface=yes 10516 ;; 10517 esac 10518 fi 10519 10520 if test "$lt_use_gnu_ld_interface" = yes; then 10521 # If archive_cmds runs LD, not CC, wlarc should be empty 10522 wlarc='${wl}' 10523 10524 # Set some defaults for GNU ld with shared library support. These 10525 # are reset later if shared libraries are not supported. Putting them 10526 # here allows them to be overridden if necessary. 10527 runpath_var=LD_RUN_PATH 10528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10529 export_dynamic_flag_spec='${wl}--export-dynamic' 10530 # ancient GNU ld didn't support --whole-archive et. al. 10531 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10532 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10533 else 10534 whole_archive_flag_spec= 10535 fi 10536 supports_anon_versioning=no 10537 case `$LD -v 2>&1` in 10538 *GNU\ gold*) supports_anon_versioning=yes ;; 10539 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10540 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10541 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10542 *\ 2.11.*) ;; # other 2.11 versions 10543 *) supports_anon_versioning=yes ;; 10544 esac 10545 10546 # See if GNU ld supports shared libraries. 10547 case $host_os in 10548 aix[3-9]*) 10549 # On AIX/PPC, the GNU linker is very broken 10550 if test "$host_cpu" != ia64; then 10551 ld_shlibs=no 10552 cat <<_LT_EOF 1>&2 10553 10554*** Warning: the GNU linker, at least up to release 2.19, is reported 10555*** to be unable to reliably create shared libraries on AIX. 10556*** Therefore, libtool is disabling shared libraries support. If you 10557*** really care for shared libraries, you may want to install binutils 10558*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10559*** You will then need to restart the configuration process. 10560 10561_LT_EOF 10562 fi 10563 ;; 10564 10565 amigaos*) 10566 case $host_cpu in 10567 powerpc) 10568 # see comment about AmigaOS4 .so support 10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10570 archive_expsym_cmds='' 10571 ;; 10572 m68k) 10573 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)' 10574 hardcode_libdir_flag_spec='-L$libdir' 10575 hardcode_minus_L=yes 10576 ;; 10577 esac 10578 ;; 10579 10580 beos*) 10581 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10582 allow_undefined_flag=unsupported 10583 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10584 # support --undefined. This deserves some investigation. FIXME 10585 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10586 else 10587 ld_shlibs=no 10588 fi 10589 ;; 10590 10591 cygwin* | mingw* | pw32* | cegcc*) 10592 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10593 # as there is no search path for DLLs. 10594 hardcode_libdir_flag_spec='-L$libdir' 10595 export_dynamic_flag_spec='${wl}--export-all-symbols' 10596 allow_undefined_flag=unsupported 10597 always_export_symbols=no 10598 enable_shared_with_static_runtimes=yes 10599 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' 10600 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10601 10602 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10604 # If the export-symbols file already is a .def file (1st line 10605 # is EXPORTS), use it as is; otherwise, prepend... 10606 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10607 cp $export_symbols $output_objdir/$soname.def; 10608 else 10609 echo EXPORTS > $output_objdir/$soname.def; 10610 cat $export_symbols >> $output_objdir/$soname.def; 10611 fi~ 10612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10613 else 10614 ld_shlibs=no 10615 fi 10616 ;; 10617 10618 haiku*) 10619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10620 link_all_deplibs=yes 10621 ;; 10622 10623 interix[3-9]*) 10624 hardcode_direct=no 10625 hardcode_shlibpath_var=no 10626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10627 export_dynamic_flag_spec='${wl}-E' 10628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10629 # Instead, shared libraries are loaded at an image base (0x10000000 by 10630 # default) and relocated if they conflict, which is a slow very memory 10631 # consuming and fragmenting process. To avoid this, we pick a random, 10632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10633 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10635 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' 10636 ;; 10637 10638 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10639 tmp_diet=no 10640 if test "$host_os" = linux-dietlibc; then 10641 case $cc_basename in 10642 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10643 esac 10644 fi 10645 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10646 && test "$tmp_diet" = no 10647 then 10648 tmp_addflag=' $pic_flag' 10649 tmp_sharedflag='-shared' 10650 case $cc_basename,$host_cpu in 10651 pgcc*) # Portland Group C compiler 10652 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' 10653 tmp_addflag=' $pic_flag' 10654 ;; 10655 pgf77* | pgf90* | pgf95* | pgfortran*) 10656 # Portland Group f77 and f90 compilers 10657 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' 10658 tmp_addflag=' $pic_flag -Mnomain' ;; 10659 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10660 tmp_addflag=' -i_dynamic' ;; 10661 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10662 tmp_addflag=' -i_dynamic -nofor_main' ;; 10663 ifc* | ifort*) # Intel Fortran compiler 10664 tmp_addflag=' -nofor_main' ;; 10665 lf95*) # Lahey Fortran 8.1 10666 whole_archive_flag_spec= 10667 tmp_sharedflag='--shared' ;; 10668 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10669 tmp_sharedflag='-qmkshrobj' 10670 tmp_addflag= ;; 10671 nvcc*) # Cuda Compiler Driver 2.2 10672 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' 10673 compiler_needs_object=yes 10674 ;; 10675 esac 10676 case `$CC -V 2>&1 | sed 5q` in 10677 *Sun\ C*) # Sun C 5.9 10678 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' 10679 compiler_needs_object=yes 10680 tmp_sharedflag='-G' ;; 10681 *Sun\ F*) # Sun Fortran 8.3 10682 tmp_sharedflag='-G' ;; 10683 esac 10684 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10685 10686 if test "x$supports_anon_versioning" = xyes; then 10687 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10689 echo "local: *; };" >> $output_objdir/$libname.ver~ 10690 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10691 fi 10692 10693 case $cc_basename in 10694 xlf* | bgf* | bgxlf* | mpixlf*) 10695 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10696 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10698 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10699 if test "x$supports_anon_versioning" = xyes; then 10700 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10702 echo "local: *; };" >> $output_objdir/$libname.ver~ 10703 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10704 fi 10705 ;; 10706 esac 10707 else 10708 ld_shlibs=no 10709 fi 10710 ;; 10711 10712 netbsd* | netbsdelf*-gnu) 10713 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10714 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10715 wlarc= 10716 else 10717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10718 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10719 fi 10720 ;; 10721 10722 solaris*) 10723 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10724 ld_shlibs=no 10725 cat <<_LT_EOF 1>&2 10726 10727*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10728*** create shared libraries on Solaris systems. Therefore, libtool 10729*** is disabling shared libraries support. We urge you to upgrade GNU 10730*** binutils to release 2.9.1 or newer. Another option is to modify 10731*** your PATH or compiler configuration so that the native linker is 10732*** used, and then restart. 10733 10734_LT_EOF 10735 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10737 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10738 else 10739 ld_shlibs=no 10740 fi 10741 ;; 10742 10743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10744 case `$LD -v 2>&1` in 10745 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10746 ld_shlibs=no 10747 cat <<_LT_EOF 1>&2 10748 10749*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10750*** reliably create shared libraries on SCO systems. Therefore, libtool 10751*** is disabling shared libraries support. We urge you to upgrade GNU 10752*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10753*** your PATH or compiler configuration so that the native linker is 10754*** used, and then restart. 10755 10756_LT_EOF 10757 ;; 10758 *) 10759 # For security reasons, it is highly recommended that you always 10760 # use absolute paths for naming shared libraries, and exclude the 10761 # DT_RUNPATH tag from executables and libraries. But doing so 10762 # requires that you compile everything twice, which is a pain. 10763 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10767 else 10768 ld_shlibs=no 10769 fi 10770 ;; 10771 esac 10772 ;; 10773 10774 sunos4*) 10775 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10776 wlarc= 10777 hardcode_direct=yes 10778 hardcode_shlibpath_var=no 10779 ;; 10780 10781 *) 10782 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10784 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10785 else 10786 ld_shlibs=no 10787 fi 10788 ;; 10789 esac 10790 10791 if test "$ld_shlibs" = no; then 10792 runpath_var= 10793 hardcode_libdir_flag_spec= 10794 export_dynamic_flag_spec= 10795 whole_archive_flag_spec= 10796 fi 10797 else 10798 # PORTME fill in a description of your system's linker (not GNU ld) 10799 case $host_os in 10800 aix3*) 10801 allow_undefined_flag=unsupported 10802 always_export_symbols=yes 10803 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' 10804 # Note: this linker hardcodes the directories in LIBPATH if there 10805 # are no directories specified by -L. 10806 hardcode_minus_L=yes 10807 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10808 # Neither direct hardcoding nor static linking is supported with a 10809 # broken collect2. 10810 hardcode_direct=unsupported 10811 fi 10812 ;; 10813 10814 aix[4-9]*) 10815 if test "$host_cpu" = ia64; then 10816 # On IA64, the linker does run time linking by default, so we don't 10817 # have to do anything special. 10818 aix_use_runtimelinking=no 10819 exp_sym_flag='-Bexport' 10820 no_entry_flag="" 10821 else 10822 # If we're using GNU nm, then we don't want the "-C" option. 10823 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10824 # Also, AIX nm treats weak defined symbols like other global 10825 # defined symbols, whereas GNU nm marks them as "W". 10826 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10827 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10828 else 10829 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10830 fi 10831 aix_use_runtimelinking=no 10832 10833 # Test if we are trying to use run time linking or normal 10834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10835 # need to do runtime linking. 10836 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10837 for ld_flag in $LDFLAGS; do 10838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10839 aix_use_runtimelinking=yes 10840 break 10841 fi 10842 done 10843 ;; 10844 esac 10845 10846 exp_sym_flag='-bexport' 10847 no_entry_flag='-bnoentry' 10848 fi 10849 10850 # When large executables or shared objects are built, AIX ld can 10851 # have problems creating the table of contents. If linking a library 10852 # or program results in "error TOC overflow" add -mminimal-toc to 10853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10855 10856 archive_cmds='' 10857 hardcode_direct=yes 10858 hardcode_direct_absolute=yes 10859 hardcode_libdir_separator=':' 10860 link_all_deplibs=yes 10861 file_list_spec='${wl}-f,' 10862 10863 if test "$GCC" = yes; then 10864 case $host_os in aix4.[012]|aix4.[012].*) 10865 # We only want to do this on AIX 4.2 and lower, the check 10866 # below for broken collect2 doesn't work under 4.3+ 10867 collect2name=`${CC} -print-prog-name=collect2` 10868 if test -f "$collect2name" && 10869 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10870 then 10871 # We have reworked collect2 10872 : 10873 else 10874 # We have old collect2 10875 hardcode_direct=unsupported 10876 # It fails to find uninstalled libraries when the uninstalled 10877 # path is not listed in the libpath. Setting hardcode_minus_L 10878 # to unsupported forces relinking 10879 hardcode_minus_L=yes 10880 hardcode_libdir_flag_spec='-L$libdir' 10881 hardcode_libdir_separator= 10882 fi 10883 ;; 10884 esac 10885 shared_flag='-shared' 10886 if test "$aix_use_runtimelinking" = yes; then 10887 shared_flag="$shared_flag "'${wl}-G' 10888 fi 10889 link_all_deplibs=no 10890 else 10891 # not using gcc 10892 if test "$host_cpu" = ia64; then 10893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10894 # chokes on -Wl,-G. The following line is correct: 10895 shared_flag='-G' 10896 else 10897 if test "$aix_use_runtimelinking" = yes; then 10898 shared_flag='${wl}-G' 10899 else 10900 shared_flag='${wl}-bM:SRE' 10901 fi 10902 fi 10903 fi 10904 10905 export_dynamic_flag_spec='${wl}-bexpall' 10906 # It seems that -bexpall does not export symbols beginning with 10907 # underscore (_), so it is better to generate a list of symbols to export. 10908 always_export_symbols=yes 10909 if test "$aix_use_runtimelinking" = yes; then 10910 # Warning - without using the other runtime loading flags (-brtl), 10911 # -berok will link without error, but may produce a broken library. 10912 allow_undefined_flag='-berok' 10913 # Determine the default libpath from the value encoded in an 10914 # empty executable. 10915 if test "${lt_cv_aix_libpath+set}" = set; then 10916 aix_libpath=$lt_cv_aix_libpath 10917else 10918 if ${lt_cv_aix_libpath_+:} false; then : 10919 $as_echo_n "(cached) " >&6 10920else 10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10922/* end confdefs.h. */ 10923 10924int 10925main () 10926{ 10927 10928 ; 10929 return 0; 10930} 10931_ACEOF 10932if ac_fn_c_try_link "$LINENO"; then : 10933 10934 lt_aix_libpath_sed=' 10935 /Import File Strings/,/^$/ { 10936 /^0/ { 10937 s/^0 *\([^ ]*\) *$/\1/ 10938 p 10939 } 10940 }' 10941 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10942 # Check for a 64-bit object if we didn't find anything. 10943 if test -z "$lt_cv_aix_libpath_"; then 10944 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10945 fi 10946fi 10947rm -f core conftest.err conftest.$ac_objext \ 10948 conftest$ac_exeext conftest.$ac_ext 10949 if test -z "$lt_cv_aix_libpath_"; then 10950 lt_cv_aix_libpath_="/usr/lib:/lib" 10951 fi 10952 10953fi 10954 10955 aix_libpath=$lt_cv_aix_libpath_ 10956fi 10957 10958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10959 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10960 else 10961 if test "$host_cpu" = ia64; then 10962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10963 allow_undefined_flag="-z nodefs" 10964 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" 10965 else 10966 # Determine the default libpath from the value encoded in an 10967 # empty executable. 10968 if test "${lt_cv_aix_libpath+set}" = set; then 10969 aix_libpath=$lt_cv_aix_libpath 10970else 10971 if ${lt_cv_aix_libpath_+:} false; then : 10972 $as_echo_n "(cached) " >&6 10973else 10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10975/* end confdefs.h. */ 10976 10977int 10978main () 10979{ 10980 10981 ; 10982 return 0; 10983} 10984_ACEOF 10985if ac_fn_c_try_link "$LINENO"; then : 10986 10987 lt_aix_libpath_sed=' 10988 /Import File Strings/,/^$/ { 10989 /^0/ { 10990 s/^0 *\([^ ]*\) *$/\1/ 10991 p 10992 } 10993 }' 10994 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10995 # Check for a 64-bit object if we didn't find anything. 10996 if test -z "$lt_cv_aix_libpath_"; then 10997 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10998 fi 10999fi 11000rm -f core conftest.err conftest.$ac_objext \ 11001 conftest$ac_exeext conftest.$ac_ext 11002 if test -z "$lt_cv_aix_libpath_"; then 11003 lt_cv_aix_libpath_="/usr/lib:/lib" 11004 fi 11005 11006fi 11007 11008 aix_libpath=$lt_cv_aix_libpath_ 11009fi 11010 11011 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11012 # Warning - without using the other run time loading flags, 11013 # -berok will link without error, but may produce a broken library. 11014 no_undefined_flag=' ${wl}-bernotok' 11015 allow_undefined_flag=' ${wl}-berok' 11016 if test "$with_gnu_ld" = yes; then 11017 # We only use this code for GNU lds that support --whole-archive. 11018 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11019 else 11020 # Exported symbols can be pulled into shared objects from archives 11021 whole_archive_flag_spec='$convenience' 11022 fi 11023 archive_cmds_need_lc=yes 11024 # This is similar to how AIX traditionally builds its shared libraries. 11025 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11026 fi 11027 fi 11028 ;; 11029 11030 amigaos*) 11031 case $host_cpu in 11032 powerpc) 11033 # see comment about AmigaOS4 .so support 11034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11035 archive_expsym_cmds='' 11036 ;; 11037 m68k) 11038 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)' 11039 hardcode_libdir_flag_spec='-L$libdir' 11040 hardcode_minus_L=yes 11041 ;; 11042 esac 11043 ;; 11044 11045 bsdi[45]*) 11046 export_dynamic_flag_spec=-rdynamic 11047 ;; 11048 11049 cygwin* | mingw* | pw32* | cegcc*) 11050 # When not using gcc, we currently assume that we are using 11051 # Microsoft Visual C++. 11052 # hardcode_libdir_flag_spec is actually meaningless, as there is 11053 # no search path for DLLs. 11054 case $cc_basename in 11055 cl*) 11056 # Native MSVC 11057 hardcode_libdir_flag_spec=' ' 11058 allow_undefined_flag=unsupported 11059 always_export_symbols=yes 11060 file_list_spec='@' 11061 # Tell ltmain to make .lib files, not .a files. 11062 libext=lib 11063 # Tell ltmain to make .dll files, not .so files. 11064 shrext_cmds=".dll" 11065 # FIXME: Setting linknames here is a bad hack. 11066 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11068 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11069 else 11070 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11071 fi~ 11072 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11073 linknames=' 11074 # The linker will not automatically build a static lib if we build a DLL. 11075 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11076 enable_shared_with_static_runtimes=yes 11077 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11079 # Don't use ranlib 11080 old_postinstall_cmds='chmod 644 $oldlib' 11081 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11082 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11083 case $lt_outputfile in 11084 *.exe|*.EXE) ;; 11085 *) 11086 lt_outputfile="$lt_outputfile.exe" 11087 lt_tool_outputfile="$lt_tool_outputfile.exe" 11088 ;; 11089 esac~ 11090 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11091 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11092 $RM "$lt_outputfile.manifest"; 11093 fi' 11094 ;; 11095 *) 11096 # Assume MSVC wrapper 11097 hardcode_libdir_flag_spec=' ' 11098 allow_undefined_flag=unsupported 11099 # Tell ltmain to make .lib files, not .a files. 11100 libext=lib 11101 # Tell ltmain to make .dll files, not .so files. 11102 shrext_cmds=".dll" 11103 # FIXME: Setting linknames here is a bad hack. 11104 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11105 # The linker will automatically build a .lib file if we build a DLL. 11106 old_archive_from_new_cmds='true' 11107 # FIXME: Should let the user specify the lib program. 11108 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11109 enable_shared_with_static_runtimes=yes 11110 ;; 11111 esac 11112 ;; 11113 11114 darwin* | rhapsody*) 11115 11116 11117 archive_cmds_need_lc=no 11118 hardcode_direct=no 11119 hardcode_automatic=yes 11120 hardcode_shlibpath_var=unsupported 11121 if test "$lt_cv_ld_force_load" = "yes"; then 11122 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\"`' 11123 11124 else 11125 whole_archive_flag_spec='' 11126 fi 11127 link_all_deplibs=yes 11128 allow_undefined_flag="$_lt_dar_allow_undefined" 11129 case $cc_basename in 11130 ifort*) _lt_dar_can_shared=yes ;; 11131 *) _lt_dar_can_shared=$GCC ;; 11132 esac 11133 if test "$_lt_dar_can_shared" = "yes"; then 11134 output_verbose_link_cmd=func_echo_all 11135 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11136 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11137 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}" 11138 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}" 11139 11140 else 11141 ld_shlibs=no 11142 fi 11143 11144 ;; 11145 11146 dgux*) 11147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11148 hardcode_libdir_flag_spec='-L$libdir' 11149 hardcode_shlibpath_var=no 11150 ;; 11151 11152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11153 # support. Future versions do this automatically, but an explicit c++rt0.o 11154 # does not break anything, and helps significantly (at the cost of a little 11155 # extra space). 11156 freebsd2.2*) 11157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11158 hardcode_libdir_flag_spec='-R$libdir' 11159 hardcode_direct=yes 11160 hardcode_shlibpath_var=no 11161 ;; 11162 11163 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11164 freebsd2.*) 11165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11166 hardcode_direct=yes 11167 hardcode_minus_L=yes 11168 hardcode_shlibpath_var=no 11169 ;; 11170 11171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11172 freebsd* | dragonfly*) 11173 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11174 hardcode_libdir_flag_spec='-R$libdir' 11175 hardcode_direct=yes 11176 hardcode_shlibpath_var=no 11177 ;; 11178 11179 hpux9*) 11180 if test "$GCC" = yes; then 11181 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11182 else 11183 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11184 fi 11185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11186 hardcode_libdir_separator=: 11187 hardcode_direct=yes 11188 11189 # hardcode_minus_L: Not really in the search PATH, 11190 # but as the default location of the library. 11191 hardcode_minus_L=yes 11192 export_dynamic_flag_spec='${wl}-E' 11193 ;; 11194 11195 hpux10*) 11196 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11197 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11198 else 11199 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11200 fi 11201 if test "$with_gnu_ld" = no; then 11202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11203 hardcode_libdir_separator=: 11204 hardcode_direct=yes 11205 hardcode_direct_absolute=yes 11206 export_dynamic_flag_spec='${wl}-E' 11207 # hardcode_minus_L: Not really in the search PATH, 11208 # but as the default location of the library. 11209 hardcode_minus_L=yes 11210 fi 11211 ;; 11212 11213 hpux11*) 11214 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11215 case $host_cpu in 11216 hppa*64*) 11217 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11218 ;; 11219 ia64*) 11220 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11221 ;; 11222 *) 11223 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11224 ;; 11225 esac 11226 else 11227 case $host_cpu in 11228 hppa*64*) 11229 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11230 ;; 11231 ia64*) 11232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11233 ;; 11234 *) 11235 11236 # Older versions of the 11.00 compiler do not understand -b yet 11237 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11239$as_echo_n "checking if $CC understands -b... " >&6; } 11240if ${lt_cv_prog_compiler__b+:} false; then : 11241 $as_echo_n "(cached) " >&6 11242else 11243 lt_cv_prog_compiler__b=no 11244 save_LDFLAGS="$LDFLAGS" 11245 LDFLAGS="$LDFLAGS -b" 11246 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11248 # The linker can only warn and ignore the option if not recognized 11249 # So say no if there are warnings 11250 if test -s conftest.err; then 11251 # Append any errors to the config.log. 11252 cat conftest.err 1>&5 11253 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11255 if diff conftest.exp conftest.er2 >/dev/null; then 11256 lt_cv_prog_compiler__b=yes 11257 fi 11258 else 11259 lt_cv_prog_compiler__b=yes 11260 fi 11261 fi 11262 $RM -r conftest* 11263 LDFLAGS="$save_LDFLAGS" 11264 11265fi 11266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11267$as_echo "$lt_cv_prog_compiler__b" >&6; } 11268 11269if test x"$lt_cv_prog_compiler__b" = xyes; then 11270 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11271else 11272 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11273fi 11274 11275 ;; 11276 esac 11277 fi 11278 if test "$with_gnu_ld" = no; then 11279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11280 hardcode_libdir_separator=: 11281 11282 case $host_cpu in 11283 hppa*64*|ia64*) 11284 hardcode_direct=no 11285 hardcode_shlibpath_var=no 11286 ;; 11287 *) 11288 hardcode_direct=yes 11289 hardcode_direct_absolute=yes 11290 export_dynamic_flag_spec='${wl}-E' 11291 11292 # hardcode_minus_L: Not really in the search PATH, 11293 # but as the default location of the library. 11294 hardcode_minus_L=yes 11295 ;; 11296 esac 11297 fi 11298 ;; 11299 11300 irix5* | irix6* | nonstopux*) 11301 if test "$GCC" = yes; then 11302 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' 11303 # Try to use the -exported_symbol ld option, if it does not 11304 # work, assume that -exports_file does not work either and 11305 # implicitly export all symbols. 11306 # This should be the same for all languages, so no per-tag cache variable. 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11308$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11309if ${lt_cv_irix_exported_symbol+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 save_LDFLAGS="$LDFLAGS" 11313 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11315/* end confdefs.h. */ 11316int foo (void) { return 0; } 11317_ACEOF 11318if ac_fn_c_try_link "$LINENO"; then : 11319 lt_cv_irix_exported_symbol=yes 11320else 11321 lt_cv_irix_exported_symbol=no 11322fi 11323rm -f core conftest.err conftest.$ac_objext \ 11324 conftest$ac_exeext conftest.$ac_ext 11325 LDFLAGS="$save_LDFLAGS" 11326fi 11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11328$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11329 if test "$lt_cv_irix_exported_symbol" = yes; then 11330 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' 11331 fi 11332 else 11333 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' 11334 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' 11335 fi 11336 archive_cmds_need_lc='no' 11337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11338 hardcode_libdir_separator=: 11339 inherit_rpath=yes 11340 link_all_deplibs=yes 11341 ;; 11342 11343 netbsd* | netbsdelf*-gnu) 11344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11346 else 11347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11348 fi 11349 hardcode_libdir_flag_spec='-R$libdir' 11350 hardcode_direct=yes 11351 hardcode_shlibpath_var=no 11352 ;; 11353 11354 newsos6) 11355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11356 hardcode_direct=yes 11357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11358 hardcode_libdir_separator=: 11359 hardcode_shlibpath_var=no 11360 ;; 11361 11362 *nto* | *qnx*) 11363 ;; 11364 11365 openbsd*) 11366 if test -f /usr/libexec/ld.so; then 11367 hardcode_direct=yes 11368 hardcode_shlibpath_var=no 11369 hardcode_direct_absolute=yes 11370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11374 export_dynamic_flag_spec='${wl}-E' 11375 else 11376 case $host_os in 11377 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11379 hardcode_libdir_flag_spec='-R$libdir' 11380 ;; 11381 *) 11382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11384 ;; 11385 esac 11386 fi 11387 else 11388 ld_shlibs=no 11389 fi 11390 ;; 11391 11392 os2*) 11393 hardcode_libdir_flag_spec='-L$libdir' 11394 hardcode_minus_L=yes 11395 allow_undefined_flag=unsupported 11396 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11397 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11398 ;; 11399 11400 osf3*) 11401 if test "$GCC" = yes; then 11402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11403 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' 11404 else 11405 allow_undefined_flag=' -expect_unresolved \*' 11406 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' 11407 fi 11408 archive_cmds_need_lc='no' 11409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11410 hardcode_libdir_separator=: 11411 ;; 11412 11413 osf4* | osf5*) # as osf3* with the addition of -msym flag 11414 if test "$GCC" = yes; then 11415 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11416 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' 11417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11418 else 11419 allow_undefined_flag=' -expect_unresolved \*' 11420 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' 11421 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~ 11422 $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' 11423 11424 # Both c and cxx compiler support -rpath directly 11425 hardcode_libdir_flag_spec='-rpath $libdir' 11426 fi 11427 archive_cmds_need_lc='no' 11428 hardcode_libdir_separator=: 11429 ;; 11430 11431 solaris*) 11432 no_undefined_flag=' -z defs' 11433 if test "$GCC" = yes; then 11434 wlarc='${wl}' 11435 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11437 $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' 11438 else 11439 case `$CC -V 2>&1` in 11440 *"Compilers 5.0"*) 11441 wlarc='' 11442 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11445 ;; 11446 *) 11447 wlarc='${wl}' 11448 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11450 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11451 ;; 11452 esac 11453 fi 11454 hardcode_libdir_flag_spec='-R$libdir' 11455 hardcode_shlibpath_var=no 11456 case $host_os in 11457 solaris2.[0-5] | solaris2.[0-5].*) ;; 11458 *) 11459 # The compiler driver will combine and reorder linker options, 11460 # but understands `-z linker_flag'. GCC discards it without `$wl', 11461 # but is careful enough not to reorder. 11462 # Supported since Solaris 2.6 (maybe 2.5.1?) 11463 if test "$GCC" = yes; then 11464 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11465 else 11466 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11467 fi 11468 ;; 11469 esac 11470 link_all_deplibs=yes 11471 ;; 11472 11473 sunos4*) 11474 if test "x$host_vendor" = xsequent; then 11475 # Use $CC to link under sequent, because it throws in some extra .o 11476 # files that make .init and .fini sections work. 11477 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11478 else 11479 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11480 fi 11481 hardcode_libdir_flag_spec='-L$libdir' 11482 hardcode_direct=yes 11483 hardcode_minus_L=yes 11484 hardcode_shlibpath_var=no 11485 ;; 11486 11487 sysv4) 11488 case $host_vendor in 11489 sni) 11490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11491 hardcode_direct=yes # is this really true??? 11492 ;; 11493 siemens) 11494 ## LD is ld it makes a PLAMLIB 11495 ## CC just makes a GrossModule. 11496 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11497 reload_cmds='$CC -r -o $output$reload_objs' 11498 hardcode_direct=no 11499 ;; 11500 motorola) 11501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11502 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11503 ;; 11504 esac 11505 runpath_var='LD_RUN_PATH' 11506 hardcode_shlibpath_var=no 11507 ;; 11508 11509 sysv4.3*) 11510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11511 hardcode_shlibpath_var=no 11512 export_dynamic_flag_spec='-Bexport' 11513 ;; 11514 11515 sysv4*MP*) 11516 if test -d /usr/nec; then 11517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11518 hardcode_shlibpath_var=no 11519 runpath_var=LD_RUN_PATH 11520 hardcode_runpath_var=yes 11521 ld_shlibs=yes 11522 fi 11523 ;; 11524 11525 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11526 no_undefined_flag='${wl}-z,text' 11527 archive_cmds_need_lc=no 11528 hardcode_shlibpath_var=no 11529 runpath_var='LD_RUN_PATH' 11530 11531 if test "$GCC" = yes; then 11532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11534 else 11535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11537 fi 11538 ;; 11539 11540 sysv5* | sco3.2v5* | sco5v6*) 11541 # Note: We can NOT use -z defs as we might desire, because we do not 11542 # link with -lc, and that would cause any symbols used from libc to 11543 # always be unresolved, which means just about no library would 11544 # ever link correctly. If we're not using GNU ld we use -z text 11545 # though, which does catch some bad symbols but isn't as heavy-handed 11546 # as -z defs. 11547 no_undefined_flag='${wl}-z,text' 11548 allow_undefined_flag='${wl}-z,nodefs' 11549 archive_cmds_need_lc=no 11550 hardcode_shlibpath_var=no 11551 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11552 hardcode_libdir_separator=':' 11553 link_all_deplibs=yes 11554 export_dynamic_flag_spec='${wl}-Bexport' 11555 runpath_var='LD_RUN_PATH' 11556 11557 if test "$GCC" = yes; then 11558 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11559 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11560 else 11561 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11562 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11563 fi 11564 ;; 11565 11566 uts4*) 11567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11568 hardcode_libdir_flag_spec='-L$libdir' 11569 hardcode_shlibpath_var=no 11570 ;; 11571 11572 *) 11573 ld_shlibs=no 11574 ;; 11575 esac 11576 11577 if test x$host_vendor = xsni; then 11578 case $host in 11579 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11580 export_dynamic_flag_spec='${wl}-Blargedynsym' 11581 ;; 11582 esac 11583 fi 11584 fi 11585 11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11587$as_echo "$ld_shlibs" >&6; } 11588test "$ld_shlibs" = no && can_build_shared=no 11589 11590with_gnu_ld=$with_gnu_ld 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606# 11607# Do we need to explicitly link libc? 11608# 11609case "x$archive_cmds_need_lc" in 11610x|xyes) 11611 # Assume -lc should be added 11612 archive_cmds_need_lc=yes 11613 11614 if test "$enable_shared" = yes && test "$GCC" = yes; then 11615 case $archive_cmds in 11616 *'~'*) 11617 # FIXME: we may have to deal with multi-command sequences. 11618 ;; 11619 '$CC '*) 11620 # Test whether the compiler implicitly links with -lc since on some 11621 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11622 # to ld, don't add -lc before -lgcc. 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11624$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11625if ${lt_cv_archive_cmds_need_lc+:} false; then : 11626 $as_echo_n "(cached) " >&6 11627else 11628 $RM conftest* 11629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11630 11631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11632 (eval $ac_compile) 2>&5 11633 ac_status=$? 11634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11635 test $ac_status = 0; } 2>conftest.err; then 11636 soname=conftest 11637 lib=conftest 11638 libobjs=conftest.$ac_objext 11639 deplibs= 11640 wl=$lt_prog_compiler_wl 11641 pic_flag=$lt_prog_compiler_pic 11642 compiler_flags=-v 11643 linker_flags=-v 11644 verstring= 11645 output_objdir=. 11646 libname=conftest 11647 lt_save_allow_undefined_flag=$allow_undefined_flag 11648 allow_undefined_flag= 11649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11650 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11651 ac_status=$? 11652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11653 test $ac_status = 0; } 11654 then 11655 lt_cv_archive_cmds_need_lc=no 11656 else 11657 lt_cv_archive_cmds_need_lc=yes 11658 fi 11659 allow_undefined_flag=$lt_save_allow_undefined_flag 11660 else 11661 cat conftest.err 1>&5 11662 fi 11663 $RM conftest* 11664 11665fi 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11667$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11668 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11669 ;; 11670 esac 11671 fi 11672 ;; 11673esac 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 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 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11827$as_echo_n "checking dynamic linker characteristics... " >&6; } 11828 11829if test "$GCC" = yes; then 11830 case $host_os in 11831 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11832 *) lt_awk_arg="/^libraries:/" ;; 11833 esac 11834 case $host_os in 11835 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11836 *) lt_sed_strip_eq="s,=/,/,g" ;; 11837 esac 11838 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11839 case $lt_search_path_spec in 11840 *\;*) 11841 # if the path contains ";" then we assume it to be the separator 11842 # otherwise default to the standard path separator (i.e. ":") - it is 11843 # assumed that no part of a normal pathname contains ";" but that should 11844 # okay in the real world where ";" in dirpaths is itself problematic. 11845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11846 ;; 11847 *) 11848 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11849 ;; 11850 esac 11851 # Ok, now we have the path, separated by spaces, we can step through it 11852 # and add multilib dir if necessary. 11853 lt_tmp_lt_search_path_spec= 11854 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11855 for lt_sys_path in $lt_search_path_spec; do 11856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11858 else 11859 test -d "$lt_sys_path" && \ 11860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11861 fi 11862 done 11863 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11864BEGIN {RS=" "; FS="/|\n";} { 11865 lt_foo=""; 11866 lt_count=0; 11867 for (lt_i = NF; lt_i > 0; lt_i--) { 11868 if ($lt_i != "" && $lt_i != ".") { 11869 if ($lt_i == "..") { 11870 lt_count++; 11871 } else { 11872 if (lt_count == 0) { 11873 lt_foo="/" $lt_i lt_foo; 11874 } else { 11875 lt_count--; 11876 } 11877 } 11878 } 11879 } 11880 if (lt_foo != "") { lt_freq[lt_foo]++; } 11881 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11882}'` 11883 # AWK program above erroneously prepends '/' to C:/dos/paths 11884 # for these hosts. 11885 case $host_os in 11886 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11887 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11888 esac 11889 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11890else 11891 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11892fi 11893library_names_spec= 11894libname_spec='lib$name' 11895soname_spec= 11896shrext_cmds=".so" 11897postinstall_cmds= 11898postuninstall_cmds= 11899finish_cmds= 11900finish_eval= 11901shlibpath_var= 11902shlibpath_overrides_runpath=unknown 11903version_type=none 11904dynamic_linker="$host_os ld.so" 11905sys_lib_dlsearch_path_spec="/lib /usr/lib" 11906need_lib_prefix=unknown 11907hardcode_into_libs=no 11908 11909# when you set need_version to no, make sure it does not cause -set_version 11910# flags to be left without arguments 11911need_version=unknown 11912 11913case $host_os in 11914aix3*) 11915 version_type=linux # correct to gnu/linux during the next big refactor 11916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11917 shlibpath_var=LIBPATH 11918 11919 # AIX 3 has no versioning support, so we append a major version to the name. 11920 soname_spec='${libname}${release}${shared_ext}$major' 11921 ;; 11922 11923aix[4-9]*) 11924 version_type=linux # correct to gnu/linux during the next big refactor 11925 need_lib_prefix=no 11926 need_version=no 11927 hardcode_into_libs=yes 11928 if test "$host_cpu" = ia64; then 11929 # AIX 5 supports IA64 11930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11931 shlibpath_var=LD_LIBRARY_PATH 11932 else 11933 # With GCC up to 2.95.x, collect2 would create an import file 11934 # for dependence libraries. The import file would start with 11935 # the line `#! .'. This would cause the generated library to 11936 # depend on `.', always an invalid library. This was fixed in 11937 # development snapshots of GCC prior to 3.0. 11938 case $host_os in 11939 aix4 | aix4.[01] | aix4.[01].*) 11940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11941 echo ' yes ' 11942 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11943 : 11944 else 11945 can_build_shared=no 11946 fi 11947 ;; 11948 esac 11949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11950 # soname into executable. Probably we can add versioning support to 11951 # collect2, so additional links can be useful in future. 11952 if test "$aix_use_runtimelinking" = yes; then 11953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11954 # instead of lib<name>.a to let people know that these are not 11955 # typical AIX shared libraries. 11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11957 else 11958 # We preserve .a as extension for shared libraries through AIX4.2 11959 # and later when we are not doing run time linking. 11960 library_names_spec='${libname}${release}.a $libname.a' 11961 soname_spec='${libname}${release}${shared_ext}$major' 11962 fi 11963 shlibpath_var=LIBPATH 11964 fi 11965 ;; 11966 11967amigaos*) 11968 case $host_cpu in 11969 powerpc) 11970 # Since July 2007 AmigaOS4 officially supports .so libraries. 11971 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11973 ;; 11974 m68k) 11975 library_names_spec='$libname.ixlibrary $libname.a' 11976 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11977 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 11978 ;; 11979 esac 11980 ;; 11981 11982beos*) 11983 library_names_spec='${libname}${shared_ext}' 11984 dynamic_linker="$host_os ld.so" 11985 shlibpath_var=LIBRARY_PATH 11986 ;; 11987 11988bsdi[45]*) 11989 version_type=linux # correct to gnu/linux during the next big refactor 11990 need_version=no 11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11992 soname_spec='${libname}${release}${shared_ext}$major' 11993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11994 shlibpath_var=LD_LIBRARY_PATH 11995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11997 # the default ld.so.conf also contains /usr/contrib/lib and 11998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11999 # libtool to hard-code these into programs 12000 ;; 12001 12002cygwin* | mingw* | pw32* | cegcc*) 12003 version_type=windows 12004 shrext_cmds=".dll" 12005 need_version=no 12006 need_lib_prefix=no 12007 12008 case $GCC,$cc_basename in 12009 yes,*) 12010 # gcc 12011 library_names_spec='$libname.dll.a' 12012 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12013 postinstall_cmds='base_file=`basename \${file}`~ 12014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12015 dldir=$destdir/`dirname \$dlpath`~ 12016 test -d \$dldir || mkdir -p \$dldir~ 12017 $install_prog $dir/$dlname \$dldir/$dlname~ 12018 chmod a+x \$dldir/$dlname~ 12019 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12020 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12021 fi' 12022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12023 dlpath=$dir/\$dldll~ 12024 $RM \$dlpath' 12025 shlibpath_overrides_runpath=yes 12026 12027 case $host_os in 12028 cygwin*) 12029 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12031 12032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12033 ;; 12034 mingw* | cegcc*) 12035 # MinGW DLLs use traditional 'lib' prefix 12036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12037 ;; 12038 pw32*) 12039 # pw32 DLLs use 'pw' prefix rather than 'lib' 12040 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12041 ;; 12042 esac 12043 dynamic_linker='Win32 ld.exe' 12044 ;; 12045 12046 *,cl*) 12047 # Native MSVC 12048 libname_spec='$name' 12049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12050 library_names_spec='${libname}.dll.lib' 12051 12052 case $build_os in 12053 mingw*) 12054 sys_lib_search_path_spec= 12055 lt_save_ifs=$IFS 12056 IFS=';' 12057 for lt_path in $LIB 12058 do 12059 IFS=$lt_save_ifs 12060 # Let DOS variable expansion print the short 8.3 style file name. 12061 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12062 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12063 done 12064 IFS=$lt_save_ifs 12065 # Convert to MSYS style. 12066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12067 ;; 12068 cygwin*) 12069 # Convert to unix form, then to dos form, then back to unix form 12070 # but this time dos style (no spaces!) so that the unix form looks 12071 # like /cygdrive/c/PROGRA~1:/cygdr... 12072 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12073 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12074 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12075 ;; 12076 *) 12077 sys_lib_search_path_spec="$LIB" 12078 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12079 # It is most probably a Windows format PATH. 12080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12081 else 12082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12083 fi 12084 # FIXME: find the short name or the path components, as spaces are 12085 # common. (e.g. "Program Files" -> "PROGRA~1") 12086 ;; 12087 esac 12088 12089 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12090 postinstall_cmds='base_file=`basename \${file}`~ 12091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12092 dldir=$destdir/`dirname \$dlpath`~ 12093 test -d \$dldir || mkdir -p \$dldir~ 12094 $install_prog $dir/$dlname \$dldir/$dlname' 12095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12096 dlpath=$dir/\$dldll~ 12097 $RM \$dlpath' 12098 shlibpath_overrides_runpath=yes 12099 dynamic_linker='Win32 link.exe' 12100 ;; 12101 12102 *) 12103 # Assume MSVC wrapper 12104 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12105 dynamic_linker='Win32 ld.exe' 12106 ;; 12107 esac 12108 # FIXME: first we should search . and the directory the executable is in 12109 shlibpath_var=PATH 12110 ;; 12111 12112darwin* | rhapsody*) 12113 dynamic_linker="$host_os dyld" 12114 version_type=darwin 12115 need_lib_prefix=no 12116 need_version=no 12117 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12118 soname_spec='${libname}${release}${major}$shared_ext' 12119 shlibpath_overrides_runpath=yes 12120 shlibpath_var=DYLD_LIBRARY_PATH 12121 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12122 12123 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12124 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12125 ;; 12126 12127dgux*) 12128 version_type=linux # correct to gnu/linux during the next big refactor 12129 need_lib_prefix=no 12130 need_version=no 12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12132 soname_spec='${libname}${release}${shared_ext}$major' 12133 shlibpath_var=LD_LIBRARY_PATH 12134 ;; 12135 12136freebsd* | dragonfly*) 12137 # DragonFly does not have aout. When/if they implement a new 12138 # versioning mechanism, adjust this. 12139 if test -x /usr/bin/objformat; then 12140 objformat=`/usr/bin/objformat` 12141 else 12142 case $host_os in 12143 freebsd[23].*) objformat=aout ;; 12144 *) objformat=elf ;; 12145 esac 12146 fi 12147 version_type=freebsd-$objformat 12148 case $version_type in 12149 freebsd-elf*) 12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12151 need_version=no 12152 need_lib_prefix=no 12153 ;; 12154 freebsd-*) 12155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12156 need_version=yes 12157 ;; 12158 esac 12159 shlibpath_var=LD_LIBRARY_PATH 12160 case $host_os in 12161 freebsd2.*) 12162 shlibpath_overrides_runpath=yes 12163 ;; 12164 freebsd3.[01]* | freebsdelf3.[01]*) 12165 shlibpath_overrides_runpath=yes 12166 hardcode_into_libs=yes 12167 ;; 12168 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12169 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12170 shlibpath_overrides_runpath=no 12171 hardcode_into_libs=yes 12172 ;; 12173 *) # from 4.6 on, and DragonFly 12174 shlibpath_overrides_runpath=yes 12175 hardcode_into_libs=yes 12176 ;; 12177 esac 12178 ;; 12179 12180gnu*) 12181 version_type=linux # correct to gnu/linux during the next big refactor 12182 need_lib_prefix=no 12183 need_version=no 12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12185 soname_spec='${libname}${release}${shared_ext}$major' 12186 shlibpath_var=LD_LIBRARY_PATH 12187 shlibpath_overrides_runpath=no 12188 hardcode_into_libs=yes 12189 ;; 12190 12191haiku*) 12192 version_type=linux # correct to gnu/linux during the next big refactor 12193 need_lib_prefix=no 12194 need_version=no 12195 dynamic_linker="$host_os runtime_loader" 12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12197 soname_spec='${libname}${release}${shared_ext}$major' 12198 shlibpath_var=LIBRARY_PATH 12199 shlibpath_overrides_runpath=yes 12200 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12201 hardcode_into_libs=yes 12202 ;; 12203 12204hpux9* | hpux10* | hpux11*) 12205 # Give a soname corresponding to the major version so that dld.sl refuses to 12206 # link against other versions. 12207 version_type=sunos 12208 need_lib_prefix=no 12209 need_version=no 12210 case $host_cpu in 12211 ia64*) 12212 shrext_cmds='.so' 12213 hardcode_into_libs=yes 12214 dynamic_linker="$host_os dld.so" 12215 shlibpath_var=LD_LIBRARY_PATH 12216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12218 soname_spec='${libname}${release}${shared_ext}$major' 12219 if test "X$HPUX_IA64_MODE" = X32; then 12220 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12221 else 12222 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12223 fi 12224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12225 ;; 12226 hppa*64*) 12227 shrext_cmds='.sl' 12228 hardcode_into_libs=yes 12229 dynamic_linker="$host_os dld.sl" 12230 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12233 soname_spec='${libname}${release}${shared_ext}$major' 12234 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12236 ;; 12237 *) 12238 shrext_cmds='.sl' 12239 dynamic_linker="$host_os dld.sl" 12240 shlibpath_var=SHLIB_PATH 12241 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12243 soname_spec='${libname}${release}${shared_ext}$major' 12244 ;; 12245 esac 12246 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12247 postinstall_cmds='chmod 555 $lib' 12248 # or fails outright, so override atomically: 12249 install_override_mode=555 12250 ;; 12251 12252interix[3-9]*) 12253 version_type=linux # correct to gnu/linux during the next big refactor 12254 need_lib_prefix=no 12255 need_version=no 12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12257 soname_spec='${libname}${release}${shared_ext}$major' 12258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12259 shlibpath_var=LD_LIBRARY_PATH 12260 shlibpath_overrides_runpath=no 12261 hardcode_into_libs=yes 12262 ;; 12263 12264irix5* | irix6* | nonstopux*) 12265 case $host_os in 12266 nonstopux*) version_type=nonstopux ;; 12267 *) 12268 if test "$lt_cv_prog_gnu_ld" = yes; then 12269 version_type=linux # correct to gnu/linux during the next big refactor 12270 else 12271 version_type=irix 12272 fi ;; 12273 esac 12274 need_lib_prefix=no 12275 need_version=no 12276 soname_spec='${libname}${release}${shared_ext}$major' 12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12278 case $host_os in 12279 irix5* | nonstopux*) 12280 libsuff= shlibsuff= 12281 ;; 12282 *) 12283 case $LD in # libtool.m4 will add one of these switches to LD 12284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12285 libsuff= shlibsuff= libmagic=32-bit;; 12286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12287 libsuff=32 shlibsuff=N32 libmagic=N32;; 12288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12289 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12290 *) libsuff= shlibsuff= libmagic=never-match;; 12291 esac 12292 ;; 12293 esac 12294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12295 shlibpath_overrides_runpath=no 12296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12298 hardcode_into_libs=yes 12299 ;; 12300 12301# No shared lib support for Linux oldld, aout, or coff. 12302linux*oldld* | linux*aout* | linux*coff*) 12303 dynamic_linker=no 12304 ;; 12305 12306# This must be glibc/ELF. 12307linux* | k*bsd*-gnu | kopensolaris*-gnu) 12308 version_type=linux # correct to gnu/linux during the next big refactor 12309 need_lib_prefix=no 12310 need_version=no 12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12312 soname_spec='${libname}${release}${shared_ext}$major' 12313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12314 shlibpath_var=LD_LIBRARY_PATH 12315 shlibpath_overrides_runpath=no 12316 12317 # Some binutils ld are patched to set DT_RUNPATH 12318 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12319 $as_echo_n "(cached) " >&6 12320else 12321 lt_cv_shlibpath_overrides_runpath=no 12322 save_LDFLAGS=$LDFLAGS 12323 save_libdir=$libdir 12324 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12325 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12327/* end confdefs.h. */ 12328 12329int 12330main () 12331{ 12332 12333 ; 12334 return 0; 12335} 12336_ACEOF 12337if ac_fn_c_try_link "$LINENO"; then : 12338 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12339 lt_cv_shlibpath_overrides_runpath=yes 12340fi 12341fi 12342rm -f core conftest.err conftest.$ac_objext \ 12343 conftest$ac_exeext conftest.$ac_ext 12344 LDFLAGS=$save_LDFLAGS 12345 libdir=$save_libdir 12346 12347fi 12348 12349 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12350 12351 # This implies no fast_install, which is unacceptable. 12352 # Some rework will be needed to allow for fast_install 12353 # before this can be enabled. 12354 hardcode_into_libs=yes 12355 12356 # Append ld.so.conf contents to the search path 12357 if test -f /etc/ld.so.conf; then 12358 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' ' '` 12359 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12360 fi 12361 12362 # We used to test for /lib/ld.so.1 and disable shared libraries on 12363 # powerpc, because MkLinux only supported shared libraries with the 12364 # GNU dynamic linker. Since this was broken with cross compilers, 12365 # most powerpc-linux boxes support dynamic linking these days and 12366 # people can always --disable-shared, the test was removed, and we 12367 # assume the GNU/Linux dynamic linker is in use. 12368 dynamic_linker='GNU/Linux ld.so' 12369 ;; 12370 12371netbsdelf*-gnu) 12372 version_type=linux 12373 need_lib_prefix=no 12374 need_version=no 12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12376 soname_spec='${libname}${release}${shared_ext}$major' 12377 shlibpath_var=LD_LIBRARY_PATH 12378 shlibpath_overrides_runpath=no 12379 hardcode_into_libs=yes 12380 dynamic_linker='NetBSD ld.elf_so' 12381 ;; 12382 12383netbsd*) 12384 version_type=sunos 12385 need_lib_prefix=no 12386 need_version=no 12387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12390 dynamic_linker='NetBSD (a.out) ld.so' 12391 else 12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12393 soname_spec='${libname}${release}${shared_ext}$major' 12394 dynamic_linker='NetBSD ld.elf_so' 12395 fi 12396 shlibpath_var=LD_LIBRARY_PATH 12397 shlibpath_overrides_runpath=yes 12398 hardcode_into_libs=yes 12399 ;; 12400 12401newsos6) 12402 version_type=linux # correct to gnu/linux during the next big refactor 12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12404 shlibpath_var=LD_LIBRARY_PATH 12405 shlibpath_overrides_runpath=yes 12406 ;; 12407 12408*nto* | *qnx*) 12409 version_type=qnx 12410 need_lib_prefix=no 12411 need_version=no 12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12413 soname_spec='${libname}${release}${shared_ext}$major' 12414 shlibpath_var=LD_LIBRARY_PATH 12415 shlibpath_overrides_runpath=no 12416 hardcode_into_libs=yes 12417 dynamic_linker='ldqnx.so' 12418 ;; 12419 12420openbsd*) 12421 version_type=sunos 12422 sys_lib_dlsearch_path_spec="/usr/lib" 12423 need_lib_prefix=no 12424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12425 case $host_os in 12426 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12427 *) need_version=no ;; 12428 esac 12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12431 shlibpath_var=LD_LIBRARY_PATH 12432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12433 case $host_os in 12434 openbsd2.[89] | openbsd2.[89].*) 12435 shlibpath_overrides_runpath=no 12436 ;; 12437 *) 12438 shlibpath_overrides_runpath=yes 12439 ;; 12440 esac 12441 else 12442 shlibpath_overrides_runpath=yes 12443 fi 12444 ;; 12445 12446os2*) 12447 libname_spec='$name' 12448 shrext_cmds=".dll" 12449 need_lib_prefix=no 12450 library_names_spec='$libname${shared_ext} $libname.a' 12451 dynamic_linker='OS/2 ld.exe' 12452 shlibpath_var=LIBPATH 12453 ;; 12454 12455osf3* | osf4* | osf5*) 12456 version_type=osf 12457 need_lib_prefix=no 12458 need_version=no 12459 soname_spec='${libname}${release}${shared_ext}$major' 12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12461 shlibpath_var=LD_LIBRARY_PATH 12462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12464 ;; 12465 12466rdos*) 12467 dynamic_linker=no 12468 ;; 12469 12470solaris*) 12471 version_type=linux # correct to gnu/linux during the next big refactor 12472 need_lib_prefix=no 12473 need_version=no 12474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12475 soname_spec='${libname}${release}${shared_ext}$major' 12476 shlibpath_var=LD_LIBRARY_PATH 12477 shlibpath_overrides_runpath=yes 12478 hardcode_into_libs=yes 12479 # ldd complains unless libraries are executable 12480 postinstall_cmds='chmod +x $lib' 12481 ;; 12482 12483sunos4*) 12484 version_type=sunos 12485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12487 shlibpath_var=LD_LIBRARY_PATH 12488 shlibpath_overrides_runpath=yes 12489 if test "$with_gnu_ld" = yes; then 12490 need_lib_prefix=no 12491 fi 12492 need_version=yes 12493 ;; 12494 12495sysv4 | sysv4.3*) 12496 version_type=linux # correct to gnu/linux during the next big refactor 12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12498 soname_spec='${libname}${release}${shared_ext}$major' 12499 shlibpath_var=LD_LIBRARY_PATH 12500 case $host_vendor in 12501 sni) 12502 shlibpath_overrides_runpath=no 12503 need_lib_prefix=no 12504 runpath_var=LD_RUN_PATH 12505 ;; 12506 siemens) 12507 need_lib_prefix=no 12508 ;; 12509 motorola) 12510 need_lib_prefix=no 12511 need_version=no 12512 shlibpath_overrides_runpath=no 12513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12514 ;; 12515 esac 12516 ;; 12517 12518sysv4*MP*) 12519 if test -d /usr/nec ;then 12520 version_type=linux # correct to gnu/linux during the next big refactor 12521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12522 soname_spec='$libname${shared_ext}.$major' 12523 shlibpath_var=LD_LIBRARY_PATH 12524 fi 12525 ;; 12526 12527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12528 version_type=freebsd-elf 12529 need_lib_prefix=no 12530 need_version=no 12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12532 soname_spec='${libname}${release}${shared_ext}$major' 12533 shlibpath_var=LD_LIBRARY_PATH 12534 shlibpath_overrides_runpath=yes 12535 hardcode_into_libs=yes 12536 if test "$with_gnu_ld" = yes; then 12537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12538 else 12539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12540 case $host_os in 12541 sco3.2v5*) 12542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12543 ;; 12544 esac 12545 fi 12546 sys_lib_dlsearch_path_spec='/usr/lib' 12547 ;; 12548 12549tpf*) 12550 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12551 version_type=linux # correct to gnu/linux during the next big refactor 12552 need_lib_prefix=no 12553 need_version=no 12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12555 shlibpath_var=LD_LIBRARY_PATH 12556 shlibpath_overrides_runpath=no 12557 hardcode_into_libs=yes 12558 ;; 12559 12560uts4*) 12561 version_type=linux # correct to gnu/linux during the next big refactor 12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12563 soname_spec='${libname}${release}${shared_ext}$major' 12564 shlibpath_var=LD_LIBRARY_PATH 12565 ;; 12566 12567*) 12568 dynamic_linker=no 12569 ;; 12570esac 12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12572$as_echo "$dynamic_linker" >&6; } 12573test "$dynamic_linker" = no && can_build_shared=no 12574 12575variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12576if test "$GCC" = yes; then 12577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12578fi 12579 12580if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12581 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12582fi 12583if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12584 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12585fi 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12679$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12680hardcode_action= 12681if test -n "$hardcode_libdir_flag_spec" || 12682 test -n "$runpath_var" || 12683 test "X$hardcode_automatic" = "Xyes" ; then 12684 12685 # We can hardcode non-existent directories. 12686 if test "$hardcode_direct" != no && 12687 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12688 # have to relink, otherwise we might link with an installed library 12689 # when we should be linking with a yet-to-be-installed one 12690 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12691 test "$hardcode_minus_L" != no; then 12692 # Linking always hardcodes the temporary library directory. 12693 hardcode_action=relink 12694 else 12695 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12696 hardcode_action=immediate 12697 fi 12698else 12699 # We cannot hardcode anything, or else we can only hardcode existing 12700 # directories. 12701 hardcode_action=unsupported 12702fi 12703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12704$as_echo "$hardcode_action" >&6; } 12705 12706if test "$hardcode_action" = relink || 12707 test "$inherit_rpath" = yes; then 12708 # Fast installation is not supported 12709 enable_fast_install=no 12710elif test "$shlibpath_overrides_runpath" = yes || 12711 test "$enable_shared" = no; then 12712 # Fast installation is not necessary 12713 enable_fast_install=needless 12714fi 12715 12716 12717 12718 12719 12720 12721 if test "x$enable_dlopen" != xyes; then 12722 enable_dlopen=unknown 12723 enable_dlopen_self=unknown 12724 enable_dlopen_self_static=unknown 12725else 12726 lt_cv_dlopen=no 12727 lt_cv_dlopen_libs= 12728 12729 case $host_os in 12730 beos*) 12731 lt_cv_dlopen="load_add_on" 12732 lt_cv_dlopen_libs= 12733 lt_cv_dlopen_self=yes 12734 ;; 12735 12736 mingw* | pw32* | cegcc*) 12737 lt_cv_dlopen="LoadLibrary" 12738 lt_cv_dlopen_libs= 12739 ;; 12740 12741 cygwin*) 12742 lt_cv_dlopen="dlopen" 12743 lt_cv_dlopen_libs= 12744 ;; 12745 12746 darwin*) 12747 # if libdl is installed we need to link against it 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12749$as_echo_n "checking for dlopen in -ldl... " >&6; } 12750if ${ac_cv_lib_dl_dlopen+:} false; then : 12751 $as_echo_n "(cached) " >&6 12752else 12753 ac_check_lib_save_LIBS=$LIBS 12754LIBS="-ldl $LIBS" 12755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12756/* end confdefs.h. */ 12757 12758/* Override any GCC internal prototype to avoid an error. 12759 Use char because int might match the return type of a GCC 12760 builtin and then its argument prototype would still apply. */ 12761#ifdef __cplusplus 12762extern "C" 12763#endif 12764char dlopen (); 12765int 12766main () 12767{ 12768return dlopen (); 12769 ; 12770 return 0; 12771} 12772_ACEOF 12773if ac_fn_c_try_link "$LINENO"; then : 12774 ac_cv_lib_dl_dlopen=yes 12775else 12776 ac_cv_lib_dl_dlopen=no 12777fi 12778rm -f core conftest.err conftest.$ac_objext \ 12779 conftest$ac_exeext conftest.$ac_ext 12780LIBS=$ac_check_lib_save_LIBS 12781fi 12782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12783$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12784if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12786else 12787 12788 lt_cv_dlopen="dyld" 12789 lt_cv_dlopen_libs= 12790 lt_cv_dlopen_self=yes 12791 12792fi 12793 12794 ;; 12795 12796 *) 12797 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12798if test "x$ac_cv_func_shl_load" = xyes; then : 12799 lt_cv_dlopen="shl_load" 12800else 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12802$as_echo_n "checking for shl_load in -ldld... " >&6; } 12803if ${ac_cv_lib_dld_shl_load+:} false; then : 12804 $as_echo_n "(cached) " >&6 12805else 12806 ac_check_lib_save_LIBS=$LIBS 12807LIBS="-ldld $LIBS" 12808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12809/* end confdefs.h. */ 12810 12811/* Override any GCC internal prototype to avoid an error. 12812 Use char because int might match the return type of a GCC 12813 builtin and then its argument prototype would still apply. */ 12814#ifdef __cplusplus 12815extern "C" 12816#endif 12817char shl_load (); 12818int 12819main () 12820{ 12821return shl_load (); 12822 ; 12823 return 0; 12824} 12825_ACEOF 12826if ac_fn_c_try_link "$LINENO"; then : 12827 ac_cv_lib_dld_shl_load=yes 12828else 12829 ac_cv_lib_dld_shl_load=no 12830fi 12831rm -f core conftest.err conftest.$ac_objext \ 12832 conftest$ac_exeext conftest.$ac_ext 12833LIBS=$ac_check_lib_save_LIBS 12834fi 12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12836$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12837if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12839else 12840 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12841if test "x$ac_cv_func_dlopen" = xyes; then : 12842 lt_cv_dlopen="dlopen" 12843else 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12845$as_echo_n "checking for dlopen in -ldl... " >&6; } 12846if ${ac_cv_lib_dl_dlopen+:} false; then : 12847 $as_echo_n "(cached) " >&6 12848else 12849 ac_check_lib_save_LIBS=$LIBS 12850LIBS="-ldl $LIBS" 12851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12852/* end confdefs.h. */ 12853 12854/* Override any GCC internal prototype to avoid an error. 12855 Use char because int might match the return type of a GCC 12856 builtin and then its argument prototype would still apply. */ 12857#ifdef __cplusplus 12858extern "C" 12859#endif 12860char dlopen (); 12861int 12862main () 12863{ 12864return dlopen (); 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869if ac_fn_c_try_link "$LINENO"; then : 12870 ac_cv_lib_dl_dlopen=yes 12871else 12872 ac_cv_lib_dl_dlopen=no 12873fi 12874rm -f core conftest.err conftest.$ac_objext \ 12875 conftest$ac_exeext conftest.$ac_ext 12876LIBS=$ac_check_lib_save_LIBS 12877fi 12878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12879$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12880if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12882else 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12884$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12885if ${ac_cv_lib_svld_dlopen+:} false; then : 12886 $as_echo_n "(cached) " >&6 12887else 12888 ac_check_lib_save_LIBS=$LIBS 12889LIBS="-lsvld $LIBS" 12890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12891/* end confdefs.h. */ 12892 12893/* Override any GCC internal prototype to avoid an error. 12894 Use char because int might match the return type of a GCC 12895 builtin and then its argument prototype would still apply. */ 12896#ifdef __cplusplus 12897extern "C" 12898#endif 12899char dlopen (); 12900int 12901main () 12902{ 12903return dlopen (); 12904 ; 12905 return 0; 12906} 12907_ACEOF 12908if ac_fn_c_try_link "$LINENO"; then : 12909 ac_cv_lib_svld_dlopen=yes 12910else 12911 ac_cv_lib_svld_dlopen=no 12912fi 12913rm -f core conftest.err conftest.$ac_objext \ 12914 conftest$ac_exeext conftest.$ac_ext 12915LIBS=$ac_check_lib_save_LIBS 12916fi 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12918$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12919if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12921else 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12923$as_echo_n "checking for dld_link in -ldld... " >&6; } 12924if ${ac_cv_lib_dld_dld_link+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 ac_check_lib_save_LIBS=$LIBS 12928LIBS="-ldld $LIBS" 12929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12930/* end confdefs.h. */ 12931 12932/* Override any GCC internal prototype to avoid an error. 12933 Use char because int might match the return type of a GCC 12934 builtin and then its argument prototype would still apply. */ 12935#ifdef __cplusplus 12936extern "C" 12937#endif 12938char dld_link (); 12939int 12940main () 12941{ 12942return dld_link (); 12943 ; 12944 return 0; 12945} 12946_ACEOF 12947if ac_fn_c_try_link "$LINENO"; then : 12948 ac_cv_lib_dld_dld_link=yes 12949else 12950 ac_cv_lib_dld_dld_link=no 12951fi 12952rm -f core conftest.err conftest.$ac_objext \ 12953 conftest$ac_exeext conftest.$ac_ext 12954LIBS=$ac_check_lib_save_LIBS 12955fi 12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12957$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12958if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12959 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12960fi 12961 12962 12963fi 12964 12965 12966fi 12967 12968 12969fi 12970 12971 12972fi 12973 12974 12975fi 12976 12977 ;; 12978 esac 12979 12980 if test "x$lt_cv_dlopen" != xno; then 12981 enable_dlopen=yes 12982 else 12983 enable_dlopen=no 12984 fi 12985 12986 case $lt_cv_dlopen in 12987 dlopen) 12988 save_CPPFLAGS="$CPPFLAGS" 12989 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12990 12991 save_LDFLAGS="$LDFLAGS" 12992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12993 12994 save_LIBS="$LIBS" 12995 LIBS="$lt_cv_dlopen_libs $LIBS" 12996 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12998$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12999if ${lt_cv_dlopen_self+:} false; then : 13000 $as_echo_n "(cached) " >&6 13001else 13002 if test "$cross_compiling" = yes; then : 13003 lt_cv_dlopen_self=cross 13004else 13005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13006 lt_status=$lt_dlunknown 13007 cat > conftest.$ac_ext <<_LT_EOF 13008#line $LINENO "configure" 13009#include "confdefs.h" 13010 13011#if HAVE_DLFCN_H 13012#include <dlfcn.h> 13013#endif 13014 13015#include <stdio.h> 13016 13017#ifdef RTLD_GLOBAL 13018# define LT_DLGLOBAL RTLD_GLOBAL 13019#else 13020# ifdef DL_GLOBAL 13021# define LT_DLGLOBAL DL_GLOBAL 13022# else 13023# define LT_DLGLOBAL 0 13024# endif 13025#endif 13026 13027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13028 find out it does not work in some platform. */ 13029#ifndef LT_DLLAZY_OR_NOW 13030# ifdef RTLD_LAZY 13031# define LT_DLLAZY_OR_NOW RTLD_LAZY 13032# else 13033# ifdef DL_LAZY 13034# define LT_DLLAZY_OR_NOW DL_LAZY 13035# else 13036# ifdef RTLD_NOW 13037# define LT_DLLAZY_OR_NOW RTLD_NOW 13038# else 13039# ifdef DL_NOW 13040# define LT_DLLAZY_OR_NOW DL_NOW 13041# else 13042# define LT_DLLAZY_OR_NOW 0 13043# endif 13044# endif 13045# endif 13046# endif 13047#endif 13048 13049/* When -fvisbility=hidden is used, assume the code has been annotated 13050 correspondingly for the symbols needed. */ 13051#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13052int fnord () __attribute__((visibility("default"))); 13053#endif 13054 13055int fnord () { return 42; } 13056int main () 13057{ 13058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13059 int status = $lt_dlunknown; 13060 13061 if (self) 13062 { 13063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13064 else 13065 { 13066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13067 else puts (dlerror ()); 13068 } 13069 /* dlclose (self); */ 13070 } 13071 else 13072 puts (dlerror ()); 13073 13074 return status; 13075} 13076_LT_EOF 13077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13078 (eval $ac_link) 2>&5 13079 ac_status=$? 13080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13081 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13082 (./conftest; exit; ) >&5 2>/dev/null 13083 lt_status=$? 13084 case x$lt_status in 13085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13087 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13088 esac 13089 else : 13090 # compilation failed 13091 lt_cv_dlopen_self=no 13092 fi 13093fi 13094rm -fr conftest* 13095 13096 13097fi 13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13099$as_echo "$lt_cv_dlopen_self" >&6; } 13100 13101 if test "x$lt_cv_dlopen_self" = xyes; then 13102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13104$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13105if ${lt_cv_dlopen_self_static+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 if test "$cross_compiling" = yes; then : 13109 lt_cv_dlopen_self_static=cross 13110else 13111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13112 lt_status=$lt_dlunknown 13113 cat > conftest.$ac_ext <<_LT_EOF 13114#line $LINENO "configure" 13115#include "confdefs.h" 13116 13117#if HAVE_DLFCN_H 13118#include <dlfcn.h> 13119#endif 13120 13121#include <stdio.h> 13122 13123#ifdef RTLD_GLOBAL 13124# define LT_DLGLOBAL RTLD_GLOBAL 13125#else 13126# ifdef DL_GLOBAL 13127# define LT_DLGLOBAL DL_GLOBAL 13128# else 13129# define LT_DLGLOBAL 0 13130# endif 13131#endif 13132 13133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13134 find out it does not work in some platform. */ 13135#ifndef LT_DLLAZY_OR_NOW 13136# ifdef RTLD_LAZY 13137# define LT_DLLAZY_OR_NOW RTLD_LAZY 13138# else 13139# ifdef DL_LAZY 13140# define LT_DLLAZY_OR_NOW DL_LAZY 13141# else 13142# ifdef RTLD_NOW 13143# define LT_DLLAZY_OR_NOW RTLD_NOW 13144# else 13145# ifdef DL_NOW 13146# define LT_DLLAZY_OR_NOW DL_NOW 13147# else 13148# define LT_DLLAZY_OR_NOW 0 13149# endif 13150# endif 13151# endif 13152# endif 13153#endif 13154 13155/* When -fvisbility=hidden is used, assume the code has been annotated 13156 correspondingly for the symbols needed. */ 13157#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13158int fnord () __attribute__((visibility("default"))); 13159#endif 13160 13161int fnord () { return 42; } 13162int main () 13163{ 13164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13165 int status = $lt_dlunknown; 13166 13167 if (self) 13168 { 13169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13170 else 13171 { 13172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13173 else puts (dlerror ()); 13174 } 13175 /* dlclose (self); */ 13176 } 13177 else 13178 puts (dlerror ()); 13179 13180 return status; 13181} 13182_LT_EOF 13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13184 (eval $ac_link) 2>&5 13185 ac_status=$? 13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13188 (./conftest; exit; ) >&5 2>/dev/null 13189 lt_status=$? 13190 case x$lt_status in 13191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13194 esac 13195 else : 13196 # compilation failed 13197 lt_cv_dlopen_self_static=no 13198 fi 13199fi 13200rm -fr conftest* 13201 13202 13203fi 13204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13205$as_echo "$lt_cv_dlopen_self_static" >&6; } 13206 fi 13207 13208 CPPFLAGS="$save_CPPFLAGS" 13209 LDFLAGS="$save_LDFLAGS" 13210 LIBS="$save_LIBS" 13211 ;; 13212 esac 13213 13214 case $lt_cv_dlopen_self in 13215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13216 *) enable_dlopen_self=unknown ;; 13217 esac 13218 13219 case $lt_cv_dlopen_self_static in 13220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13221 *) enable_dlopen_self_static=unknown ;; 13222 esac 13223fi 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241striplib= 13242old_striplib= 13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13244$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13245if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13246 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13247 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13249$as_echo "yes" >&6; } 13250else 13251# FIXME - insert some real tests, host_os isn't really good enough 13252 case $host_os in 13253 darwin*) 13254 if test -n "$STRIP" ; then 13255 striplib="$STRIP -x" 13256 old_striplib="$STRIP -S" 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13258$as_echo "yes" >&6; } 13259 else 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13261$as_echo "no" >&6; } 13262 fi 13263 ;; 13264 *) 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13266$as_echo "no" >&6; } 13267 ;; 13268 esac 13269fi 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 # Report which library types will actually be built 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13284$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13286$as_echo "$can_build_shared" >&6; } 13287 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13289$as_echo_n "checking whether to build shared libraries... " >&6; } 13290 test "$can_build_shared" = "no" && enable_shared=no 13291 13292 # On AIX, shared libraries and static libraries use the same namespace, and 13293 # are all built from PIC. 13294 case $host_os in 13295 aix3*) 13296 test "$enable_shared" = yes && enable_static=no 13297 if test -n "$RANLIB"; then 13298 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13299 postinstall_cmds='$RANLIB $lib' 13300 fi 13301 ;; 13302 13303 aix[4-9]*) 13304 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13305 test "$enable_shared" = yes && enable_static=no 13306 fi 13307 ;; 13308 esac 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13310$as_echo "$enable_shared" >&6; } 13311 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13313$as_echo_n "checking whether to build static libraries... " >&6; } 13314 # Make sure either enable_shared or enable_static is yes. 13315 test "$enable_shared" = yes || enable_static=yes 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13317$as_echo "$enable_static" >&6; } 13318 13319 13320 13321 13322fi 13323ac_ext=c 13324ac_cpp='$CPP $CPPFLAGS' 13325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13327ac_compiler_gnu=$ac_cv_c_compiler_gnu 13328 13329CC="$lt_save_CC" 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 ac_config_commands="$ac_config_commands libtool" 13346 13347 13348 13349 13350# Only expand once: 13351 13352 13353 if test -n "$ac_tool_prefix"; then 13354 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 13355set dummy ${ac_tool_prefix}windres; ac_word=$2 13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13357$as_echo_n "checking for $ac_word... " >&6; } 13358if ${ac_cv_prog_RC+:} false; then : 13359 $as_echo_n "(cached) " >&6 13360else 13361 if test -n "$RC"; then 13362 ac_cv_prog_RC="$RC" # Let the user override the test. 13363else 13364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13365for as_dir in $PATH 13366do 13367 IFS=$as_save_IFS 13368 test -z "$as_dir" && as_dir=. 13369 for ac_exec_ext in '' $ac_executable_extensions; do 13370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13371 ac_cv_prog_RC="${ac_tool_prefix}windres" 13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13373 break 2 13374 fi 13375done 13376 done 13377IFS=$as_save_IFS 13378 13379fi 13380fi 13381RC=$ac_cv_prog_RC 13382if test -n "$RC"; then 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 13384$as_echo "$RC" >&6; } 13385else 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13387$as_echo "no" >&6; } 13388fi 13389 13390 13391fi 13392if test -z "$ac_cv_prog_RC"; then 13393 ac_ct_RC=$RC 13394 # Extract the first word of "windres", so it can be a program name with args. 13395set dummy windres; ac_word=$2 13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13397$as_echo_n "checking for $ac_word... " >&6; } 13398if ${ac_cv_prog_ac_ct_RC+:} false; then : 13399 $as_echo_n "(cached) " >&6 13400else 13401 if test -n "$ac_ct_RC"; then 13402 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 13403else 13404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13405for as_dir in $PATH 13406do 13407 IFS=$as_save_IFS 13408 test -z "$as_dir" && as_dir=. 13409 for ac_exec_ext in '' $ac_executable_extensions; do 13410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13411 ac_cv_prog_ac_ct_RC="windres" 13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13413 break 2 13414 fi 13415done 13416 done 13417IFS=$as_save_IFS 13418 13419fi 13420fi 13421ac_ct_RC=$ac_cv_prog_ac_ct_RC 13422if test -n "$ac_ct_RC"; then 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 13424$as_echo "$ac_ct_RC" >&6; } 13425else 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13427$as_echo "no" >&6; } 13428fi 13429 13430 if test "x$ac_ct_RC" = x; then 13431 RC="" 13432 else 13433 case $cross_compiling:$ac_tool_warned in 13434yes:) 13435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13437ac_tool_warned=yes ;; 13438esac 13439 RC=$ac_ct_RC 13440 fi 13441else 13442 RC="$ac_cv_prog_RC" 13443fi 13444 13445 13446 13447 13448# Source file extension for RC test sources. 13449ac_ext=rc 13450 13451# Object file extension for compiled RC test sources. 13452objext=o 13453objext_RC=$objext 13454 13455# Code to be used in simple compile tests 13456lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 13457 13458# Code to be used in simple link tests 13459lt_simple_link_test_code="$lt_simple_compile_test_code" 13460 13461# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13462 13463 13464 13465 13466 13467 13468# If no C compiler was specified, use CC. 13469LTCC=${LTCC-"$CC"} 13470 13471# If no C compiler flags were specified, use CFLAGS. 13472LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13473 13474# Allow CC to be a program name with arguments. 13475compiler=$CC 13476 13477 13478# save warnings/boilerplate of simple test code 13479ac_outfile=conftest.$ac_objext 13480echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13481eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13482_lt_compiler_boilerplate=`cat conftest.err` 13483$RM conftest* 13484 13485ac_outfile=conftest.$ac_objext 13486echo "$lt_simple_link_test_code" >conftest.$ac_ext 13487eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13488_lt_linker_boilerplate=`cat conftest.err` 13489$RM -r conftest* 13490 13491 13492# Allow CC to be a program name with arguments. 13493lt_save_CC="$CC" 13494lt_save_CFLAGS=$CFLAGS 13495lt_save_GCC=$GCC 13496GCC= 13497CC=${RC-"windres"} 13498CFLAGS= 13499compiler=$CC 13500compiler_RC=$CC 13501for cc_temp in $compiler""; do 13502 case $cc_temp in 13503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13505 \-*) ;; 13506 *) break;; 13507 esac 13508done 13509cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13510 13511lt_cv_prog_compiler_c_o_RC=yes 13512 13513if test -n "$compiler"; then 13514 : 13515 13516 13517 13518fi 13519 13520GCC=$lt_save_GCC 13521ac_ext=c 13522ac_cpp='$CPP $CPPFLAGS' 13523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13525ac_compiler_gnu=$ac_cv_c_compiler_gnu 13526 13527CC=$lt_save_CC 13528CFLAGS=$lt_save_CFLAGS 13529 13530 13531 13532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13533$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13534if ${ac_cv_c_const+:} false; then : 13535 $as_echo_n "(cached) " >&6 13536else 13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13538/* end confdefs.h. */ 13539 13540int 13541main () 13542{ 13543 13544#ifndef __cplusplus 13545 /* Ultrix mips cc rejects this sort of thing. */ 13546 typedef int charset[2]; 13547 const charset cs = { 0, 0 }; 13548 /* SunOS 4.1.1 cc rejects this. */ 13549 char const *const *pcpcc; 13550 char **ppc; 13551 /* NEC SVR4.0.2 mips cc rejects this. */ 13552 struct point {int x, y;}; 13553 static struct point const zero = {0,0}; 13554 /* AIX XL C 1.02.0.0 rejects this. 13555 It does not let you subtract one const X* pointer from another in 13556 an arm of an if-expression whose if-part is not a constant 13557 expression */ 13558 const char *g = "string"; 13559 pcpcc = &g + (g ? g-g : 0); 13560 /* HPUX 7.0 cc rejects these. */ 13561 ++pcpcc; 13562 ppc = (char**) pcpcc; 13563 pcpcc = (char const *const *) ppc; 13564 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13565 char tx; 13566 char *t = &tx; 13567 char const *s = 0 ? (char *) 0 : (char const *) 0; 13568 13569 *t++ = 0; 13570 if (s) return 0; 13571 } 13572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13573 int x[] = {25, 17}; 13574 const int *foo = &x[0]; 13575 ++foo; 13576 } 13577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13578 typedef const int *iptr; 13579 iptr p = 0; 13580 ++p; 13581 } 13582 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13583 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13584 struct s { int j; const int *ap[3]; } bx; 13585 struct s *b = &bx; b->j = 5; 13586 } 13587 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13588 const int foo = 10; 13589 if (!foo) return 0; 13590 } 13591 return !cs[0] && !zero.x; 13592#endif 13593 13594 ; 13595 return 0; 13596} 13597_ACEOF 13598if ac_fn_c_try_compile "$LINENO"; then : 13599 ac_cv_c_const=yes 13600else 13601 ac_cv_c_const=no 13602fi 13603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13604fi 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13606$as_echo "$ac_cv_c_const" >&6; } 13607if test $ac_cv_c_const = no; then 13608 13609$as_echo "#define const /**/" >>confdefs.h 13610 13611fi 13612 13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13614$as_echo_n "checking for inline... " >&6; } 13615if ${ac_cv_c_inline+:} false; then : 13616 $as_echo_n "(cached) " >&6 13617else 13618 ac_cv_c_inline=no 13619for ac_kw in inline __inline__ __inline; do 13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13621/* end confdefs.h. */ 13622#ifndef __cplusplus 13623typedef int foo_t; 13624static $ac_kw foo_t static_foo () {return 0; } 13625$ac_kw foo_t foo () {return 0; } 13626#endif 13627 13628_ACEOF 13629if ac_fn_c_try_compile "$LINENO"; then : 13630 ac_cv_c_inline=$ac_kw 13631fi 13632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13633 test "$ac_cv_c_inline" != no && break 13634done 13635 13636fi 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13638$as_echo "$ac_cv_c_inline" >&6; } 13639 13640case $ac_cv_c_inline in 13641 inline | yes) ;; 13642 *) 13643 case $ac_cv_c_inline in 13644 no) ac_val=;; 13645 *) ac_val=$ac_cv_c_inline;; 13646 esac 13647 cat >>confdefs.h <<_ACEOF 13648#ifndef __cplusplus 13649#define inline $ac_val 13650#endif 13651_ACEOF 13652 ;; 13653esac 13654 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 13656$as_echo_n "checking for working volatile... " >&6; } 13657if ${ac_cv_c_volatile+:} false; then : 13658 $as_echo_n "(cached) " >&6 13659else 13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13661/* end confdefs.h. */ 13662 13663int 13664main () 13665{ 13666 13667volatile int x; 13668int * volatile y = (int *) 0; 13669return !x && !y; 13670 ; 13671 return 0; 13672} 13673_ACEOF 13674if ac_fn_c_try_compile "$LINENO"; then : 13675 ac_cv_c_volatile=yes 13676else 13677 ac_cv_c_volatile=no 13678fi 13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13680fi 13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 13682$as_echo "$ac_cv_c_volatile" >&6; } 13683if test $ac_cv_c_volatile = no; then 13684 13685$as_echo "#define volatile /**/" >>confdefs.h 13686 13687fi 13688 13689ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13690if test "x$ac_cv_type_off_t" = xyes; then : 13691 13692else 13693 13694cat >>confdefs.h <<_ACEOF 13695#define off_t long int 13696_ACEOF 13697 13698fi 13699 13700ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13701if test "x$ac_cv_type_pid_t" = xyes; then : 13702 13703else 13704 13705cat >>confdefs.h <<_ACEOF 13706#define pid_t int 13707_ACEOF 13708 13709fi 13710 13711ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13712if test "x$ac_cv_type_size_t" = xyes; then : 13713 13714else 13715 13716cat >>confdefs.h <<_ACEOF 13717#define size_t unsigned int 13718_ACEOF 13719 13720fi 13721 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13723$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13724if ${ac_cv_type_uid_t+:} false; then : 13725 $as_echo_n "(cached) " >&6 13726else 13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13728/* end confdefs.h. */ 13729#include <sys/types.h> 13730 13731_ACEOF 13732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13733 $EGREP "uid_t" >/dev/null 2>&1; then : 13734 ac_cv_type_uid_t=yes 13735else 13736 ac_cv_type_uid_t=no 13737fi 13738rm -f conftest* 13739 13740fi 13741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13742$as_echo "$ac_cv_type_uid_t" >&6; } 13743if test $ac_cv_type_uid_t = no; then 13744 13745$as_echo "#define uid_t int" >>confdefs.h 13746 13747 13748$as_echo "#define gid_t int" >>confdefs.h 13749 13750fi 13751 13752ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 13753case $ac_cv_c_int8_t in #( 13754 no|yes) ;; #( 13755 *) 13756 13757cat >>confdefs.h <<_ACEOF 13758#define int8_t $ac_cv_c_int8_t 13759_ACEOF 13760;; 13761esac 13762 13763ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 13764case $ac_cv_c_int16_t in #( 13765 no|yes) ;; #( 13766 *) 13767 13768cat >>confdefs.h <<_ACEOF 13769#define int16_t $ac_cv_c_int16_t 13770_ACEOF 13771;; 13772esac 13773 13774ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 13775case $ac_cv_c_int32_t in #( 13776 no|yes) ;; #( 13777 *) 13778 13779cat >>confdefs.h <<_ACEOF 13780#define int32_t $ac_cv_c_int32_t 13781_ACEOF 13782;; 13783esac 13784 13785ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 13786case $ac_cv_c_int64_t in #( 13787 no|yes) ;; #( 13788 *) 13789 13790cat >>confdefs.h <<_ACEOF 13791#define int64_t $ac_cv_c_int64_t 13792_ACEOF 13793;; 13794esac 13795 13796ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 13797case $ac_cv_c_uint8_t in #( 13798 no|yes) ;; #( 13799 *) 13800 13801$as_echo "#define _UINT8_T 1" >>confdefs.h 13802 13803 13804cat >>confdefs.h <<_ACEOF 13805#define uint8_t $ac_cv_c_uint8_t 13806_ACEOF 13807;; 13808 esac 13809 13810ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 13811case $ac_cv_c_uint16_t in #( 13812 no|yes) ;; #( 13813 *) 13814 13815 13816cat >>confdefs.h <<_ACEOF 13817#define uint16_t $ac_cv_c_uint16_t 13818_ACEOF 13819;; 13820 esac 13821 13822ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 13823case $ac_cv_c_uint32_t in #( 13824 no|yes) ;; #( 13825 *) 13826 13827$as_echo "#define _UINT32_T 1" >>confdefs.h 13828 13829 13830cat >>confdefs.h <<_ACEOF 13831#define uint32_t $ac_cv_c_uint32_t 13832_ACEOF 13833;; 13834 esac 13835 13836ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 13837case $ac_cv_c_uint64_t in #( 13838 no|yes) ;; #( 13839 *) 13840 13841$as_echo "#define _UINT64_T 1" >>confdefs.h 13842 13843 13844cat >>confdefs.h <<_ACEOF 13845#define uint64_t $ac_cv_c_uint64_t 13846_ACEOF 13847;; 13848 esac 13849 13850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 13851$as_echo_n "checking return type of signal handlers... " >&6; } 13852if ${ac_cv_type_signal+:} false; then : 13853 $as_echo_n "(cached) " >&6 13854else 13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13856/* end confdefs.h. */ 13857#include <sys/types.h> 13858#include <signal.h> 13859 13860int 13861main () 13862{ 13863return *(signal (0, 0)) (0) == 1; 13864 ; 13865 return 0; 13866} 13867_ACEOF 13868if ac_fn_c_try_compile "$LINENO"; then : 13869 ac_cv_type_signal=int 13870else 13871 ac_cv_type_signal=void 13872fi 13873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13874fi 13875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 13876$as_echo "$ac_cv_type_signal" >&6; } 13877 13878cat >>confdefs.h <<_ACEOF 13879#define RETSIGTYPE $ac_cv_type_signal 13880_ACEOF 13881 13882 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5 13884$as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; } 13885if ${ax_cv_cpp_vararg_macro_iso+:} false; then : 13886 $as_echo_n "(cached) " >&6 13887else 13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13889/* end confdefs.h. */ 13890 13891#define macro(a, ...) func(a, __VA_ARGS__) 13892int func(int a, int b, int c); 13893 13894int 13895main () 13896{ 13897 13898int i = macro(1, 2, 3); 13899 13900 13901 ; 13902 return 0; 13903} 13904_ACEOF 13905if ac_fn_c_try_compile "$LINENO"; then : 13906 ax_cv_cpp_vararg_macro_iso=yes 13907else 13908 ax_cv_cpp_vararg_macro_iso=no 13909 13910fi 13911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13912 13913fi 13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5 13915$as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; } 13916 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes; then : 13917 13918$as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h 13919 13920 13921fi 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5 13923$as_echo_n "checking for GNU GCC vararg macro support... " >&6; } 13924if ${ax_cv_cpp_vararg_macro_gcc+:} false; then : 13925 $as_echo_n "(cached) " >&6 13926else 13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13928/* end confdefs.h. */ 13929 13930#define macro(a, b...) func(a, b) 13931int func(int a, int b, int c); 13932 13933int 13934main () 13935{ 13936 13937int i = macro(1, 2, 3); 13938 13939 13940 ; 13941 return 0; 13942} 13943_ACEOF 13944if ac_fn_c_try_compile "$LINENO"; then : 13945 ax_cv_cpp_vararg_macro_gcc=yes 13946else 13947 ax_cv_cpp_vararg_macro_gcc=no 13948 13949fi 13950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13951 13952fi 13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5 13954$as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; } 13955 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes; then : 13956 13957$as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h 13958 13959 13960fi 13961 13962 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13963#include <sys/types.h> 13964#ifdef WIN32 13965#include <ws2tcpip.h> 13966#else 13967#include <sys/socket.h> 13968#endif 13969 13970 13971" 13972if test "x$ac_cv_type_socklen_t" = xyes; then : 13973 13974else 13975 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 13977$as_echo_n "checking for socklen_t equivalent... " >&6; } 13978if ${ax_cv_socklen_t_equiv+:} false; then : 13979 $as_echo_n "(cached) " >&6 13980else 13981 13982 #AS_CASE is not supported on <autoconf-2.60 13983 case "${host}" in 13984 *-mingw*) ax_cv_socklen_t_equiv=int ;; 13985 *) 13986 # Systems have either "struct sockaddr *" or 13987 # "void *" as the second argument to getpeername 13988 for arg2 in "struct sockaddr" void; do 13989 for t in int size_t unsigned long "unsigned long"; do 13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13991/* end confdefs.h. */ 13992 13993#include <sys/types.h> 13994#include <sys/socket.h> 13995int getpeername (int, $arg2 *, $t *); 13996 13997int 13998main () 13999{ 14000 14001$t len; 14002getpeername(0,0,&len); 14003 14004 14005 ; 14006 return 0; 14007} 14008_ACEOF 14009if ac_fn_c_try_compile "$LINENO"; then : 14010 ax_cv_socklen_t_equiv="$t"; break 14011 14012fi 14013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14014 done 14015 test -n "$ax_cv_socklen_t_equiv" && break 14016 done 14017 ;; 14018 esac 14019 14020 if ${ax_cv_socklen_t_equiv:+false} :; then : 14021 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 14022else 14023 14024cat >>confdefs.h <<_ACEOF 14025#define socklen_t $ax_cv_socklen_t_equiv 14026_ACEOF 14027 14028 14029fi 14030 14031fi 14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5 14033$as_echo "$ax_cv_socklen_t_equiv" >&6; } 14034 14035fi 14036 14037 14038 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5 14040$as_echo_n "checking for C compiler empty array size... " >&6; } 14041if ${ax_cv_c_empty_array+:} false; then : 14042 $as_echo_n "(cached) " >&6 14043else 14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14045/* end confdefs.h. */ 14046 14047int 14048main () 14049{ 14050 14051struct { int foo; int bar[0]; } mystruct; 14052 14053 14054 ; 14055 return 0; 14056} 14057_ACEOF 14058if ac_fn_c_try_compile "$LINENO"; then : 14059 ax_cv_c_empty_array=0 14060else 14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062/* end confdefs.h. */ 14063 14064int 14065main () 14066{ 14067 14068struct { int foo; int bar[]; } mystruct; 14069 14070 14071 ; 14072 return 0; 14073} 14074_ACEOF 14075if ac_fn_c_try_compile "$LINENO"; then : 14076 ax_cv_c_empty_array= 14077else 14078 as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5 14079 14080fi 14081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14082 14083fi 14084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14085 14086fi 14087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5 14088$as_echo "$ax_cv_c_empty_array" >&6; } 14089cat >>confdefs.h <<_ACEOF 14090#define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array 14091_ACEOF 14092 14093# The cast to long int works around a bug in the HP C Compiler 14094# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14095# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14096# This bug is HP SR number 8606223364. 14097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 14098$as_echo_n "checking size of unsigned int... " >&6; } 14099if ${ac_cv_sizeof_unsigned_int+:} false; then : 14100 $as_echo_n "(cached) " >&6 14101else 14102 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 14103 14104else 14105 if test "$ac_cv_type_unsigned_int" = yes; then 14106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14108as_fn_error 77 "cannot compute sizeof (unsigned int) 14109See \`config.log' for more details" "$LINENO" 5; } 14110 else 14111 ac_cv_sizeof_unsigned_int=0 14112 fi 14113fi 14114 14115fi 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 14117$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 14118 14119 14120 14121cat >>confdefs.h <<_ACEOF 14122#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 14123_ACEOF 14124 14125 14126# The cast to long int works around a bug in the HP C Compiler 14127# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14128# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14129# This bug is HP SR number 8606223364. 14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 14131$as_echo_n "checking size of unsigned long... " >&6; } 14132if ${ac_cv_sizeof_unsigned_long+:} false; then : 14133 $as_echo_n "(cached) " >&6 14134else 14135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 14136 14137else 14138 if test "$ac_cv_type_unsigned_long" = yes; then 14139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14141as_fn_error 77 "cannot compute sizeof (unsigned long) 14142See \`config.log' for more details" "$LINENO" 5; } 14143 else 14144 ac_cv_sizeof_unsigned_long=0 14145 fi 14146fi 14147 14148fi 14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 14150$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 14151 14152 14153 14154cat >>confdefs.h <<_ACEOF 14155#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 14156_ACEOF 14157 14158 14159for ac_header in \ 14160 stdio.h stdarg.h stdbool.h limits.h \ 14161 time.h errno.h fcntl.h io.h direct.h \ 14162 ctype.h sys/types.h sys/socket.h \ 14163 signal.h unistd.h dlfcn.h \ 14164 netinet/in.h netinet/in_systm.h \ 14165 netinet/tcp.h arpa/inet.h netdb.h \ 14166 windows.h winsock2.h ws2tcpip.h \ 14167 14168do : 14169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14170ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14171if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14172 cat >>confdefs.h <<_ACEOF 14173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14174_ACEOF 14175 14176fi 14177 14178done 14179 14180for ac_header in \ 14181 sys/time.h sys/ioctl.h sys/stat.h \ 14182 sys/mman.h sys/file.h sys/wait.h \ 14183 unistd.h signal.h libgen.h stropts.h \ 14184 syslog.h pwd.h grp.h \ 14185 sys/sockio.h sys/uio.h linux/sockios.h \ 14186 linux/types.h sys/poll.h sys/epoll.h err.h \ 14187 14188do : 14189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14190ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14191if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14192 cat >>confdefs.h <<_ACEOF 14193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14194_ACEOF 14195 14196fi 14197 14198done 14199 14200 14201SOCKET_INCLUDES=" 14202#ifdef HAVE_STDLIB_H 14203#include <stdlib.h> 14204#endif 14205#ifdef HAVE_SYS_TYPES_H 14206#include <sys/types.h> 14207#endif 14208#ifdef HAVE_SYS_SOCKET_H 14209#include <sys/socket.h> 14210#endif 14211#ifdef HAVE_NETINET_IN_H 14212#include <netinet/in.h> 14213#endif 14214#ifdef HAVE_WINDOWS_H 14215#include <windows.h> 14216#endif 14217#ifdef HAVE_WINSOCK2_H 14218#include <winsock2.h> 14219#endif 14220#ifdef HAVE_WS2TCPIP_H 14221#include <ws2tcpip.h> 14222#endif 14223#ifdef HAVE_NETINET_IN_SYSTM_H 14224#include <netinet/in_systm.h> 14225#endif 14226#ifdef HAVE_NETINET_IP_H 14227#include <netinet/ip.h> 14228#endif 14229" 14230 14231for ac_header in net/if.h netinet/ip.h netinet/if_ether.h resolv.h sys/un.h 14232do : 14233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14234ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES} 14235 14236" 14237if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14238 cat >>confdefs.h <<_ACEOF 14239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14240_ACEOF 14241 14242fi 14243 14244done 14245 14246 14247ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES} 14248 14249" 14250if test "x$ac_cv_type_in_addr_t" = xyes; then : 14251 14252cat >>confdefs.h <<_ACEOF 14253#define HAVE_IN_ADDR_T 1 14254_ACEOF 14255 14256 14257else 14258 14259$as_echo "#define in_addr_t uint32_t" >>confdefs.h 14260 14261fi 14262 14263ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES} 14264 14265" 14266if test "x$ac_cv_type_struct_iphdr" = xyes; then : 14267 14268$as_echo "#define HAVE_IPHDR 1" >>confdefs.h 14269 14270fi 14271 14272ac_fn_c_check_type "$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES} 14273 14274" 14275if test "x$ac_cv_type_struct_sock_extended_err" = xyes; then : 14276 14277$as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h 14278 14279fi 14280 14281ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES} 14282 14283" 14284if test "x$ac_cv_type_struct_msghdr" = xyes; then : 14285 14286$as_echo "#define HAVE_MSGHDR 1" >>confdefs.h 14287 14288fi 14289 14290ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES} 14291 14292" 14293if test "x$ac_cv_type_struct_cmsghdr" = xyes; then : 14294 14295$as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h 14296 14297fi 14298 14299ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES} 14300 14301" 14302if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then : 14303 14304$as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h 14305 14306fi 14307 14308ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES} 14309 14310" 14311if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 14312 14313else 14314 as_fn_error $? "struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5 14315fi 14316 14317ac_fn_c_check_decl "$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES} 14318 14319" 14320if test "x$ac_cv_have_decl_SO_MARK" = xyes; then : 14321 ac_have_decl=1 14322else 14323 ac_have_decl=0 14324fi 14325 14326cat >>confdefs.h <<_ACEOF 14327#define HAVE_DECL_SO_MARK $ac_have_decl 14328_ACEOF 14329 14330 14331ac_fn_c_check_decl "$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" " 14332 #ifdef HAVE_SIGNAL_H 14333 #include <signal.h> 14334 #endif 14335 14336 14337" 14338if test "x$ac_cv_have_decl_SIGHUP" = xyes; then : 14339 ac_have_decl=1 14340else 14341 ac_have_decl=0 14342fi 14343 14344cat >>confdefs.h <<_ACEOF 14345#define HAVE_DECL_SIGHUP $ac_have_decl 14346_ACEOF 14347if test $ac_have_decl = 1; then : 14348 14349else 14350 14351$as_echo "#define SIGHUP 1" >>confdefs.h 14352 14353fi 14354 14355ac_fn_c_check_decl "$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" " 14356 #ifdef HAVE_SIGNAL_H 14357 #include <signal.h> 14358 #endif 14359 14360 14361" 14362if test "x$ac_cv_have_decl_SIGINT" = xyes; then : 14363 ac_have_decl=1 14364else 14365 ac_have_decl=0 14366fi 14367 14368cat >>confdefs.h <<_ACEOF 14369#define HAVE_DECL_SIGINT $ac_have_decl 14370_ACEOF 14371if test $ac_have_decl = 1; then : 14372 14373else 14374 14375$as_echo "#define SIGINT 2" >>confdefs.h 14376 14377fi 14378 14379ac_fn_c_check_decl "$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" " 14380 #ifdef HAVE_SIGNAL_H 14381 #include <signal.h> 14382 #endif 14383 14384 14385" 14386if test "x$ac_cv_have_decl_SIGUSR1" = xyes; then : 14387 ac_have_decl=1 14388else 14389 ac_have_decl=0 14390fi 14391 14392cat >>confdefs.h <<_ACEOF 14393#define HAVE_DECL_SIGUSR1 $ac_have_decl 14394_ACEOF 14395if test $ac_have_decl = 1; then : 14396 14397else 14398 14399$as_echo "#define SIGUSR1 10" >>confdefs.h 14400 14401fi 14402 14403ac_fn_c_check_decl "$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" " 14404 #ifdef HAVE_SIGNAL_H 14405 #include <signal.h> 14406 #endif 14407 14408 14409" 14410if test "x$ac_cv_have_decl_SIGUSR2" = xyes; then : 14411 ac_have_decl=1 14412else 14413 ac_have_decl=0 14414fi 14415 14416cat >>confdefs.h <<_ACEOF 14417#define HAVE_DECL_SIGUSR2 $ac_have_decl 14418_ACEOF 14419if test $ac_have_decl = 1; then : 14420 14421else 14422 14423$as_echo "#define SIGUSR2 12" >>confdefs.h 14424 14425fi 14426 14427ac_fn_c_check_decl "$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" " 14428 #ifdef HAVE_SIGNAL_H 14429 #include <signal.h> 14430 #endif 14431 14432 14433" 14434if test "x$ac_cv_have_decl_SIGTERM" = xyes; then : 14435 ac_have_decl=1 14436else 14437 ac_have_decl=0 14438fi 14439 14440cat >>confdefs.h <<_ACEOF 14441#define HAVE_DECL_SIGTERM $ac_have_decl 14442_ACEOF 14443if test $ac_have_decl = 1; then : 14444 14445else 14446 14447$as_echo "#define SIGTERM 15" >>confdefs.h 14448 14449fi 14450 14451 14452for ac_header in vfork.h 14453do : 14454 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14455if test "x$ac_cv_header_vfork_h" = xyes; then : 14456 cat >>confdefs.h <<_ACEOF 14457#define HAVE_VFORK_H 1 14458_ACEOF 14459 14460fi 14461 14462done 14463 14464for ac_func in fork vfork 14465do : 14466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14467ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14468if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14469 cat >>confdefs.h <<_ACEOF 14470#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14471_ACEOF 14472 14473fi 14474done 14475 14476if test "x$ac_cv_func_fork" = xyes; then 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14478$as_echo_n "checking for working fork... " >&6; } 14479if ${ac_cv_func_fork_works+:} false; then : 14480 $as_echo_n "(cached) " >&6 14481else 14482 if test "$cross_compiling" = yes; then : 14483 ac_cv_func_fork_works=cross 14484else 14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14486/* end confdefs.h. */ 14487$ac_includes_default 14488int 14489main () 14490{ 14491 14492 /* By Ruediger Kuhlmann. */ 14493 return fork () < 0; 14494 14495 ; 14496 return 0; 14497} 14498_ACEOF 14499if ac_fn_c_try_run "$LINENO"; then : 14500 ac_cv_func_fork_works=yes 14501else 14502 ac_cv_func_fork_works=no 14503fi 14504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14505 conftest.$ac_objext conftest.beam conftest.$ac_ext 14506fi 14507 14508fi 14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14510$as_echo "$ac_cv_func_fork_works" >&6; } 14511 14512else 14513 ac_cv_func_fork_works=$ac_cv_func_fork 14514fi 14515if test "x$ac_cv_func_fork_works" = xcross; then 14516 case $host in 14517 *-*-amigaos* | *-*-msdosdjgpp*) 14518 # Override, as these systems have only a dummy fork() stub 14519 ac_cv_func_fork_works=no 14520 ;; 14521 *) 14522 ac_cv_func_fork_works=yes 14523 ;; 14524 esac 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14526$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14527fi 14528ac_cv_func_vfork_works=$ac_cv_func_vfork 14529if test "x$ac_cv_func_vfork" = xyes; then 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14531$as_echo_n "checking for working vfork... " >&6; } 14532if ${ac_cv_func_vfork_works+:} false; then : 14533 $as_echo_n "(cached) " >&6 14534else 14535 if test "$cross_compiling" = yes; then : 14536 ac_cv_func_vfork_works=cross 14537else 14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14539/* end confdefs.h. */ 14540/* Thanks to Paul Eggert for this test. */ 14541$ac_includes_default 14542#include <sys/wait.h> 14543#ifdef HAVE_VFORK_H 14544# include <vfork.h> 14545#endif 14546/* On some sparc systems, changes by the child to local and incoming 14547 argument registers are propagated back to the parent. The compiler 14548 is told about this with #include <vfork.h>, but some compilers 14549 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14550 static variable whose address is put into a register that is 14551 clobbered by the vfork. */ 14552static void 14553#ifdef __cplusplus 14554sparc_address_test (int arg) 14555# else 14556sparc_address_test (arg) int arg; 14557#endif 14558{ 14559 static pid_t child; 14560 if (!child) { 14561 child = vfork (); 14562 if (child < 0) { 14563 perror ("vfork"); 14564 _exit(2); 14565 } 14566 if (!child) { 14567 arg = getpid(); 14568 write(-1, "", 0); 14569 _exit (arg); 14570 } 14571 } 14572} 14573 14574int 14575main () 14576{ 14577 pid_t parent = getpid (); 14578 pid_t child; 14579 14580 sparc_address_test (0); 14581 14582 child = vfork (); 14583 14584 if (child == 0) { 14585 /* Here is another test for sparc vfork register problems. This 14586 test uses lots of local variables, at least as many local 14587 variables as main has allocated so far including compiler 14588 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14589 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14590 reuse the register of parent for one of the local variables, 14591 since it will think that parent can't possibly be used any more 14592 in this routine. Assigning to the local variable will thus 14593 munge parent in the parent process. */ 14594 pid_t 14595 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14596 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14597 /* Convince the compiler that p..p7 are live; otherwise, it might 14598 use the same hardware register for all 8 local variables. */ 14599 if (p != p1 || p != p2 || p != p3 || p != p4 14600 || p != p5 || p != p6 || p != p7) 14601 _exit(1); 14602 14603 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14604 from child file descriptors. If the child closes a descriptor 14605 before it execs or exits, this munges the parent's descriptor 14606 as well. Test for this by closing stdout in the child. */ 14607 _exit(close(fileno(stdout)) != 0); 14608 } else { 14609 int status; 14610 struct stat st; 14611 14612 while (wait(&status) != child) 14613 ; 14614 return ( 14615 /* Was there some problem with vforking? */ 14616 child < 0 14617 14618 /* Did the child fail? (This shouldn't happen.) */ 14619 || status 14620 14621 /* Did the vfork/compiler bug occur? */ 14622 || parent != getpid() 14623 14624 /* Did the file descriptor bug occur? */ 14625 || fstat(fileno(stdout), &st) != 0 14626 ); 14627 } 14628} 14629_ACEOF 14630if ac_fn_c_try_run "$LINENO"; then : 14631 ac_cv_func_vfork_works=yes 14632else 14633 ac_cv_func_vfork_works=no 14634fi 14635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14636 conftest.$ac_objext conftest.beam conftest.$ac_ext 14637fi 14638 14639fi 14640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14641$as_echo "$ac_cv_func_vfork_works" >&6; } 14642 14643fi; 14644if test "x$ac_cv_func_fork_works" = xcross; then 14645 ac_cv_func_vfork_works=$ac_cv_func_vfork 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14647$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14648fi 14649 14650if test "x$ac_cv_func_vfork_works" = xyes; then 14651 14652$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14653 14654else 14655 14656$as_echo "#define vfork fork" >>confdefs.h 14657 14658fi 14659if test "x$ac_cv_func_fork_works" = xyes; then 14660 14661$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14662 14663fi 14664 14665 14666for ac_func in \ 14667 daemon chroot getpwnam setuid nice system getpid dup dup2 \ 14668 getpass strerror syslog openlog mlockall getgrnam setgid \ 14669 setgroups stat flock readv writev time gettimeofday \ 14670 ctime memset vsnprintf strdup \ 14671 setsid chdir putenv getpeername unlink \ 14672 chsize ftruncate execve getpeereid umask basename dirname access \ 14673 epoll_create \ 14674 14675do : 14676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14677ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14678if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14679 cat >>confdefs.h <<_ACEOF 14680#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14681_ACEOF 14682 14683fi 14684done 14685 14686 14687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14688$as_echo_n "checking for dlopen in -ldl... " >&6; } 14689if ${ac_cv_lib_dl_dlopen+:} false; then : 14690 $as_echo_n "(cached) " >&6 14691else 14692 ac_check_lib_save_LIBS=$LIBS 14693LIBS="-ldl $LIBS" 14694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696 14697/* Override any GCC internal prototype to avoid an error. 14698 Use char because int might match the return type of a GCC 14699 builtin and then its argument prototype would still apply. */ 14700#ifdef __cplusplus 14701extern "C" 14702#endif 14703char dlopen (); 14704int 14705main () 14706{ 14707return dlopen (); 14708 ; 14709 return 0; 14710} 14711_ACEOF 14712if ac_fn_c_try_link "$LINENO"; then : 14713 ac_cv_lib_dl_dlopen=yes 14714else 14715 ac_cv_lib_dl_dlopen=no 14716fi 14717rm -f core conftest.err conftest.$ac_objext \ 14718 conftest$ac_exeext conftest.$ac_ext 14719LIBS=$ac_check_lib_save_LIBS 14720fi 14721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14722$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14723if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14724 DL_LIBS="-ldl" 14725 14726fi 14727 14728 14729 14730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5 14731$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; } 14732if ${ac_cv_lib_nsl_inet_ntoa+:} false; then : 14733 $as_echo_n "(cached) " >&6 14734else 14735 ac_check_lib_save_LIBS=$LIBS 14736LIBS="-lnsl $LIBS" 14737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14738/* end confdefs.h. */ 14739 14740/* Override any GCC internal prototype to avoid an error. 14741 Use char because int might match the return type of a GCC 14742 builtin and then its argument prototype would still apply. */ 14743#ifdef __cplusplus 14744extern "C" 14745#endif 14746char inet_ntoa (); 14747int 14748main () 14749{ 14750return inet_ntoa (); 14751 ; 14752 return 0; 14753} 14754_ACEOF 14755if ac_fn_c_try_link "$LINENO"; then : 14756 ac_cv_lib_nsl_inet_ntoa=yes 14757else 14758 ac_cv_lib_nsl_inet_ntoa=no 14759fi 14760rm -f core conftest.err conftest.$ac_objext \ 14761 conftest$ac_exeext conftest.$ac_ext 14762LIBS=$ac_check_lib_save_LIBS 14763fi 14764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5 14765$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; } 14766if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then : 14767 SOCKETS_LIBS="${SOCKETS_LIBS} -lnsl" 14768 14769fi 14770 14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 14772$as_echo_n "checking for socket in -lsocket... " >&6; } 14773if ${ac_cv_lib_socket_socket+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 ac_check_lib_save_LIBS=$LIBS 14777LIBS="-lsocket $LIBS" 14778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14779/* end confdefs.h. */ 14780 14781/* Override any GCC internal prototype to avoid an error. 14782 Use char because int might match the return type of a GCC 14783 builtin and then its argument prototype would still apply. */ 14784#ifdef __cplusplus 14785extern "C" 14786#endif 14787char socket (); 14788int 14789main () 14790{ 14791return socket (); 14792 ; 14793 return 0; 14794} 14795_ACEOF 14796if ac_fn_c_try_link "$LINENO"; then : 14797 ac_cv_lib_socket_socket=yes 14798else 14799 ac_cv_lib_socket_socket=no 14800fi 14801rm -f core conftest.err conftest.$ac_objext \ 14802 conftest$ac_exeext conftest.$ac_ext 14803LIBS=$ac_check_lib_save_LIBS 14804fi 14805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 14806$as_echo "$ac_cv_lib_socket_socket" >&6; } 14807if test "x$ac_cv_lib_socket_socket" = xyes; then : 14808 SOCKETS_LIBS="${SOCKETS_LIBS} -lsocket" 14809 14810fi 14811 14812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5 14813$as_echo_n "checking for gethostbyname in -lresolv... " >&6; } 14814if ${ac_cv_lib_resolv_gethostbyname+:} false; then : 14815 $as_echo_n "(cached) " >&6 14816else 14817 ac_check_lib_save_LIBS=$LIBS 14818LIBS="-lresolv $LIBS" 14819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14820/* end confdefs.h. */ 14821 14822/* Override any GCC internal prototype to avoid an error. 14823 Use char because int might match the return type of a GCC 14824 builtin and then its argument prototype would still apply. */ 14825#ifdef __cplusplus 14826extern "C" 14827#endif 14828char gethostbyname (); 14829int 14830main () 14831{ 14832return gethostbyname (); 14833 ; 14834 return 0; 14835} 14836_ACEOF 14837if ac_fn_c_try_link "$LINENO"; then : 14838 ac_cv_lib_resolv_gethostbyname=yes 14839else 14840 ac_cv_lib_resolv_gethostbyname=no 14841fi 14842rm -f core conftest.err conftest.$ac_objext \ 14843 conftest$ac_exeext conftest.$ac_ext 14844LIBS=$ac_check_lib_save_LIBS 14845fi 14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5 14847$as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; } 14848if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then : 14849 SOCKETS_LIBS="${SOCKETS_LIBS} -lresolv" 14850 14851fi 14852 14853 14854 14855old_LIBS="${LIBS}" 14856LIBS="${LIBS} ${SOCKETS_LIBS}" 14857for ac_func in sendmsg recvmsg inet_ntop inet_pton 14858do : 14859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14860ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14861if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14862 cat >>confdefs.h <<_ACEOF 14863#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14864_ACEOF 14865 14866fi 14867done 14868 14869for ac_func in res_init 14870do : 14871 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 14872if test "x$ac_cv_func_res_init" = xyes; then : 14873 cat >>confdefs.h <<_ACEOF 14874#define HAVE_RES_INIT 1 14875_ACEOF 14876 14877fi 14878done 14879 14880# Windows use stdcall for winsock so we cannot auto detect these 14881 14882 14883if test "${WIN32}" = "yes"; then 14884 14885 14886$as_echo "#define HAVE_SOCKET 1" >>confdefs.h 14887 14888 14889 14890$as_echo "#define HAVE_RECV 1" >>confdefs.h 14891 14892 14893 14894$as_echo "#define HAVE_RECVFROM 1" >>confdefs.h 14895 14896 14897 14898$as_echo "#define HAVE_SEND 1" >>confdefs.h 14899 14900 14901 14902$as_echo "#define HAVE_SENDTO 1" >>confdefs.h 14903 14904 14905 14906$as_echo "#define HAVE_LISTEN 1" >>confdefs.h 14907 14908 14909 14910$as_echo "#define HAVE_ACCEPT 1" >>confdefs.h 14911 14912 14913 14914$as_echo "#define HAVE_CONNECT 1" >>confdefs.h 14915 14916 14917 14918$as_echo "#define HAVE_BIND 1" >>confdefs.h 14919 14920 14921 14922$as_echo "#define HAVE_SELECT 1" >>confdefs.h 14923 14924 14925 14926$as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 14927 14928 14929 14930$as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h 14931 14932 14933 14934$as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h 14935 14936 14937 14938$as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h 14939 14940 14941 14942$as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h 14943 14944 14945 14946$as_echo "#define HAVE_POLL 1" >>confdefs.h 14947 14948 14949else 14950 for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa 14951do : 14952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14953ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14954if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14955 cat >>confdefs.h <<_ACEOF 14956#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14957_ACEOF 14958 14959else 14960 as_fn_error $? "Required library function not found" "$LINENO" 5 14961 14962fi 14963done 14964 14965 for ac_func in setsockopt getsockopt getsockname poll 14966do : 14967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14969if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14970 cat >>confdefs.h <<_ACEOF 14971#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14972_ACEOF 14973 14974fi 14975done 14976 14977fi 14978LIBS="${old_LIBS}" 14979 14980 14981old_CFLAGS="${CFLAGS}" 14982CFLAGS="${CFLAGS} ${TAP_CFLAGS}" 14983for ac_header in \ 14984 net/if_tun.h net/tun/if_tun.h \ 14985 linux/if_tun.h \ 14986 tap-windows.h \ 14987 14988do : 14989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14990ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14992 cat >>confdefs.h <<_ACEOF 14993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14994_ACEOF 14995 have_tap_header="yes" 14996 14997fi 14998 14999done 15000 15001ac_fn_c_check_decl "$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" " 15002 #ifdef HAVE_LINUX_IF_TUN_H 15003 #include <linux/if_tun.h> 15004 #endif 15005 15006 15007" 15008if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes; then : 15009 ac_have_decl=1 15010else 15011 ac_have_decl=0 15012fi 15013 15014cat >>confdefs.h <<_ACEOF 15015#define HAVE_DECL_TUNSETPERSIST $ac_have_decl 15016_ACEOF 15017if test $ac_have_decl = 1; then : 15018 15019$as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h 15020 15021fi 15022 15023CFLAGS="${old_CFLAGS}" 15024test "${have_tap_header}" = "yes" || as_fn_error $? "no tap header could be found" "$LINENO" 5 15025 15026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5 15027$as_echo_n "checking for setcon in -lselinux... " >&6; } 15028if ${ac_cv_lib_selinux_setcon+:} false; then : 15029 $as_echo_n "(cached) " >&6 15030else 15031 ac_check_lib_save_LIBS=$LIBS 15032LIBS="-lselinux $LIBS" 15033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15034/* end confdefs.h. */ 15035 15036/* Override any GCC internal prototype to avoid an error. 15037 Use char because int might match the return type of a GCC 15038 builtin and then its argument prototype would still apply. */ 15039#ifdef __cplusplus 15040extern "C" 15041#endif 15042char setcon (); 15043int 15044main () 15045{ 15046return setcon (); 15047 ; 15048 return 0; 15049} 15050_ACEOF 15051if ac_fn_c_try_link "$LINENO"; then : 15052 ac_cv_lib_selinux_setcon=yes 15053else 15054 ac_cv_lib_selinux_setcon=no 15055fi 15056rm -f core conftest.err conftest.$ac_objext \ 15057 conftest$ac_exeext conftest.$ac_ext 15058LIBS=$ac_check_lib_save_LIBS 15059fi 15060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5 15061$as_echo "$ac_cv_lib_selinux_setcon" >&6; } 15062if test "x$ac_cv_lib_selinux_setcon" = xyes; then : 15063 SELINUX_LIBS="-lselinux" 15064 15065fi 15066 15067 15068 15069 15070 15071if test -z "${LIBPAM_LIBS}"; then 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 15073$as_echo_n "checking for pam_start in -lpam... " >&6; } 15074if ${ac_cv_lib_pam_pam_start+:} false; then : 15075 $as_echo_n "(cached) " >&6 15076else 15077 ac_check_lib_save_LIBS=$LIBS 15078LIBS="-lpam $LIBS" 15079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15080/* end confdefs.h. */ 15081 15082/* Override any GCC internal prototype to avoid an error. 15083 Use char because int might match the return type of a GCC 15084 builtin and then its argument prototype would still apply. */ 15085#ifdef __cplusplus 15086extern "C" 15087#endif 15088char pam_start (); 15089int 15090main () 15091{ 15092return pam_start (); 15093 ; 15094 return 0; 15095} 15096_ACEOF 15097if ac_fn_c_try_link "$LINENO"; then : 15098 ac_cv_lib_pam_pam_start=yes 15099else 15100 ac_cv_lib_pam_pam_start=no 15101fi 15102rm -f core conftest.err conftest.$ac_objext \ 15103 conftest$ac_exeext conftest.$ac_ext 15104LIBS=$ac_check_lib_save_LIBS 15105fi 15106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 15107$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 15108if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 15109 LIBPAM_LIBS="-lpam" 15110 15111fi 15112 15113fi 15114 15115case "${with_mem_check}" in 15116 valgrind) 15117 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" 15118if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then : 15119 15120 CFLAGS="${CFLAGS} -g -fno-inline" 15121 15122$as_echo "#define USE_VALGRIND 1" >>confdefs.h 15123 15124 15125else 15126 as_fn_error $? "valgrind headers not found." "$LINENO" 5 15127 15128fi 15129 15130 15131 ;; 15132 dmalloc) 15133 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default" 15134if test "x$ac_cv_header_dmalloc_h" = xyes; then : 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5 15136$as_echo_n "checking for malloc in -ldmalloc... " >&6; } 15137if ${ac_cv_lib_dmalloc_malloc+:} false; then : 15138 $as_echo_n "(cached) " >&6 15139else 15140 ac_check_lib_save_LIBS=$LIBS 15141LIBS="-ldmalloc $LIBS" 15142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15143/* end confdefs.h. */ 15144 15145/* Override any GCC internal prototype to avoid an error. 15146 Use char because int might match the return type of a GCC 15147 builtin and then its argument prototype would still apply. */ 15148#ifdef __cplusplus 15149extern "C" 15150#endif 15151char malloc (); 15152int 15153main () 15154{ 15155return malloc (); 15156 ; 15157 return 0; 15158} 15159_ACEOF 15160if ac_fn_c_try_link "$LINENO"; then : 15161 ac_cv_lib_dmalloc_malloc=yes 15162else 15163 ac_cv_lib_dmalloc_malloc=no 15164fi 15165rm -f core conftest.err conftest.$ac_objext \ 15166 conftest$ac_exeext conftest.$ac_ext 15167LIBS=$ac_check_lib_save_LIBS 15168fi 15169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5 15170$as_echo "$ac_cv_lib_dmalloc_malloc" >&6; } 15171if test "x$ac_cv_lib_dmalloc_malloc" = xyes; then : 15172 15173 LIBS="${LIBS} -ldmalloc" 15174 15175$as_echo "#define DMALLOC 1" >>confdefs.h 15176 15177 15178else 15179 as_fn_error $? "dmalloc library not found." "$LINENO" 5 15180 15181fi 15182 15183else 15184 as_fn_error $? "dmalloc headers not found." "$LINENO" 5 15185 15186fi 15187 15188 15189 ;; 15190 ssl) 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5 15192$as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; } 15193if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false; then : 15194 $as_echo_n "(cached) " >&6 15195else 15196 ac_check_lib_save_LIBS=$LIBS 15197LIBS="-lssl $LIBS" 15198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199/* end confdefs.h. */ 15200 15201/* Override any GCC internal prototype to avoid an error. 15202 Use char because int might match the return type of a GCC 15203 builtin and then its argument prototype would still apply. */ 15204#ifdef __cplusplus 15205extern "C" 15206#endif 15207char CRYPTO_mem_ctrl (); 15208int 15209main () 15210{ 15211return CRYPTO_mem_ctrl (); 15212 ; 15213 return 0; 15214} 15215_ACEOF 15216if ac_fn_c_try_link "$LINENO"; then : 15217 ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes 15218else 15219 ac_cv_lib_ssl_CRYPTO_mem_ctrl=no 15220fi 15221rm -f core conftest.err conftest.$ac_objext \ 15222 conftest$ac_exeext conftest.$ac_ext 15223LIBS=$ac_check_lib_save_LIBS 15224fi 15225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5 15226$as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; } 15227if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes; then : 15228 15229 15230$as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h 15231 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5 15233$as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;} 15234 15235else 15236 as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5 15237 15238fi 15239 15240 ;; 15241esac 15242 15243 15244pkg_failed=no 15245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5 15246$as_echo_n "checking for PKCS11_HELPER... " >&6; } 15247 15248if test -n "$PKCS11_HELPER_CFLAGS"; then 15249 pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS" 15250 elif test -n "$PKG_CONFIG"; then 15251 if test -n "$PKG_CONFIG" && \ 15252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5 15253 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5 15254 ac_status=$? 15255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15256 test $ac_status = 0; }; then 15257 pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.02" 2>/dev/null` 15258 test "x$?" != "x0" && pkg_failed=yes 15259else 15260 pkg_failed=yes 15261fi 15262 else 15263 pkg_failed=untried 15264fi 15265if test -n "$PKCS11_HELPER_LIBS"; then 15266 pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS" 15267 elif test -n "$PKG_CONFIG"; then 15268 if test -n "$PKG_CONFIG" && \ 15269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5 15270 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5 15271 ac_status=$? 15272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15273 test $ac_status = 0; }; then 15274 pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.02" 2>/dev/null` 15275 test "x$?" != "x0" && pkg_failed=yes 15276else 15277 pkg_failed=yes 15278fi 15279 else 15280 pkg_failed=untried 15281fi 15282 15283 15284 15285if test $pkg_failed = yes; then 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15287$as_echo "no" >&6; } 15288 15289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15290 _pkg_short_errors_supported=yes 15291else 15292 _pkg_short_errors_supported=no 15293fi 15294 if test $_pkg_short_errors_supported = yes; then 15295 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1` 15296 else 15297 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1` 15298 fi 15299 # Put the nasty error message in config.log where it belongs 15300 echo "$PKCS11_HELPER_PKG_ERRORS" >&5 15301 15302 15303 15304elif test $pkg_failed = untried; then 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15306$as_echo "no" >&6; } 15307 15308 15309else 15310 PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS 15311 PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15313$as_echo "yes" >&6; } 15314 have_pkcs11_helper="yes" 15315fi 15316 15317 15318pkg_failed=no 15319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5 15320$as_echo_n "checking for OPENSSL_CRYPTO... " >&6; } 15321 15322if test -n "$OPENSSL_CRYPTO_CFLAGS"; then 15323 pkg_cv_OPENSSL_CRYPTO_CFLAGS="$OPENSSL_CRYPTO_CFLAGS" 15324 elif test -n "$PKG_CONFIG"; then 15325 if test -n "$PKG_CONFIG" && \ 15326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5 15327 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5 15328 ac_status=$? 15329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15330 test $ac_status = 0; }; then 15331 pkg_cv_OPENSSL_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null` 15332 test "x$?" != "x0" && pkg_failed=yes 15333else 15334 pkg_failed=yes 15335fi 15336 else 15337 pkg_failed=untried 15338fi 15339if test -n "$OPENSSL_CRYPTO_LIBS"; then 15340 pkg_cv_OPENSSL_CRYPTO_LIBS="$OPENSSL_CRYPTO_LIBS" 15341 elif test -n "$PKG_CONFIG"; then 15342 if test -n "$PKG_CONFIG" && \ 15343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5 15344 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5 15345 ac_status=$? 15346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15347 test $ac_status = 0; }; then 15348 pkg_cv_OPENSSL_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null` 15349 test "x$?" != "x0" && pkg_failed=yes 15350else 15351 pkg_failed=yes 15352fi 15353 else 15354 pkg_failed=untried 15355fi 15356 15357 15358 15359if test $pkg_failed = yes; then 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15361$as_echo "no" >&6; } 15362 15363if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15364 _pkg_short_errors_supported=yes 15365else 15366 _pkg_short_errors_supported=no 15367fi 15368 if test $_pkg_short_errors_supported = yes; then 15369 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1` 15370 else 15371 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1` 15372 fi 15373 # Put the nasty error message in config.log where it belongs 15374 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5 15375 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5 15377$as_echo_n "checking for RSA_new in -lcrypto... " >&6; } 15378if ${ac_cv_lib_crypto_RSA_new+:} false; then : 15379 $as_echo_n "(cached) " >&6 15380else 15381 ac_check_lib_save_LIBS=$LIBS 15382LIBS="-lcrypto $LIBS" 15383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15384/* end confdefs.h. */ 15385 15386/* Override any GCC internal prototype to avoid an error. 15387 Use char because int might match the return type of a GCC 15388 builtin and then its argument prototype would still apply. */ 15389#ifdef __cplusplus 15390extern "C" 15391#endif 15392char RSA_new (); 15393int 15394main () 15395{ 15396return RSA_new (); 15397 ; 15398 return 0; 15399} 15400_ACEOF 15401if ac_fn_c_try_link "$LINENO"; then : 15402 ac_cv_lib_crypto_RSA_new=yes 15403else 15404 ac_cv_lib_crypto_RSA_new=no 15405fi 15406rm -f core conftest.err conftest.$ac_objext \ 15407 conftest$ac_exeext conftest.$ac_ext 15408LIBS=$ac_check_lib_save_LIBS 15409fi 15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5 15411$as_echo "$ac_cv_lib_crypto_RSA_new" >&6; } 15412if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then : 15413 15414 have_openssl_crypto="yes" 15415 OPENSSL_CRYPTO_LIBS="-lcrypto" 15416 15417 15418fi 15419 15420 15421elif test $pkg_failed = untried; then 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15423$as_echo "no" >&6; } 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5 15425$as_echo_n "checking for RSA_new in -lcrypto... " >&6; } 15426if ${ac_cv_lib_crypto_RSA_new+:} false; then : 15427 $as_echo_n "(cached) " >&6 15428else 15429 ac_check_lib_save_LIBS=$LIBS 15430LIBS="-lcrypto $LIBS" 15431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15432/* end confdefs.h. */ 15433 15434/* Override any GCC internal prototype to avoid an error. 15435 Use char because int might match the return type of a GCC 15436 builtin and then its argument prototype would still apply. */ 15437#ifdef __cplusplus 15438extern "C" 15439#endif 15440char RSA_new (); 15441int 15442main () 15443{ 15444return RSA_new (); 15445 ; 15446 return 0; 15447} 15448_ACEOF 15449if ac_fn_c_try_link "$LINENO"; then : 15450 ac_cv_lib_crypto_RSA_new=yes 15451else 15452 ac_cv_lib_crypto_RSA_new=no 15453fi 15454rm -f core conftest.err conftest.$ac_objext \ 15455 conftest$ac_exeext conftest.$ac_ext 15456LIBS=$ac_check_lib_save_LIBS 15457fi 15458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5 15459$as_echo "$ac_cv_lib_crypto_RSA_new" >&6; } 15460if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then : 15461 15462 have_openssl_crypto="yes" 15463 OPENSSL_CRYPTO_LIBS="-lcrypto" 15464 15465 15466fi 15467 15468 15469else 15470 OPENSSL_CRYPTO_CFLAGS=$pkg_cv_OPENSSL_CRYPTO_CFLAGS 15471 OPENSSL_CRYPTO_LIBS=$pkg_cv_OPENSSL_CRYPTO_LIBS 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15473$as_echo "yes" >&6; } 15474 have_openssl_crypto="yes" 15475fi 15476 15477 15478pkg_failed=no 15479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5 15480$as_echo_n "checking for OPENSSL_SSL... " >&6; } 15481 15482if test -n "$OPENSSL_SSL_CFLAGS"; then 15483 pkg_cv_OPENSSL_SSL_CFLAGS="$OPENSSL_SSL_CFLAGS" 15484 elif test -n "$PKG_CONFIG"; then 15485 if test -n "$PKG_CONFIG" && \ 15486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5 15487 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5 15488 ac_status=$? 15489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15490 test $ac_status = 0; }; then 15491 pkg_cv_OPENSSL_SSL_CFLAGS=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null` 15492 test "x$?" != "x0" && pkg_failed=yes 15493else 15494 pkg_failed=yes 15495fi 15496 else 15497 pkg_failed=untried 15498fi 15499if test -n "$OPENSSL_SSL_LIBS"; then 15500 pkg_cv_OPENSSL_SSL_LIBS="$OPENSSL_SSL_LIBS" 15501 elif test -n "$PKG_CONFIG"; then 15502 if test -n "$PKG_CONFIG" && \ 15503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5 15504 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5 15505 ac_status=$? 15506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15507 test $ac_status = 0; }; then 15508 pkg_cv_OPENSSL_SSL_LIBS=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null` 15509 test "x$?" != "x0" && pkg_failed=yes 15510else 15511 pkg_failed=yes 15512fi 15513 else 15514 pkg_failed=untried 15515fi 15516 15517 15518 15519if test $pkg_failed = yes; then 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15521$as_echo "no" >&6; } 15522 15523if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15524 _pkg_short_errors_supported=yes 15525else 15526 _pkg_short_errors_supported=no 15527fi 15528 if test $_pkg_short_errors_supported = yes; then 15529 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1` 15530 else 15531 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1` 15532 fi 15533 # Put the nasty error message in config.log where it belongs 15534 echo "$OPENSSL_SSL_PKG_ERRORS" >&5 15535 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5 15537$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; } 15538if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then : 15539 $as_echo_n "(cached) " >&6 15540else 15541 ac_check_lib_save_LIBS=$LIBS 15542LIBS="-lssl $LIBS" 15543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15544/* end confdefs.h. */ 15545 15546/* Override any GCC internal prototype to avoid an error. 15547 Use char because int might match the return type of a GCC 15548 builtin and then its argument prototype would still apply. */ 15549#ifdef __cplusplus 15550extern "C" 15551#endif 15552char SSL_CTX_new (); 15553int 15554main () 15555{ 15556return SSL_CTX_new (); 15557 ; 15558 return 0; 15559} 15560_ACEOF 15561if ac_fn_c_try_link "$LINENO"; then : 15562 ac_cv_lib_ssl_SSL_CTX_new=yes 15563else 15564 ac_cv_lib_ssl_SSL_CTX_new=no 15565fi 15566rm -f core conftest.err conftest.$ac_objext \ 15567 conftest$ac_exeext conftest.$ac_ext 15568LIBS=$ac_check_lib_save_LIBS 15569fi 15570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 15571$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; } 15572if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then : 15573 15574 have_openssl_ssl="yes" 15575 OPENSSL_SSL_LIBS="-lssl" 15576 15577 15578fi 15579 15580 15581elif test $pkg_failed = untried; then 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15583$as_echo "no" >&6; } 15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5 15585$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; } 15586if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then : 15587 $as_echo_n "(cached) " >&6 15588else 15589 ac_check_lib_save_LIBS=$LIBS 15590LIBS="-lssl $LIBS" 15591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15592/* end confdefs.h. */ 15593 15594/* Override any GCC internal prototype to avoid an error. 15595 Use char because int might match the return type of a GCC 15596 builtin and then its argument prototype would still apply. */ 15597#ifdef __cplusplus 15598extern "C" 15599#endif 15600char SSL_CTX_new (); 15601int 15602main () 15603{ 15604return SSL_CTX_new (); 15605 ; 15606 return 0; 15607} 15608_ACEOF 15609if ac_fn_c_try_link "$LINENO"; then : 15610 ac_cv_lib_ssl_SSL_CTX_new=yes 15611else 15612 ac_cv_lib_ssl_SSL_CTX_new=no 15613fi 15614rm -f core conftest.err conftest.$ac_objext \ 15615 conftest$ac_exeext conftest.$ac_ext 15616LIBS=$ac_check_lib_save_LIBS 15617fi 15618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 15619$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; } 15620if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then : 15621 15622 have_openssl_ssl="yes" 15623 OPENSSL_SSL_LIBS="-lssl" 15624 15625 15626fi 15627 15628 15629else 15630 OPENSSL_SSL_CFLAGS=$pkg_cv_OPENSSL_SSL_CFLAGS 15631 OPENSSL_SSL_LIBS=$pkg_cv_OPENSSL_SSL_LIBS 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15633$as_echo "yes" >&6; } 15634 have_openssl_ssl="yes" 15635fi 15636 15637if test "${have_openssl_crypto}" = "yes"; then 15638 saved_CFLAGS="${CFLAGS}" 15639 saved_LIBS="${LIBS}" 15640 CFLAGS="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}" 15641 LIBS="${LIBS} ${OPENSSL_CRYPTO_LIBS}" 15642 for ac_func in EVP_CIPHER_CTX_set_key_length 15643do : 15644 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length" 15645if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes; then : 15646 cat >>confdefs.h <<_ACEOF 15647#define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1 15648_ACEOF 15649 15650fi 15651done 15652 15653 have_openssl_engine="yes" 15654 for ac_func in \ 15655 ENGINE_load_builtin_engines \ 15656 ENGINE_register_all_complete \ 15657 ENGINE_cleanup \ 15658 15659do : 15660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15661ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15662if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15663 cat >>confdefs.h <<_ACEOF 15664#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15665_ACEOF 15666 15667else 15668 have_openssl_engine="no"; break 15669 15670fi 15671done 15672 15673 15674 CFLAGS="${saved_CFLAGS}" 15675 LIBS="${saved_LIBS}" 15676fi 15677 15678 15679 15680have_polarssl_ssl="yes" 15681have_polarssl_crypto="yes" 15682if test -z "${POLARSSL_LIBS}"; then 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5 15684$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; } 15685if ${ac_cv_lib_polarssl_ssl_init+:} false; then : 15686 $as_echo_n "(cached) " >&6 15687else 15688 ac_check_lib_save_LIBS=$LIBS 15689LIBS="-lpolarssl ${PKCS11_HELPER_LIBS} 15690 $LIBS" 15691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15692/* end confdefs.h. */ 15693 15694/* Override any GCC internal prototype to avoid an error. 15695 Use char because int might match the return type of a GCC 15696 builtin and then its argument prototype would still apply. */ 15697#ifdef __cplusplus 15698extern "C" 15699#endif 15700char ssl_init (); 15701int 15702main () 15703{ 15704return ssl_init (); 15705 ; 15706 return 0; 15707} 15708_ACEOF 15709if ac_fn_c_try_link "$LINENO"; then : 15710 ac_cv_lib_polarssl_ssl_init=yes 15711else 15712 ac_cv_lib_polarssl_ssl_init=no 15713fi 15714rm -f core conftest.err conftest.$ac_objext \ 15715 conftest$ac_exeext conftest.$ac_ext 15716LIBS=$ac_check_lib_save_LIBS 15717fi 15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5 15719$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; } 15720if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then : 15721 POLARSSL_LIBS="-lpolarssl" 15722else 15723 15724 have_polarssl_ssl="no" 15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5 15726$as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; } 15727if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false; then : 15728 $as_echo_n "(cached) " >&6 15729else 15730 ac_check_lib_save_LIBS=$LIBS 15731LIBS="-lpolarssl ${PKCS11_HELPER_LIBS} 15732 $LIBS" 15733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15734/* end confdefs.h. */ 15735 15736/* Override any GCC internal prototype to avoid an error. 15737 Use char because int might match the return type of a GCC 15738 builtin and then its argument prototype would still apply. */ 15739#ifdef __cplusplus 15740extern "C" 15741#endif 15742char aes_crypt_cbc (); 15743int 15744main () 15745{ 15746return aes_crypt_cbc (); 15747 ; 15748 return 0; 15749} 15750_ACEOF 15751if ac_fn_c_try_link "$LINENO"; then : 15752 ac_cv_lib_polarssl_aes_crypt_cbc=yes 15753else 15754 ac_cv_lib_polarssl_aes_crypt_cbc=no 15755fi 15756rm -f core conftest.err conftest.$ac_objext \ 15757 conftest$ac_exeext conftest.$ac_ext 15758LIBS=$ac_check_lib_save_LIBS 15759fi 15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5 15761$as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; } 15762if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes; then : 15763 cat >>confdefs.h <<_ACEOF 15764#define HAVE_LIBPOLARSSL 1 15765_ACEOF 15766 15767 LIBS="-lpolarssl $LIBS" 15768 15769else 15770 have_polarssl_crypto="no" 15771fi 15772 15773 15774fi 15775 15776fi 15777 15778if test "${with_crypto_library}" = "polarssl" ; then 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5 15780$as_echo_n "checking polarssl version... " >&6; } 15781 old_CFLAGS="${CFLAGS}" 15782 CFLAGS="${POLARSSL_CFLAGS} ${CFLAGS}" 15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15784/* end confdefs.h. */ 15785 15786#include <polarssl/version.h> 15787 15788int 15789main () 15790{ 15791 15792#if POLARSSL_VERSION_NUMBER < 0x01020500 15793#error invalid version 15794#endif 15795 15796 15797 ; 15798 return 0; 15799} 15800_ACEOF 15801if ac_fn_c_try_compile "$LINENO"; then : 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15803$as_echo "ok" >&6; } 15804else 15805 as_fn_error $? "PolarSSL 1.2.5 or newer required" "$LINENO" 5 15806 15807fi 15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15809 15810 polarssl_with_pkcs11="no" 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813 15814#include <polarssl/config.h> 15815 15816int 15817main () 15818{ 15819 15820#ifndef POLARSSL_PKCS11_C 15821#error pkcs11 wrapper missing 15822#endif 15823 15824 15825 ; 15826 return 0; 15827} 15828_ACEOF 15829if ac_fn_c_try_compile "$LINENO"; then : 15830 polarssl_with_pkcs11="yes" 15831fi 15832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15833 CFLAGS="${old_CFLAGS}" 15834 15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl pkcs11 support" >&5 15836$as_echo_n "checking polarssl pkcs11 support... " >&6; } 15837 if test "${enable_pkcs11}" = "yes"; then 15838 if test "${polarssl_with_pkcs11}" = "yes"; then 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15840$as_echo "ok" >&6; } 15841 else 15842 as_fn_error $? "polarssl has no pkcs11 wrapper compiled in" "$LINENO" 5 15843 fi 15844 else 15845 if test "${polarssl_with_pkcs11}" != "yes"; then 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15847$as_echo "ok" >&6; } 15848 else 15849 as_fn_error $? "PolarSSL compiled with PKCS11, while OpenVPN is not" "$LINENO" 5 15850 fi 15851 fi 15852 15853fi 15854 15855 15856 15857have_lzo="yes" 15858if test -z "${LZO_LIBS}"; then 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5 15860$as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; } 15861if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863else 15864 ac_check_lib_save_LIBS=$LIBS 15865LIBS="-llzo2 $LIBS" 15866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15867/* end confdefs.h. */ 15868 15869/* Override any GCC internal prototype to avoid an error. 15870 Use char because int might match the return type of a GCC 15871 builtin and then its argument prototype would still apply. */ 15872#ifdef __cplusplus 15873extern "C" 15874#endif 15875char lzo1x_1_15_compress (); 15876int 15877main () 15878{ 15879return lzo1x_1_15_compress (); 15880 ; 15881 return 0; 15882} 15883_ACEOF 15884if ac_fn_c_try_link "$LINENO"; then : 15885 ac_cv_lib_lzo2_lzo1x_1_15_compress=yes 15886else 15887 ac_cv_lib_lzo2_lzo1x_1_15_compress=no 15888fi 15889rm -f core conftest.err conftest.$ac_objext \ 15890 conftest$ac_exeext conftest.$ac_ext 15891LIBS=$ac_check_lib_save_LIBS 15892fi 15893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5 15894$as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; } 15895if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes; then : 15896 LZO_LIBS="-llzo2" 15897else 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5 15899$as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; } 15900if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false; then : 15901 $as_echo_n "(cached) " >&6 15902else 15903 ac_check_lib_save_LIBS=$LIBS 15904LIBS="-llzo $LIBS" 15905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15906/* end confdefs.h. */ 15907 15908/* Override any GCC internal prototype to avoid an error. 15909 Use char because int might match the return type of a GCC 15910 builtin and then its argument prototype would still apply. */ 15911#ifdef __cplusplus 15912extern "C" 15913#endif 15914char lzo1x_1_15_compress (); 15915int 15916main () 15917{ 15918return lzo1x_1_15_compress (); 15919 ; 15920 return 0; 15921} 15922_ACEOF 15923if ac_fn_c_try_link "$LINENO"; then : 15924 ac_cv_lib_lzo_lzo1x_1_15_compress=yes 15925else 15926 ac_cv_lib_lzo_lzo1x_1_15_compress=no 15927fi 15928rm -f core conftest.err conftest.$ac_objext \ 15929 conftest$ac_exeext conftest.$ac_ext 15930LIBS=$ac_check_lib_save_LIBS 15931fi 15932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5 15933$as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; } 15934if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes; then : 15935 LZO_LIBS="-llzo" 15936else 15937 have_lzo="no" 15938 15939fi 15940 15941 15942fi 15943 15944fi 15945if test "${have_lzo}" = "yes"; then 15946 saved_CFLAGS="${CFLAGS}" 15947 CFLAGS="${CFLAGS} ${LZO_CFLAGS}" 15948 for ac_header in lzo/lzoutil.h 15949do : 15950 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default" 15951if test "x$ac_cv_header_lzo_lzoutil_h" = xyes; then : 15952 cat >>confdefs.h <<_ACEOF 15953#define HAVE_LZO_LZOUTIL_H 1 15954_ACEOF 15955 15956else 15957 for ac_header in lzoutil.h 15958do : 15959 ac_fn_c_check_header_mongrel "$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default" 15960if test "x$ac_cv_header_lzoutil_h" = xyes; then : 15961 cat >>confdefs.h <<_ACEOF 15962#define HAVE_LZOUTIL_H 1 15963_ACEOF 15964 15965else 15966 as_fn_error $? "lzoutil.h is missing" "$LINENO" 5 15967 15968fi 15969 15970done 15971 15972 15973fi 15974 15975done 15976 15977 for ac_header in lzo/lzo1x.h 15978do : 15979 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default" 15980if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then : 15981 cat >>confdefs.h <<_ACEOF 15982#define HAVE_LZO_LZO1X_H 1 15983_ACEOF 15984 15985else 15986 for ac_header in lzo1x.h 15987do : 15988 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default" 15989if test "x$ac_cv_header_lzo1x_h" = xyes; then : 15990 cat >>confdefs.h <<_ACEOF 15991#define HAVE_LZO1X_H 1 15992_ACEOF 15993 15994else 15995 as_fn_error $? "lzo1x.h is missing" "$LINENO" 5 15996 15997fi 15998 15999done 16000 16001 16002fi 16003 16004done 16005 16006 CFLAGS="${saved_CFLAGS}" 16007fi 16008 16009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5 16010$as_echo_n "checking git checkout... " >&6; } 16011GIT_CHECKOUT="no" 16012if test -n "${GIT}" -a -d "${srcdir}/.git"; then 16013 16014$as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h 16015 16016 GIT_CHECKOUT="yes" 16017fi 16018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5 16019$as_echo "${GIT_CHECKOUT}" >&6; } 16020 16021if test -n "${SP_PLATFORM_WINDOWS}"; then 16022 16023cat >>confdefs.h <<_ACEOF 16024#define PATH_SEPARATOR '\\\\' 16025_ACEOF 16026 #" 16027 16028cat >>confdefs.h <<_ACEOF 16029#define PATH_SEPARATOR_STR "\\\\" 16030_ACEOF 16031 #" 16032else 16033 16034cat >>confdefs.h <<_ACEOF 16035#define PATH_SEPARATOR '/' 16036_ACEOF 16037 16038 16039cat >>confdefs.h <<_ACEOF 16040#define PATH_SEPARATOR_STR "/" 16041_ACEOF 16042 16043fi 16044 16045if test "${enable_x509_alt_username}" = "yes"; then 16046 if test "${with_crypto_library}" = "polarssl" ; then 16047 as_fn_error $? "PolarSSL does not support the --x509-username-field feature" "$LINENO" 5 16048 fi 16049 16050 16051$as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h 16052 16053fi 16054 16055test "${ac_cv_header_sys_uio_h}" = "yes" && 16056$as_echo "#define HAVE_IOVEC 1" >>confdefs.h 16057 16058test "${enable_multi}" = "yes" && 16059$as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h 16060 16061test "${enable_server}" = "no" && 16062$as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h 16063 16064test "${enable_management}" = "yes" && 16065$as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h 16066 16067test "${enable_socks}" = "yes" && 16068$as_echo "#define ENABLE_SOCKS 1" >>confdefs.h 16069 16070test "${enable_http_proxy}" = "yes" && 16071$as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h 16072 16073test "${enable_multihome}" = "yes" && 16074$as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h 16075 16076test "${enable_debug}" = "yes" && 16077$as_echo "#define ENABLE_DEBUG 1" >>confdefs.h 16078 16079test "${enable_small}" = "yes" && 16080$as_echo "#define ENABLE_SMALL 1" >>confdefs.h 16081 16082test "${enable_fragment}" = "yes" && 16083$as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h 16084 16085test "${enable_port_share}" = "yes" && 16086$as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h 16087 16088test "${enable_def_auth}" = "yes" && 16089$as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h 16090 16091test "${enable_pf}" = "yes" && 16092$as_echo "#define ENABLE_PF 1" >>confdefs.h 16093 16094test "${enable_strict_options}" = "yes" && 16095$as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h 16096 16097test "${enable_password_save}" = "yes" && 16098$as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h 16099 16100test "${enable_systemd}" = "yes" && 16101$as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h 16102 16103 16104case "${with_crypto_library}" in 16105 openssl) 16106 have_crypto_crypto="${have_openssl_crypto}" 16107 have_crypto_ssl="${have_openssl_ssl}" 16108 CRYPTO_CRYPTO_CFLAGS="${OPENSSL_CRYPTO_CFLAGS}" 16109 CRYPTO_CRYPTO_LIBS="${OPENSSL_CRYPTO_LIBS}" 16110 CRYPTO_SSL_CFLAGS="${OPENSSL_SSL_CFLAGS}" 16111 CRYPTO_SSL_LIBS="${OPENSSL_SSL_LIBS}" 16112 16113$as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h 16114 16115 test "${have_openssl_engine}" = "yes" && 16116$as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h 16117 16118 ;; 16119 polarssl) 16120 have_crypto_crypto="${have_polarssl_crypto}" 16121 have_crypto_ssl="${have_polarssl_ssl}" 16122 CRYPTO_CRYPTO_CFLAGS="${POLARSSL_CFLAGS}" 16123 CRYPTO_CRYPTO_LIBS="${POLARSSL_LIBS}" 16124 16125$as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h 16126 16127 ;; 16128esac 16129 16130if test "${enable_ssl}" = "yes"; then 16131 test "${enable_crypto}" != "yes" && as_fn_error $? "crypto must be enabled for ssl" "$LINENO" 5 16132 test "${have_crypto_ssl}" != "yes" && as_fn_error $? "${with_ssl_library} ssl is required but missing" "$LINENO" 5 16133 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}" 16134 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}" 16135 16136$as_echo "#define ENABLE_SSL 1" >>confdefs.h 16137 16138fi 16139 16140if test "${enable_crypto}" = "yes"; then 16141 test "${have_crypto_crypto}" != "yes" && as_fn_error $? "${with_crypto_library} crypto is required but missing" "$LINENO" 5 16142 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}" 16143 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}" 16144 16145$as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h 16146 16147fi 16148 16149if test "${enable_plugins}" = "yes"; then 16150 OPTIONAL_DL_LIBS="${DL_LIBS}" 16151 16152$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h 16153 16154 test "${enable_eurephia}" = "yes" && 16155$as_echo "#define ENABLE_EUREPHIA 1" >>confdefs.h 16156 16157else 16158 enable_plugin_auth_pam="no" 16159 enable_plugin_down_root="no" 16160fi 16161 16162if test "${enable_iproute2}" = "yes"; then 16163 test -z "${IPROUTE}" && as_fn_error $? "ip utility is required but missing" "$LINENO" 5 16164 16165$as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h 16166 16167else 16168 if test "${WIN32}" != "yes"; then 16169 test -z "${ROUTE}" && as_fn_error $? "route utility is required but missing" "$LINENO" 5 16170 test -z "${IFCONFIG}" && as_fn_error $? "ifconfig utility is required but missing" "$LINENO" 5 16171 fi 16172fi 16173 16174if test "${enable_selinux}" = "yes"; then 16175 test -z "${SELINUX_LIBS}" && as_fn_error $? "libselinux required but missing" "$LINENO" 5 16176 OPTIONAL_SELINUX_LIBS="${SELINUX_LIBS}" 16177 16178$as_echo "#define ENABLE_SELINUX 1" >>confdefs.h 16179 16180fi 16181 16182if test "${enable_lzo}" = "yes"; then 16183 test "${have_lzo}" != "yes" && as_fn_error $? "lzo enabled but missing" "$LINENO" 5 16184 OPTIONAL_LZO_CFLAGS="${LZO_CFLAGS}" 16185 OPTIONAL_LZO_LIBS="${LZO_LIBS}" 16186 16187$as_echo "#define ENABLE_LZO 1" >>confdefs.h 16188 16189fi 16190if test "${enable_lzo_stub}" = "yes"; then 16191 test "${enable_lzo}" = "yes" && as_fn_error $? "Cannot have both lzo stub and lzo enabled" "$LINENO" 5 16192 16193$as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h 16194 16195 16196$as_echo "#define ENABLE_LZO 1" >>confdefs.h 16197 16198fi 16199 16200if test "${enable_pkcs11}" = "yes"; then 16201 test "${have_pkcs11_helper}" != "yes" && as_fn_error $? "PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5 16202 test "${enable_ssl}" != "yes" && as_fn_error $? "PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5 16203 OPTIONAL_PKCS11_HELPER_CFLAGS="${PKCS11_HELPER_CFLAGS}" 16204 OPTIONAL_PKCS11_HELPER_LIBS="${PKCS11_HELPER_LIBS}" 16205 16206$as_echo "#define ENABLE_PKCS11 1" >>confdefs.h 16207 16208fi 16209 16210if test "${enable_pedantic}" = "yes"; then 16211 enable_strict="yes" 16212 CFLAGS="${CFLAGS} -pedantic" 16213 test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi" 16214fi 16215if test "${enable_strict}" = "yes"; then 16216 CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function" 16217fi 16218 16219if test "${WIN32}" = "yes"; then 16220 test -z "${MAN2HTML}" && as_fn_error $? "man2html is required for win32" "$LINENO" 5 16221fi 16222 16223if test "${enable_plugin_auth_pam}" = "yes"; then 16224 PLUGIN_AUTH_PAM_CFLAGS="${LIBPAM_CFLAGS}" 16225 if test "${enable_pam_dlopen}" = "yes"; then 16226 16227$as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h 16228 16229 PLUGIN_AUTH_PAM_LIBS="${DL_LIBS}" 16230 else 16231 test -z "${LIBPAM_LIBS}" && as_fn_error $? "libpam required but missing" "$LINENO" 5 16232 PLUGIN_AUTH_PAM_LIBS="${LIBPAM_LIBS}" 16233 fi 16234fi 16235 16236CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`" 16237 16238cat >>confdefs.h <<_ACEOF 16239#define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`" 16240_ACEOF 16241 16242 16243TAP_WIN_COMPONENT_ID="tap0901" 16244TAP_WIN_MIN_MAJOR="9" 16245TAP_WIN_MIN_MINOR="9" 16246 16247cat >>confdefs.h <<_ACEOF 16248#define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}" 16249_ACEOF 16250 16251 16252cat >>confdefs.h <<_ACEOF 16253#define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR} 16254_ACEOF 16255 16256 16257cat >>confdefs.h <<_ACEOF 16258#define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR} 16259_ACEOF 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 if test "${WIN32}" = "yes"; then 16278 WIN32_TRUE= 16279 WIN32_FALSE='#' 16280else 16281 WIN32_TRUE='#' 16282 WIN32_FALSE= 16283fi 16284 16285 if test "${GIT_CHECKOUT}" = "yes"; then 16286 GIT_CHECKOUT_TRUE= 16287 GIT_CHECKOUT_FALSE='#' 16288else 16289 GIT_CHECKOUT_TRUE='#' 16290 GIT_CHECKOUT_FALSE= 16291fi 16292 16293 if test "${enable_plugin_auth_pam}" = "yes"; then 16294 ENABLE_PLUGIN_AUTH_PAM_TRUE= 16295 ENABLE_PLUGIN_AUTH_PAM_FALSE='#' 16296else 16297 ENABLE_PLUGIN_AUTH_PAM_TRUE='#' 16298 ENABLE_PLUGIN_AUTH_PAM_FALSE= 16299fi 16300 16301 if test "${enable_plugin_down_root}" = "yes"; then 16302 ENABLE_PLUGIN_DOWN_ROOT_TRUE= 16303 ENABLE_PLUGIN_DOWN_ROOT_FALSE='#' 16304else 16305 ENABLE_PLUGIN_DOWN_ROOT_TRUE='#' 16306 ENABLE_PLUGIN_DOWN_ROOT_FALSE= 16307fi 16308 16309 16310plugindir="${with_plugindir}" 16311sampledir="\$(docdir)/sample" 16312 16313 16314 16315ac_config_files="$ac_config_files version.sh Makefile build/Makefile build/msvc/Makefile build/msvc/msvc-generate/Makefile distro/Makefile distro/rpm/Makefile distro/rpm/openvpn.spec include/Makefile src/Makefile src/compat/Makefile src/openvpn/Makefile src/openvpnserv/Makefile src/plugins/Makefile src/plugins/auth-pam/Makefile src/plugins/down-root/Makefile tests/Makefile sample/Makefile doc/Makefile" 16316 16317ac_config_files="$ac_config_files tests/t_client.sh" 16318 16319cat >confcache <<\_ACEOF 16320# This file is a shell script that caches the results of configure 16321# tests run on this system so they can be shared between configure 16322# scripts and configure runs, see configure's option --config-cache. 16323# It is not useful on other systems. If it contains results you don't 16324# want to keep, you may remove or edit it. 16325# 16326# config.status only pays attention to the cache file if you give it 16327# the --recheck option to rerun configure. 16328# 16329# `ac_cv_env_foo' variables (set or unset) will be overridden when 16330# loading this file, other *unset* `ac_cv_foo' will be assigned the 16331# following values. 16332 16333_ACEOF 16334 16335# The following way of writing the cache mishandles newlines in values, 16336# but we know of no workaround that is simple, portable, and efficient. 16337# So, we kill variables containing newlines. 16338# Ultrix sh set writes to stderr and can't be redirected directly, 16339# and sets the high bit in the cache file unless we assign to the vars. 16340( 16341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16342 eval ac_val=\$$ac_var 16343 case $ac_val in #( 16344 *${as_nl}*) 16345 case $ac_var in #( 16346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16347$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16348 esac 16349 case $ac_var in #( 16350 _ | IFS | as_nl) ;; #( 16351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16352 *) { eval $ac_var=; unset $ac_var;} ;; 16353 esac ;; 16354 esac 16355 done 16356 16357 (set) 2>&1 | 16358 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16359 *${as_nl}ac_space=\ *) 16360 # `set' does not quote correctly, so add quotes: double-quote 16361 # substitution turns \\\\ into \\, and sed turns \\ into \. 16362 sed -n \ 16363 "s/'/'\\\\''/g; 16364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16365 ;; #( 16366 *) 16367 # `set' quotes correctly as required by POSIX, so do not add quotes. 16368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16369 ;; 16370 esac | 16371 sort 16372) | 16373 sed ' 16374 /^ac_cv_env_/b end 16375 t clear 16376 :clear 16377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16378 t end 16379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16380 :end' >>confcache 16381if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16382 if test -w "$cache_file"; then 16383 if test "x$cache_file" != "x/dev/null"; then 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16385$as_echo "$as_me: updating cache $cache_file" >&6;} 16386 if test ! -f "$cache_file" || test -h "$cache_file"; then 16387 cat confcache >"$cache_file" 16388 else 16389 case $cache_file in #( 16390 */* | ?:*) 16391 mv -f confcache "$cache_file"$$ && 16392 mv -f "$cache_file"$$ "$cache_file" ;; #( 16393 *) 16394 mv -f confcache "$cache_file" ;; 16395 esac 16396 fi 16397 fi 16398 else 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16400$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16401 fi 16402fi 16403rm -f confcache 16404 16405test "x$prefix" = xNONE && prefix=$ac_default_prefix 16406# Let make expand exec_prefix. 16407test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16408 16409DEFS=-DHAVE_CONFIG_H 16410 16411ac_libobjs= 16412ac_ltlibobjs= 16413U= 16414for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16415 # 1. Remove the extension, and $U if already installed. 16416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16419 # will be set to the directory where LIBOBJS objects are built. 16420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16422done 16423LIBOBJS=$ac_libobjs 16424 16425LTLIBOBJS=$ac_ltlibobjs 16426 16427 16428 if test -n "$EXEEXT"; then 16429 am__EXEEXT_TRUE= 16430 am__EXEEXT_FALSE='#' 16431else 16432 am__EXEEXT_TRUE='#' 16433 am__EXEEXT_FALSE= 16434fi 16435 16436if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16437 as_fn_error $? "conditional \"AMDEP\" was never defined. 16438Usually this means the macro was only invoked conditionally." "$LINENO" 5 16439fi 16440if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16441 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16442Usually this means the macro was only invoked conditionally." "$LINENO" 5 16443fi 16444if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then 16445 as_fn_error $? "conditional \"WIN32\" was never defined. 16446Usually this means the macro was only invoked conditionally." "$LINENO" 5 16447fi 16448if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then 16449 as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined. 16450Usually this means the macro was only invoked conditionally." "$LINENO" 5 16451fi 16452if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then 16453 as_fn_error $? "conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined. 16454Usually this means the macro was only invoked conditionally." "$LINENO" 5 16455fi 16456if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then 16457 as_fn_error $? "conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined. 16458Usually this means the macro was only invoked conditionally." "$LINENO" 5 16459fi 16460 16461: "${CONFIG_STATUS=./config.status}" 16462ac_write_fail=0 16463ac_clean_files_save=$ac_clean_files 16464ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16465{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16466$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16467as_write_fail=0 16468cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16469#! $SHELL 16470# Generated by $as_me. 16471# Run this file to recreate the current configuration. 16472# Compiler output produced by configure, useful for debugging 16473# configure, is in config.log if it exists. 16474 16475debug=false 16476ac_cs_recheck=false 16477ac_cs_silent=false 16478 16479SHELL=\${CONFIG_SHELL-$SHELL} 16480export SHELL 16481_ASEOF 16482cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16483## -------------------- ## 16484## M4sh Initialization. ## 16485## -------------------- ## 16486 16487# Be more Bourne compatible 16488DUALCASE=1; export DUALCASE # for MKS sh 16489if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16490 emulate sh 16491 NULLCMD=: 16492 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16493 # is contrary to our usage. Disable this feature. 16494 alias -g '${1+"$@"}'='"$@"' 16495 setopt NO_GLOB_SUBST 16496else 16497 case `(set -o) 2>/dev/null` in #( 16498 *posix*) : 16499 set -o posix ;; #( 16500 *) : 16501 ;; 16502esac 16503fi 16504 16505 16506as_nl=' 16507' 16508export as_nl 16509# Printing a long string crashes Solaris 7 /usr/bin/printf. 16510as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16511as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16512as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16513# Prefer a ksh shell builtin over an external printf program on Solaris, 16514# but without wasting forks for bash or zsh. 16515if test -z "$BASH_VERSION$ZSH_VERSION" \ 16516 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16517 as_echo='print -r --' 16518 as_echo_n='print -rn --' 16519elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16520 as_echo='printf %s\n' 16521 as_echo_n='printf %s' 16522else 16523 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16524 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16525 as_echo_n='/usr/ucb/echo -n' 16526 else 16527 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16528 as_echo_n_body='eval 16529 arg=$1; 16530 case $arg in #( 16531 *"$as_nl"*) 16532 expr "X$arg" : "X\\(.*\\)$as_nl"; 16533 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16534 esac; 16535 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16536 ' 16537 export as_echo_n_body 16538 as_echo_n='sh -c $as_echo_n_body as_echo' 16539 fi 16540 export as_echo_body 16541 as_echo='sh -c $as_echo_body as_echo' 16542fi 16543 16544# The user is always right. 16545if test "${PATH_SEPARATOR+set}" != set; then 16546 PATH_SEPARATOR=: 16547 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16548 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16549 PATH_SEPARATOR=';' 16550 } 16551fi 16552 16553 16554# IFS 16555# We need space, tab and new line, in precisely that order. Quoting is 16556# there to prevent editors from complaining about space-tab. 16557# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16558# splitting by setting IFS to empty value.) 16559IFS=" "" $as_nl" 16560 16561# Find who we are. Look in the path if we contain no directory separator. 16562as_myself= 16563case $0 in #(( 16564 *[\\/]* ) as_myself=$0 ;; 16565 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16566for as_dir in $PATH 16567do 16568 IFS=$as_save_IFS 16569 test -z "$as_dir" && as_dir=. 16570 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16571 done 16572IFS=$as_save_IFS 16573 16574 ;; 16575esac 16576# We did not find ourselves, most probably we were run as `sh COMMAND' 16577# in which case we are not to be found in the path. 16578if test "x$as_myself" = x; then 16579 as_myself=$0 16580fi 16581if test ! -f "$as_myself"; then 16582 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16583 exit 1 16584fi 16585 16586# Unset variables that we do not need and which cause bugs (e.g. in 16587# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16588# suppresses any "Segmentation fault" message there. '((' could 16589# trigger a bug in pdksh 5.2.14. 16590for as_var in BASH_ENV ENV MAIL MAILPATH 16591do eval test x\${$as_var+set} = xset \ 16592 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16593done 16594PS1='$ ' 16595PS2='> ' 16596PS4='+ ' 16597 16598# NLS nuisances. 16599LC_ALL=C 16600export LC_ALL 16601LANGUAGE=C 16602export LANGUAGE 16603 16604# CDPATH. 16605(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16606 16607 16608# as_fn_error STATUS ERROR [LINENO LOG_FD] 16609# ---------------------------------------- 16610# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16611# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16612# script with STATUS, using 1 if that was 0. 16613as_fn_error () 16614{ 16615 as_status=$1; test $as_status -eq 0 && as_status=1 16616 if test "$4"; then 16617 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16618 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16619 fi 16620 $as_echo "$as_me: error: $2" >&2 16621 as_fn_exit $as_status 16622} # as_fn_error 16623 16624 16625# as_fn_set_status STATUS 16626# ----------------------- 16627# Set $? to STATUS, without forking. 16628as_fn_set_status () 16629{ 16630 return $1 16631} # as_fn_set_status 16632 16633# as_fn_exit STATUS 16634# ----------------- 16635# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16636as_fn_exit () 16637{ 16638 set +e 16639 as_fn_set_status $1 16640 exit $1 16641} # as_fn_exit 16642 16643# as_fn_unset ax_cv_socklen_t_equiv 16644# --------------------------------- 16645# Portably unset VAR. 16646as_fn_unset () 16647{ 16648 { eval $1=; unset $1;} 16649} 16650as_unset=as_fn_unset 16651# as_fn_append ax_cv_socklen_t_equiv VALUE 16652# ---------------------------------------- 16653# Append the text in VALUE to the end of the definition contained in VAR. Take 16654# advantage of any shell optimizations that allow amortized linear growth over 16655# repeated appends, instead of the typical quadratic growth present in naive 16656# implementations. 16657if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16658 eval 'as_fn_append () 16659 { 16660 eval $1+=\$2 16661 }' 16662else 16663 as_fn_append () 16664 { 16665 eval $1=\$$1\$2 16666 } 16667fi # as_fn_append 16668 16669# as_fn_arith ARG... 16670# ------------------ 16671# Perform arithmetic evaluation on the ARGs, and store the result in the 16672# global $as_val. Take advantage of shells that can avoid forks. The arguments 16673# must be portable across $(()) and expr. 16674if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16675 eval 'as_fn_arith () 16676 { 16677 as_val=$(( $* )) 16678 }' 16679else 16680 as_fn_arith () 16681 { 16682 as_val=`expr "$@" || test $? -eq 1` 16683 } 16684fi # as_fn_arith 16685 16686 16687if expr a : '\(a\)' >/dev/null 2>&1 && 16688 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16689 as_expr=expr 16690else 16691 as_expr=false 16692fi 16693 16694if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16695 as_basename=basename 16696else 16697 as_basename=false 16698fi 16699 16700if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16701 as_dirname=dirname 16702else 16703 as_dirname=false 16704fi 16705 16706as_me=`$as_basename -- "$0" || 16707$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16708 X"$0" : 'X\(//\)$' \| \ 16709 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16710$as_echo X/"$0" | 16711 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16712 s//\1/ 16713 q 16714 } 16715 /^X\/\(\/\/\)$/{ 16716 s//\1/ 16717 q 16718 } 16719 /^X\/\(\/\).*/{ 16720 s//\1/ 16721 q 16722 } 16723 s/.*/./; q'` 16724 16725# Avoid depending upon Character Ranges. 16726as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16727as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16728as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16729as_cr_digits='0123456789' 16730as_cr_alnum=$as_cr_Letters$as_cr_digits 16731 16732ECHO_C= ECHO_N= ECHO_T= 16733case `echo -n x` in #((((( 16734-n*) 16735 case `echo 'xy\c'` in 16736 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16737 xy) ECHO_C='\c';; 16738 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16739 ECHO_T=' ';; 16740 esac;; 16741*) 16742 ECHO_N='-n';; 16743esac 16744 16745rm -f conf$$ conf$$.exe conf$$.file 16746if test -d conf$$.dir; then 16747 rm -f conf$$.dir/conf$$.file 16748else 16749 rm -f conf$$.dir 16750 mkdir conf$$.dir 2>/dev/null 16751fi 16752if (echo >conf$$.file) 2>/dev/null; then 16753 if ln -s conf$$.file conf$$ 2>/dev/null; then 16754 as_ln_s='ln -s' 16755 # ... but there are two gotchas: 16756 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16757 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16758 # In both cases, we have to default to `cp -pR'. 16759 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16760 as_ln_s='cp -pR' 16761 elif ln conf$$.file conf$$ 2>/dev/null; then 16762 as_ln_s=ln 16763 else 16764 as_ln_s='cp -pR' 16765 fi 16766else 16767 as_ln_s='cp -pR' 16768fi 16769rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16770rmdir conf$$.dir 2>/dev/null 16771 16772 16773# as_fn_mkdir_p 16774# ------------- 16775# Create "$as_dir" as a directory, including parents if necessary. 16776as_fn_mkdir_p () 16777{ 16778 16779 case $as_dir in #( 16780 -*) as_dir=./$as_dir;; 16781 esac 16782 test -d "$as_dir" || eval $as_mkdir_p || { 16783 as_dirs= 16784 while :; do 16785 case $as_dir in #( 16786 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16787 *) as_qdir=$as_dir;; 16788 esac 16789 as_dirs="'$as_qdir' $as_dirs" 16790 as_dir=`$as_dirname -- "$as_dir" || 16791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16792 X"$as_dir" : 'X\(//\)[^/]' \| \ 16793 X"$as_dir" : 'X\(//\)$' \| \ 16794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16795$as_echo X"$as_dir" | 16796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16797 s//\1/ 16798 q 16799 } 16800 /^X\(\/\/\)[^/].*/{ 16801 s//\1/ 16802 q 16803 } 16804 /^X\(\/\/\)$/{ 16805 s//\1/ 16806 q 16807 } 16808 /^X\(\/\).*/{ 16809 s//\1/ 16810 q 16811 } 16812 s/.*/./; q'` 16813 test -d "$as_dir" && break 16814 done 16815 test -z "$as_dirs" || eval "mkdir $as_dirs" 16816 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16817 16818 16819} # as_fn_mkdir_p 16820if mkdir -p . 2>/dev/null; then 16821 as_mkdir_p='mkdir -p "$as_dir"' 16822else 16823 test -d ./-p && rmdir ./-p 16824 as_mkdir_p=false 16825fi 16826 16827 16828# as_fn_executable_p FILE 16829# ----------------------- 16830# Test if FILE is an executable regular file. 16831as_fn_executable_p () 16832{ 16833 test -f "$1" && test -x "$1" 16834} # as_fn_executable_p 16835as_test_x='test -x' 16836as_executable_p=as_fn_executable_p 16837 16838# Sed expression to map a string onto a valid CPP name. 16839as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16840 16841# Sed expression to map a string onto a valid variable name. 16842as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16843 16844 16845exec 6>&1 16846## ----------------------------------- ## 16847## Main body of $CONFIG_STATUS script. ## 16848## ----------------------------------- ## 16849_ASEOF 16850test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16851 16852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16853# Save the log message, to keep $0 and so on meaningful, and to 16854# report actual input values of CONFIG_FILES etc. instead of their 16855# values after options handling. 16856ac_log=" 16857This file was extended by OpenVPN $as_me 2.3.1, which was 16858generated by GNU Autoconf 2.69. Invocation command line was 16859 16860 CONFIG_FILES = $CONFIG_FILES 16861 CONFIG_HEADERS = $CONFIG_HEADERS 16862 CONFIG_LINKS = $CONFIG_LINKS 16863 CONFIG_COMMANDS = $CONFIG_COMMANDS 16864 $ $0 $@ 16865 16866on `(hostname || uname -n) 2>/dev/null | sed 1q` 16867" 16868 16869_ACEOF 16870 16871case $ac_config_files in *" 16872"*) set x $ac_config_files; shift; ac_config_files=$*;; 16873esac 16874 16875case $ac_config_headers in *" 16876"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16877esac 16878 16879 16880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16881# Files that config.status was made for. 16882config_files="$ac_config_files" 16883config_headers="$ac_config_headers" 16884config_commands="$ac_config_commands" 16885 16886_ACEOF 16887 16888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16889ac_cs_usage="\ 16890\`$as_me' instantiates files and other configuration actions 16891from templates according to the current configuration. Unless the files 16892and actions are specified as TAGs, all are instantiated by default. 16893 16894Usage: $0 [OPTION]... [TAG]... 16895 16896 -h, --help print this help, then exit 16897 -V, --version print version number and configuration settings, then exit 16898 --config print configuration, then exit 16899 -q, --quiet, --silent 16900 do not print progress messages 16901 -d, --debug don't remove temporary files 16902 --recheck update $as_me by reconfiguring in the same conditions 16903 --file=FILE[:TEMPLATE] 16904 instantiate the configuration file FILE 16905 --header=FILE[:TEMPLATE] 16906 instantiate the configuration header FILE 16907 16908Configuration files: 16909$config_files 16910 16911Configuration headers: 16912$config_headers 16913 16914Configuration commands: 16915$config_commands 16916 16917Report bugs to <openvpn-users@lists.sourceforge.net>." 16918 16919_ACEOF 16920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16921ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16922ac_cs_version="\\ 16923OpenVPN config.status 2.3.1 16924configured by $0, generated by GNU Autoconf 2.69, 16925 with options \\"\$ac_cs_config\\" 16926 16927Copyright (C) 2012 Free Software Foundation, Inc. 16928This config.status script is free software; the Free Software Foundation 16929gives unlimited permission to copy, distribute and modify it." 16930 16931ac_pwd='$ac_pwd' 16932srcdir='$srcdir' 16933INSTALL='$INSTALL' 16934MKDIR_P='$MKDIR_P' 16935AWK='$AWK' 16936test -n "\$AWK" || AWK=awk 16937_ACEOF 16938 16939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16940# The default lists apply if the user does not specify any file. 16941ac_need_defaults=: 16942while test $# != 0 16943do 16944 case $1 in 16945 --*=?*) 16946 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16948 ac_shift=: 16949 ;; 16950 --*=) 16951 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16952 ac_optarg= 16953 ac_shift=: 16954 ;; 16955 *) 16956 ac_option=$1 16957 ac_optarg=$2 16958 ac_shift=shift 16959 ;; 16960 esac 16961 16962 case $ac_option in 16963 # Handling of the options. 16964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16965 ac_cs_recheck=: ;; 16966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16967 $as_echo "$ac_cs_version"; exit ;; 16968 --config | --confi | --conf | --con | --co | --c ) 16969 $as_echo "$ac_cs_config"; exit ;; 16970 --debug | --debu | --deb | --de | --d | -d ) 16971 debug=: ;; 16972 --file | --fil | --fi | --f ) 16973 $ac_shift 16974 case $ac_optarg in 16975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16976 '') as_fn_error $? "missing file argument" ;; 16977 esac 16978 as_fn_append CONFIG_FILES " '$ac_optarg'" 16979 ac_need_defaults=false;; 16980 --header | --heade | --head | --hea ) 16981 $ac_shift 16982 case $ac_optarg in 16983 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16984 esac 16985 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16986 ac_need_defaults=false;; 16987 --he | --h) 16988 # Conflict between --help and --header 16989 as_fn_error $? "ambiguous option: \`$1' 16990Try \`$0 --help' for more information.";; 16991 --help | --hel | -h ) 16992 $as_echo "$ac_cs_usage"; exit ;; 16993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16994 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16995 ac_cs_silent=: ;; 16996 16997 # This is an error. 16998 -*) as_fn_error $? "unrecognized option: \`$1' 16999Try \`$0 --help' for more information." ;; 17000 17001 *) as_fn_append ac_config_targets " $1" 17002 ac_need_defaults=false ;; 17003 17004 esac 17005 shift 17006done 17007 17008ac_configure_extra_args= 17009 17010if $ac_cs_silent; then 17011 exec 6>/dev/null 17012 ac_configure_extra_args="$ac_configure_extra_args --silent" 17013fi 17014 17015_ACEOF 17016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17017if \$ac_cs_recheck; then 17018 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17019 shift 17020 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17021 CONFIG_SHELL='$SHELL' 17022 export CONFIG_SHELL 17023 exec "\$@" 17024fi 17025 17026_ACEOF 17027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17028exec 5>>config.log 17029{ 17030 echo 17031 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17032## Running $as_me. ## 17033_ASBOX 17034 $as_echo "$ac_log" 17035} >&5 17036 17037_ACEOF 17038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17039# 17040# INIT-COMMANDS 17041# 17042AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17043 17044 17045# The HP-UX ksh and POSIX shell print the target directory to stdout 17046# if CDPATH is set. 17047(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17048 17049sed_quote_subst='$sed_quote_subst' 17050double_quote_subst='$double_quote_subst' 17051delay_variable_subst='$delay_variable_subst' 17052macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17053macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17054AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17055DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17056OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17057enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17058enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17059pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17060enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17061SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17062ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17063PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17064host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17065host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17066host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17067build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17068build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17069build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17070SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17071Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17072GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17073EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17074FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17075LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17076NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17077LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17078max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17079ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17080exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17081lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17082lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17083lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17084lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17085lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17086reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17087reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17088deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17089file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17090file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17091want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17092sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17093AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17094AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17095archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17096STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17097RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17098old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17099old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17100old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17101lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17102CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17103CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17104compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17105GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17106lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17107lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17108lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17109lt_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"`' 17110nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17111lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17112objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17113MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17114lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17115lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17116lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17117lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17118lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17119need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17120MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17121DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17122NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17123LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17124OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17125OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17126libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17127shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17128extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17129archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17130enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17131export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17132whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17133compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17134old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17135old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17136archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17137archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17138module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17139module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17140with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17141allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17142no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17143hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17144hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17145hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17146hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17147hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17148hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17149hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17150inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17151link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17152always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17153export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17154exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17155include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17156prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17157postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17158file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17159variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17160need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17161need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17162version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17163runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17164shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17165shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17166libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17167library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17168soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17169install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17170postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17171postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17172finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17173finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17174hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17175sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17176sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17177hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17178enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17179enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17180enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17181old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17182striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17183LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 17184reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 17185reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 17186old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 17187compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 17188GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 17189lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 17190lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 17191lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 17192lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 17193lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 17194archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 17195enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 17196export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17197whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17198compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 17199old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 17200old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 17201archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 17202archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 17203module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 17204module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 17205with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 17206allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 17207no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 17208hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17209hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 17210hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 17211hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 17212hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 17213hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 17214hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 17215inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 17216link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 17217always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 17218export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 17219exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 17220include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 17221prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 17222postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 17223file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 17224hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 17225 17226LTCC='$LTCC' 17227LTCFLAGS='$LTCFLAGS' 17228compiler='$compiler_DEFAULT' 17229 17230# A function that is used when there is no print builtin or printf. 17231func_fallback_echo () 17232{ 17233 eval 'cat <<_LTECHO_EOF 17234\$1 17235_LTECHO_EOF' 17236} 17237 17238# Quote evaled strings. 17239for var in AS \ 17240DLLTOOL \ 17241OBJDUMP \ 17242SHELL \ 17243ECHO \ 17244PATH_SEPARATOR \ 17245SED \ 17246GREP \ 17247EGREP \ 17248FGREP \ 17249LD \ 17250NM \ 17251LN_S \ 17252lt_SP2NL \ 17253lt_NL2SP \ 17254reload_flag \ 17255deplibs_check_method \ 17256file_magic_cmd \ 17257file_magic_glob \ 17258want_nocaseglob \ 17259sharedlib_from_linklib_cmd \ 17260AR \ 17261AR_FLAGS \ 17262archiver_list_spec \ 17263STRIP \ 17264RANLIB \ 17265CC \ 17266CFLAGS \ 17267compiler \ 17268lt_cv_sys_global_symbol_pipe \ 17269lt_cv_sys_global_symbol_to_cdecl \ 17270lt_cv_sys_global_symbol_to_c_name_address \ 17271lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17272nm_file_list_spec \ 17273lt_prog_compiler_no_builtin_flag \ 17274lt_prog_compiler_pic \ 17275lt_prog_compiler_wl \ 17276lt_prog_compiler_static \ 17277lt_cv_prog_compiler_c_o \ 17278need_locks \ 17279MANIFEST_TOOL \ 17280DSYMUTIL \ 17281NMEDIT \ 17282LIPO \ 17283OTOOL \ 17284OTOOL64 \ 17285shrext_cmds \ 17286export_dynamic_flag_spec \ 17287whole_archive_flag_spec \ 17288compiler_needs_object \ 17289with_gnu_ld \ 17290allow_undefined_flag \ 17291no_undefined_flag \ 17292hardcode_libdir_flag_spec \ 17293hardcode_libdir_separator \ 17294exclude_expsyms \ 17295include_expsyms \ 17296file_list_spec \ 17297variables_saved_for_relink \ 17298libname_spec \ 17299library_names_spec \ 17300soname_spec \ 17301install_override_mode \ 17302finish_eval \ 17303old_striplib \ 17304striplib \ 17305LD_RC \ 17306reload_flag_RC \ 17307compiler_RC \ 17308lt_prog_compiler_no_builtin_flag_RC \ 17309lt_prog_compiler_pic_RC \ 17310lt_prog_compiler_wl_RC \ 17311lt_prog_compiler_static_RC \ 17312lt_cv_prog_compiler_c_o_RC \ 17313export_dynamic_flag_spec_RC \ 17314whole_archive_flag_spec_RC \ 17315compiler_needs_object_RC \ 17316with_gnu_ld_RC \ 17317allow_undefined_flag_RC \ 17318no_undefined_flag_RC \ 17319hardcode_libdir_flag_spec_RC \ 17320hardcode_libdir_separator_RC \ 17321exclude_expsyms_RC \ 17322include_expsyms_RC \ 17323file_list_spec_RC; do 17324 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17325 *[\\\\\\\`\\"\\\$]*) 17326 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17327 ;; 17328 *) 17329 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17330 ;; 17331 esac 17332done 17333 17334# Double-quote double-evaled strings. 17335for var in reload_cmds \ 17336old_postinstall_cmds \ 17337old_postuninstall_cmds \ 17338old_archive_cmds \ 17339extract_expsyms_cmds \ 17340old_archive_from_new_cmds \ 17341old_archive_from_expsyms_cmds \ 17342archive_cmds \ 17343archive_expsym_cmds \ 17344module_cmds \ 17345module_expsym_cmds \ 17346export_symbols_cmds \ 17347prelink_cmds \ 17348postlink_cmds \ 17349postinstall_cmds \ 17350postuninstall_cmds \ 17351finish_cmds \ 17352sys_lib_search_path_spec \ 17353sys_lib_dlsearch_path_spec \ 17354reload_cmds_RC \ 17355old_archive_cmds_RC \ 17356old_archive_from_new_cmds_RC \ 17357old_archive_from_expsyms_cmds_RC \ 17358archive_cmds_RC \ 17359archive_expsym_cmds_RC \ 17360module_cmds_RC \ 17361module_expsym_cmds_RC \ 17362export_symbols_cmds_RC \ 17363prelink_cmds_RC \ 17364postlink_cmds_RC; do 17365 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17366 *[\\\\\\\`\\"\\\$]*) 17367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17368 ;; 17369 *) 17370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17371 ;; 17372 esac 17373done 17374 17375ac_aux_dir='$ac_aux_dir' 17376xsi_shell='$xsi_shell' 17377lt_shell_append='$lt_shell_append' 17378 17379# See if we are running on zsh, and set the options which allow our 17380# commands through without removal of \ escapes INIT. 17381if test -n "\${ZSH_VERSION+set}" ; then 17382 setopt NO_GLOB_SUBST 17383fi 17384 17385 17386 PACKAGE='$PACKAGE' 17387 VERSION='$VERSION' 17388 TIMESTAMP='$TIMESTAMP' 17389 RM='$RM' 17390 ofile='$ofile' 17391 17392 17393 17394 17395 17396 17397_ACEOF 17398 17399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17400 17401# Handling of arguments. 17402for ac_config_target in $ac_config_targets 17403do 17404 case $ac_config_target in 17405 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17406 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17407 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17408 "version.sh") CONFIG_FILES="$CONFIG_FILES version.sh" ;; 17409 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17410 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 17411 "build/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/Makefile" ;; 17412 "build/msvc/msvc-generate/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;; 17413 "distro/Makefile") CONFIG_FILES="$CONFIG_FILES distro/Makefile" ;; 17414 "distro/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES distro/rpm/Makefile" ;; 17415 "distro/rpm/openvpn.spec") CONFIG_FILES="$CONFIG_FILES distro/rpm/openvpn.spec" ;; 17416 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 17417 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17418 "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;; 17419 "src/openvpn/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpn/Makefile" ;; 17420 "src/openvpnserv/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpnserv/Makefile" ;; 17421 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; 17422 "src/plugins/auth-pam/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;; 17423 "src/plugins/down-root/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/down-root/Makefile" ;; 17424 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 17425 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;; 17426 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17427 "tests/t_client.sh") CONFIG_FILES="$CONFIG_FILES tests/t_client.sh" ;; 17428 17429 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17430 esac 17431done 17432 17433 17434# If the user did not use the arguments to specify the items to instantiate, 17435# then the envvar interface is used. Set only those that are not. 17436# We use the long form for the default assignment because of an extremely 17437# bizarre bug on SunOS 4.1.3. 17438if $ac_need_defaults; then 17439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17441 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17442fi 17443 17444# Have a temporary directory for convenience. Make it in the build tree 17445# simply because there is no reason against having it here, and in addition, 17446# creating and moving files from /tmp can sometimes cause problems. 17447# Hook for its removal unless debugging. 17448# Note that there is a small window in which the directory will not be cleaned: 17449# after its creation but before its name has been assigned to `$tmp'. 17450$debug || 17451{ 17452 tmp= ac_tmp= 17453 trap 'exit_status=$? 17454 : "${ac_tmp:=$tmp}" 17455 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17456' 0 17457 trap 'as_fn_exit 1' 1 2 13 15 17458} 17459# Create a (secure) tmp directory for tmp files. 17460 17461{ 17462 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17463 test -d "$tmp" 17464} || 17465{ 17466 tmp=./conf$$-$RANDOM 17467 (umask 077 && mkdir "$tmp") 17468} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17469ac_tmp=$tmp 17470 17471# Set up the scripts for CONFIG_FILES section. 17472# No need to generate them if there are no CONFIG_FILES. 17473# This happens for instance with `./config.status config.h'. 17474if test -n "$CONFIG_FILES"; then 17475 17476 17477ac_cr=`echo X | tr X '\015'` 17478# On cygwin, bash can eat \r inside `` if the user requested igncr. 17479# But we know of no other shell where ac_cr would be empty at this 17480# point, so we can use a bashism as a fallback. 17481if test "x$ac_cr" = x; then 17482 eval ac_cr=\$\'\\r\' 17483fi 17484ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17485if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17486 ac_cs_awk_cr='\\r' 17487else 17488 ac_cs_awk_cr=$ac_cr 17489fi 17490 17491echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17492_ACEOF 17493 17494 17495{ 17496 echo "cat >conf$$subs.awk <<_ACEOF" && 17497 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17498 echo "_ACEOF" 17499} >conf$$subs.sh || 17500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17501ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17502ac_delim='%!_!# ' 17503for ac_last_try in false false false false false :; do 17504 . ./conf$$subs.sh || 17505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17506 17507 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17508 if test $ac_delim_n = $ac_delim_num; then 17509 break 17510 elif $ac_last_try; then 17511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17512 else 17513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17514 fi 17515done 17516rm -f conf$$subs.sh 17517 17518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17519cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17520_ACEOF 17521sed -n ' 17522h 17523s/^/S["/; s/!.*/"]=/ 17524p 17525g 17526s/^[^!]*!// 17527:repl 17528t repl 17529s/'"$ac_delim"'$// 17530t delim 17531:nl 17532h 17533s/\(.\{148\}\)..*/\1/ 17534t more1 17535s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17536p 17537n 17538b repl 17539:more1 17540s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17541p 17542g 17543s/.\{148\}// 17544t nl 17545:delim 17546h 17547s/\(.\{148\}\)..*/\1/ 17548t more2 17549s/["\\]/\\&/g; s/^/"/; s/$/"/ 17550p 17551b 17552:more2 17553s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17554p 17555g 17556s/.\{148\}// 17557t delim 17558' <conf$$subs.awk | sed ' 17559/^[^""]/{ 17560 N 17561 s/\n// 17562} 17563' >>$CONFIG_STATUS || ac_write_fail=1 17564rm -f conf$$subs.awk 17565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17566_ACAWK 17567cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17568 for (key in S) S_is_set[key] = 1 17569 FS = "" 17570 17571} 17572{ 17573 line = $ 0 17574 nfields = split(line, field, "@") 17575 substed = 0 17576 len = length(field[1]) 17577 for (i = 2; i < nfields; i++) { 17578 key = field[i] 17579 keylen = length(key) 17580 if (S_is_set[key]) { 17581 value = S[key] 17582 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17583 len += length(value) + length(field[++i]) 17584 substed = 1 17585 } else 17586 len += 1 + keylen 17587 } 17588 17589 print line 17590} 17591 17592_ACAWK 17593_ACEOF 17594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17595if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17596 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17597else 17598 cat 17599fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17600 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17601_ACEOF 17602 17603# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17604# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17605# trailing colons and then remove the whole line if VPATH becomes empty 17606# (actually we leave an empty line to preserve line numbers). 17607if test "x$srcdir" = x.; then 17608 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17609h 17610s/// 17611s/^/:/ 17612s/[ ]*$/:/ 17613s/:\$(srcdir):/:/g 17614s/:\${srcdir}:/:/g 17615s/:@srcdir@:/:/g 17616s/^:*// 17617s/:*$// 17618x 17619s/\(=[ ]*\).*/\1/ 17620G 17621s/\n// 17622s/^[^=]*=[ ]*$// 17623}' 17624fi 17625 17626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17627fi # test -n "$CONFIG_FILES" 17628 17629# Set up the scripts for CONFIG_HEADERS section. 17630# No need to generate them if there are no CONFIG_HEADERS. 17631# This happens for instance with `./config.status Makefile'. 17632if test -n "$CONFIG_HEADERS"; then 17633cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17634BEGIN { 17635_ACEOF 17636 17637# Transform confdefs.h into an awk script `defines.awk', embedded as 17638# here-document in config.status, that substitutes the proper values into 17639# config.h.in to produce config.h. 17640 17641# Create a delimiter string that does not exist in confdefs.h, to ease 17642# handling of long lines. 17643ac_delim='%!_!# ' 17644for ac_last_try in false false :; do 17645 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17646 if test -z "$ac_tt"; then 17647 break 17648 elif $ac_last_try; then 17649 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17650 else 17651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17652 fi 17653done 17654 17655# For the awk script, D is an array of macro values keyed by name, 17656# likewise P contains macro parameters if any. Preserve backslash 17657# newline sequences. 17658 17659ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17660sed -n ' 17661s/.\{148\}/&'"$ac_delim"'/g 17662t rset 17663:rset 17664s/^[ ]*#[ ]*define[ ][ ]*/ / 17665t def 17666d 17667:def 17668s/\\$// 17669t bsnl 17670s/["\\]/\\&/g 17671s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17672D["\1"]=" \3"/p 17673s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17674d 17675:bsnl 17676s/["\\]/\\&/g 17677s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17678D["\1"]=" \3\\\\\\n"\\/p 17679t cont 17680s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17681t cont 17682d 17683:cont 17684n 17685s/.\{148\}/&'"$ac_delim"'/g 17686t clear 17687:clear 17688s/\\$// 17689t bsnlc 17690s/["\\]/\\&/g; s/^/"/; s/$/"/p 17691d 17692:bsnlc 17693s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17694b cont 17695' <confdefs.h | sed ' 17696s/'"$ac_delim"'/"\\\ 17697"/g' >>$CONFIG_STATUS || ac_write_fail=1 17698 17699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17700 for (key in D) D_is_set[key] = 1 17701 FS = "" 17702} 17703/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17704 line = \$ 0 17705 split(line, arg, " ") 17706 if (arg[1] == "#") { 17707 defundef = arg[2] 17708 mac1 = arg[3] 17709 } else { 17710 defundef = substr(arg[1], 2) 17711 mac1 = arg[2] 17712 } 17713 split(mac1, mac2, "(") #) 17714 macro = mac2[1] 17715 prefix = substr(line, 1, index(line, defundef) - 1) 17716 if (D_is_set[macro]) { 17717 # Preserve the white space surrounding the "#". 17718 print prefix "define", macro P[macro] D[macro] 17719 next 17720 } else { 17721 # Replace #undef with comments. This is necessary, for example, 17722 # in the case of _POSIX_SOURCE, which is predefined and required 17723 # on some systems where configure will not decide to define it. 17724 if (defundef == "undef") { 17725 print "/*", prefix defundef, macro, "*/" 17726 next 17727 } 17728 } 17729} 17730{ print } 17731_ACAWK 17732_ACEOF 17733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17734 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17735fi # test -n "$CONFIG_HEADERS" 17736 17737 17738eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17739shift 17740for ac_tag 17741do 17742 case $ac_tag in 17743 :[FHLC]) ac_mode=$ac_tag; continue;; 17744 esac 17745 case $ac_mode$ac_tag in 17746 :[FHL]*:*);; 17747 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17748 :[FH]-) ac_tag=-:-;; 17749 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17750 esac 17751 ac_save_IFS=$IFS 17752 IFS=: 17753 set x $ac_tag 17754 IFS=$ac_save_IFS 17755 shift 17756 ac_file=$1 17757 shift 17758 17759 case $ac_mode in 17760 :L) ac_source=$1;; 17761 :[FH]) 17762 ac_file_inputs= 17763 for ac_f 17764 do 17765 case $ac_f in 17766 -) ac_f="$ac_tmp/stdin";; 17767 *) # Look for the file first in the build tree, then in the source tree 17768 # (if the path is not absolute). The absolute path cannot be DOS-style, 17769 # because $ac_f cannot contain `:'. 17770 test -f "$ac_f" || 17771 case $ac_f in 17772 [\\/$]*) false;; 17773 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17774 esac || 17775 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17776 esac 17777 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17778 as_fn_append ac_file_inputs " '$ac_f'" 17779 done 17780 17781 # Let's still pretend it is `configure' which instantiates (i.e., don't 17782 # use $as_me), people would be surprised to read: 17783 # /* config.h. Generated by config.status. */ 17784 configure_input='Generated from '` 17785 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17786 `' by configure.' 17787 if test x"$ac_file" != x-; then 17788 configure_input="$ac_file. $configure_input" 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17790$as_echo "$as_me: creating $ac_file" >&6;} 17791 fi 17792 # Neutralize special characters interpreted by sed in replacement strings. 17793 case $configure_input in #( 17794 *\&* | *\|* | *\\* ) 17795 ac_sed_conf_input=`$as_echo "$configure_input" | 17796 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17797 *) ac_sed_conf_input=$configure_input;; 17798 esac 17799 17800 case $ac_tag in 17801 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17803 esac 17804 ;; 17805 esac 17806 17807 ac_dir=`$as_dirname -- "$ac_file" || 17808$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17809 X"$ac_file" : 'X\(//\)[^/]' \| \ 17810 X"$ac_file" : 'X\(//\)$' \| \ 17811 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17812$as_echo X"$ac_file" | 17813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17814 s//\1/ 17815 q 17816 } 17817 /^X\(\/\/\)[^/].*/{ 17818 s//\1/ 17819 q 17820 } 17821 /^X\(\/\/\)$/{ 17822 s//\1/ 17823 q 17824 } 17825 /^X\(\/\).*/{ 17826 s//\1/ 17827 q 17828 } 17829 s/.*/./; q'` 17830 as_dir="$ac_dir"; as_fn_mkdir_p 17831 ac_builddir=. 17832 17833case "$ac_dir" in 17834.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17835*) 17836 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17837 # A ".." for each directory in $ac_dir_suffix. 17838 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17839 case $ac_top_builddir_sub in 17840 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17841 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17842 esac ;; 17843esac 17844ac_abs_top_builddir=$ac_pwd 17845ac_abs_builddir=$ac_pwd$ac_dir_suffix 17846# for backward compatibility: 17847ac_top_builddir=$ac_top_build_prefix 17848 17849case $srcdir in 17850 .) # We are building in place. 17851 ac_srcdir=. 17852 ac_top_srcdir=$ac_top_builddir_sub 17853 ac_abs_top_srcdir=$ac_pwd ;; 17854 [\\/]* | ?:[\\/]* ) # Absolute name. 17855 ac_srcdir=$srcdir$ac_dir_suffix; 17856 ac_top_srcdir=$srcdir 17857 ac_abs_top_srcdir=$srcdir ;; 17858 *) # Relative name. 17859 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17860 ac_top_srcdir=$ac_top_build_prefix$srcdir 17861 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17862esac 17863ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17864 17865 17866 case $ac_mode in 17867 :F) 17868 # 17869 # CONFIG_FILE 17870 # 17871 17872 case $INSTALL in 17873 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17874 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17875 esac 17876 ac_MKDIR_P=$MKDIR_P 17877 case $MKDIR_P in 17878 [\\/$]* | ?:[\\/]* ) ;; 17879 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17880 esac 17881_ACEOF 17882 17883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17884# If the template does not know about datarootdir, expand it. 17885# FIXME: This hack should be removed a few years after 2.60. 17886ac_datarootdir_hack=; ac_datarootdir_seen= 17887ac_sed_dataroot=' 17888/datarootdir/ { 17889 p 17890 q 17891} 17892/@datadir@/p 17893/@docdir@/p 17894/@infodir@/p 17895/@localedir@/p 17896/@mandir@/p' 17897case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17898*datarootdir*) ac_datarootdir_seen=yes;; 17899*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17901$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17902_ACEOF 17903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17904 ac_datarootdir_hack=' 17905 s&@datadir@&$datadir&g 17906 s&@docdir@&$docdir&g 17907 s&@infodir@&$infodir&g 17908 s&@localedir@&$localedir&g 17909 s&@mandir@&$mandir&g 17910 s&\\\${datarootdir}&$datarootdir&g' ;; 17911esac 17912_ACEOF 17913 17914# Neutralize VPATH when `$srcdir' = `.'. 17915# Shell code in configure.ac might set extrasub. 17916# FIXME: do we really want to maintain this feature? 17917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17918ac_sed_extra="$ac_vpsub 17919$extrasub 17920_ACEOF 17921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17922:t 17923/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17924s|@configure_input@|$ac_sed_conf_input|;t t 17925s&@top_builddir@&$ac_top_builddir_sub&;t t 17926s&@top_build_prefix@&$ac_top_build_prefix&;t t 17927s&@srcdir@&$ac_srcdir&;t t 17928s&@abs_srcdir@&$ac_abs_srcdir&;t t 17929s&@top_srcdir@&$ac_top_srcdir&;t t 17930s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17931s&@builddir@&$ac_builddir&;t t 17932s&@abs_builddir@&$ac_abs_builddir&;t t 17933s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17934s&@INSTALL@&$ac_INSTALL&;t t 17935s&@MKDIR_P@&$ac_MKDIR_P&;t t 17936$ac_datarootdir_hack 17937" 17938eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17939 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17940 17941test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17942 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17943 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17944 "$ac_tmp/out"`; test -z "$ac_out"; } && 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17946which seems to be undefined. Please make sure it is defined" >&5 17947$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17948which seems to be undefined. Please make sure it is defined" >&2;} 17949 17950 rm -f "$ac_tmp/stdin" 17951 case $ac_file in 17952 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17953 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17954 esac \ 17955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17956 ;; 17957 :H) 17958 # 17959 # CONFIG_HEADER 17960 # 17961 if test x"$ac_file" != x-; then 17962 { 17963 $as_echo "/* $configure_input */" \ 17964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17965 } >"$ac_tmp/config.h" \ 17966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17967 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17969$as_echo "$as_me: $ac_file is unchanged" >&6;} 17970 else 17971 rm -f "$ac_file" 17972 mv "$ac_tmp/config.h" "$ac_file" \ 17973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17974 fi 17975 else 17976 $as_echo "/* $configure_input */" \ 17977 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17978 || as_fn_error $? "could not create -" "$LINENO" 5 17979 fi 17980# Compute "$ac_file"'s index in $config_headers. 17981_am_arg="$ac_file" 17982_am_stamp_count=1 17983for _am_header in $config_headers :; do 17984 case $_am_header in 17985 $_am_arg | $_am_arg:* ) 17986 break ;; 17987 * ) 17988 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17989 esac 17990done 17991echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17992$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17993 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17994 X"$_am_arg" : 'X\(//\)$' \| \ 17995 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17996$as_echo X"$_am_arg" | 17997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17998 s//\1/ 17999 q 18000 } 18001 /^X\(\/\/\)[^/].*/{ 18002 s//\1/ 18003 q 18004 } 18005 /^X\(\/\/\)$/{ 18006 s//\1/ 18007 q 18008 } 18009 /^X\(\/\).*/{ 18010 s//\1/ 18011 q 18012 } 18013 s/.*/./; q'`/stamp-h$_am_stamp_count 18014 ;; 18015 18016 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18017$as_echo "$as_me: executing $ac_file commands" >&6;} 18018 ;; 18019 esac 18020 18021 18022 case $ac_file$ac_mode in 18023 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18024 # Autoconf 2.62 quotes --file arguments for eval, but not when files 18025 # are listed without --file. Let's play safe and only enable the eval 18026 # if we detect the quoting. 18027 case $CONFIG_FILES in 18028 *\'*) eval set x "$CONFIG_FILES" ;; 18029 *) set x $CONFIG_FILES ;; 18030 esac 18031 shift 18032 for mf 18033 do 18034 # Strip MF so we end up with the name of the file. 18035 mf=`echo "$mf" | sed -e 's/:.*$//'` 18036 # Check whether this is an Automake generated Makefile or not. 18037 # We used to match only the files named `Makefile.in', but 18038 # some people rename them; so instead we look at the file content. 18039 # Grep'ing the first line is not enough: some people post-process 18040 # each Makefile.in and add a new line on top of each file to say so. 18041 # Grep'ing the whole file is not good either: AIX grep has a line 18042 # limit of 2048, but all sed's we know have understand at least 4000. 18043 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18044 dirpart=`$as_dirname -- "$mf" || 18045$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18046 X"$mf" : 'X\(//\)[^/]' \| \ 18047 X"$mf" : 'X\(//\)$' \| \ 18048 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18049$as_echo X"$mf" | 18050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18051 s//\1/ 18052 q 18053 } 18054 /^X\(\/\/\)[^/].*/{ 18055 s//\1/ 18056 q 18057 } 18058 /^X\(\/\/\)$/{ 18059 s//\1/ 18060 q 18061 } 18062 /^X\(\/\).*/{ 18063 s//\1/ 18064 q 18065 } 18066 s/.*/./; q'` 18067 else 18068 continue 18069 fi 18070 # Extract the definition of DEPDIR, am__include, and am__quote 18071 # from the Makefile without running `make'. 18072 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18073 test -z "$DEPDIR" && continue 18074 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18075 test -z "am__include" && continue 18076 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18077 # When using ansi2knr, U may be empty or an underscore; expand it 18078 U=`sed -n 's/^U = //p' < "$mf"` 18079 # Find all dependency output files, they are included files with 18080 # $(DEPDIR) in their names. We invoke sed twice because it is the 18081 # simplest approach to changing $(DEPDIR) to its actual value in the 18082 # expansion. 18083 for file in `sed -n " 18084 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18085 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 18086 # Make sure the directory exists. 18087 test -f "$dirpart/$file" && continue 18088 fdir=`$as_dirname -- "$file" || 18089$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18090 X"$file" : 'X\(//\)[^/]' \| \ 18091 X"$file" : 'X\(//\)$' \| \ 18092 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18093$as_echo X"$file" | 18094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18095 s//\1/ 18096 q 18097 } 18098 /^X\(\/\/\)[^/].*/{ 18099 s//\1/ 18100 q 18101 } 18102 /^X\(\/\/\)$/{ 18103 s//\1/ 18104 q 18105 } 18106 /^X\(\/\).*/{ 18107 s//\1/ 18108 q 18109 } 18110 s/.*/./; q'` 18111 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18112 # echo "creating $dirpart/$file" 18113 echo '# dummy' > "$dirpart/$file" 18114 done 18115 done 18116} 18117 ;; 18118 "libtool":C) 18119 18120 # See if we are running on zsh, and set the options which allow our 18121 # commands through without removal of \ escapes. 18122 if test -n "${ZSH_VERSION+set}" ; then 18123 setopt NO_GLOB_SUBST 18124 fi 18125 18126 cfgfile="${ofile}T" 18127 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18128 $RM "$cfgfile" 18129 18130 cat <<_LT_EOF >> "$cfgfile" 18131#! $SHELL 18132 18133# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18134# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18135# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18136# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18137# 18138# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18139# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18140# Foundation, Inc. 18141# Written by Gordon Matzigkeit, 1996 18142# 18143# This file is part of GNU Libtool. 18144# 18145# GNU Libtool is free software; you can redistribute it and/or 18146# modify it under the terms of the GNU General Public License as 18147# published by the Free Software Foundation; either version 2 of 18148# the License, or (at your option) any later version. 18149# 18150# As a special exception to the GNU General Public License, 18151# if you distribute this file as part of a program or library that 18152# is built using GNU Libtool, you may include this file under the 18153# same distribution terms that you use for the rest of that program. 18154# 18155# GNU Libtool is distributed in the hope that it will be useful, 18156# but WITHOUT ANY WARRANTY; without even the implied warranty of 18157# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18158# GNU General Public License for more details. 18159# 18160# You should have received a copy of the GNU General Public License 18161# along with GNU Libtool; see the file COPYING. If not, a copy 18162# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18163# obtained by writing to the Free Software Foundation, Inc., 18164# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18165 18166 18167# The names of the tagged configurations supported by this script. 18168available_tags="RC " 18169 18170# ### BEGIN LIBTOOL CONFIG 18171 18172# Which release of libtool.m4 was used? 18173macro_version=$macro_version 18174macro_revision=$macro_revision 18175 18176# Assembler program. 18177AS=$lt_AS 18178 18179# DLL creation program. 18180DLLTOOL=$lt_DLLTOOL 18181 18182# Object dumper program. 18183OBJDUMP=$lt_OBJDUMP 18184 18185# Whether or not to build shared libraries. 18186build_libtool_libs=$enable_shared 18187 18188# Whether or not to build static libraries. 18189build_old_libs=$enable_static 18190 18191# What type of objects to build. 18192pic_mode=$pic_mode 18193 18194# Whether or not to optimize for fast installation. 18195fast_install=$enable_fast_install 18196 18197# Shell to use when invoking shell scripts. 18198SHELL=$lt_SHELL 18199 18200# An echo program that protects backslashes. 18201ECHO=$lt_ECHO 18202 18203# The PATH separator for the build system. 18204PATH_SEPARATOR=$lt_PATH_SEPARATOR 18205 18206# The host system. 18207host_alias=$host_alias 18208host=$host 18209host_os=$host_os 18210 18211# The build system. 18212build_alias=$build_alias 18213build=$build 18214build_os=$build_os 18215 18216# A sed program that does not truncate output. 18217SED=$lt_SED 18218 18219# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18220Xsed="\$SED -e 1s/^X//" 18221 18222# A grep program that handles long lines. 18223GREP=$lt_GREP 18224 18225# An ERE matcher. 18226EGREP=$lt_EGREP 18227 18228# A literal string matcher. 18229FGREP=$lt_FGREP 18230 18231# A BSD- or MS-compatible name lister. 18232NM=$lt_NM 18233 18234# Whether we need soft or hard links. 18235LN_S=$lt_LN_S 18236 18237# What is the maximum length of a command? 18238max_cmd_len=$max_cmd_len 18239 18240# Object file suffix (normally "o"). 18241objext=$ac_objext 18242 18243# Executable file suffix (normally ""). 18244exeext=$exeext 18245 18246# whether the shell understands "unset". 18247lt_unset=$lt_unset 18248 18249# turn spaces into newlines. 18250SP2NL=$lt_lt_SP2NL 18251 18252# turn newlines into spaces. 18253NL2SP=$lt_lt_NL2SP 18254 18255# convert \$build file names to \$host format. 18256to_host_file_cmd=$lt_cv_to_host_file_cmd 18257 18258# convert \$build files to toolchain format. 18259to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18260 18261# Method to check whether dependent libraries are shared objects. 18262deplibs_check_method=$lt_deplibs_check_method 18263 18264# Command to use when deplibs_check_method = "file_magic". 18265file_magic_cmd=$lt_file_magic_cmd 18266 18267# How to find potential files when deplibs_check_method = "file_magic". 18268file_magic_glob=$lt_file_magic_glob 18269 18270# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18271want_nocaseglob=$lt_want_nocaseglob 18272 18273# Command to associate shared and link libraries. 18274sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18275 18276# The archiver. 18277AR=$lt_AR 18278 18279# Flags to create an archive. 18280AR_FLAGS=$lt_AR_FLAGS 18281 18282# How to feed a file listing to the archiver. 18283archiver_list_spec=$lt_archiver_list_spec 18284 18285# A symbol stripping program. 18286STRIP=$lt_STRIP 18287 18288# Commands used to install an old-style archive. 18289RANLIB=$lt_RANLIB 18290old_postinstall_cmds=$lt_old_postinstall_cmds 18291old_postuninstall_cmds=$lt_old_postuninstall_cmds 18292 18293# Whether to use a lock for old archive extraction. 18294lock_old_archive_extraction=$lock_old_archive_extraction 18295 18296# A C compiler. 18297LTCC=$lt_CC 18298 18299# LTCC compiler flags. 18300LTCFLAGS=$lt_CFLAGS 18301 18302# Take the output of nm and produce a listing of raw symbols and C names. 18303global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18304 18305# Transform the output of nm in a proper C declaration. 18306global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18307 18308# Transform the output of nm in a C name address pair. 18309global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18310 18311# Transform the output of nm in a C name address pair when lib prefix is needed. 18312global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18313 18314# Specify filename containing input files for \$NM. 18315nm_file_list_spec=$lt_nm_file_list_spec 18316 18317# The root where to search for dependent libraries,and in which our libraries should be installed. 18318lt_sysroot=$lt_sysroot 18319 18320# The name of the directory that contains temporary libtool files. 18321objdir=$objdir 18322 18323# Used to examine libraries when file_magic_cmd begins with "file". 18324MAGIC_CMD=$MAGIC_CMD 18325 18326# Must we lock files when doing compilation? 18327need_locks=$lt_need_locks 18328 18329# Manifest tool. 18330MANIFEST_TOOL=$lt_MANIFEST_TOOL 18331 18332# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18333DSYMUTIL=$lt_DSYMUTIL 18334 18335# Tool to change global to local symbols on Mac OS X. 18336NMEDIT=$lt_NMEDIT 18337 18338# Tool to manipulate fat objects and archives on Mac OS X. 18339LIPO=$lt_LIPO 18340 18341# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18342OTOOL=$lt_OTOOL 18343 18344# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18345OTOOL64=$lt_OTOOL64 18346 18347# Old archive suffix (normally "a"). 18348libext=$libext 18349 18350# Shared library suffix (normally ".so"). 18351shrext_cmds=$lt_shrext_cmds 18352 18353# The commands to extract the exported symbol list from a shared archive. 18354extract_expsyms_cmds=$lt_extract_expsyms_cmds 18355 18356# Variables whose values should be saved in libtool wrapper scripts and 18357# restored at link time. 18358variables_saved_for_relink=$lt_variables_saved_for_relink 18359 18360# Do we need the "lib" prefix for modules? 18361need_lib_prefix=$need_lib_prefix 18362 18363# Do we need a version for libraries? 18364need_version=$need_version 18365 18366# Library versioning type. 18367version_type=$version_type 18368 18369# Shared library runtime path variable. 18370runpath_var=$runpath_var 18371 18372# Shared library path variable. 18373shlibpath_var=$shlibpath_var 18374 18375# Is shlibpath searched before the hard-coded library search path? 18376shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18377 18378# Format of library name prefix. 18379libname_spec=$lt_libname_spec 18380 18381# List of archive names. First name is the real one, the rest are links. 18382# The last name is the one that the linker finds with -lNAME 18383library_names_spec=$lt_library_names_spec 18384 18385# The coded name of the library, if different from the real name. 18386soname_spec=$lt_soname_spec 18387 18388# Permission mode override for installation of shared libraries. 18389install_override_mode=$lt_install_override_mode 18390 18391# Command to use after installation of a shared archive. 18392postinstall_cmds=$lt_postinstall_cmds 18393 18394# Command to use after uninstallation of a shared archive. 18395postuninstall_cmds=$lt_postuninstall_cmds 18396 18397# Commands used to finish a libtool library installation in a directory. 18398finish_cmds=$lt_finish_cmds 18399 18400# As "finish_cmds", except a single script fragment to be evaled but 18401# not shown. 18402finish_eval=$lt_finish_eval 18403 18404# Whether we should hardcode library paths into libraries. 18405hardcode_into_libs=$hardcode_into_libs 18406 18407# Compile-time system search path for libraries. 18408sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18409 18410# Run-time system search path for libraries. 18411sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18412 18413# Whether dlopen is supported. 18414dlopen_support=$enable_dlopen 18415 18416# Whether dlopen of programs is supported. 18417dlopen_self=$enable_dlopen_self 18418 18419# Whether dlopen of statically linked programs is supported. 18420dlopen_self_static=$enable_dlopen_self_static 18421 18422# Commands to strip libraries. 18423old_striplib=$lt_old_striplib 18424striplib=$lt_striplib 18425 18426 18427# The linker used to build libraries. 18428LD=$lt_LD 18429 18430# How to create reloadable object files. 18431reload_flag=$lt_reload_flag 18432reload_cmds=$lt_reload_cmds 18433 18434# Commands used to build an old-style archive. 18435old_archive_cmds=$lt_old_archive_cmds 18436 18437# A language specific compiler. 18438CC=$lt_compiler 18439 18440# Is the compiler the GNU compiler? 18441with_gcc=$GCC 18442 18443# Compiler flag to turn off builtin functions. 18444no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18445 18446# Additional compiler flags for building library objects. 18447pic_flag=$lt_lt_prog_compiler_pic 18448 18449# How to pass a linker flag through the compiler. 18450wl=$lt_lt_prog_compiler_wl 18451 18452# Compiler flag to prevent dynamic linking. 18453link_static_flag=$lt_lt_prog_compiler_static 18454 18455# Does compiler simultaneously support -c and -o options? 18456compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18457 18458# Whether or not to add -lc for building shared libraries. 18459build_libtool_need_lc=$archive_cmds_need_lc 18460 18461# Whether or not to disallow shared libs when runtime libs are static. 18462allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18463 18464# Compiler flag to allow reflexive dlopens. 18465export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18466 18467# Compiler flag to generate shared objects directly from archives. 18468whole_archive_flag_spec=$lt_whole_archive_flag_spec 18469 18470# Whether the compiler copes with passing no objects directly. 18471compiler_needs_object=$lt_compiler_needs_object 18472 18473# Create an old-style archive from a shared archive. 18474old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18475 18476# Create a temporary old-style archive to link instead of a shared archive. 18477old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18478 18479# Commands used to build a shared archive. 18480archive_cmds=$lt_archive_cmds 18481archive_expsym_cmds=$lt_archive_expsym_cmds 18482 18483# Commands used to build a loadable module if different from building 18484# a shared archive. 18485module_cmds=$lt_module_cmds 18486module_expsym_cmds=$lt_module_expsym_cmds 18487 18488# Whether we are building with GNU ld or not. 18489with_gnu_ld=$lt_with_gnu_ld 18490 18491# Flag that allows shared libraries with undefined symbols to be built. 18492allow_undefined_flag=$lt_allow_undefined_flag 18493 18494# Flag that enforces no undefined symbols. 18495no_undefined_flag=$lt_no_undefined_flag 18496 18497# Flag to hardcode \$libdir into a binary during linking. 18498# This must work even if \$libdir does not exist 18499hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18500 18501# Whether we need a single "-rpath" flag with a separated argument. 18502hardcode_libdir_separator=$lt_hardcode_libdir_separator 18503 18504# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18505# DIR into the resulting binary. 18506hardcode_direct=$hardcode_direct 18507 18508# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18509# DIR into the resulting binary and the resulting library dependency is 18510# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18511# library is relocated. 18512hardcode_direct_absolute=$hardcode_direct_absolute 18513 18514# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18515# into the resulting binary. 18516hardcode_minus_L=$hardcode_minus_L 18517 18518# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18519# into the resulting binary. 18520hardcode_shlibpath_var=$hardcode_shlibpath_var 18521 18522# Set to "yes" if building a shared library automatically hardcodes DIR 18523# into the library and all subsequent libraries and executables linked 18524# against it. 18525hardcode_automatic=$hardcode_automatic 18526 18527# Set to yes if linker adds runtime paths of dependent libraries 18528# to runtime path list. 18529inherit_rpath=$inherit_rpath 18530 18531# Whether libtool must link a program against all its dependency libraries. 18532link_all_deplibs=$link_all_deplibs 18533 18534# Set to "yes" if exported symbols are required. 18535always_export_symbols=$always_export_symbols 18536 18537# The commands to list exported symbols. 18538export_symbols_cmds=$lt_export_symbols_cmds 18539 18540# Symbols that should not be listed in the preloaded symbols. 18541exclude_expsyms=$lt_exclude_expsyms 18542 18543# Symbols that must always be exported. 18544include_expsyms=$lt_include_expsyms 18545 18546# Commands necessary for linking programs (against libraries) with templates. 18547prelink_cmds=$lt_prelink_cmds 18548 18549# Commands necessary for finishing linking programs. 18550postlink_cmds=$lt_postlink_cmds 18551 18552# Specify filename containing input files. 18553file_list_spec=$lt_file_list_spec 18554 18555# How to hardcode a shared library path into an executable. 18556hardcode_action=$hardcode_action 18557 18558# ### END LIBTOOL CONFIG 18559 18560_LT_EOF 18561 18562 case $host_os in 18563 aix3*) 18564 cat <<\_LT_EOF >> "$cfgfile" 18565# AIX sometimes has problems with the GCC collect2 program. For some 18566# reason, if we set the COLLECT_NAMES environment variable, the problems 18567# vanish in a puff of smoke. 18568if test "X${COLLECT_NAMES+set}" != Xset; then 18569 COLLECT_NAMES= 18570 export COLLECT_NAMES 18571fi 18572_LT_EOF 18573 ;; 18574 esac 18575 18576 18577ltmain="$ac_aux_dir/ltmain.sh" 18578 18579 18580 # We use sed instead of cat because bash on DJGPP gets confused if 18581 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18582 # text mode, it properly converts lines to CR/LF. This bash problem 18583 # is reportedly fixed, but why not run on old versions too? 18584 sed '$q' "$ltmain" >> "$cfgfile" \ 18585 || (rm -f "$cfgfile"; exit 1) 18586 18587 if test x"$xsi_shell" = xyes; then 18588 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18589func_dirname ()\ 18590{\ 18591\ case ${1} in\ 18592\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18593\ * ) func_dirname_result="${3}" ;;\ 18594\ esac\ 18595} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18596 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18597 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18598test 0 -eq $? || _lt_function_replace_fail=: 18599 18600 18601 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18602func_basename ()\ 18603{\ 18604\ func_basename_result="${1##*/}"\ 18605} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18606 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18607 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18608test 0 -eq $? || _lt_function_replace_fail=: 18609 18610 18611 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18612func_dirname_and_basename ()\ 18613{\ 18614\ case ${1} in\ 18615\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18616\ * ) func_dirname_result="${3}" ;;\ 18617\ esac\ 18618\ func_basename_result="${1##*/}"\ 18619} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18620 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18622test 0 -eq $? || _lt_function_replace_fail=: 18623 18624 18625 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18626func_stripname ()\ 18627{\ 18628\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18629\ # positional parameters, so assign one to ordinary parameter first.\ 18630\ func_stripname_result=${3}\ 18631\ func_stripname_result=${func_stripname_result#"${1}"}\ 18632\ func_stripname_result=${func_stripname_result%"${2}"}\ 18633} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18634 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18636test 0 -eq $? || _lt_function_replace_fail=: 18637 18638 18639 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18640func_split_long_opt ()\ 18641{\ 18642\ func_split_long_opt_name=${1%%=*}\ 18643\ func_split_long_opt_arg=${1#*=}\ 18644} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18645 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18647test 0 -eq $? || _lt_function_replace_fail=: 18648 18649 18650 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18651func_split_short_opt ()\ 18652{\ 18653\ func_split_short_opt_arg=${1#??}\ 18654\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18655} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18656 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18658test 0 -eq $? || _lt_function_replace_fail=: 18659 18660 18661 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18662func_lo2o ()\ 18663{\ 18664\ case ${1} in\ 18665\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18666\ *) func_lo2o_result=${1} ;;\ 18667\ esac\ 18668} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18669 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18670 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18671test 0 -eq $? || _lt_function_replace_fail=: 18672 18673 18674 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18675func_xform ()\ 18676{\ 18677 func_xform_result=${1%.*}.lo\ 18678} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18679 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18681test 0 -eq $? || _lt_function_replace_fail=: 18682 18683 18684 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18685func_arith ()\ 18686{\ 18687 func_arith_result=$(( $* ))\ 18688} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18689 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18691test 0 -eq $? || _lt_function_replace_fail=: 18692 18693 18694 sed -e '/^func_len ()$/,/^} # func_len /c\ 18695func_len ()\ 18696{\ 18697 func_len_result=${#1}\ 18698} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18699 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18701test 0 -eq $? || _lt_function_replace_fail=: 18702 18703fi 18704 18705if test x"$lt_shell_append" = xyes; then 18706 sed -e '/^func_append ()$/,/^} # func_append /c\ 18707func_append ()\ 18708{\ 18709 eval "${1}+=\\${2}"\ 18710} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18711 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18713test 0 -eq $? || _lt_function_replace_fail=: 18714 18715 18716 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18717func_append_quoted ()\ 18718{\ 18719\ func_quote_for_eval "${2}"\ 18720\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18721} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18722 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18724test 0 -eq $? || _lt_function_replace_fail=: 18725 18726 18727 # Save a `func_append' function call where possible by direct use of '+=' 18728 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18729 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18731 test 0 -eq $? || _lt_function_replace_fail=: 18732else 18733 # Save a `func_append' function call even when '+=' is not available 18734 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18735 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18737 test 0 -eq $? || _lt_function_replace_fail=: 18738fi 18739 18740if test x"$_lt_function_replace_fail" = x":"; then 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18742$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18743fi 18744 18745 18746 mv -f "$cfgfile" "$ofile" || 18747 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18748 chmod +x "$ofile" 18749 18750 18751 cat <<_LT_EOF >> "$ofile" 18752 18753# ### BEGIN LIBTOOL TAG CONFIG: RC 18754 18755# The linker used to build libraries. 18756LD=$lt_LD_RC 18757 18758# How to create reloadable object files. 18759reload_flag=$lt_reload_flag_RC 18760reload_cmds=$lt_reload_cmds_RC 18761 18762# Commands used to build an old-style archive. 18763old_archive_cmds=$lt_old_archive_cmds_RC 18764 18765# A language specific compiler. 18766CC=$lt_compiler_RC 18767 18768# Is the compiler the GNU compiler? 18769with_gcc=$GCC_RC 18770 18771# Compiler flag to turn off builtin functions. 18772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18773 18774# Additional compiler flags for building library objects. 18775pic_flag=$lt_lt_prog_compiler_pic_RC 18776 18777# How to pass a linker flag through the compiler. 18778wl=$lt_lt_prog_compiler_wl_RC 18779 18780# Compiler flag to prevent dynamic linking. 18781link_static_flag=$lt_lt_prog_compiler_static_RC 18782 18783# Does compiler simultaneously support -c and -o options? 18784compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18785 18786# Whether or not to add -lc for building shared libraries. 18787build_libtool_need_lc=$archive_cmds_need_lc_RC 18788 18789# Whether or not to disallow shared libs when runtime libs are static. 18790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18791 18792# Compiler flag to allow reflexive dlopens. 18793export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18794 18795# Compiler flag to generate shared objects directly from archives. 18796whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18797 18798# Whether the compiler copes with passing no objects directly. 18799compiler_needs_object=$lt_compiler_needs_object_RC 18800 18801# Create an old-style archive from a shared archive. 18802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18803 18804# Create a temporary old-style archive to link instead of a shared archive. 18805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18806 18807# Commands used to build a shared archive. 18808archive_cmds=$lt_archive_cmds_RC 18809archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18810 18811# Commands used to build a loadable module if different from building 18812# a shared archive. 18813module_cmds=$lt_module_cmds_RC 18814module_expsym_cmds=$lt_module_expsym_cmds_RC 18815 18816# Whether we are building with GNU ld or not. 18817with_gnu_ld=$lt_with_gnu_ld_RC 18818 18819# Flag that allows shared libraries with undefined symbols to be built. 18820allow_undefined_flag=$lt_allow_undefined_flag_RC 18821 18822# Flag that enforces no undefined symbols. 18823no_undefined_flag=$lt_no_undefined_flag_RC 18824 18825# Flag to hardcode \$libdir into a binary during linking. 18826# This must work even if \$libdir does not exist 18827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18828 18829# Whether we need a single "-rpath" flag with a separated argument. 18830hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18831 18832# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18833# DIR into the resulting binary. 18834hardcode_direct=$hardcode_direct_RC 18835 18836# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18837# DIR into the resulting binary and the resulting library dependency is 18838# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18839# library is relocated. 18840hardcode_direct_absolute=$hardcode_direct_absolute_RC 18841 18842# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18843# into the resulting binary. 18844hardcode_minus_L=$hardcode_minus_L_RC 18845 18846# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18847# into the resulting binary. 18848hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18849 18850# Set to "yes" if building a shared library automatically hardcodes DIR 18851# into the library and all subsequent libraries and executables linked 18852# against it. 18853hardcode_automatic=$hardcode_automatic_RC 18854 18855# Set to yes if linker adds runtime paths of dependent libraries 18856# to runtime path list. 18857inherit_rpath=$inherit_rpath_RC 18858 18859# Whether libtool must link a program against all its dependency libraries. 18860link_all_deplibs=$link_all_deplibs_RC 18861 18862# Set to "yes" if exported symbols are required. 18863always_export_symbols=$always_export_symbols_RC 18864 18865# The commands to list exported symbols. 18866export_symbols_cmds=$lt_export_symbols_cmds_RC 18867 18868# Symbols that should not be listed in the preloaded symbols. 18869exclude_expsyms=$lt_exclude_expsyms_RC 18870 18871# Symbols that must always be exported. 18872include_expsyms=$lt_include_expsyms_RC 18873 18874# Commands necessary for linking programs (against libraries) with templates. 18875prelink_cmds=$lt_prelink_cmds_RC 18876 18877# Commands necessary for finishing linking programs. 18878postlink_cmds=$lt_postlink_cmds_RC 18879 18880# Specify filename containing input files. 18881file_list_spec=$lt_file_list_spec_RC 18882 18883# How to hardcode a shared library path into an executable. 18884hardcode_action=$hardcode_action_RC 18885 18886# ### END LIBTOOL TAG CONFIG: RC 18887_LT_EOF 18888 18889 ;; 18890 "tests/t_client.sh":F) chmod +x tests/t_client.sh ;; 18891 18892 esac 18893done # for ac_tag 18894 18895 18896as_fn_exit 0 18897_ACEOF 18898ac_clean_files=$ac_clean_files_save 18899 18900test $ac_write_fail = 0 || 18901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18902 18903 18904# configure is writing to config.log, and then calls config.status. 18905# config.status does its own redirection, appending to config.log. 18906# Unfortunately, on DOS this fails, as config.log is still kept open 18907# by configure, so config.status won't be able to write to it; its 18908# output is simply discarded. So we exec the FD to /dev/null, 18909# effectively closing config.log, so it can be properly (re)opened and 18910# appended to by config.status. When coming back to configure, we 18911# need to make the FD available again. 18912if test "$no_create" != yes; then 18913 ac_cs_success=: 18914 ac_config_status_args= 18915 test "$silent" = yes && 18916 ac_config_status_args="$ac_config_status_args --quiet" 18917 exec 5>/dev/null 18918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18919 exec 5>>config.log 18920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18921 # would make configure fail if this is the last instruction. 18922 $ac_cs_success || as_fn_exit 1 18923fi 18924if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18926$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18927fi 18928 18929